/*
Theme Name: MaryFlor
Author: Hap
Version: 1.0.0
*/

:root {
    --sage-green: #577859;
    --forest-green: #577859;
    --cream: #F0EEE9;
    --footer: #577859;
    --warm-white: #F0EEE9;
    --white: #F0EEE9;
    --charcoal: #3a3a3a;
    --soft-gray: #8a8a8a;
    --terra-cotta: #c17a6f;
    --sand: #e8e0d5;
}

@font-face {
    font-family: 'Flanella';
    src: url('assets/fonts/Flanella.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background-color: var(--warm-white);
    line-height: 1.7;
    font-weight: 300;
}

/* ===================================
   ОСНОВНЫЕ СТИЛИ
   =================================== */
body {
    transition: margin-left 0.3s ease;

    padding-top: 250px;
}

.body {
    width: 100%;

    display: grid;
    grid-template-columns: 280px auto;
}

main {
    width: 100%;
}

/* ===================================
   БОКОВОЕ МЕНЮ
   =================================== */
.sidebar {
    width: 280px;
    height: 100%;
    background: var(--white);
    border-right: 1px solid rgba(107, 128, 104, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-sticky {
    position: sticky;
    top: 285px;
    left: 0;
}

/* Декоративная линия сбоку */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
    transparent 0%,
    var(--sage-green) 20%,
    var(--light-green) 50%,
    var(--sage-green) 80%,
    transparent 100%);
    opacity: 0.3;
}

/* Основное меню в сайдбаре */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 30px 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid rgba(107, 128, 104, 0.05);
}

.sidebar-nav a {
    display: block;
    padding: 18px 40px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav li.current-menu-item a,
.sidebar-nav li.active a {
    color: var(--forest-green);
}

/* Корзина в сайдбаре */
.sidebar-footer {
    padding: 25px 30px;
    text-align: center;

    position: sticky;
    bottom: 0;
    left: 0;
}

.sidebar-footer .header-icons {
    display: none;
}

.sidebar-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--charcoal);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1px solid var(--sage-green);
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-cart:hover {
    background: var(--sage-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 181, 160, 0.3);
}

.sidebar-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #620607;
    color: var(--cream);
    font-size: 10px;
    font-weight: 500;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка переключения сайдбара */
.sidebar-toggle {
    position: fixed;
    left: var(--sidebar-width);
    top: 250px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid rgba(107, 128, 104, 0.15);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1003;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle:hover {
    background: var(--sage-green);
    color: var(--white);
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

/* ===================================
   ШАПКА
   =================================== */
.header {
    width: 100%;
    min-height: 250px;
    background: var(--white);
    border-bottom: 1px solid var(--footer);
    border-top: 40px solid var(--footer);
    position: fixed;
    top: 0;
    z-index: 1001;
}

.header__background {
    width: 100%;
    height: 100% !important;

    position: absolute;
    left: 0;
    top: 0;

    object-fit: cover;
    opacity: .5;
}

@keyframes header--anim {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1.25);
    }
}

.header-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;

    margin: 0 auto;
    padding: 30px 60px 0;
    text-align: center;

    position: relative;
}

.header-title {
    display: flex;
    flex-flow: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.header-title .header-title__h {
    font-size: 90px;
    line-height: 1;
    font-family: Flanella, serif;
    font-weight: 900;
}

.header-title .header-title__p {
    font-size: 16px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 100;
}

.header-title svg {
    width: 30px;
    color: var(--charcoal);
}

/* Логотип в сайдбаре */
.sidebar-logo {
    text-align: center;
    position: absolute;
    left: 210px;
    bottom: -140px;
    z-index: 1002;
}

.sidebar-logo img {
    width: 135px;
    height: auto;
}

.header-icons {
    width: 100%;

    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: right;
}

.header-icons a {
    font-size: 24px;
    color: var(--footer);

    transition: .5s linear;

    position: relative;
}

.header-icons a:hover {
    scale: 1.1;
    color: var(--charcoal);
}

    /* Вторичное меню */
.header-bottom {
    border-top: 1px solid rgba(107, 128, 104, 0.08);
    padding: 35px 60px;
    position: relative;
}

.secondary-nav {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.secondary-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.secondary-nav li {
    margin: 0;
}

.secondary-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    display: block;
}

.secondary-nav a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--sage-green);
    transition: width 0.3s ease;
}

