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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5faf4;
    color: #24452d;
    width: 100%;
    overflow-x: clip;
}

img {
    max-width: 100%;
}


.hero {
    width: 100%;
    height: 500px;
    background: white;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}


nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #dce8dc;
    box-shadow: 0 3px 15px rgba(40, 80, 45, .08);
}

.logo {
    margin-right: auto;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #315f3b;
    flex-shrink: 0;
}

nav a {
    color: #315f3b;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: .25s;
}

nav a:hover {
    color: #6d9676;
}

.nav-cart {
    border: none;
    background: #315f3b;
    color: white;
    padding: 9px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.nav-favorite {
    border: 1px solid #315f3b;
    background: white;
    color: #315f3b;
    padding: 8px 13px;
    border-radius: 20px;
    cursor: pointer;
}

#favoriteCount {
    font-weight: bold;
}

#language {
    border: 1px solid #315f3b;
    background: white;
    color: #315f3b;
    border-radius: 20px;
    padding: 8px 13px;
    cursor: pointer;
    flex-shrink: 0;
}


main {
    max-width: 1150px;
    margin: auto;
    padding: 55px 20px;
}

.intro {
    text-align: center;
    margin-bottom: 35px;
}

.intro h1 {
    font-family: Georgia, serif;
    color: #315f3b;
    font-size: 44px;
    margin-bottom: 15px;
}

.intro p {
    max-width: 700px;
    margin: auto;
    color: #68786c;
    font-size: 17px;
    line-height: 1.6;
}


.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-button {
    border: 1px solid #b9cdbb;
    background: white;
    color: #315f3b;
    padding: 9px 17px;
    border-radius: 25px;
    cursor: pointer;
    transition: .25s;
}

.category-button:hover {
    background: #e8f1e7;
}

.category-button.active {
    background: #315f3b;
    color: white;
}


.section-title {
    text-align: center;
    font-family: Georgia, serif;
    color: #315f3b;
    font-size: 30px;
    margin: 25px 0;
}

.section-title.hidden {
    display: none;
}


.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e1ebe1;
    box-shadow: 0 5px 18px rgba(49, 95, 59, .07);
    transition: .3s;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(49, 95, 59, .13);
}


.favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .93);
    color: #315f3b;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
    transition: .25s;
}

.favorite-button:hover {
    transform: scale(1.1);
}

.favorite-button.active {
    color: #315f3b;
    animation: heartPop .35s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    70% { transform: scale(.9); }
    100% { transform: scale(1); }
}


.gallery {
    position: relative;
    width: 100%;
    height: 280px;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
    background: white;
}

.gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    display: none;
    cursor: zoom-in;
}

.gallery img.active {
    display: block;
}


.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #315f3b;
    font-size: 23px;
    cursor: pointer;
    z-index: 5;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    border: 1px solid #315f3b;
    cursor: pointer;
}

.dot.active {
    background: #315f3b;
}


.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 15px;
}

.brand {
    color: #78917d;
    font-size: 10px;
    letter-spacing: 1.5px;
}

.product h3 {
    height: 2.7em;
    min-height: 2.7em;
    margin-top: 7px;
    margin-bottom: 4px;
    color: #29442f;
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.retail {
    color: #78917d;
    font-size: 13px;
}

.wholesale {
    color: #315f3b;
    font-size: 17px;
    font-weight: bold;
}

.wholesale-label {
    color: #78917d;
    font-size: 10px;
}


.add-button {
    width: 100%;
    margin-top: auto;
    padding: 9px;
    border: none;
    background: #315f3b;
    color: white;
    border-radius: 9px;
    cursor: pointer;
    transition: .25s;
}

.add-button:hover {
    background: #24472c;
    transform: translateY(-2px);
}


.about {
    margin-top: 25px;
    padding: 24px 20px;
    background: #f7f5ee;
    color: #294b35;
    border: 1px solid #e0eae0;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(49, 95, 59, .05);
}

.about-container {
    max-width: 760px;
    margin: 0 auto;
}

.about-heading {
    text-align: center;
    margin-bottom: 18px;
}

.about-heading h2 {
    margin: 0;
    color: #294b35;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 400;
}

.about-contacts {
    display: grid;
    gap: 10px;
}

.about-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e8e9df;
    border-radius: 14px;
    background: #fff;
    color: #294b35;
    text-decoration: none;
    text-align: left;
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.about-contact:hover {
    transform: translateY(-2px);
    border-color: #b9c8b2;
    box-shadow: 0 8px 20px rgba(41, 75, 53, .08);
}

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eaf0e5;
}

.about-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #315b3d;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-icon svg .icon-dot {
    fill: #315b3d;
    stroke: none;
}

.about-contact-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.about-label {
    color: #7c8378;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.about-contact-text strong {
    color: #294b35;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.about-caption {
    color: #73776d;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.about-arrow {
    align-self: center;
    color: #315b3d;
    font-size: 19px;
    transition: transform .2s ease;
}

.about-contact:hover .about-arrow {
    transform: translate(3px, -3px);
}


.instagram-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 2000;
    text-decoration: none;
    background: #315f3b;
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.instagram-button:hover {
    background: #24472c;
}


.favorite-message {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translate(-50%, 20px);
    background: #315f3b;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    opacity: 0;
    pointer-events: none;
    z-index: 7000;
    transition: .3s;
    max-width: calc(100% - 24px);
    text-align: center;
}

.favorite-message.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #78917d;
    font-size: 17px;
}


.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(36, 71, 44, .35);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 5000;
}

.cart-overlay.active {
    display: flex;
}

.cart-window {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: white;
    border: 1px solid #dce8dc;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(36, 71, 44, .22);
}

.cart-window h2 {
    font-family: Georgia, serif;
    color: #315f3b;
    font-size: 30px;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 20px;
    overflow-wrap: anywhere;
}

.cart-close {
    position: absolute;
    right: 18px;
    top: 12px;
    border: none;
    background: transparent;
    color: #315f3b;
    font-size: 32px;
    cursor: pointer;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #e5eee5;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    color: #29442f;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
}

.cart-item-price {
    color: #78917d;
    font-size: 13px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f6f0;
    border-radius: 20px;
    padding: 4px 7px;
    flex-shrink: 0;
}

.quantity-control button {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #315f3b;
    color: white;
    cursor: pointer;
}

.quantity-number {
    min-width: 20px;
    text-align: center;
    color: #315f3b;
    font-weight: bold;
}

.remove-item {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.cart-empty {
    text-align: center;
    color: #78917d;
    padding: 30px 10px;
}

.cart-wholesale {
    margin-top: 18px;
    padding: 12px;
    background: #f1f6f0;
    border-radius: 10px;
    color: #315f3b;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dce8dc;
    color: #315f3b;
    font-size: 18px;
}

.cart-total strong {
    font-size: 22px;
    overflow-wrap: anywhere;
}

.checkout-button {
    width: 100%;
    margin-top: 20px;
    border: none;
    background: #315f3b;
    color: white;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.checkout-button:hover {
    background: #24472c;
}


.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .85);
    z-index: 6000;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    right: 25px;
    top: 15px;
    border: none;
    background: none;
    color: white;
    font-size: 38px;
    cursor: pointer;
}


@media (max-width: 850px) {
    nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 21px;
        letter-spacing: 2px;
    }

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

    .gallery {
        height: 240px;
    }

    .product-info {
        padding: 12px;
    }
}