.secondary-nav a:hover,
.secondary-nav li.active a {
    color: var(--dark-green);
}

.secondary-nav a:hover::before,
.secondary-nav li.active a::before {
    width: 100%;
}

/* ===================================
   АДАПТИВНОСТЬ
   =================================== */
@media (max-width: 1345px) {
    .sidebar-logo {
        text-align: center;
        position: absolute;
        left: 180px;
        z-index: 1;
    }

    .header-title::before {
        left: -30px;
    }

    .header-title::after {
        right: -30px;
    }
}

@media (max-width: 1280px) {
    .sidebar-logo {
        text-align: center;
        position: absolute;
        left: 20px;
        z-index: 1;
    }
}

@media (max-width: 1024px) {
    .header-top {
        padding: 25px 40px;
    }

    .header-bottom {
        padding: 18px 40px;
    }

    .header-title {
        font-size: 40px;
        letter-spacing: 5px;
    }

    .header-title::before {
        left: -40px;
    }

    .header-title::after {
        right: -40px;
    }

    .sidebar-logo {
        text-align: center;
        position: absolute;
        left: 10px;
        bottom: -110px;
        z-index: 1;
    }

    .sidebar-logo img {
        width: 90px;
    }

    body {
        padding-top: 190px;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
        left: 0;
    }

    body.sidebar-open .sidebar-toggle {
        left: 280px;
    }

    body.sidebar-open .sidebar-toggle svg {
        transform: rotate(180deg);
    }

    body.sidebar-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 500;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .header-top {
        padding: 20px 30px;
    }

    .header-title {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .header-bottom {
        padding: 15px 20px;
    }

    .secondary-nav ul {
        gap: 20px;
    }

    .secondary-nav a {
        font-size: 10px;
    }
}

@media (max-width: 720px) {
    .header-top {
        padding: 0;
    }

    .header-title {
        display: none;
    }

    header .header-icons {
        display: none;
    }

    .sidebar-footer .header-icons {
        display: flex;
        justify-content: center;
    }

    .sidebar-logo {
        text-align: center;
        position: absolute;
        left: 20px;
        bottom: -197px;
        z-index: 1000;
    }

    .secondary-nav ul {
        justify-content: right;
    }
}

@media (max-width: 600px) {
    .header-title {
        opacity: 0;
        height: 150px;
    }

    .header {
        display: flex;
    }

    .header-top {
        width: 100px;
    }

    .sidebar-logo {
        text-align: center;
        position: absolute;
        left: 10px;
        bottom: -48px;
        z-index: 1000;
    }

    .sidebar-logo img {
        width: 75px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
}


/* Секция популярных товаров */
.section {
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;

    padding: 60px 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 10px;
}

.section-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage-green);
    font-weight: 500;
}

.section-title {
    /*font-family: 'Cormorant Garamond', serif;*/
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    color: var(--charcoal);
    letter-spacing: -1px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 1920px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    display: flex;
    flex-flow: column;
    text-decoration: none;

    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
}

.product-badge {
    width: 90px;
    height: 90px;

    position: absolute;
    top: -30px;
    right: -30px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge svg {
    width: 100%;
    height: 100%;

    position: absolute;
    left: 0;
    top: 0;

    color: rgb(204, 213, 193);
}

.product-badge span {
    position: relative;
    z-index: 2;

    text-align: center;
    color: var(--footer);
    opacity: 1;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    font-size: 11px;
    font-weight: 400;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;

    transition: all .3s linear;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center;

    transition-duration: 1s;
}

.product-image::before {
    content: '';
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 1);
    opacity: 0;

    transition-duration: 1s;
}

.product-card:hover .product-image {
    opacity: .6;
}

.product-info {
    padding: 0 10px 20px;

    flex: 1;

    display: flex;
    flex-flow: column;
    justify-content: space-between;
}

.product-title {
    font-family: 'Bebas Neue', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #000;
    letter-spacing: 0.5px;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 10px;
}