@media (max-width: 600px) {
    .hero {
        height: auto;
    }

    .hero img {
        width: 100%;
        height: auto;
    }

    nav {
        position: sticky;
        top: 0;
        padding: 10px 12px;
        gap: 8px;
        justify-content: center;
    }

    .logo {
        width: 100%;
        margin-right: 0;
        text-align: center;
        font-size: 20px;
        letter-spacing: 3px;
    }

    nav a {
        font-size: 12px;
        white-space: nowrap;
    }

    .nav-cart {
        padding: 8px 11px;
        font-size: 12px;
    }

    .nav-favorite {
        padding: 7px 10px;
        font-size: 12px;
    }

    #language {
        padding: 7px 9px;
        font-size: 12px;
    }

    main {
        padding: 30px 12px;
    }

    .intro {
        margin-bottom: 25px;
    }

    .intro h1 {
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .intro p {
        font-size: 14px;
        line-height: 1.6;
    }

    .categories {
        gap: 7px;
        margin-bottom: 24px;
    }

    .category-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .section-title {
        font-size: 25px;
        margin: 22px 0;
    }

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

    .product {
        border-radius: 12px;
    }

    .product:hover {
        transform: none;
    }

    .gallery {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .favorite-button {
        top: 7px;
        right: 7px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .gallery-arrow {
        width: 28px;
        height: 28px;
        font-size: 19px;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }

    .dots {
        bottom: 7px;
        gap: 5px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .product-info {
        padding: 8px;
    }

    .brand {
        font-size: 8px;
        letter-spacing: 1px;
        overflow-wrap: anywhere;
    }

.product h3 {
     font-size: 12px;
     line-height: 1.35;
     height: 2.7em;
     min-height: 2.7em;
     margin-top: 6px;
     margin-bottom: 4px;
}
    .prices {
        gap: 4px;
    }

    .retail {
        font-size: 11px;
        line-height: 1.35;
    }

    .wholesale {
        font-size: 14px;
    }

    .wholesale-label {
        font-size: 9px;
        line-height: 1.35;
    }

    .add-button {
        margin-top: auto;
        padding: 9px 5px;
        font-size: 11px;
        line-height: 1.3;
    }


    .about {
        margin-top: 20px;
        padding: 20px 12px;
    }

    .about-heading {
        margin-bottom: 14px;
    }

    .about-heading h2 {
        font-size: 24px;
    }

    .about-contact {
        padding: 11px 10px;
        gap: 9px;
        border-radius: 13px;
    }

    .about-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .about-icon svg {
        width: 19px;
        height: 19px;
    }

    .about-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .about-contact-text strong {
        font-size: 13px;
    }

    .about-caption {
        font-size: 10px;
    }

    .about-arrow {
        font-size: 17px;
    }

    .instagram-button {
        right: 12px;
        bottom: 12px;
        padding: 10px 14px;
        font-size: 12px;
    }

    /* КОРЗИНА НА ТЕЛЕФОНЕ */

    .cart-overlay {
        align-items: center;
        padding: 12px;
    }

    .cart-window {
        width: 100%;
        max-width: 100%;
        max-height: 88vh;
        padding: 25px 14px 18px;
        border-radius: 18px;
    }

    .cart-window h2 {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .cart-close {
        top: 8px;
        right: 10px;
        font-size: 29px;
    }

    .cart-item {
        gap: 7px;
        padding: 12px 0;
    }

    .cart-item-name {
        font-size: 13px;
        line-height: 1.4;
    }

    .cart-item-price {
        font-size: 11px;
        line-height: 1.4;
    }

    .quantity-control {
        gap: 5px;
        padding: 3px 5px;
    }

    .quantity-control button {
        width: 25px;
        height: 25px;
    }

    .quantity-number {
        min-width: 16px;
        font-size: 12px;
    }

    .remove-item {
        font-size: 16px;
    }

    .cart-wholesale {
        padding: 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .cart-total {
        margin-top: 18px;
        padding-top: 15px;
        font-size: 14px;
    }

    .cart-total strong {
        font-size: 18px;
    }

    .checkout-button {
        margin-top: 15px;
        padding: 12px 8px;
        font-size: 14px;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 85%;
    }

    .lightbox-close {
        right: 15px;
        top: 8px;
        font-size: 34px;
    }

    .favorite-message {
        bottom: 20px;
        font-size: 13px;
        padding: 10px 15px;
    }
}


@media (max-width: 360px) {
    nav {
        gap: 6px;
        padding: 9px 7px;
    }

    nav a {
        font-size: 11px;
    }

    .products {
        gap: 7px;
    }

    .product-info {
        padding: 7px;
    }

    .product h3 {
        font-size: 12px;
    }

    .wholesale {
        font-size: 13px;
    }

    .add-button {
        font-size: 10px;
    }

    .cart-window {
        padding-left: 10px;
        padding-right: 10px;
    }

    .about {
        padding: 16px 8px;
    }

    .about-contact {
        gap: 7px;
        padding: 10px 8px;
    }

    .about-contact-text strong {
        font-size: 12px;
    }
}

.cart-item-photo{width:60px;height:66px;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;background:#f6faf5;border:1px solid #e5eee4;border-radius:12px;color:#aac5ac;font-size:24px}
.cart-item-photo img{width:100%;height:100%;object-fit:contain}
.checkout-customer{margin-top:24px;display:flex;flex-direction:column;gap:6px}
.checkout-customer label{font-size:12px;color:#68816b;margin-top:7px;font-weight:600}
.checkout-customer input,.checkout-customer textarea{width:100%;font:14px Arial,sans-serif;color:#315f3b;padding:11px 13px;border:1px solid #dce8dc;border-radius:11px;outline:none;background:#fbfdfb;resize:vertical}
.checkout-customer input:focus,.checkout-customer textarea:focus{border-color:#80a68a;box-shadow:0 0 0 3px #e7f1e8}
.checkout-error{margin-top:12px;padding:12px;background:#fff4f0;color:#a13c29;font-size:13px;border-radius:10px;line-height:1.5}
.checkout-error[hidden]{display:none}
.checkout-button:disabled{opacity:.65;cursor:wait}
.orders-window{max-width:600px}.orders-description{text-align:center;color:#7a9380;font-size:13px;line-height:1.6;margin:0 10px 22px}.orders-empty{text-align:center;color:#87a48d;padding:40px 12px;font-size:32px}.orders-empty p{font-size:16px;color:#466e4e;margin:12px 0}.orders-empty small{display:block;font-size:12px}.orders-loading{text-align:center;color:#6d9676;padding:24px}
.order-history-item{display:flex;align-items:center;gap:14px;border:1px solid #e3eee3;border-radius:14px;padding:14px;margin-bottom:12px;background:#fbfdfb}.history-photo{width:78px;height:82px;flex-shrink:0;background:#f1f7f1;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#8dac92;overflow:hidden}.history-photo img{width:100%;height:100%;object-fit:contain}.history-details{display:flex;flex-direction:column;gap:6px;min-width:0}.history-details b{font-size:14px;overflow-wrap:anywhere}.history-details span{font-size:12px;color:#859d89}.history-details strong{font-size:16px;color:#315f3b}.history-details a{font-size:13px;color:#568c62;text-decoration:underline;text-underline-offset:3px}
.order-success-window{max-width:440px;text-align:center}.success-symbol{width:52px;height:52px;border-radius:50%;background:#e7f3e8;color:#4b865a;font-size:27px;display:flex;align-items:center;justify-content:center;margin:5px auto 17px}.success-number{color:#355e3d;font-weight:700;font-size:17px;margin:-10px 0 15px}.order-action-outline,.order-action-primary{width:100%;display:block;border-radius:12px;padding:13px 10px;margin:10px 0;font-size:14px;text-decoration:none;font-weight:700;cursor:pointer}.order-action-outline{background:#fff;border:1px solid #bfdac5;color:#42734d}.order-action-primary{background:#487d54;color:#fff;border:0}.order-success-window .orders-description:last-child{margin:20px 0 0;font-size:11px}
/* Фотографии карточек остаются прежними; новый просмотр работает поверх каталога. */
.lightbox{gap:10px}.lightbox-stage{display:flex;align-items:center;flex-direction:column;justify-content:center;min-width:0;max-width:calc(100vw - 160px);width:100%;height:100%;gap:10px}.lightbox-stage #bigImage{max-width:100%;max-height:min(72vh,850px);width:auto;height:auto;border-radius:9px;object-fit:contain;cursor:zoom-in;transition:transform .2s ease}.lightbox-stage #bigImage.zoomed{transform:scale(1.7);cursor:zoom-out}.lightbox-counter{color:#dce9df;font-size:13px;letter-spacing:.08em}.lightbox-nav{border:1px solid #ffffff55;background:#ffffff19;color:white;border-radius:50%;width:44px;height:44px;flex-shrink:0;font-size:34px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}.lightbox-nav:hover{background:#ffffff30}.lightbox-thumbnails{display:flex;align-items:center;justify-content:center;gap:9px;max-width:100%;overflow-x:auto;padding:4px 4px 10px}.lightbox-thumb{width:54px;height:54px;flex-shrink:0;border:2px solid transparent;background:#fff;border-radius:9px;padding:2px;cursor:pointer;overflow:hidden;opacity:.6}.lightbox-thumb.active{border-color:#a5dab1;opacity:1}.lightbox-thumb img{width:100%;height:100%;object-fit:contain}.lightbox-close{z-index:4}
@media(max-width:600px){.cart-window{padding:24px 18px}.cart-item{gap:8px}.cart-item-photo{width:49px;height:59px}.cart-item-name{font-size:13px}.quantity-control{gap:4px;padding:4px}.quantity-control button{width:25px;height:25px}.lightbox{padding:14px 4px;gap:2px}.lightbox-stage{max-width:calc(100vw - 80px)}.lightbox-nav{width:35px;height:39px;font-size:29px}.lightbox-stage #bigImage{max-height:65vh}.lightbox-thumb{width:45px;height:45px}.orders-window{padding:26px 19px}.history-photo{width:65px;height:71px}}

.catalog-search-wrap{max-width:510px;margin:0 auto 24px;padding:0 8px}.catalog-search-wrap input{width:100%;padding:13px 20px;border-radius:30px;border:1px solid #d9e8db;background:white;color:#315f3b;outline:none;font-size:14px;box-shadow:0 3px 12px #315f3b09}.catalog-search-wrap input:focus{border-color:#91b99a;box-shadow:0 0 0 3px #d9ebde}

/* Product description: plain text, including paragraphs, with no executable HTML. */
.product-description{margin:6px 0 12px;font-size:13px;color:#40584b;text-align:left}
.product-description summary{cursor:pointer;padding:8px 0;font-weight:600}
.product-description p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;max-height:260px;overflow:auto;margin:8px 0}

#catalog {scroll-margin-top:28px;}
.gallery img:not(.active){display:none;}

/* Section navigation wraps instead of clipping long names. */
.categories { flex-wrap: wrap; gap: 8px; }
.category-button { white-space: normal; height: auto; min-height: 42px; }
.subcategories { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1200px; margin: 0 auto 24px; padding: 0 20px; }
.subcategories[hidden] { display: none; }
.subcategory-button { padding: 9px 15px; border: 1px solid #cfdfcc; border-radius: 20px; background: #fff; color: #315f3b; cursor: pointer; font: inherit; transition: background .15s; }
.subcategory-button.active { background: #dcebd5; border-color: #92b789; }
.subcategory-button:focus-visible { outline: 2px solid #315f3b; outline-offset: 2px; }

.categories, .subcategories { scroll-margin-top: 120px; }
@media (max-width: 600px) { .categories, .subcategories { scroll-margin-top: 185px; } }