.product-title a {
    font-family: 'Alegreya Sans', serif;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #000;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.product-instagram {
    color: var(--sage-green);
    font-size: 24px;
}

.product-description {
    font-size: 13px;
    color: var(--soft-gray);
    margin-bottom: 20px;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(107, 128, 104, 0.15);
}

.product-price {
    font-size: 20px;
    font-weight: 400;
    color: #000;
    letter-spacing: 1px;
}

.btn-add-cart {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
    padding: 10px 24px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.btn-add-cart:hover {
    background: var(--forest-green);
    color: var(--warm-white);
    border-color: var(--forest-green);
}

/* Футер */
.footer {
    background: rgba(87, 120, 89, .3);
    color: var(--warm-white);
    padding: 0 120px;

    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;

    position: relative;
    z-index: 2;
}

.footer-logo {
    width: 200px;
}

.footer-section--right {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: flex-end;
}

.footer-icons {
    width: auto;
    justify-content: left;
}

.footer-column {
    display: flex;
    flex-flow: column;
    justify-content: center;
}

.footer-section p {
    color: var(--charcoal);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
    letter-spacing: 0.3px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p i {
    font-size: 18px;
}

.footer-section a {
    color: var(--charcoal);
    font-size: 16px;
    line-height: 2;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.footer-icons a {
    font-size: 24px;
}

.footer-section a:hover {
    color: var(--cream);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    position: relative;
    z-index: 1001;
    background: var(--cream);
    border: 1px solid rgba(107, 128, 104, 0.2);
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    color: var(--charcoal);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--sage-green);
    color: var(--warm-white);
}

@media (max-width: 1220px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header {
        min-height: auto;
    }

    .header-container {
        padding: 20px;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .body {
    grid-template-columns: 0 1fr;
        }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: 100px 50px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 30px;
    }

    .section-title {
        font-size: 42px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 60px 30px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


.breadcrumbs-list {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;

    padding: 25px 80px;

    font-size: 12px;
    text-transform: uppercase;
}

.breadcrumbs-list a {
    color: var(--sage-green);
    text-decoration: none;
}







/* Оверлей для мобильного меню */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 58, 58, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) {
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
}



/* Основная обертка корзины */
.cart-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Таблица корзины */
.woocommerce-cart-form {
    margin-bottom: 50px;
}

.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-cart-form__contents thead {
    border-bottom: 1px solid rgba(107, 128, 104, 0.2);
}

.woocommerce-cart-form__contents thead th {
    padding: 20px 15px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--soft-gray);
    font-weight: 500;
    text-align: left;
    background: transparent;
}

.woocommerce-cart-form__contents tbody tr {
    border-bottom: 1px solid rgba(107, 128, 104, 0.1);
    transition: background-color 0.3s ease;
}

.woocommerce-cart-form__contents tbody tr:hover {
    background-color: rgba(247, 244, 240, 0.3);
}

.woocommerce-cart-form__contents td {
    padding: 30px 15px;
    vertical-align: middle;
}

/* Изображение товара */
.product-thumbnail {
    width: 100px;
}

.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-thumbnail img:hover {
    transform: scale(1.05);
}

.product-name a:hover {
    color: var(--forest-green);
}

/* Цена */
.product-price,
.product-subtotal,
.product-name a {
    font-size: 16px;
    color: var(--charcoal);
    font-weight: 400;

    text-decoration: none;
}

.woocommerce-Price-amount {
    color: #000;
    font-weight: 500;
}

/* Количество */
.product-quantity .quantity {
    display: flex;
    align-items: center;
    border: 1px solid rgba(107, 128, 104, 0.2);
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.product-quantity .qty {
    width: 60px;
    padding: 10px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    background: transparent;
}

.product-quantity .qty:focus {
    outline: none;
}

/* Кнопка удаления */
.product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(193, 122, 111, 0.1);
    color: var(--terra-cotta);
    text-decoration: none;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.product-remove a:hover {
    background: var(--terra-cotta);
    color: var(--warm-white);
}

/* Действия с корзиной */
.actions {
    display: none;
}

.coupon {
    display: flex;
    gap: 10px;
}

.coupon input[type="text"] {
    padding: 14px 20px;
    border: 1px solid rgba(107, 128, 104, 0.2);
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--charcoal);
    background: var(--cream);
    transition: border-color 0.3s ease;
}

.coupon input[type="text"]:focus {
    outline: none;
    border-color: var(--sage-green);
}

.coupon .button,
.actions .button {
    padding: 14px 30px;
    background: var(--sage-green);
    color: var(--warm-white);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.coupon .button:hover,
.actions .button:hover {
    background: var(--forest-green);
}

/* Итого корзины */
.cart-collaterals {
    margin-top: 60px;
}

.cart_totals {
    max-width: 500px;
    margin-left: auto;
    background: var(--cream);
    padding: 40px;
    border-radius: 12px;
}

.cart_totals h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 30px;
    text-align: center;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals th,
.cart_totals td {
    padding: 15px 0;
    text-align: left;
    border-bottom: 1px solid rgba(107, 128, 104, 0.1);
}

.cart_totals th {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--soft-gray);
    font-weight: 500;
}

.cart_totals td {
    text-align: right;
    font-size: 16px;
    color: var(--charcoal);
}

.order-total th,
.order-total td {
    border-bottom: none;
    padding-top: 25px;
    font-size: 18px;
    font-weight: 500;
    color: var(--forest-green);
}

.wc-proceed-to-checkout {
    margin-top: 30px;
}

.wc-proceed-to-checkout .button {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--forest-green) !important;
    color: var(--warm-white) !important;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wc-proceed-to-checkout .button:hover {
    background: var(--charcoal);
    box-shadow: 0 5px 20px rgba(107, 128, 104, 0.3);
}

/* Пустая корзина */
.woocommerce-info,
.cart-empty {
    text-align: center;
    padding: 60px 30px;
    background: var(--cream);
    border-radius: 12px;
    font-size: 16px;
    color: var(--soft-gray);
    letter-spacing: 0.5px;
}

.woocommerce-info::before,
.cart-empty::before {
    content: '🛒';
    display: block;
    font-size: 24px;
    margin-bottom: 20px;
}

.return-to-shop {
    margin-top: 30px;
}

.return-to-shop .button {
    padding: 14px 30px;
    background: var(--sage-green);
    color: var(--warm-white);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.return-to-shop .button:hover {
    background: var(--forest-green);
}

@media (max-width: 768px) {
    /* Мобильная таблица */
    .woocommerce-cart-form__contents thead {
        display: none;
    }

    .woocommerce-cart-form__contents tbody tr {
        display: block;
        margin-bottom: 30px;
        padding: 20px;
        background: var(--cream);
        border-radius: 12px;
        border: none;
    }

    .woocommerce-cart-form__contents td {
        display: block;
        padding: 10px 0;
        text-align: left;
    }

    .product-thumbnail {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .product-thumbnail img {
        width: 120px;
        height: 120px;
    }

    .product-name {
        text-align: center;
        margin-bottom: 15px;
    }

    .product-price::before {
        content: 'Цена: ';
        color: var(--soft-gray);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .product-quantity::before {
        content: 'Количество: ';
        display: block;
        color: var(--soft-gray);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .product-subtotal::before {
        content: 'Итого: ';
        color: var(--soft-gray);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .product-remove {
        text-align: center;
        margin-top: 15px;
    }

    .actions {
        flex-direction: column;
        gap: 20px;
    }

    .coupon {
        width: 100%;
        flex-direction: column;
    }

    .coupon input[type="text"],
    .coupon .button {
        width: 100%;
    }

    .cart_totals {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cart_totals h2 {
        font-size: 24px;
    }
}






/* Обертка чекаута */
.checkout-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Левая колонка - форма */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: var(--cream);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    /*font-family: 'Cormorant Garamond', serif;*/
    font-size: 24px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(107, 128, 104, 0.2);
}

/* Поля формы */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: grid;
    gap: 20px;
}

.form-row {
    margin-bottom: 0;
}

.form-row-wide {
    grid-column: 1 / -1;
}

.form-row label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--soft-gray);
    margin-bottom: 10px;
    font-weight: 500;
}

.form-row label .required {
    color: var(--terra-cotta);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(107, 128, 104, 0.2);
    border-radius: 6px;
    font-size: 14px;
    color: var(--charcoal);
    background: var(--cream) !important;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    background: var(--cream);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(168, 181, 160, 0.1);
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

/* Чекбоксы */
.form-row-wide .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-row-wide input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--sage-green);
}

/* Правая колонка - заказ */
#order_review,
#order_review_heading {
    position: sticky;
    top: 20px;
}

#order_review_heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.woocommerce-checkout-review-order {
    background: var(--cream);
    padding: 40px;
    border-radius: 12px;
}

/* Таблица заказа */
.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 30px;
}

.woocommerce-checkout-review-order-table thead {
    border-bottom: 1px solid rgba(107, 128, 104, 0.2);
}

.woocommerce-checkout-review-order-table th {
    padding: 15px 0;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--soft-gray);
    font-weight: 500;
    text-align: left;
}

.woocommerce-checkout-review-order-table td {
    padding: 20px 0;
    border-bottom: 1px solid rgba(107, 128, 104, 0.1);
}

.woocommerce-checkout-review-order-table .product-name {
    font-size: 15px;
    color: var(--charcoal);
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 500;
    color: var(--forest-green);
}

.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .cart-subtotal td {
    padding-top: 25px;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    border-bottom: none;
    padding: 25px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--forest-green);
}

/* Способы оплаты */
#payment {
    background: transparent;
}

.woocommerce-checkout-payment {
    background: transparent;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.wc_payment_method {
    background: var(--warm-white);
    border: 1px solid rgba(107, 128, 104, 0.2);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.wc_payment_method:hover {
    border-color: var(--sage-green);
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
}

.wc_payment_method input[type="radio"] {
    margin-left: 12px !important;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--sage-green);
}

.payment_box {
    padding: 20px;
    background: rgba(168, 181, 160, 0.05);
    border-top: 1px solid rgba(107, 128, 104, 0.1);
    font-size: 13px;
    line-height: 1.8;
    color: var(--soft-gray);
}

/* Кнопка оформления */
#place_order {
    width: 100%;
    padding: 18px;
    background: var(--forest-green);
    color: var(--warm-white);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

#place_order:hover {
    background: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(107, 128, 104, 0.3);
}

/* Политика конфиденциальности */
.woocommerce-privacy-policy-text {
    padding: 20px;
    background: rgba(168, 181, 160, 0.05);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--soft-gray);
}

.woocommerce-privacy-policy-text a {
    color: var(--sage-green);
    text-decoration: none;
    border-bottom: 1px solid var(--sage-green);
}

.woocommerce-privacy-policy-text a:hover {
    color: var(--forest-green);
    border-color: var(--forest-green);
}

/* Сообщения об ошибках */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.woocommerce-error {
    background: rgba(193, 122, 111, 0.1);
    border-left: 4px solid var(--terra-cotta);
    color: var(--terra-cotta);
}

.woocommerce-message {
    background: rgba(168, 181, 160, 0.1);
    border-left: 4px solid var(--sage-green);
    color: var(--forest-green);
}

.woocommerce-info {
    background: rgba(232, 224, 213, 0.5);
    border-left: 4px solid var(--sand);
    color: var(--soft-gray);
}

/* Spinner загрузки */
.woocommerce-checkout .blockUI.blockOverlay::before {
    content: '⏳';
    font-size: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

/* Купон */
.woocommerce-form-coupon-toggle {
    margin-bottom: 30px;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-form-coupon-toggle .woocommerce-info:hover {
    background: rgba(232, 224, 213, 0.8);
}

.checkout_coupon {
    background: var(--cream);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.checkout_coupon input[type="text"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(107, 128, 104, 0.2);
    border-radius: 6px;
    font-size: 13px;
}

.checkout_coupon .button {
    padding: 14px 30px;
    background: var(--sage-green);
    color: var(--warm-white);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.checkout_coupon .button:hover {
    background: var(--forest-green);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .woocommerce-checkout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    #order_review,
    #order_review_heading {
        position: static;
    }
}

@media (max-width: 768px) {
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields,
    .woocommerce-checkout-review-order,
    .checkout_coupon {
        padding: 25px 20px;
    }

    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row-wide {
        grid-column: 1;
    }

    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    .woocommerce-additional-fields h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    #order_review_heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .woocommerce-checkout-review-order-table .product-name,
    .woocommerce-checkout-review-order-table .product-total {
        font-size: 13px;
    }

    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row input[type="tel"],
    .form-row textarea,
    .form-row select {
        padding: 12px 15px;
        font-size: 13px;
    }

    #place_order {
        padding: 16px;
        font-size: 12px;
    }
}

.payment_method_cod,
.payment_method_begateway {
    margin: 0 !important;
}








/*
 * Стили для страницы оплаты заказа
 * Добавьте в style.css или Customizer -> Additional CSS
 */

/* Основная секция */
.checkout-page-wrapper {
    padding: 0 0 40px;
}

.checkout-page-wrapper .container {
    margin: 0 auto;
}

/* Детали заказа - переопределяем WooCommerce стили */
.woocommerce-order-overview.order_details,
.order_details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    background: var(--cream) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(107, 128, 104, 0.1) !important;
    border: none !important;
}

.woocommerce-order-overview.order_details::before,
.woocommerce-order-overview.order_details::after,
.order_details::before,
.order_details::after {
    display: none !important;
}

.woocommerce-order-overview li,
.order_details li {
    padding: 20px 30px 20px 60px !important;
    border-bottom: 1px solid var(--sand) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 16px !important;
    color: var(--soft-gray) !important;
    transition: background 0.2s ease !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    border-right: none !important;
    border-top: none !important;
    border-left: none !important;
    background: transparent !important;
}

.woocommerce-order-overview li:hover,
.order_details li:hover {
    background: var(--warm-white) !important;
}

.woocommerce-order-overview li:last-child,
.order_details li:last-child {
    border-bottom: none !important;
}

/* Выделяем итоговую сумму */
.woocommerce-order-overview__total,
.order_details li.total {
    background: #f0f4ef !important;
    border-top: 2px solid var(--forest-green) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.woocommerce-order-overview__total strong,
.order_details li.total strong {
    color: var(--forest-green) !important;
    font-size: 20px !important;
}

.woocommerce-order-overview li strong,
.order_details li strong {
    color: var(--charcoal) !important;
    font-weight: 600 !important;
}

/* Цена */
.woocommerce-Price-amount {
    font-weight: 600 !important;
}

/* Кнопка оплаты */
.checkout-button,
.woocommerce .button.checkout-button {
    display: inline-block !important;
    width: 100% !important;
    padding: 18px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
    background: var(--forest-green) !important;
    color: var(--warm-white) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    margin-bottom: 15px !important;
    box-shadow: none !important;
}

.checkout-button:hover,
.woocommerce .button.checkout-button:hover {
    background: var(--sage-green) !important;
    box-shadow: 0 4px 12px rgba(107, 128, 104, 0.3) !important;
    color: var(--warm-white) !important;
}

.checkout-button:active,
.woocommerce .button.checkout-button:active {
    transform: translateY(0) !important;
}

/* Ссылка отмены */
.cancel,
.woocommerce .cancel {
    display: inline-block !important;
    width: 100% !important;
    padding: 14px 40px !important;
    font-size: 15px !important;
    text-align: center !important;
    background: transparent !important;
    color: var(--soft-gray) !important;
    border: 2px solid var(--sand) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.cancel:hover,
.woocommerce .cancel:hover {
    border-color: var(--terra-cotta) !important;
    color: var(--terra-cotta) !important;
    background: #fef8f7 !important;
}

/* Font Awesome иконки */
.woocommerce-order-overview li,
.order_details li {
    position: relative !important;
}

.woocommerce-order-overview li::before,
.order_details li::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 25px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px !important;
    color: var(--sage-green) !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-order-overview__order::before,
.order_details li.order::before {
    content: "\f0f6" !important; /* fa-file-text */
}

.woocommerce-order-overview__date::before,
.order_details li.date::before {
    content: "\f133" !important; /* fa-calendar-alt */
}

.woocommerce-order-overview__email::before,
.order_details li.email::before {
    content: "\f0e0" !important; /* fa-envelope */
}

.woocommerce-order-overview__total::before,
.order_details li.total::before {
    content: "\f53a" !important; /* fa-money-bill */
    color: var(--forest-green) !important;
}

.woocommerce-order-overview__payment-method::before,
.order_details li.method::before {
    content: "\f09d" !important; /* fa-credit-card */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .checkout-page-wrapper {
        padding: 20px 0 !important;
    }

    .checkout-page-wrapper .container {
        padding: 0 15px !important;
    }

    .woocommerce-order-overview li,
    .order_details li {
        padding: 15px 20px 15px 55px !important;
        font-size: 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .woocommerce-order-overview li::before,
    .order_details li::before {
        left: 20px !important;
        font-size: 16px !important;
    }

    .woocommerce-order-overview__total,
    .order_details li.total {
        font-size: 16px !important;
    }

    .woocommerce-order-overview__total strong,
    .order_details li.total strong {
        font-size: 18px !important;
    }

    .checkout-button,
    .woocommerce .button.checkout-button {
        padding: 16px 30px !important;
        font-size: 16px !important;
    }

    .cancel,
    .woocommerce .cancel {
        padding: 12px 30px !important;
        font-size: 14px !important;
    }
}

/* Дополнительные улучшения для woocommerce notices */
.woocommerce-notices-wrapper {
    margin-bottom: 30px !important;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    padding: 15px 20px 15px 50px !important;
    border-left: 4px solid var(--sage-green) !important;
    background: var(--cream) !important;
    color: var(--charcoal) !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--forest-green) !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-info::before {
    content: "\f05a" !important; /* fa-info-circle */
}

.woocommerce-message::before {
    content: "\f058" !important; /* fa-check-circle */
}

.woocommerce-error {
    border-left-color: var(--terra-cotta) !important;
    background: #fef8f7 !important;
}

.woocommerce-error::before {
    content: "\f06a" !important; /* fa-exclamation-circle */
    color: var(--terra-cotta) !important;
}


.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    font-family: system-ui, -apple-system, sans-serif;
}

.page-numbers {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
    background-color: var(--warm-white);
    border: 1.5px solid var(--sand);
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-numbers:hover {
    background-color: var(--cream);
    border-color: var(--sage-green);
    color: var(--forest-green);
}

.page-numbers.current {
    background-color: var(--forest-green);
    border-color: var(--forest-green);
    color: var(--warm-white);
    cursor: default;
    pointer-events: none;
}

.page-numbers.next,
.page-numbers.prev {
    color: var(--forest-green);
    font-weight: 600;
}

.page-numbers.next:hover,
.page-numbers.prev:hover {
    background-color: var(--sage-green);
    border-color: var(--sage-green);
    color: var(--warm-white);
}

/* Опционально: для disabled состояния */
.page-numbers:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}






/* Юридическая информация в футере */
.footer-legal {
    padding: 28px 60px;
    border-top: 1px solid rgba(107, 128, 104, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-legal__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 0;
    font-size: 12px;
    color: var(--soft-gray);
    line-height: 1.6;
}

.footer-legal__row span {
    white-space: nowrap;
}

.footer-legal__sep {
    margin: 0 10px;
    color: var(--sand);
    user-select: none;
}

.footer-legal__row a {
    color: var(--sage-green);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-legal__row a:hover {
    color: var(--charcoal);
}

.footer-legal__payments {
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.footer-legal__payments:hover {
    opacity: 0.7;
}

.footer-legal__payments img {
    height: 22px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .footer-legal {
        padding: 24px 30px;
        gap: 14px;
    }

    .footer-legal__row {
        font-size: 11px;
    }

    .footer-legal__sep {
        margin: 0 6px;
    }

    .footer-legal__payments img {
        height: 18px;
    }
}

@media (max-width: 480px) {
    .footer-legal__row {
        flex-direction: column;
        gap: 4px;
    }

    .footer-legal__sep {
        display: none;
    }
}

.info__p {
    width: 100%;
    text-align: center;
    font-weight: 300;
    line-height: 1;
    color: var(--charcoal);
}

.info__p a {
    color: var(--sage-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info__p a:hover {
    color: var(--charcoal);
}


@media (max-width: 768px) {
    .sidebar-sticky {
        top: 150px !important;
    }

    body {
        padding-top: 110px;
    }
}