/* ==========================================================
   NikaTea — ЕДИНЫЙ АДАПТИВНЫЙ STYLE.CSS
   Версия: desktop + laptop + tablet + phone
   Старые дублирующиеся media-блоки удалены.
========================================================== */

/* ==========================
   RESET / BASE
========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    font-family: 'Manrope', sans-serif;
    background: #f7f2e8;
    color: #2d2d2d;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

/* ==========================
   NAVBAR
========================== */

nav {
    width: 100%;
    min-height: 90px;
    padding: 18px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}

.logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo span,
.logo h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    line-height: 1;
    color: #204b33;
    font-weight: 700;
    white-space: nowrap;
}

nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
}

nav ul li a {
    color: #444;
    text-decoration: none;
    font-size: 18px;
    transition: color .25s ease;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #2d6b3f;
}

/* Единий логотип: картинка + NikaTea як одна кнопка */
a.logo {
    color: inherit;
    text-decoration: none;
}

a.logo:hover {
    color: inherit;
    text-decoration: none;
}

a.logo span {
    color: #204b33;
    text-decoration: none;
}

/* ==========================
   HERO
========================== */

.hero {
    width: min(1400px, 100%);
    margin: 70px auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}

.hero-text {
    min-width: 0;
}

.hero-text h1 {
    margin: 0 0 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(58px, 6vw, 88px);
    line-height: .95;
    color: #204b33;
}

.quote {
    max-width: 650px;
    margin: 0 0 45px;
    color: #555;
    font-size: 24px;
    line-height: 1.7;
}

.btn {
    width: 240px;
    min-height: 60px;
    padding: 14px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2d6b3f;
    color: #fff;
    border: 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s ease;
}

.btn:hover {
    background: #3b7448;
    transform: translateY(-3px);
}

.hero-image {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    position: relative;
    overflow: visible;
}

.hero-image img,
.hero > img {
    width: 100%;
    max-width: 650px;
    height: 520px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

/* ==========================
   STEAM / HERO ANIMATION
========================== */

.steam {
    position: absolute;
    width: 70px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(
        rgba(255, 255, 255, .45),
        rgba(255, 255, 255, 0)
    );
    filter: blur(18px);
    opacity: 0;
    animation: steam 7s infinite ease-in-out;
    pointer-events: none;
}

.steam1 {
    left: 57%;
    bottom: 210px;
}

.steam2 {
    left: 61%;
    bottom: 200px;
    animation-delay: 2s;
}

.steam3 {
    left: 65%;
    bottom: 215px;
    animation-delay: 4s;
}

@keyframes steam {
    0% {
        opacity: 0;
        transform: translateY(0) scale(.5);
    }

    20% {
        opacity: .45;
    }

    70% {
        opacity: .15;
    }

    100% {
        opacity: 0;
        transform: translateY(-120px) scale(1.6);
    }
}

@keyframes zoomHero {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.hero-image img {
    animation: zoomHero 18s ease-in-out infinite alternate;
}

/* ==========================
   SECTION HEADER
========================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin: 0 0 15px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    line-height: 1;
    color: #204b33;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 20px;
    line-height: 1.7;
}

/* ==========================
   TEA
========================== */

.tea-section {
    width: min(1400px, 100%);
    margin: 120px auto;
    padding: 0 60px;
}

.tea-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.tea-card {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 28px;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
    transition: .35s ease;
}

.tea-card:hover {
    transform: translateY(-8px);
}

.tea-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: .4s ease;
}

.tea-card:hover img {
    transform: scale(1.06);
}

.overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .75)
    );
}

.overlay h3 {
    margin: 0;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 600;
}

/* ==========================
   TEAWARE
========================== */

.teaware {
    width: min(1400px, 100%);
    margin: 110px auto;
    padding: 0 60px;
}

.teaware-content {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 535px;
    overflow: hidden;
    border-radius: 28px;
    background: #1c4933;
    box-shadow: 0 18px 48px rgba(25, 61, 42, .14);
}

.teaware-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(18, 54, 38, .88) 0%, rgba(18, 54, 38, .65) 42%, rgba(18, 54, 38, .08) 78%, rgba(18, 54, 38, 0) 100%);
    pointer-events: none;
}

.teaware-text {
    position: relative;
    z-index: 2;
    width: min(53%, 560px);
    padding: clamp(44px, 5.5vw, 74px);
    color: #fff8e9;
}

.teaware-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #f0dca9;
}

.teaware-label::before {
    content: "";
    width: 30px;
    height: 1px;
    flex: 0 0 30px;
    background: currentColor;
}

.teaware-text h2 {
    margin: 0 0 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(54px, 5.7vw, 80px);
    line-height: .95;
    font-weight: 600;
    color: #fff9ed;
}

.teaware-text p {
    max-width: 400px;
    margin: 0 0 21px;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 249, 237, .82);
}

.teaware-types {
    margin-bottom: 34px;
    color: rgba(255, 249, 237, .78);
    font-size: 14px;
    letter-spacing: .02em;
}

.teaware-types span {
    margin: 0 7px;
    color: #f0dca9;
}

.teaware-text .teaware-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    min-height: 54px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 249, 237, .74);
    border-radius: 999px;
    background: transparent;
    color: #fff9ed;
    font-size: 15px;
    font-weight: 700;
    margin-right: 0;
    margin-left: 0;
    text-decoration: none;
}

.teaware-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    overflow: hidden;
}

.teaware-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.teaware-image:hover img {
    transform: scale(1.025);
}

/* The portrait photo needs a slightly higher crop so the teapot is not cut off. */
.teaware-slide[data-teaware-slide="teaware"] .teaware-image img {
    object-position: center 31%;
}

.teaware-slide[data-teaware-slide="teaware"]::before {
    background: linear-gradient(90deg, rgba(18, 54, 38, .79) 0%, rgba(18, 54, 38, .54) 42%, rgba(18, 54, 38, .10) 78%, rgba(18, 54, 38, 0) 100%);
}

.teaware-carousel-viewport {
    position: relative;
}

.teaware-carousel-arrows {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.teaware-carousel-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 249, 237, .64);
    border-radius: 50%;
    background: rgba(17, 54, 37, .58);
    color: #fff9ed;
    font: 400 42px/.8 'Cormorant Garamond', serif;
    cursor: pointer;
    pointer-events: auto;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.teaware-carousel-arrow:hover {
    border-color: #f0dca9;
    background: #1c4933;
    transform: translateY(-50%) scale(1.06);
}

.teaware-carousel-arrow:focus-visible {
    outline: 3px solid #f0dca9;
    outline-offset: 3px;
}

.teaware-carousel-arrow.is-previous { left: 18px; }
.teaware-carousel-arrow.is-next { right: 18px; }

.teaware-text .teaware-cta:hover {
    border-color: #f0dca9;
    background: #f0dca9;
    color: #1b4a34;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .teaware {
        margin: 90px auto;
        padding: 0 35px;
    }

    .teaware-content {
        min-height: 505px;
    }

    .teaware-text {
        width: min(65%, 580px);
        padding: 52px;
        text-align: left;
    }

    .teaware-text p {
        max-width: 540px;
    }

    .teaware-image {
        inset: 0;
    }
}

@media (max-width: 600px) {
    .teaware {
        margin: 75px auto;
        padding: 0 16px;
    }

    .teaware-content {
        min-height: 570px;
        align-items: flex-end;
        border-radius: 22px;
    }

    .teaware-content::before {
        background: linear-gradient(0deg, rgba(18, 54, 38, .94) 0%, rgba(18, 54, 38, .76) 48%, rgba(18, 54, 38, .05) 88%);
    }

    .teaware-label {
        gap: 9px;
        margin-bottom: 18px;
        font-size: 11px;
        letter-spacing: 1.6px;
    }

    .teaware-text h2 {
        font-size: 54px;
        margin-bottom: 18px;
    }

    .teaware-text p {
        font-size: 18px;
        line-height: 1.5;
    }

    .teaware-image {
        inset: 0;
    }

    .teaware-text {
        width: 100%;
        padding: 36px 30px 38px;
    }

    .teaware-carousel-arrow {
        width: 42px;
        height: 42px;
        font-size: 36px;
    }

    .teaware-carousel-arrow.is-previous { left: 11px; }
    .teaware-carousel-arrow.is-next { right: 11px; }
}

/* ==========================
   PRODUCTS
========================== */

.products {
    width: min(1400px, 100%);
    margin: 120px auto;
    padding: 0 60px;
}

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

.product-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transition: .35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .45s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

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

.product-info h3 {
    margin: 0 0 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    line-height: 1.1;
    color: #204b33;
}

.product-info p {
    margin: 0 0 20px;
    color: #777;
    line-height: 1.5;
}

.price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.price-row span {
    font-size: 26px;
    font-weight: 700;
    color: #204b33;
}

.price-row button {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #2d6b3f;
    color: #fff;
    font-size: 20px;
    transition: .3s ease;
}

.price-row button:hover {
    background: #4a8457;
    transform: scale(1.1);
}

.product-weight {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 6px 12px;
    background: #edf3ee;
    color: #204b33;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================
   ADVANTAGES
========================== */

.advantages {
    width: min(1400px, 100%);
    min-height: 250px;
    margin: 110px auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.advantage {
    min-width: 0;
    padding: 45px 30px;
    background: #fff;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s ease;
}

.advantage:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

.icon {
    margin-bottom: 20px;
    font-size: 48px;
}

.advantage h3 {
    margin: 0 0 15px;
    font-family: 'Cormorant Garamond', serif;
    color: #204b33;
    font-size: 34px;
}

.advantage p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 17px;
}

/* ==========================
   REVIEWS
========================== */

.reviews {
    width: min(1400px, 100%);
    margin: 120px auto;
    padding: 0 60px;
}

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

.review-card {
    min-width: 0;
    height: 100%;
    padding: 40px;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transition: .3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
}

.review-card p {
    margin: 0 0 25px;
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.review-card h4 {
    margin: 0;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
}

/* ==========================
   FOOTER
========================== */

footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 140px;
    padding: 0 60px 30px;
    background:
        radial-gradient(circle at 8% 15%, rgba(255,255,255,.08), transparent 24%),
        radial-gradient(circle at 92% 85%, rgba(164,196,160,.10), transparent 25%),
        #204b33;
    color: #fff;
}

footer::before {
    content: "茶";
    position: absolute;
    top: -55px;
    right: 6%;
    z-index: -1;
    font-family: 'Cormorant Garamond', serif;
    font-size: 240px;
    line-height: 1;
    color: rgba(255,255,255,.035);
    pointer-events: none;
}

footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(226,205,157,.75), transparent);
}

.footer-grid {
    position: relative;
    width: min(1400px, 100%);
    margin: 0 auto;
    padding-top: 72px;
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.footer-grid::before {
    content: "NikaTea · китайський чай · чайний ритуал";
    position: absolute;
    top: 25px;
    left: 0;
    color: rgba(255,255,255,.42);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.footer-grid > div {
    min-width: 0;
}

.footer-grid > div:first-child {
    padding-right: 30px;
}

.footer-grid h2 {
    margin: 0 0 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 58px;
    line-height: .95;
    letter-spacing: -.02em;
}

.footer-grid h2::after {
    content: "  ·  ";
    color: #d8c69a;
    font-size: 24px;
    vertical-align: middle;
}

.footer-grid h3 {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.footer-grid h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 1px;
    background: #d8c69a;
}

.footer-grid p {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.9;
    font-size: 16px;
}

.footer-grid a {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 12px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: .3s ease;
}

.footer-grid a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Соцмережі — кожне посилання в один рядок */
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-socials a {
    display: block;
    width: fit-content;
    margin: 0;
    white-space: nowrap;
}

.footer-socials a span {
    color: rgba(255,255,255,.42);
    transition: color .3s ease;
}

.footer-socials a:hover span {
    color: rgba(255,255,255,.72);
}

.footer-grid > div:nth-child(4) p + p {
    margin-top: 4px;
}

.footer-grid > div:nth-child(4) p a {
    display: inline;
    margin: 0;
}

.footer-grid > div:nth-child(3) a,
.footer-grid > div:nth-child(4) a {
    position: relative;
}

.copyright {
    position: relative;
    width: min(1400px, 100%);
    margin: 65px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.14);
    text-align: center;
    color: rgba(255,255,255,.48);
    font-size: 14px;
}

.copyright::before {
    content: "✦";
    display: block;
    margin-bottom: 10px;
    color: #d8c69a;
    font-size: 16px;
}

/* ==========================
   SCROLL ANIMATION
========================== */

.hidden {
    opacity: 0;
    transform: translateY(60px);
    transition: all .9s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
   TOP BUTTON
========================== */

#topBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 55px;
    height: 55px;
    border: 0;
    border-radius: 50%;
    background: #204b33;
    color: #fff;
    font-size: 26px;
    opacity: 0;
    visibility: hidden;
    transition: .35s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    z-index: 999;
}

#topBtn.show {
    opacity: 1;
    visibility: visible;
}

#topBtn:hover {
    background: #2d6b3f;
    transform: translateY(-4px);
}

/* ==========================
   CATALOG PAGE
========================== */

.catalog-page {
    width: min(1400px, 100%);
    margin: 80px auto;
    padding: 0 60px;
}

.catalog-filter {
    margin: 40px 0 45px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.catalog-filter button {
    padding: 16px 34px;
    border: 0;
    border-radius: 50px;
    background: #fff;
    color: #284b32;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .07);
    transition: .35s ease;
}

.catalog-filter button:hover,
.catalog-filter .active {
    background: #204b33;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(32, 75, 51, .25);
}

.catalog-subfilter {
    margin: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-subfilter button {
    padding: 10px 20px;
    border: 0;
    border-radius: 30px;
    background: #edf3ee;
    color: #204b33;
    font-size: 15px;
    transition: .3s ease;
}

.catalog-subfilter button:hover {
    background: #204b33;
    color: #fff;
    transform: translateY(-2px);
}

.subfilter-teaware,
.subfilter-accessories {
    display: none;
}

.catalog-page .section-header {
    text-align: center;
}

.catalog-page .section-header h2 {
    margin: 0 0 15px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 58px;
    line-height: 1;
    color: #204b33;
}

.catalog-page .section-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

.catalog-page .products {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
}

.catalog-page .product-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transition: .35s ease;
}

.catalog-page .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.catalog-page .product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #eee9df;
    transition: transform .45s ease;
}

.catalog-page .product-card:hover img {
    transform: scale(1.03);
}

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

.catalog-page .product-info h3 {
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', serif;
    color: #204b33;
    font-size: 30px;
    line-height: 1.1;
}

.catalog-page .product-info p {
    margin: 0 0 18px;
    color: #666;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.catalog-page .price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.catalog-page .price-row span {
    font-size: 24px;
    font-weight: 700;
    color: #204b33;
}

.catalog-page .price-row button {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #2d6b3f;
    color: #fff;
    font-size: 18px;
    transition: .3s ease;
}

.catalog-page .price-row button:hover {
    background: #3d8150;
    transform: scale(1.08);
}

/* ==========================
   CART
========================== */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 25, .42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 1000;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    max-width: 94vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fdfcf9;
    border-radius: 28px 0 0 28px;
    box-shadow: -20px 0 55px rgba(0, 0, 0, .18);
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 1001;
}

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

.cart-header {
    min-height: 92px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #ece9e1;
}

.cart-header h2 {
    margin: 0;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
}

.cart-close {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #edf3ee;
    color: #204b33;
    font-size: 25px;
    line-height: 1;
    transition: .2s ease;
}

.cart-close:hover {
    background: #204b33;
    color: #fff;
}

.cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    background: #f7f2e8;
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 34px;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item > img {
    width: 86px;
    height: 86px;
    min-width: 0;
    object-fit: cover;
    border-radius: 14px;
}

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

.cart-item-info h3 {
    margin: 0 0 5px;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.cart-item-info > p {
    margin: 0 0 10px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
}

.cart-quantity {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    height: 34px;
    overflow: hidden;
    border: 1px solid #dfe7e1;
    border-radius: 10px;
    background: #f7faf7;
}

.cart-quantity button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #204b33;
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
}

.cart-quantity button:hover {
    background: #204b33;
    color: #fff;
}

.cart-quantity span {
    min-width: 32px;
    text-align: center;
    color: #2d2d2d;
    font-size: 15px;
    font-weight: 700;
}

.cart-remove {
    align-self: start;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b8b8b;
    font-size: 22px;
    line-height: 1;
}

.cart-remove:hover {
    background: #f3e7e3;
    color: #9b3e2e;
}

.empty-cart {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
}

.empty-cart p {
    margin: 0;
    font-size: 17px;
}

.cart-footer {
    flex: 0 0 auto;
    padding: 22px 24px 24px;
    background: #fff;
    border-top: 1px solid #ece9e1;
}

.cart-total {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #666;
    font-size: 16px;
}

.cart-total strong {
    color: #204b33;
    font-size: 28px;
}

.cart-minimum-order,
.checkout-delivery-note {
    margin: -6px 0 14px;
    color: #5a625d;
    font-size: 13px;
    line-height: 1.45;
}

.cart-minimum-order.is-error,
.checkout-delivery-note.is-error {
    color: #84382d;
}

.checkout-button {
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    border: 0;
    border-radius: 16px;
    background: #204b33;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    transition: .25s ease;
}

.checkout-button:hover {
    background: #2d6b3f;
    transform: translateY(-1px);
}

.checkout-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    background: #6f8175;
}

/* ==========================
   CHECKOUT
   Поддерживает оба варианта разметки:
   .checkout-content и .checkout-body
========================== */

.checkout-overlay {
    position: fixed;
    inset: 0;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 40, 28, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 5000;
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    width: 900px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fdfcf8;
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
    transform: translateY(20px);
    transition: .25s ease;
}

.checkout-overlay.active .checkout-modal {
    transform: translateY(0);
}

.checkout-header {
    min-height: 80px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #fff;
    border-bottom: 1px solid #eee9df;
}

.checkout-header h2 {
    margin: 0;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    line-height: 1;
}

.checkout-close {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #edf3ee;
    color: #204b33;
    font-size: 26px;
    line-height: 1;
}

.checkout-close:hover {
    background: #dce9df;
}

.checkout-content {
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 35px;
}

.checkout-body {
    padding: 30px;
}

.checkout-order {
    min-width: 0;
    padding: 24px;
    background: #f7f2e8;
    border-radius: 20px;
}

.checkout-order h3,
.checkout-form h3 {
    margin: 0 0 20px;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkout-item {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #ded9cf;
}

.checkout-item:last-child {
    border-bottom: 0;
}

.checkout-item div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-item strong {
    color: #204b33;
    overflow-wrap: anywhere;
}

.checkout-item span {
    color: #777;
    font-size: 14px;
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0;
    margin: 20px 0 25px;
    border-top: 1px solid #ded9cf;
    border-bottom: 1px solid #ded9cf;
}

.checkout-total span {
    color: #666;
    font-size: 17px;
}

.checkout-total strong {
    color: #204b33;
    font-size: 28px;
}

.checkout-total + .checkout-delivery-note {
    margin-top: -12px;
}

.checkout-form {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

.checkout-form h3 {
    margin: 10px 0 2px;
}

.checkout-form-message {
    display: none;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.checkout-form-message.error {
    display: block;
    color: #84382d;
    background: #fff4f1;
    border-color: #ebc6be;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #ddd8ce;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: .2s ease;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    border-color: #4a8457;
    box-shadow: 0 0 0 3px rgba(74, 132, 87, .1);
}

.checkout-form [aria-invalid="true"] {
    border-color: #b84f41 !important;
    box-shadow: 0 0 0 3px rgba(184, 79, 65, .13);
}

/* A consistent, calm focus cue across every page without changing the visual rhythm. */
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(216, 198, 154, .92);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.checkout-form textarea {
    min-height: 90px;
    resize: vertical;
}

.submit-order,
.checkout-submit {
    width: 100%;
    min-height: 55px;
    margin-top: 10px;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    background: #204b33;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    transition: .2s ease;
}

.submit-order:hover,
.checkout-submit:hover {
    background: #2d6b3f;
    transform: translateY(-1px);
}


/* ==========================
   PAYMENT METHODS
========================== */
.payment-methods {
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-methods legend {
    margin-bottom: 7px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

.checkout-form .payment-option {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 15px;
    border: 1px solid #ddd8ce;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.checkout-form .payment-option:hover {
    border-color: #9ab8a0;
    background: #f7faf7;
}

.checkout-form .payment-option.is-disabled,
.checkout-form .payment-option.is-disabled:hover {
    cursor: not-allowed;
    opacity: .5;
    border-color: #e1e5df;
    background: #f7f7f5;
}

.delivery-payment-note {
    margin: 8px 0 0;
    color: #786235;
    font-size: 13px;
    line-height: 1.45;
}

.payment-option input[type="radio"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #204b33;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payment-option-content strong {
    color: #204b33;
    font-size: 15px;
}

.payment-option-content small {
    color: #777;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

/* ==========================
   SUCCESS MESSAGE
========================== */

.checkout-success {
    padding: 60px 35px;
    text-align: center;
}

.checkout-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf3ee;
    color: #204b33;
    font-size: 36px;
    font-weight: 700;
}

.checkout-success h2 {
    margin: 0 0 15px;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
}

.checkout-success p {
    max-width: 520px;
    margin: 8px auto;
    color: #666;
    line-height: 1.6;
}

.success-close {
    margin-top: 25px;
    padding: 14px 24px;
    border: 0;
    border-radius: 50px;
    background: #204b33;
    color: #fff;
    font-weight: 700;
}

/* ==========================
   TABLETS: 768–1024
========================== */

@media (max-width: 1100px) {
    nav {
        padding-left: 35px;
        padding-right: 35px;
    }

    .hero {
        grid-template-columns: 1fr;
        max-width: 900px;
        margin-top: 55px;
        margin-bottom: 90px;
        padding-left: 35px;
        padding-right: 35px;
        text-align: center;
        gap: 45px;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        justify-content: center;
    }

    .hero-image img,
    .hero > img {
        max-width: 720px;
        height: 460px;
    }

    .quote {
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        margin-left: auto;
        margin-right: auto;
    }

    .tea-section,
    .teaware,
    .products,
    .advantages,
    .reviews {
        padding-left: 35px;
        padding-right: 35px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .catalog-page {
        padding-left: 35px;
        padding-right: 35px;
    }

    .catalog-page .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================
   TABLET / SMALL LAPTOP
========================== */

@media (max-width: 900px) {
    nav {
        min-height: 82px;
        padding: 16px 25px;
    }

    .logo img {
        width: 56px;
        height: 56px;
    }

    .logo span,
    .logo h2 {
        font-size: 36px;
    }

    nav ul {
        gap: 20px;
    }

    nav ul li a {
        font-size: 16px;
    }

    .hero {
        margin-top: 45px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .hero-text h1 {
        font-size: 68px;
    }

    .quote {
        font-size: 21px;
    }

    .section-header h2 {
        font-size: 52px;
    }

    .tea-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .teaware-content {
        grid-template-columns: 1fr;
    }

    .teaware-text {
        padding: 50px;
        text-align: center;
    }

    .teaware-image img {
        height: 360px;
    }

    .catalog-page {
        margin-top: 60px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .catalog-page .products {
        gap: 24px;
    }

    .cart {
        width: 430px;
        max-width: 94vw;
    }

    .checkout-content {
        gap: 25px;
        padding: 25px;
    }
}

/* ==========================
   PHONES: 481–767
========================== */

@media (max-width: 767px) {
    nav {
        position: sticky;
        padding: 14px 18px 16px;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .logo img {
        width: 52px;
        height: 52px;
    }

    .logo span,
    .logo h2 {
        font-size: 34px;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        gap: 9px 17px;
    }

    nav ul li a {
        font-size: 15px;
    }

    .hero {
        width: 100%;
        margin: 35px auto 70px;
        padding: 0 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        width: min(100%, 420px);
        order: 1;
    }

    .hero-text h1 {
        margin-bottom: 18px;
        font-size: clamp(42px, 12vw, 58px);
        line-height: 1;
    }

    .quote {
        margin-bottom: 25px;
        font-size: 18px;
        line-height: 1.55;
    }

    .btn {
        width: auto;
        min-width: 190px;
        min-height: 54px;
        padding: 13px 24px;
    }

    .hero-image,
    .hero > img {
        width: min(100%, 380px);
        order: 2;
    }

    .hero-image img,
    .hero > img {
        width: 100%;
        max-width: 100%;
        height: 285px;
        border-radius: 23px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: clamp(40px, 11vw, 48px);
    }

    .section-header p {
        font-size: 16px;
        line-height: 1.55;
    }

    .tea-section,
    .teaware,
    .products,
    .advantages,
    .reviews {
        width: 100%;
        margin-top: 75px;
        margin-bottom: 75px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .tea-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tea-card img {
        height: 270px;
    }

    .overlay {
        padding: 22px;
    }

    .overlay h3 {
        font-size: 30px;
    }

    .teaware-content {
        border-radius: 24px;
    }

    .teaware-text {
        padding: 35px 25px;
    }

    .teaware-text h2 {
        font-size: 42px;
    }

    .teaware-text p {
        font-size: 17px;
        line-height: 1.65;
        margin-bottom: 25px;
    }

    .teaware-image img {
        height: 260px;
    }

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

    .product-card {
        width: min(100%, 350px);
        margin-left: auto;
        margin-right: auto;
    }

    .product-card img {
        height: 250px;
    }

    .product-info {
        padding: 20px;
    }

    .product-info h3 {
        font-size: 28px;
    }

    .price-row span {
        font-size: 23px;
    }

    .advantages {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantage {
        padding: 30px 22px;
    }

    .advantage h3 {
        font-size: 30px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-card {
        padding: 28px 22px;
    }

    .review-card p {
        font-size: 16px;
        line-height: 1.65;
    }

    footer {
        margin-top: 80px;
        padding: 55px 20px 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-grid h2 {
        font-size: 42px;
    }

    .footer-grid p {
        font-size: 15px;
        line-height: 1.7;
    }

    .footer-grid a:hover {
        transform: none;
    }

    .copyright {
        margin-top: 40px;
    }

    #topBtn {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    /* CATALOG */
    .catalog-page {
        width: 100%;
        margin: 45px auto 70px;
        padding: 0 16px;
    }

    .catalog-page .section-header h2 {
        font-size: clamp(40px, 11vw, 48px);
    }

    .catalog-page .section-header p {
        font-size: 16px;
    }

    .catalog-filter {
        margin: 28px 0 30px;
        gap: 10px;
    }

    .catalog-filter button {
        padding: 12px 19px;
        font-size: 14px;
    }

    .catalog-subfilter {
        margin-bottom: 35px;
        gap: 8px;
    }

    .catalog-subfilter button {
        padding: 8px 13px;
        font-size: 13px;
    }

    .catalog-page .products {
        margin-top: 35px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .catalog-page .product-card {
        width: min(100%, 350px);
        margin-left: auto;
        margin-right: auto;
    }

    .catalog-page .product-card img {
        height: 270px;
    }

    .catalog-page .product-info {
        padding: 20px;
    }

    .catalog-page .product-info h3 {
        font-size: 28px;
    }

    .catalog-page .price-row span {
        font-size: 22px;
    }

    /* CART */
    .cart {
        width: 100%;
        max-width: 100%;
        height: min(88vh, 720px);
        top: auto;
        right: 0;
        bottom: 0;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .cart.active {
        transform: translateY(0);
    }

    .cart-header {
        min-height: 72px;
        padding: 16px 18px;
    }

    .cart-header h2 {
        font-size: 28px;
    }

    .cart-items {
        padding: 12px;
    }

    .cart-item {
        grid-template-columns: 68px minmax(0, 1fr) 30px;
        gap: 10px;
        padding: 9px;
        border-radius: 15px;
    }

    .cart-item > img {
        width: 68px;
        height: 68px;
        border-radius: 11px;
    }

    .cart-item-info h3 {
        font-size: 19px;
    }

    .cart-item-info > p {
        font-size: 14px;
    }

    .cart-footer {
        padding: 16px 18px 18px;
    }

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

    /* CHECKOUT */
    .checkout-overlay {
        padding: 10px;
        align-items: center;
    }

    .checkout-modal {
        width: 100%;
        max-width: 100%;
        max-height: 94vh;
        border-radius: 22px;
    }

    .checkout-header {
        min-height: 70px;
        padding: 18px;
    }

    .checkout-header h2 {
        font-size: 28px;
    }

    .checkout-close {
        width: 40px;
        height: 40px;
        font-size: 23px;
    }

    .checkout-content {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .checkout-body {
        padding: 18px;
    }

    .checkout-order {
        padding: 18px;
    }

    .checkout-item {
        gap: 10px;
        padding: 12px 0;
    }

    .checkout-item > strong {
        white-space: nowrap;
    }

    .checkout-total {
        margin-top: 15px;
        margin-bottom: 20px;
        padding: 16px 0;
    }

    .checkout-total strong {
        font-size: 25px;
    }

    .checkout-form {
        gap: 12px;
    }

    .checkout-form input,
    .checkout-form select,
    .checkout-form textarea {
        padding: 13px 14px;
    }

    .checkout-success {
        padding: 45px 22px;
    }

    .checkout-success h2 {
        font-size: 32px;
    }
}

/* ==========================
   VERY SMALL PHONES: <= 380
========================== */

@media (max-width: 380px) {
    nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo img {
        width: 46px;
        height: 46px;
    }

    .logo span,
    .logo h2 {
        font-size: 30px;
    }

    nav ul {
        gap: 8px 13px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .hero {
        margin-top: 28px;
        padding-left: 14px;
        padding-right: 14px;
        gap: 24px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .quote {
        font-size: 16px;
    }

    .hero-image,
    .hero > img {
        width: 100%;
    }

    .hero-image img,
    .hero > img {
        height: 245px;
        border-radius: 20px;
    }

    .tea-section,
    .teaware,
    .products,
    .advantages,
    .reviews {
        padding-left: 14px;
        padding-right: 14px;
    }

    .catalog-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .catalog-page .product-card,
    .product-card {
        width: 100%;
        max-width: 340px;
    }

    .catalog-page .product-card img,
    .product-card img {
        height: 245px;
    }

    .catalog-filter button {
        padding: 10px 15px;
        font-size: 13px;
    }

    .catalog-subfilter button {
        padding: 7px 11px;
        font-size: 12px;
    }

    .review-card {
        padding: 24px 18px;
    }

    .checkout-content,
    .checkout-body {
        padding: 14px;
    }

    .checkout-order {
        padding: 15px;
    }
}

/* ==========================
   REDUCE MOTION
========================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================
   FOOTER / FULL LOGO LINK
   Дополнительная адаптация нового дизайна
========================== */

.logo > a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.logo > a span {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    line-height: 1;
    color: #204b33;
    font-weight: 700;
    white-space: nowrap;
}

.logo > a:hover span {
    color: #2d6b3f;
}

/* Clear feedback for saved items and additions to the cart. */
.favorite-product.is-favorite {
    color: #bd4e5a;
    animation: favorite-pop .24s ease-out;
}

.favorite-product.is-favorite::before { content: '♥'; }
.favorite-product.is-favorite { font-size: 0; }
.favorite-product.is-favorite::before { font-size: 22px; line-height: 1; }

@keyframes favorite-pop {
    50% { transform: scale(1.3); }
}

.cart-icon {
    color: #315e45;
    background: #f3f6f0;
    border: 1px solid #dbe5da;
}

.cart-icon.cart-bump { animation: cart-bump .34s ease-out; }

@keyframes cart-bump {
    50% { transform: scale(1.18); background: #dcebdc; color: #1b5134; }
}

.product-highlights {
    display: grid;
    gap: 7px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: #516154;
    font-size: 14px;
    line-height: 1.45;
}

.product-highlights li {
    position: relative;
    padding-left: 17px;
}

.product-highlights li::before {
    content: '•';
    position: absolute;
    left: 2px;
    color: #b48a45;
}

.call-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(20, 35, 27, .42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.call-dialog-overlay.active { opacity: 1; visibility: visible; }

.call-dialog {
    width: min(390px, 100%);
    padding: 30px;
    border-radius: 22px;
    background: #fffdf8;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .22);
}

.call-dialog h2 { margin: 8px 0 10px; color: #204b33; font-family: 'Cormorant Garamond', serif; font-size: 38px; }
.call-dialog-number { margin: 0; color: #607062; font-size: 17px; }
.call-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 27px; }
.call-dialog-actions .btn { margin: 0; text-decoration: none; }

/* Persistent UA/EN control: inline in the green service bar or floating on
   compact information pages that do not have one. */
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1;
}

.language-switch button {
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button.active {
    color: #fff;
    font-weight: 800;
    outline: none;
}

.language-switch button.active { text-decoration: underline; text-underline-offset: 4px; }

.language-switch-floating {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10004;
    padding: 8px 10px;
    border-radius: 999px;
    background: #204b33;
    box-shadow: 0 8px 26px rgba(26, 50, 35, .18);
}

/* Admin sections stay separate; the hidden panel does not leave a blank gap. */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin: 22px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e1d5;
}

.admin-tabs button {
    padding: 10px 16px;
    border: 1px solid #d8e0d6;
    border-radius: 999px;
    background: #fffdf9;
    color: #42604d;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-tabs button.active {
    border-color: #204b33;
    background: #204b33;
    color: #fff;
}

.admin-panel[hidden] { display: none; }

.admin-import-review > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    color: #204b33;
    list-style: none;
}

.admin-import-review > summary::-webkit-details-marker { display: none; }
.admin-import-review > summary span { display: grid; gap: 5px; }
.admin-import-review > summary b { color: #8a7650; font-size: 12px; letter-spacing: .08em; }
.admin-import-review > summary strong { font-family: 'Cormorant Garamond', serif; font-size: 29px; }
.admin-import-review > summary em { padding: 7px 10px; border-radius: 999px; background: #f2eadb; color: #84662d; font-size: 12px; font-style: normal; font-weight: 800; white-space: nowrap; }
.admin-import-review[open] > summary { margin-bottom: 20px; }

.product-card-price,
.product-price,
.cart-total strong,
.checkout-total strong,
.checkout-item strong,
.cart-item strong,
.price-row span {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .logo > a span {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .logo > a {
        justify-content: center;
    }

    .logo > a span {
        font-size: 34px;
    }

    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-grid {
        padding-top: 78px;
    }

    .footer-grid::before {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        font-size: 9px;
        letter-spacing: .12em;
    }

    .footer-grid > div:first-child {
        padding-right: 0;
    }

    .footer-grid h2 {
        font-size: 48px;
    }

    .footer-grid h2::after {
        font-size: 20px;
    }

    .footer-grid h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-grid a {
        width: 100%;
    }

    footer::before {
        top: 20px;
        right: -30px;
        font-size: 170px;
    }

    .copyright {
        margin-top: 42px;
    }
}

@media (max-width: 380px) {
    .logo > a span {
        font-size: 30px;
    }

    footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .footer-grid h2 {
        font-size: 42px;
    }
}
/* ==================================================
   NIKATEA — ЕДИНЫЙ ЛОГОТИП НА ВСЕХ СТРАНИЦАХ
================================================== */

nav .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: auto;
    height: auto;
}

nav .logo > a {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 0;
    padding: 0;

    color: #204b33;
    text-decoration: none;

    line-height: 1;
}

nav .logo > a:hover {
    color: #204b33;
    text-decoration: none;
}

nav .logo > a img {
    display: block;

    width: 65px;
    height: 65px;

    margin: 0;
    padding: 0;

    object-fit: contain;
    flex: 0 0 65px;
}

nav .logo > a span {
    display: block;

    margin: 0;
    padding: 0;

    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;

    color: #204b33;

    white-space: nowrap;
}


/* ==========================
   TABLET
========================== */

@media (max-width: 900px) {

    nav .logo > a img {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    nav .logo > a span {
        font-size: 36px;
    }

}


/* ==========================
   MOBILE
========================== */

@media (max-width: 767px) {

    nav .logo {
        width: 100%;
        justify-content: center;
    }

    nav .logo > a {
        gap: 12px;
    }

    nav .logo > a img {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    nav .logo > a span {
        font-size: 34px;
    }

}


/* ==========================
   SMALL PHONES
========================== */

@media (max-width: 380px) {

    nav .logo > a {
        gap: 10px;
    }

    nav .logo > a img {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    nav .logo > a span {
        font-size: 31px;
    }

}

/* ==========================================================
   NikaTea — ФІНАЛЬНИЙ ЄДИНИЙ ЛОГОТИП
   Однакова розмітка та розмір на всіх сторінках.
   ========================================================== */

nav .logo {
    display: flex;
    align-items: center;
    width: auto;
    height: 65px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

nav .logo > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    width: auto;
    height: 65px;
    margin: 0;
    padding: 0;
    color: #204b33;
    text-decoration: none;
    line-height: 1;
}

nav .logo > a img {
    display: block;
    width: 65px;
    height: 65px;
    min-width: 65px;
    max-width: 65px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    flex: 0 0 65px;
}

nav .logo > a span {
    display: block;
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #204b33;
    white-space: nowrap;
}

nav .logo > a:hover,
nav .logo > a:hover span {
    color: #204b33;
    text-decoration: none;
}

@media (max-width: 900px) {
    nav .logo {
        height: 56px;
    }

    nav .logo > a {
        height: 56px;
        gap: 14px;
    }

    nav .logo > a img {
        width: 56px;
        height: 56px;
        min-width: 56px;
        max-width: 56px;
        flex-basis: 56px;
    }

    nav .logo > a span {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    nav .logo {
        width: 100%;
        height: 52px;
        justify-content: center;
    }

    nav .logo > a {
        height: 52px;
        gap: 12px;
    }

    nav .logo > a img {
        width: 52px;
        height: 52px;
        min-width: 52px;
        max-width: 52px;
        flex-basis: 52px;
    }

    nav .logo > a span {
        font-size: 34px;
    }
}

@media (max-width: 380px) {
    nav .logo {
        height: 46px;
    }

    nav .logo > a {
        height: 46px;
        gap: 10px;
    }

    nav .logo > a img {
        width: 46px;
        height: 46px;
        min-width: 46px;
        max-width: 46px;
        flex-basis: 46px;
    }

    nav .logo > a span {
        font-size: 30px;
    }
}


/* ==================================================
   CATEGORY PAGES / PRODUCT CARDS
================================================== */
.catalog-page .catalog-filter,
.catalog-page .catalog-subfilter,
.catalog-page .catalog-heading,
.catalog-page .catalog-sort,
.catalog-page .products {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-page .catalog-subfilter {
    display: none;
}

.catalog-page .catalog-subfilter.is-visible {
    display: flex;
}

.catalog-page .catalog-subfilter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid #e4ded2;
    color: #315d43;
    text-decoration: none;
    transition: .2s ease;
}

.catalog-page .catalog-subfilter a:hover,
.catalog-page .catalog-subfilter a.active {
    background: #204b33;
    color: #fff;
    border-color: #204b33;
}

.catalog-page .group-button {
    cursor: pointer;
}

.catalog-page .group-button.active {
    background: #204b33;
    color: #fff;
}

.category-hero {
    max-width: 1400px;
    margin: 30px auto 55px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    min-height: 410px;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 50px rgba(45, 65, 50, .08);
}

.category-hero-image-wrap {
    min-height: 410px;
    overflow: hidden;
}

.category-hero-image {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    display: block;
}

.category-hero-copy {
    padding: 58px 62px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-kicker {
    margin-bottom: 16px;
    color: #8a8a7d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.category-hero-copy h1 {
    margin: 0 0 20px;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 5vw, 82px);
    line-height: .94;
}

.category-hero-copy p {
    max-width: 560px;
    margin: 0 0 24px;
    color: #5d5d58;
    font-size: 19px;
    line-height: 1.65;
}

.category-hero-note {
    color: #315d43;
    font-size: 14px;
    font-weight: 600;
}

.catalog-heading {
    margin-top: 15px;
}

.catalog-heading h2 {
    margin-bottom: 10px;
}

.catalog-page .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.catalog-page .product-card {
    cursor: pointer;
    outline: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.catalog-page .product-card:hover,
.catalog-page .product-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(32, 75, 51, .13);
}

.catalog-page .product-image-wrap {
    width: 100%;
    height: 330px;
    overflow: hidden;
    background: #eee9df;
}

.catalog-page .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.catalog-page .product-card:hover .product-image-wrap img {
    transform: scale(1.025);
}

.catalog-page .product-info p {
    min-height: 52px;
}

.catalog-page .weight-badge {
    display: inline-flex;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ef;
    color: #315d43;
    font-size: 14px;
    font-weight: 600;
}

.catalog-empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    color: #666;
}

.catalog-empty h3 {
    margin-bottom: 8px;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
}

/* NikaTea: uniform catalog card controls */
.catalog-page .product-card{height:100%;}
.catalog-page .product-info{display:flex;flex-direction:column;min-height:360px;}
.catalog-page .product-info h3{min-height:99px;max-height:99px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
.catalog-page .product-info p{min-height:72px;max-height:72px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;}
.catalog-page .product-weight,.catalog-page .product-weight-select{box-sizing:border-box;width:100%;height:54px;min-height:54px;margin:0 0 18px;padding:0 16px;border:1px solid #ddd8ce;border-radius:14px;background:#fff;color:#333;font:inherit;display:flex;align-items:center;}
.catalog-page .product-weight{justify-content:flex-start;}
.catalog-page .product-weight-select{appearance:auto;-webkit-appearance:auto;}
.catalog-page .price-row{min-height:50px;margin-top:auto;}
@media(max-width:900px){.catalog-page .product-info{min-height:330px}.catalog-page .product-info h3{min-height:88px;max-height:88px}}
@media(max-width:600px){.catalog-page .product-info{min-height:0}.catalog-page .product-info h3,.catalog-page .product-info p{min-height:0;max-height:none;-webkit-line-clamp:initial}}
/* ==========================================================
   NIKATEA • НОВИЙ HERO
========================================================== */

.hero-new {
    position: relative;
    min-height: 620px;
    width: min(1180px, calc(100% - 64px));
    margin: 48px auto 100px;

    background-image: url("../images/home/tea-plantation-hero.jpeg");
    background-size: cover;
    background-position: center 56%;
    background-repeat: no-repeat;

    border-radius: 30px;
    overflow: hidden;

    display: flex;
    align-items: center;
    isolation: isolate;

    box-shadow: 0 18px 50px rgba(35, 50, 40, 0.10);
}

/* Текст живе всередині фотографії, а не на окремій світлій плашці. */
.hero-new::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(17, 54, 37, 0.86) 0%,
        rgba(24, 70, 48, 0.66) 37%,
        rgba(24, 70, 48, 0.18) 65%,
        rgba(24, 70, 48, 0) 84%
    );

    pointer-events: none;
}

.hero-new::after {
    content: "";
    position: absolute;
    inset: 16px;
    z-index: 1;
    border: 1px solid rgba(255, 250, 238, 0.32);
    border-radius: 20px;
    pointer-events: none;
}

.hero-new-content {
    position: relative;
    z-index: 2;

    width: 48%;
    max-width: 600px;

    margin-left: 7%;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;

    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: #f4dfa6;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.22);
}

.hero-label::before {
    content: "";
    width: 34px;
    height: 1px;
    flex: 0 0 34px;
    background: currentColor;
}

.hero-new h1 {
    margin: 0 0 18px;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(70px, 7vw, 105px);
    line-height: 0.9;
    font-weight: 600;

    color: #fffaf0;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
}

.hero-new-content p {
    max-width: 520px;

    margin: 0 0 32px;

    font-family: "Manrope", sans-serif;
    font-size: 21px;
    line-height: 1.6;

    color: rgba(255, 250, 240, 0.92);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 56px;
    padding: 0 30px;

    border-radius: 999px;

    background: #f4dfa6;
    color: #1e5438;

    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-new-button:hover {
    background: #fff3cf;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 107, 63, 0.25);
}

/* A single current announcement from the news feed keeps the home page alive. */
.home-updates { width: min(1180px, calc(100% - 48px)); margin: 74px auto 0; }
.home-updates-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.home-updates-heading .eyebrow { margin: 0 0 9px; color: #917640; }
.home-updates-heading h2 { margin: 0; color: #204b33; font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 5vw, 58px); font-weight: 600; line-height: .92; }
.home-updates-all { display: inline-flex; gap: 11px; align-items: center; padding-bottom: 5px; color: #315a42; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.home-updates-all:hover { color: #9a7b3c; }
.home-news-spotlight { display: grid; grid-template-columns: minmax(178px, .8fr) minmax(0, 1.45fr) auto; align-items: stretch; overflow: hidden; border: 1px solid rgba(49, 89, 62, .15); border-radius: 23px; background: #f7f3e9; box-shadow: 0 18px 44px rgba(42, 65, 49, .08); }
.home-news-media, .home-news-ornament { min-height: 215px; background: #275239; }
.home-news-media img, .home-news-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-news-ornament { display: grid; place-items: center; background: radial-gradient(circle at 35% 35%, rgba(238, 211, 141, .24), transparent 30%), linear-gradient(135deg, #204b35, #112f22); color: #ead18c; font-family: 'Cormorant Garamond', serif; font-size: 76px; }
.home-news-copy { display: flex; flex-direction: column; justify-content: center; padding: 30px clamp(23px, 4vw, 54px); }
.home-news-kicker { margin: 0 0 10px; color: #957c45; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.home-news-copy h3 { margin: 0; color: #204b33; font-family: 'Cormorant Garamond', serif; font-size: clamp(31px, 3.5vw, 45px); font-weight: 600; line-height: .98; }
.home-news-copy > p:last-child { margin: 13px 0 0; color: #637066; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.home-news-action { display: inline-flex; align-self: center; align-items: center; gap: 16px; margin-right: 29px; padding: 13px 18px; border-radius: 999px; background: #204b35; color: #fff9ed; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.home-news-action:hover { background: #356a49; transform: translateY(-2px); }


/* ==========================================================
   МОБІЛЬНА ВЕРСІЯ
========================================================== */

@media (max-width: 768px) {

    .home-updates { width: min(100% - 30px, 600px); margin-top: 45px; }
    .home-updates-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
    .home-updates-heading h2 { font-size: 43px; }
    .home-updates-all { padding-bottom: 0; }
    .home-news-spotlight { grid-template-columns: 1fr; border-radius: 19px; }
    .home-news-media, .home-news-ornament { min-height: 205px; }
    .home-news-copy { padding: 23px 21px 16px; }
    .home-news-copy h3 { font-size: 35px; }
    .home-news-action { justify-content: space-between; margin: 0 21px 22px; padding: 14px 17px; }

    .hero-new {
        width: calc(100% - 24px);
        min-height: 620px;

        margin: 20px auto 64px;

        background-position: 58% center;
        border-radius: 22px;

        align-items: flex-end;
    }

    .hero-new::before {
        background: linear-gradient(
            0deg,
            rgba(13, 47, 32, 0.92) 0%,
            rgba(19, 60, 40, 0.74) 43%,
            rgba(19, 60, 40, 0.08) 82%
        );
    }

    .hero-new-content {
        width: auto;
        max-width: none;

        margin: 0;
        padding: 35px 25px 35px;
    }

    .hero-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .hero-label::before {
        width: 24px;
        flex-basis: 24px;
    }

    .hero-new h1 {
        font-size: 64px;
    }

    .hero-new-content p {
        font-size: 17px;
        line-height: 1.5;
    }

    .hero-new-button {
        width: 100%;
    }
}
/* ==========================================================
   NIKATEA • TOP BAR
========================================================== */

.top-bar {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 42px;

    background: #16452c;
    color: #fff;

    font-family: "Manrope", sans-serif;
    font-size: 13px;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-center {
    font-weight: 600;
}

.top-bar-right {
    gap: 18px;
}

.top-bar-right a {
    color: #fff;
    text-decoration: none;
}

.top-bar-right a:hover {
    opacity: .75;
}


/* ==========================================================
   NIKATEA • MAIN HEADER
========================================================== */

.main-header {
    position: relative;
    z-index: 20;

    background: #fff;

    border-bottom: 1px solid #eeeae2;
}

.main-nav {
    min-height: 105px;

    max-width: 1500px;
    margin: 0 auto;

    padding: 0 42px;

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


/* LOGO */

.main-nav .logo a {
    display: flex;
    align-items: center;

    gap: 13px;

    text-decoration: none;
}

.main-nav .logo img {
    width: 62px;
    height: 62px;

    object-fit: contain;
}

.main-nav .logo span {
    font-family: "Cormorant Garamond", serif;

    font-size: 42px;
    font-weight: 600;

    color: #204b33;
}


/* MENU */

.main-menu {
    display: flex;
    align-items: center;

    gap: 42px;

    margin: 0 30px 0 auto;
    padding: 0;

    list-style: none;
}

.main-menu a {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 0;

    color: #30332f;

    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 500;

    text-decoration: none;

    transition: color .2s ease;
}

.main-menu a:hover {
    color: #24613c;
}

.main-menu a.active {
    color: #1d5a38;
}

.main-menu a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -5px;

    height: 2px;

    background: #24613c;
}

.menu-arrow {
    font-size: 17px;
    line-height: 1;
}


/* RIGHT ACTIONS */

.header-actions {
    display: flex;
    align-items: center;

    gap: 17px;
}

.header-icon {
    position: relative;

    width: 36px;
    height: 36px;

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

    padding: 0;

    border: 0;
    background: transparent;

    color: #252a26;

    font-size: 22px;

    text-decoration: none;

    cursor: pointer;

    transition: .2s ease;
}

.header-icon:hover {
    color: #24613c;
    transform: translateY(-1px);
}


/* CART NUMBER */

.header-badge {
    position: absolute;

    top: -2px;
    right: -5px;

    min-width: 17px;
    height: 17px;

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

    padding: 0 4px;

    border-radius: 50%;

    background: #1d5a38;
    color: #fff;

    font-size: 9px;
    font-weight: 700;
}


/* ACCOUNT */

.account-link {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-left: 5px;

    color: #252a26;

    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 500;

    text-decoration: none;
}

.account-icon {
    font-size: 25px;
}

.account-link:hover {
    color: #24613c;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 900px) {

    .top-bar {
        padding: 0 18px;
    }

    .top-bar-center {
        display: none;
    }

    .main-nav {
        min-height: 82px;
        padding: 0 20px;
    }

    .main-nav .logo img {
        width: 50px;
        height: 50px;
    }

    .main-nav .logo span {
        font-size: 34px;
    }

    .main-menu {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .account-link span:last-child {
        display: none;
    }
}


@media (max-width: 600px) {

    .top-bar-left {
        font-size: 11px;
    }

    .top-bar-right {
        display: none;
    }

    .main-nav .logo span {
        font-size: 30px;
    }

    .header-actions .header-icon:nth-child(1) {
        display: none;
    }
}
/* ==========================================================
   NIKATEA • POPULAR PRODUCTS
========================================================== */

.popular-products {
    padding-top: 20px;
    padding-bottom: 80px;
}

.popular-products .section-header {
    text-align: center;
    margin-bottom: 38px;
}

.popular-products .section-header h2 {
    margin-bottom: 10px;
}

.popular-products .section-header p {
    margin-bottom: 18px;
}


.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 8px;
}

.section-decoration span:first-child,
.section-decoration span:last-child {
    width: 42px;
    height: 1px;

    background: #b8c5b9;
}

.section-decoration span:nth-child(2) {
    font-size: 16px;
    opacity: .75;
}


/* ЧОТИРИ КАРТКИ */

.popular-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;

    max-width: 1350px;

    margin: 0 auto;
}


/* КАРТКА */

.popular-card {
    overflow: hidden;

    padding: 0 !important;

    background: #fff;

    border-radius: 25px;

    box-shadow:
        0 10px 35px rgba(35, 55, 42, .07);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.popular-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 45px rgba(35, 55, 42, .13);
}


/* ФОТО */

.popular-image {
    width: 100%;
    height: 275px;

    overflow: hidden;

    background: #f5f2eb;
}

.popular-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .4s ease;
}

.popular-card:hover .popular-image img {
    transform: scale(1.04);
}


/* ІНФОРМАЦІЯ */

.popular-card .product-info {
    padding: 22px 22px 20px;
}

.popular-card .product-info h3 {
    margin: 0 0 7px;

    font-family: "Cormorant Garamond", serif;

    font-size: 27px;
    line-height: 1.05;

    color: #204b33;
}

.popular-card .product-info p {
    margin: 0;

    color: #777;

    font-family: "Manrope", sans-serif;
    font-size: 14px;
}


/* ЦІНА */

.popular-card .price-row {
    margin-top: 20px;
}

.popular-card .price-row span {
    font-family: "Manrope", sans-serif;

    font-size: 22px;
    font-weight: 700;

    color: #24613c;
}


/* КНОПКА КОШИКА */

.popular-card .home-cart-btn {
    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 50%;

    background: #2d7547;
    color: #fff;

    cursor: pointer;

    transition: .2s ease;
}

.popular-card .home-cart-btn:hover {
    background: #205d38;

    transform: scale(1.06);
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 1100px) {

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .popular-products {
        padding-bottom: 50px;
    }

    .popular-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .popular-image {
        height: 300px;
    }

}
/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 1050px) {

    .contact-strip {
        grid-template-columns: repeat(2, 1fr);

        margin-left: 24px;
        margin-right: 24px;
    }

    .contact-intro {
        grid-column: 1 / -1;

        padding-right: 0;
    }

}


@media (max-width: 600px) {

    .contact-strip {
        grid-template-columns: 1fr;

        padding: 35px 25px;

        margin: 0 16px 60px;

        border-radius: 24px;

        gap: 28px;
    }

    .contact-intro h2 {
        font-size: 42px;
    }

    .contact-column {
        padding-left: 0;

        padding-top: 25px;

        border-left: 0;
        border-top: 1px solid #d1dbd1;
    }

}

/* ==========================================================
   NIKATEA • HEADER ACTIONS
========================================================== */

.header-actions button.header-icon {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.header-actions .header-icon {
    position: relative;
}

.header-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #204b33;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.favorite-badge {
    position: absolute;
    top: -5px;
    right: -8px;
}

.favorite-product {
    border: 0;
    background: transparent;
    color: #204b33;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 7px;
    transition: transform .2s ease, color .2s ease;
}

.favorite-product:hover {
    transform: scale(1.08);
}

.favorite-product.is-favorite {
    color: #b85d62;
}

.site-search-overlay,
.favorites-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 20px 30px;
    background: rgba(20, 35, 27, .38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.site-search-overlay.active,
.favorites-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-search-box,
.favorites-panel-inner {
    width: min(620px, 100%);
    box-sizing: border-box;
    background: #f7f2e8;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 25px 70px rgba(0,0,0,.2);
    position: relative;
}

.site-search-close,
.favorites-close {
    position: absolute;
    top: 18px;
    right: 20px;
    border: 0;
    background: transparent;
    color: #204b33;
    font-size: 30px;
    cursor: pointer;
}

.site-search-kicker {
    color: #6d8876;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.site-search-box h2,
.favorites-panel h2 {
    margin: 0 0 25px;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
}

.site-search-form {
    display: flex;
    gap: 10px;
}

.site-search-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(32,75,51,.18);
    border-radius: 50px;
    background: #fff;
    padding: 14px 18px;
    font: inherit;
    outline: none;
}

.site-search-form button {
    border: 0;
    border-radius: 50px;
    padding: 0 24px;
    background: #204b33;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.favorites-list {
    display: grid;
    gap: 10px;
}

.favorite-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 14px;
    color: #343b35;
    text-decoration: none;
    background: rgba(255,255,255,.55);
}

.favorite-row img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
}

.favorites-empty {
    color: #777b76;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .site-search-overlay,
    .favorites-panel {
        padding: 70px 15px 20px;
    }

    .site-search-box,
    .favorites-panel-inner {
        padding: 30px 22px;
    }

    .site-search-form {
        flex-direction: column;
    }

    .site-search-form button {
        min-height: 48px;
    }
}


/* Checkout — disabled submit state */
.submit-order:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

/* ==========================
   NOVA POSHTA AUTOCOMPLETE
========================== */
.np-autocomplete {
    position: relative;
}

.np-autocomplete-field {
    position: relative;
}

.np-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    max-height: 230px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #ddd8ce;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(32, 75, 51, .14);
}

.np-suggestions.active {
    display: block;
}

.np-suggestion {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #304735;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.np-suggestion:hover,
.np-suggestion:focus {
    background: #eef5ef;
    outline: none;
}

.np-autocomplete input:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ==========================
   STOCK, ACCOUNT AND ADMIN
========================== */
.stock-status {
    min-height: 1.35em;
    margin: 10px 0 8px;
    color: #397049;
    font-size: 13px;
    font-weight: 700;
}

.stock-status.is-low { color: #a46b1e; }
.stock-status.is-out { color: #9a4b42; }
.add-to-cart:disabled,
.home-cart-btn:disabled,
.cart-plus:disabled,
.account-action:disabled,
.admin-save:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.cart-stock {
    display: block;
    margin: 4px 0;
    color: #9a4b42;
}

.account-main,
.admin-main {
    width: min(1180px, calc(100% - 40px));
    margin: 58px auto 76px;
}

.account-heading,
.admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.account-heading h1,
.admin-heading h1 {
    margin: 4px 0 0;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 6vw, 66px);
    line-height: .95;
}

.eyebrow {
    margin: 0;
    color: #8a7650;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.account-auth,
.account-card,
.admin-login,
.admin-panel,
.admin-order-detail {
    border: 1px solid #e2dbce;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 36px rgba(50, 57, 43, .06);
}

.account-auth {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.account-auth h2 { margin-top: 0; color: #204b33; }
.account-choice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.account-action-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.account-action-secondary { background: #8a7650; }
.account-switch { margin: 18px 0 0; color: #647066; text-align: center; }
.account-switch a { color: #204b33; font-weight: 800; }

.account-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.account-tabs button,
.text-button {
    padding: 9px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #365344;
}

.account-tabs button.active {
    background: #204b33;
    color: #fff;
}
.admin-danger { color: #9a3f35; border: 1px solid #e3bbb6; background: #fff7f5; }
.admin-danger:hover { color: #7c2f28; border-color: #cf958e; background: #feeeeb; }
.admin-confirm-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(24, 42, 31, .48); }
.admin-confirm-dialog { width: min(440px, 100%); padding: 28px; border: 1px solid #e4dacb; border-radius: 18px; background: #fffdf9; box-shadow: 0 24px 70px rgba(18, 40, 29, .28); }
.admin-confirm-dialog h2 { margin: 4px 0 12px; color: #204b33; font-size: clamp(27px, 6vw, 36px); }
.admin-confirm-dialog p { margin: 0 0 10px; color: #4f5f54; line-height: 1.55; }
.admin-confirm-dialog .admin-confirm-note { color: #9a3f35; font-weight: 700; }
.admin-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.admin-confirm-actions .admin-save { margin: 0; }

.account-form,
.admin-login form,
.admin-stock-row {
    display: grid;
    gap: 16px;
}

/* The registration form is switched with the account tabs.  The generic
   display:grid rule above otherwise overrides the browser's [hidden] rule. */
.account-form[hidden] {
    display: none;
}

.account-form label,
.admin-login label,
.admin-stock-row label {
    display: grid;
    gap: 7px;
    color: #355344;
    font-size: 14px;
    font-weight: 700;
}

.account-form input,
.admin-login input,
.admin-stock-row input,
.admin-order-status {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d7d0c3;
    border-radius: 10px;
    background: #fff;
    color: #2d2d2d;
}

.account-form .password-input { position: relative; display: block; width: 100%; }
.account-form .password-input input { padding-right: 96px; }
.password-visibility {
    position: absolute;
    top: 50%;
    right: 8px;
    min-height: 32px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    transform: translateY(-50%);
    background: #edf3eb;
    color: #28523a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.password-visibility:hover { background: #deebdc; }
.password-visibility:focus-visible { outline: 2px solid #28523a; outline-offset: 2px; }

.account-action,
.admin-save {
    min-height: 45px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: #204b33;
    color: #fff;
    font-weight: 800;
}

.account-message,
.admin-message {
    min-height: 1.4em;
    margin: 0 0 14px;
    color: #397049;
}

.account-message.error,
.admin-message.error { color: #a24d43; }
.account-form-help,
.account-telegram-help { margin: -4px 0 0; color: #647066; font-size: 14px; line-height: 1.5; }
.account-telegram-state { margin: 0; color: #2f6b44; font-weight: 700; line-height: 1.55; }

.admin-scroll-top {
    position: fixed;
    z-index: 60;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    transform: translateY(14px);
    opacity: 0;
    pointer-events: none;
    background: #204b33;
    box-shadow: 0 10px 24px rgba(26, 60, 41, .24);
    color: #fff;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.admin-scroll-top.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.admin-scroll-top:hover { background: #173b2a; }
.admin-scroll-top:focus-visible { outline: 3px solid #e9c95f; outline-offset: 3px; }

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

.account-card { padding: 24px; }
.account-card h2,
.admin-panel h2,
.admin-order-detail h2 { margin: 0 0 16px; color: #204b33; font-family: 'Cormorant Garamond', serif; font-size: 32px; }
.account-card-wide { grid-column: span 2; }
.account-empty { margin: 0; color: #737a70; line-height: 1.6; }

.account-data { margin: 0; }
.account-data div { display: grid; grid-template-columns: minmax(110px, .75fr) 1.5fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee9df; }
.account-data div:last-child { border-bottom: 0; }
.account-data dt { color: #7d837a; }
.account-data dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.account-orders { display: grid; gap: 12px; }
.account-orders article { padding: 16px; border: 1px solid #e9e3d8; border-radius: 12px; background: #fffdf9; }
.account-orders article > div { display: flex; justify-content: space-between; gap: 15px; }
.account-orders span { color: #737a70; }
.account-orders p { margin: 9px 0; line-height: 1.5; }
.order-status { color: #397049 !important; font-weight: 800; }

.account-favorites { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.account-favorites a { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.account-favorites img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.account-favorites span { font-size: 14px; line-height: 1.35; }

.admin-login { width: min(460px, 100%); margin: 72px auto; padding: 28px; }
.admin-login h1 { margin-top: 0; color: #204b33; font-family: 'Cormorant Garamond', serif; font-size: 46px; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-panel { padding: 22px; margin-top: 22px; }
.admin-stock-list { display: grid; gap: 18px; }
.admin-product { padding-bottom: 18px; border-bottom: 1px solid #e8e1d5; }
.admin-product:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-product h3 { margin: 0 0 12px; color: #304d3e; font-size: 17px; }
.admin-stock-row { grid-template-columns: minmax(75px, 1fr) minmax(90px, 120px) auto; align-items: end; }
.admin-stock-row label { margin: 0; }
.admin-stock-row label:first-child { padding-bottom: 12px; }

.admin-orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-orders th,
.admin-orders td { padding: 12px 9px; border-bottom: 1px solid #e8e1d5; text-align: left; vertical-align: top; }
.admin-orders th { color: #627066; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.admin-orders button { padding: 6px 0; border: 0; background: transparent; color: #204b33; text-decoration: underline; }
.admin-order-detail { margin-top: 20px; padding: 22px; }
.admin-order-detail[hidden] { display: none; }
.admin-order-detail dl { display: grid; grid-template-columns: 150px 1fr; gap: 9px 15px; }
.admin-order-detail dt { color: #707a72; }
.admin-order-detail dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 720px) {
    .account-main,
    .admin-main { width: min(100% - 28px, 1180px); margin-top: 35px; }
    .account-heading,
    .admin-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .account-grid { grid-template-columns: 1fr; }
    .account-card-wide { grid-column: auto; }
    .account-auth,
    .account-card,
    .admin-panel { padding: 18px; }
    .admin-stock-row { grid-template-columns: 1fr 96px; }
    .admin-stock-row label:first-child { grid-column: span 2; padding-bottom: 0; }
    .admin-orders { display: block; overflow-x: auto; white-space: nowrap; }
    .admin-order-detail dl { grid-template-columns: 1fr; gap: 3px; }
    .admin-order-detail dd { margin-bottom: 9px; }
}

/* Canonical product-card geometry and catalog controls. */
.unified-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.unified-product-card .product-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ebe5d9;
}

.unified-product-card .product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #204b33;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.unified-product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.unified-product-card .product-info { min-height: 0; }
.unified-product-card .product-meta {
    height: 20px;
    min-height: 20px;
    margin: 0 0 7px;
    overflow: hidden;
    color: #8a7650;
    font-size: 12px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unified-product-card .product-card-title {
    min-height: 67px;
    margin: 0 0 8px;
    overflow: hidden;
    line-height: 1.1;
}

.unified-product-card .product-card-title a { color: inherit; text-decoration: none; }
.unified-product-card .product-card-description {
    min-height: 62px;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.unified-product-card .product-card-controls {
    min-height: 94px;
    margin-top: 12px;
}

.unified-product-card .product-card-controls .product-weight,
.unified-product-card .product-card-controls .product-weight-select { margin-top: 0; }
.unified-product-card .product-card-controls .stock-status { min-height: 20px; margin: 8px 0 0; }
.unified-product-card .price-row { margin-top: auto; }

.catalog-page .unified-product-card .product-meta { height: 20px !important; min-height: 20px !important; margin: 0 0 7px !important; }
.catalog-page .unified-product-card .product-card-description { height: 62px !important; min-height: 62px !important; margin: 0 !important; }
.catalog-page .unified-product-card .stock-status { height: 20px !important; min-height: 20px !important; margin: 8px 0 0 !important; }

.catalog-tools {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    width: min(1400px, calc(100% - 120px));
    margin: 0 auto 30px;
}

.catalog-tools label { display: grid; gap: 6px; color: #555; font-size: 13px; font-weight: 700; }
.catalog-tools input:not([type="checkbox"]),
.catalog-tools select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #ddd8ce; border-radius: 10px; background: #fff; }
.catalog-tools .catalog-checkbox { display: flex; align-items: center; min-height: 44px; gap: 8px; }
.catalog-tools .catalog-checkbox input { width: 17px; height: 17px; }
.footer-info-links { display: grid; gap: 9px; margin-top: 14px; }

.product-page-badge { margin: 0 0 12px; }
.product-quantity-control { display: inline-flex; align-items: center; gap: 12px; margin: 12px 0; border: 1px solid #ddd8ce; border-radius: 10px; padding: 5px; }
.product-quantity-control button { width: 32px; height: 32px; border: 0; border-radius: 7px; background: #eef4ed; color: #204b33; font-size: 20px; }
.product-quantity-control button:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 900px) {
    .catalog-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100% - 40px, 1400px); }
}

@media (max-width: 600px) {
    .catalog-tools { grid-template-columns: 1fr 1fr; width: min(100% - 30px, 1400px); }
    .catalog-tools label:last-child { grid-column: span 2; }
    .unified-product-card .product-card-title { min-height: 57px; font-size: 25px; }
    .unified-product-card .product-card-description { min-height: 58px; }
}

/* Store-owner controls and plain-language information pages. */
.admin-overview,
.admin-section-heading,
.admin-filters,
.admin-copy-actions,
.admin-import-actions,
.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-overview {
    margin: 20px 0;
    padding: 15px 18px;
    border: 1px solid #e8e1d5;
    border-radius: 12px;
    background: #fffdf9;
    color: #506257;
}

.admin-overview strong { color: #204b33; }
.admin-section-heading { justify-content: space-between; margin-bottom: 16px; }
.admin-section-heading h2 { margin-bottom: 0; }
.admin-help { margin: -4px 0 18px; color: #707a72; line-height: 1.55; }

.admin-filters,
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-filters { margin-bottom: 18px; }
.admin-filters label,
.admin-product-form label,
.admin-variant-row label {
    display: grid;
    gap: 6px;
    color: #526057;
    font-size: 13px;
    font-weight: 700;
}

.admin-filters input,
.admin-filters select,
.admin-product-form input,
.admin-product-form select,
.admin-product-form textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 11px;
    border: 1px solid #d7d0c3;
    border-radius: 9px;
    background: #fff;
    color: #2d2d2d;
    font: inherit;
    font-weight: 400;
}

.admin-product-form textarea { min-height: 86px; resize: vertical; }
.admin-field-wide { grid-column: span 3; }
.admin-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) minmax(115px, auto) auto;
    align-items: center;
    gap: 14px;
}

.admin-product > img {
    width: 64px;
    height: 76px;
    border-radius: 8px;
    object-fit: cover;
    background: #ebe5d9;
}

.admin-product-main h3 { margin-bottom: 5px; }
.admin-product-main p:last-child { margin: 0; color: #69736c; font-size: 13px; line-height: 1.45; }
.admin-product-category { margin: 0 0 4px; color: #8a7650 !important; font-size: 12px !important; font-weight: 800; text-transform: uppercase; }
.admin-product-state { color: #397049; font-size: 13px; font-weight: 800; }
.admin-product-state.low { color: #a16d22; }
.admin-product-state.out { color: #a24d43; }
.admin-product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-product-actions .admin-save,
.admin-product-actions .text-button { margin: 0; white-space: nowrap; }

.admin-inventory-setup-list { display: grid; gap: 16px; }
.admin-inventory-setup { padding: 18px; border: 1px solid #e3dccf; border-radius: 13px; background: #fffdf9; }
.admin-inventory-setup-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.admin-inventory-setup h3 { margin: 0 0 5px; color: #304d3e; font-size: 19px; }
.admin-inventory-setup-head p { margin: 0; color: #69736c; font-size: 13px; line-height: 1.45; }
.admin-inventory-setup-head > span { flex: 0 0 auto; padding: 8px 10px; border-radius: 8px; background: #f4efe5; color: #617066; font-size: 13px; }
.admin-inventory-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; padding: 0; border: 0; }
.admin-inventory-choice legend { padding: 0; margin-bottom: 8px; color: #304d3e; font-weight: 800; }
.admin-inventory-choice label { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; padding: 12px; border: 1px solid #ddd5c8; border-radius: 10px; color: #40544a; cursor: pointer; }
.admin-inventory-choice input { margin: 2px 0 0; }
.admin-inventory-choice small { grid-column: 2; color: #768076; line-height: 1.35; }
.admin-inventory-fields { padding: 15px; border-radius: 10px; background: #f6f2ea; }
.admin-inventory-fields label { display: grid; gap: 6px; max-width: 330px; color: #526057; font-size: 13px; font-weight: 700; }
.admin-inventory-fields input,
.admin-inventory-fields select { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #d7d0c3; border-radius: 9px; background: #fff; color: #2d2d2d; font: inherit; font-weight: 400; }
.admin-inventory-fields small { display: block; margin-top: 8px; color: #707a72; line-height: 1.45; }
.admin-inventory-fields p { margin: 0 0 10px; color: #667167; line-height: 1.45; }
.admin-piece-stocks,
.admin-setup-cake-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.admin-import-list { display: grid; gap: 16px; }
.admin-import {
    display: grid;
    grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid #e8e1d5;
    border-radius: 12px;
    background: #fffdf9;
}

.admin-import h3 { margin: 0 0 8px; color: #304d3e; }
.admin-import p { margin: 5px 0; color: #68736b; line-height: 1.45; }
.admin-import-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; align-content: start; color: #7d837a; }
.admin-import-photos img { width: 100%; aspect-ratio: 1; border-radius: 7px; object-fit: cover; background: #ebe5d9; }
.admin-import-actions { margin-top: 12px; }
.admin-variants { margin: 24px 0 16px; padding: 16px; border: 1px solid #e8e1d5; border-radius: 10px; }
.admin-variants legend { padding: 0 7px; color: #304d3e; font-weight: 800; }
.admin-variant-row { display: grid; grid-template-columns: 1.1fr .8fr .8fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.admin-check { display: inline-flex !important; grid-template-columns: auto 1fr; align-items: center; margin: 12px 16px 0 0; }
.admin-check input { width: 18px !important; min-height: 18px !important; padding: 0 !important; }
.admin-form-actions { margin-top: 24px; }

.info-page-main {
    width: min(100% - 40px, 960px);
    margin: 62px auto 72px;
}

.info-page-hero { max-width: 690px; margin-bottom: 34px; }
.info-page-hero h1 { margin: 8px 0 14px; color: #204b33; font-family: 'Cormorant Garamond', serif; font-size: clamp(42px, 6vw, 66px); line-height: .96; }
.info-page-hero p { margin: 0; color: #59645e; font-size: 17px; line-height: 1.65; }
.info-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.info-page-card { padding: 25px; border: 1px solid #e8e1d5; border-radius: 14px; background: #fffdf9; }
.info-page-card-wide { grid-column: span 2; }
.info-page-card h2 { margin: 0 0 13px; color: #204b33; font-family: 'Cormorant Garamond', serif; font-size: 32px; }
.info-page-card p,
.info-page-card li { color: #566259; line-height: 1.62; }
.info-page-card p:last-child { margin-bottom: 0; }
.info-page-card ul { margin: 0; padding-left: 20px; }

/* Legal pages and consent controls use the same quiet, readable rhythm as the storefront. */
.legal-page .info-page-hero { max-width: 760px; }
.legal-prose { display: grid; gap: 14px; }
.legal-prose h2 { margin: 18px 0 2px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { margin: 0; }
.legal-prose ol { margin: 0; padding-left: 21px; }
.legal-prose li + li { margin-top: 7px; }
.legal-details { display: grid; gap: 14px; margin: 0; }
.legal-details > div { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid #eee7dc; }
.legal-details > div:last-child { padding-bottom: 0; border-bottom: 0; }
.legal-details dt { color: #738077; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-details dd { margin: 0; color: #405247; line-height: 1.55; }
.seller-requisites { margin: -4px 0 0; border: 1px solid #e8e1d5; border-radius: 12px; background: #fcfaf5; }
.seller-requisites summary { padding: 13px 15px; color: #315a42; cursor: pointer; font-weight: 800; }
.seller-requisites[open] summary { border-bottom: 1px solid #e8e1d5; }
.seller-requisites .legal-details { padding: 15px; }
.legal-consent { display: flex !important; align-items: flex-start; gap: 9px; margin: 5px 0 14px; color: #617066 !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.45; }
.legal-consent input { flex: 0 0 auto; width: 17px !important; min-height: 17px !important; margin: 2px 0 0; accent-color: #215339; }
.legal-consent span { display: block; }
.legal-consent a { color: #215339; text-decoration: underline; text-underline-offset: 2px; }
.checkout-consent { margin-top: 15px; }

/* Shown only if the owner later enables GA4 in the server environment. */
.analytics-consent {
    position: fixed;
    z-index: 5000;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: end;
    gap: 20px;
    width: min(620px, calc(100vw - 32px));
    padding: 18px 20px;
    border: 1px solid rgba(32, 75, 51, .14);
    border-radius: 18px;
    background: rgba(255, 253, 248, .98);
    color: #345242;
    box-shadow: 0 16px 42px rgba(20, 42, 29, .18);
}
.analytics-consent p { display: grid; gap: 5px; margin: 0; font-size: 13px; line-height: 1.45; }
.analytics-consent p strong { font-size: 15px; }
.analytics-consent p span { color: #607066; }
.analytics-consent > div { display: flex; flex: 0 0 auto; gap: 8px; }
.analytics-consent button { min-height: 39px; padding: 0 13px; border: 1px solid #cbd6ca; border-radius: 999px; background: #fffdf8; color: #31543e; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.analytics-consent [data-analytics-allow] { border-color: #215339; background: #215339; color: #fff; }
.analytics-settings { position: fixed; z-index: 4999; left: 14px; bottom: 14px; min-height: 34px; padding: 0 10px; border: 1px solid rgba(32, 75, 51, .18); border-radius: 999px; background: rgba(255, 253, 248, .94); color: #456250; box-shadow: 0 6px 18px rgba(20, 42, 29, .12); font: 700 12px/1 'Manrope', sans-serif; cursor: pointer; }
@media (max-width: 640px) {
    .analytics-consent { right: 16px; bottom: 16px; align-items: stretch; flex-direction: column; gap: 14px; }
    .analytics-consent > div { justify-content: flex-end; flex-wrap: wrap; }
    .analytics-settings { left: 10px; bottom: 10px; }
}

/* Returns: a short, calm guide instead of a wall of policy text. */
.returns-page { width: min(100% - 40px, 1120px); }
.returns-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: clamp(32px, 5vw, 62px);
    border: 1px solid #d9e3d8;
    border-radius: 28px;
    background: linear-gradient(135deg, #f7f1e4 0%, #e8f0e4 100%);
    box-shadow: 0 15px 38px rgba(38, 66, 45, .08);
}
.returns-hero::after {
    content: "茶";
    position: absolute;
    right: clamp(22px, 7vw, 92px);
    bottom: -42px;
    color: rgba(32, 75, 51, .075);
    font-family: Georgia, serif;
    font-size: clamp(180px, 25vw, 330px);
    line-height: 1;
    pointer-events: none;
}
.returns-hero > * { position: relative; z-index: 1; }
.returns-hero h1 {
    max-width: 720px;
    margin: 9px 0 15px;
    color: #204b33;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(48px, 6vw, 74px);
    line-height: .94;
}
.returns-hero > p:not(.eyebrow) { max-width: 580px; margin: 0; color: #536157; font-size: 18px; line-height: 1.55; }
.returns-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 29px; }
.returns-primary,
.returns-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.returns-primary { gap: 12px; color: #fffdf7; background: #215339; box-shadow: 0 8px 18px rgba(32, 75, 51, .18); }
.returns-primary:hover { color: #fffdf7; background: #173b2a; transform: translateY(-2px); box-shadow: 0 12px 22px rgba(32, 75, 51, .23); }
.returns-phone { color: #215339; border: 1px solid rgba(32, 75, 51, .25); background: rgba(255, 253, 247, .58); }
.returns-phone:hover { color: #173b2a; background: #fffdf7; transform: translateY(-2px); }
.returns-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.returns-path article { min-height: 210px; padding: 27px 25px; border: 1px solid #e5e0d6; border-radius: 20px; background: #fffdf9; box-shadow: 0 8px 22px rgba(38, 66, 45, .045); }
.returns-step { display: block; margin-bottom: 23px; color: #b88739; font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.returns-path h2,
.returns-gentle-note h2 { margin: 0 0 10px; color: #204b33; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; line-height: 1; }
.returns-path p,
.returns-gentle-note p { margin: 0; color: #627068; font-size: 16px; line-height: 1.58; }
.returns-gentle-note { display: flex; align-items: center; gap: 17px; padding: 24px 28px; border: 1px solid #dbe8dc; border-radius: 20px; background: #edf4eb; }
.returns-gentle-note > span { font-size: 30px; line-height: 1; }

@media (max-width: 720px) {
    .returns-page { width: min(100% - 30px, 1120px); }
    .returns-hero { padding: 34px 25px; border-radius: 22px; }
    .returns-hero > p:not(.eyebrow) { font-size: 16px; }
    .returns-path { grid-template-columns: 1fr; gap: 12px; }
    .returns-path article { min-height: 0; padding: 23px; }
    .returns-step { margin-bottom: 14px; }
    .returns-gentle-note { align-items: flex-start; padding: 21px; }
}

@media (max-width: 720px) {
    .admin-filters,
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-field-wide { grid-column: auto; }
    .admin-product { grid-template-columns: 52px minmax(0, 1fr); }
    .admin-product > img { width: 52px; height: 62px; }
    .admin-product-state,
    .admin-product-actions { grid-column: 2; justify-self: start; }
    .admin-inventory-setup-head { display: grid; gap: 9px; }
    .admin-inventory-setup-head > span { justify-self: start; }
    .admin-inventory-choice,
    .admin-piece-stocks,
    .admin-setup-cake-grid { grid-template-columns: 1fr; }
    .admin-import { grid-template-columns: 1fr; }
    .admin-import-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-variant-row { grid-template-columns: 1fr 1fr; }
    .admin-variant-row button { justify-self: start; }
    .info-page-main { width: min(100% - 30px, 960px); margin-top: 38px; }
    .info-page-grid { grid-template-columns: 1fr; }
    .info-page-card-wide { grid-column: auto; }
}

/* Mobile navigation: the full site menu remains available on tablets and phones. */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    .main-nav {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }

    .main-nav .logo {
        width: auto;
        min-width: 0;
        justify-content: flex-start;
        flex: 1 1 auto;
    }

    .main-nav .header-actions {
        flex: 0 0 auto;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        display: inline-flex;
        flex: 0 0 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid #d8dfd7;
        border-radius: 50%;
        background: #fff;
        color: #204b33;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 17px;
        height: 1.5px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(6.5px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .mobile-menu-toggle:focus-visible,
    .main-nav .main-menu a:focus-visible {
        outline: 3px solid rgba(91, 145, 105, .4);
        outline-offset: 3px;
    }

    .main-nav .main-menu {
        position: absolute;
        top: calc(100% - 5px);
        right: 14px;
        left: 14px;
        z-index: 50;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        margin: 0;
        padding: 8px;
        border: 1px solid #d9dfd8;
        border-radius: 16px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 38px rgba(30, 56, 40, .16);
    }

    .main-nav .main-menu.is-open {
        display: grid;
    }

    .main-nav .main-menu li {
        width: 100%;
    }

    .main-nav .main-menu a {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 12px 13px;
        border-radius: 10px;
        font-size: 16px;
    }

    .main-nav .main-menu a:hover,
    .main-nav .main-menu a.active {
        background: #eff4ed;
    }

    .main-nav .main-menu a.active::after {
        right: auto;
        bottom: 8px;
        left: 13px;
        width: 28px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0 13px;
    }

    .top-bar-left {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .main-nav {
        padding: 0 13px;
    }

    .main-nav .logo a {
        gap: 0;
    }

    .main-nav .logo img {
        width: 46px;
        height: 46px;
    }

    .main-nav .logo span {
        display: none;
    }

    .header-actions {
        gap: 1px;
    }

    .header-actions .header-icon,
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .main-nav .main-menu {
        right: 10px;
        left: 10px;
    }
}

/* Tea review notes — anonymous customer words, not a generic testimonial wall. */
.tea-reviews {
    width: min(1360px, 100%);
}

.tea-reviews .section-header {
    max-width: 720px;
    margin: 0 auto 46px;
    text-align: center;
}

.tea-reviews .section-header h2 { color: #204b33; }
.tea-reviews .section-header p { color: #657168; }

.tea-reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tea-review-card {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 31px 30px 26px;
    border: 1px solid #e6ddd0;
    border-radius: 4px 22px 4px 22px;
    background: linear-gradient(135deg, rgba(246, 239, 221, .58), transparent 42%), #fffdf8;
    box-shadow: 0 14px 28px rgba(41, 53, 40, .06);
}

.tea-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 30px;
    left: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b59357, transparent);
}

.tea-review-card:hover { transform: translateY(-4px); }

.tea-review-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #edf2e8;
    color: #527047;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
}

.tea-review-card p {
    flex: 1;
    margin: 0 0 22px;
    color: #465147;
    font-size: 16px;
    line-height: 1.72;
}

.tea-review-signature {
    color: #8b7957;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.review-invitation {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding: 26px 30px;
    border: 1px solid #d9e3d6;
    border-radius: 18px;
    background: #edf3ed;
}

.review-invitation-mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 50%;
    background: #204b33;
    color: #f5dea0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
}

.review-invitation-kicker {
    margin: 0 0 5px;
    color: #769173;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.review-invitation h3 {
    margin: 0 0 7px;
    color: #204b33;
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    line-height: 1;
}

.review-invitation p:not(.review-invitation-kicker) {
    margin: 0;
    color: #607060;
    line-height: 1.55;
}

.review-open-button,
.review-submit-button {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #204b33;
    color: #fffaf0;
    font: 700 15px/1 'Manrope', sans-serif;
    cursor: pointer;
}

.review-open-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    white-space: nowrap;
}

.review-open-button span { font-size: 20px; }
.review-open-button:hover, .review-submit-button:hover { background: #2b6241; }

.review-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.review-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 26px 30px;
    border: 1px solid #e4ddd0;
    border-radius: 18px;
    background: #fffdf8;
}

.review-form label {
    display: grid;
    gap: 9px;
    color: #334a3b;
    font-size: 14px;
    font-weight: 700;
}

.review-form textarea {
    width: 100%;
    min-height: 130px;
    resize: vertical;
    padding: 14px 15px;
    border: 1px solid #d8d8ce;
    border-radius: 12px;
    background: #fff;
    color: #2d392f;
    font: 16px/1.55 'Manrope', sans-serif;
}

.review-form textarea:focus {
    outline: 3px solid rgba(76, 123, 84, .18);
    border-color: #5a8061;
}

.review-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-submit-button { padding: 0 23px; }
.review-submit-button:disabled { cursor: wait; opacity: .65; }
.review-form-message { min-height: 1.4em; margin: 0; color: #667267; font-size: 14px; line-height: 1.45; }
.review-form-message.success { color: #2b6a42; }
.review-form-message.error { color: #a14747; }

.admin-review-list { display: grid; gap: 12px; }
.admin-review { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px; border: 1px solid #e8e1d5; border-radius: 12px; background: #fffdf9; }
.admin-review-text { max-width: 860px; margin: 0; color: #415046; line-height: 1.6; }
.admin-review-count { margin: 0; padding: 7px 10px; border-radius: 999px; background: #f2eadb; color: #84662d; font-size: 12px; font-weight: 800; white-space: nowrap; }

@media (max-width: 1050px) {
    .tea-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .tea-reviews { padding-right: 18px; padding-left: 18px; }
    .tea-reviews-grid { grid-template-columns: 1fr; gap: 13px; }
    .tea-review-card { min-height: 0; padding: 27px 24px 23px; }
    .review-invitation { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 22px; }
    .review-invitation-mark { width: 50px; height: 50px; font-size: 28px; }
    .review-invitation h3 { font-size: 29px; }
    .review-open-button { grid-column: span 2; justify-content: center; width: 100%; }
    .review-form { padding: 22px; }
    .review-form-actions { align-items: stretch; flex-direction: column; }
    .review-submit-button { width: 100%; }
    .admin-review { align-items: flex-start; flex-direction: column; gap: 13px; }
}

/* ==========================================================
   NIKATEA • FINAL EDITORIAL POLISH
========================================================== */

/* One quiet icon language for every header instead of mixed glyphs and emoji. */
.header-icon svg,
.account-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.account-icon svg { width: 21px; height: 21px; }
.footer-grid h2::after { content: none; }

/* The catalog now gets to the collection sooner: one clear title, no repeated category banner. */
.catalog-page .catalog-masthead {
    grid-template-columns: minmax(0, 1fr) 210px !important;
    gap: 26px !important;
    padding: clamp(28px, 4vw, 52px) !important;
}

.catalog-page .catalog-masthead h1 {
    max-width: 620px;
    font-size: clamp(50px, 5.7vw, 80px) !important;
    line-height: .88 !important;
}

.catalog-page .catalog-masthead-copy > p:last-child {
    max-width: 620px;
    margin-top: 18px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.catalog-page .catalog-ritual-note { padding: 20px 0 20px 24px !important; }
.catalog-page .catalog-ritual-note span { margin-bottom: 7px !important; font-size: 44px !important; }
.catalog-page .catalog-ritual-note p { font-size: 13px !important; line-height: 1.55 !important; }
.catalog-page .category-hero { display: none !important; }

/* Supplied photos stay untouched; an understated paper edge makes mixed source photos read as one collection. */
.catalog-page .product-image-wrap {
    aspect-ratio: 4 / 4.72 !important;
    position: relative;
    background: #eee8dc !important;
}

.catalog-page .product-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 6px rgba(250, 247, 240, .72);
}

.catalog-page .unified-product-card .product-info { padding: 19px 18px 17px !important; }
.catalog-page .unified-product-card .product-meta {
    height: 22px !important;
    min-height: 22px !important;
    color: #7f6a49 !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .015em !important;
    line-height: 1.45 !important;
    text-transform: none !important;
}

.catalog-page .unified-product-card .product-card-title {
    min-height: 60px !important;
    max-height: 60px !important;
    color: #1d4030 !important;
    font-size: 28px !important;
    line-height: 1.02 !important;
}

.catalog-page .unified-product-card .product-card-description {
    height: 56px !important;
    min-height: 56px !important;
    color: #626c63 !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
}

.catalog-page .price-row { margin-top: 15px !important; padding-top: 15px !important; }
.catalog-page .price-row .product-card-price { font-size: 29px !important; }

/* Three reviews feel like a considered selection; the rest are available with a calm, touch-friendly scroll. */
.review-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px;
    color: #7e735f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.review-carousel-controls > div { display: inline-flex; gap: 8px; }

.review-carousel-controls button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d7c8ad;
    border-radius: 50%;
    background: #fffdf8;
    color: #214936;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.review-carousel-controls button:hover,
.review-carousel-controls button:focus-visible {
    background: #214936;
    color: #fffaf0;
    transform: translateY(-1px);
}

.review-carousel-controls button:focus-visible { outline: 3px solid rgba(77, 121, 84, .28); outline-offset: 2px; }
.review-carousel-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tea-reviews-grid {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    grid-template-columns: none !important;
    gap: 16px !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 3px 3px 15px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: #c8b792 transparent;
    scrollbar-width: thin;
}

.tea-review-card { scroll-snap-align: start; }

@media (max-width: 1050px) {
    .tea-reviews-grid { grid-auto-columns: calc((100% - 16px) / 2); }
}

@media (max-width: 760px) {
    .catalog-page .catalog-masthead { grid-template-columns: 1fr !important; gap: 18px !important; }
    .catalog-page .catalog-masthead h1 { font-size: clamp(48px, 15vw, 68px) !important; }
    .catalog-page .catalog-ritual-note { padding: 15px 0 0 !important; border-top: 1px solid #cdbd9f; border-left: 0 !important; }
    .catalog-page .catalog-ritual-note span { display: inline; margin-right: 8px; font-size: 33px !important; vertical-align: middle; }
    .catalog-page .catalog-ritual-note p { display: inline; }
}

@media (max-width: 700px) {
    .review-carousel-controls { margin-bottom: 10px; }
    .review-carousel-controls > span { font-size: 11px; }
    .tea-reviews-grid { grid-auto-columns: 88%; gap: 13px !important; }
    .catalog-page .unified-product-card .product-card-title { font-size: 25px !important; }
}

/* Private CRM status: compact on desktop and legible in the mobile admin. */
.admin-sync { display: grid; gap: 18px; }
.admin-sync-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid #dae4d7;
    border-radius: 12px;
    background: #f6faf4;
    color: #315a42;
    font-size: 14px;
    font-weight: 800;
}
.admin-sync-status small { color: #68776a; font-weight: 600; }
.admin-sync-status.waiting { border-color: #eadfc7; background: #fffaf0; color: #8a6e3b; }
.admin-sync-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-sync-metrics span {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid #e6dfd3;
    border-radius: 12px;
    background: #fffdf9;
    color: #737a70;
    font-size: 12px;
    line-height: 1.25;
}
.admin-sync-metrics strong { color: #204b33; font-size: 20px; }
.admin-sync-issues { border-top: 1px solid #e8e1d5; color: #68776a; }
.admin-sync-issues summary { padding: 14px 0 3px; color: #365344; cursor: pointer; font-weight: 800; }
.admin-sync-issues ul { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 20px; line-height: 1.45; }
.admin-sync-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-sync-preview { display: grid; gap: 15px; padding: 16px; border: 1px solid #dce8dc; border-radius: 14px; background: #f7fbf6; }
.admin-sync-preview-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-sync-preview-heading h3 { margin: 3px 0 0; color: #204b33; font-size: 20px; }
.admin-sync-preview-heading small { color: #728071; font-size: 12px; text-align: right; }
.admin-section-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.admin-view-switch { display: inline-flex; border: 1px solid #d8dfd4; border-radius: 9px; overflow: hidden; background: #fffdf9; }
.admin-view-switch button { min-height: 38px; padding: 8px 10px; border: 0; border-right: 1px solid #d8dfd4; background: transparent; color: #567060; font: 800 12px/1 'Manrope', sans-serif; cursor: pointer; }
.admin-view-switch button:last-child { border-right: 0; }
.admin-view-switch button.active { background: #204b33; color: #fff; }
.admin-stock-list.admin-stock-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.admin-stock-list.admin-stock-grid .admin-product { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-content: start; padding: 14px; border: 1px solid #e5ddcf; border-radius: 12px; background: #fffdf9; }
.admin-stock-list.admin-stock-grid .admin-product > img { width: 70px; height: 84px; grid-row: span 2; }
.admin-stock-list.admin-stock-grid .admin-product-state { grid-column: 2; margin-top: 9px; }
.admin-stock-list.admin-stock-grid .admin-product-actions { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-top: 12px; }
.admin-stock-list.admin-stock-grid .admin-product-actions .admin-save { justify-self: stretch; margin: 0; }
.admin-hprofit-issues { display: grid; gap: 14px; padding-top: 4px; }
.admin-sync-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.admin-sync-mode { display: grid; gap: 4px; padding: 13px; border: 1px solid #d8dfd4; border-radius: 10px; background: #fffdf9; }
.admin-sync-mode b { color: #204b33; font-size: 14px; }
.admin-sync-mode span { color: #405848; font-size: 13px; font-weight: 800; }
.admin-sync-mode small { color: #68776a; line-height: 1.35; }
.admin-sync-mode.hprofit { border-color: #9fbea5; background: #f4faf3; }
.admin-sync-mode.local { border-color: #d8dfd4; }
.admin-hprofit-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-hprofit-filters button { padding: 8px 10px; border: 1px solid #d8dfd4; border-radius: 999px; background: #fffdf9; color: #567060; font: 800 12px/1 'Manrope', sans-serif; cursor: pointer; }
.admin-hprofit-filters button b { margin-left: 3px; color: #9a6d2f; }
.admin-hprofit-filters button.active { border-color: #204b33; background: #204b33; color: #fff; }
.admin-hprofit-filters button.active b { color: #f2d998; }
.admin-hprofit-search { display: grid; gap: 7px; color: #4b594d; font-size: 12px; font-weight: 800; }
.admin-hprofit-search input { min-height: 42px; padding: 9px 11px; border: 1px solid #d8dfd4; border-radius: 9px; background: #fffdf9; color: #204b33; }
.admin-hprofit-issue-list { display: grid; gap: 9px; max-height: 620px; overflow: auto; padding-right: 4px; }
.admin-hprofit-issue { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 13px; border: 1px solid #e6dfd3; border-radius: 10px; background: #fffdf9; }
.admin-hprofit-issue h4 { margin: 0 0 4px; color: #274b38; font-size: 15px; }
.admin-hprofit-issue p { margin: 0; color: #68776a; font-size: 13px; line-height: 1.45; }
.admin-hprofit-issue .admin-product-category { color: #9a6d2f !important; }
.admin-hprofit-crm { margin-top: 5px !important; color: #315a42 !important; }

/* Telegram is the visual reference; CRM and storefront are compared alongside it. */
.admin-compare, .admin-compare-intro { display: grid; gap: 16px; }
.admin-compare-intro { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.admin-compare-intro h2, .admin-compare h2 { margin: 3px 0 8px; color: #204b33; }
.admin-compare-intro p { max-width: 780px; margin: 0; color: #68776a; line-height: 1.55; }
.admin-compare-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-compare-filters button { padding: 8px 10px; border: 1px solid #d8dfd4; border-radius: 999px; background: #fffdf9; color: #567060; font: 800 12px/1 'Manrope', sans-serif; cursor: pointer; }
.admin-compare-filters button b { margin-left: 3px; color: #9a6d2f; }
.admin-compare-filters button.active { border-color: #204b33; background: #204b33; color: #fff; }
.admin-compare-filters button.active b { color: #f2d998; }
.admin-compare-count { margin: 0; color: #68776a; font-size: 13px; }
.admin-compare-rows { display: grid; gap: 16px; }
.admin-manual-linker { display: grid; gap: 14px; padding: 17px; border: 1px solid #cfdfcf; border-radius: 14px; background: linear-gradient(135deg, #f2f8ef, #fffaf0); }
.admin-manual-linker h3 { margin: 3px 0 6px; color: #204b33; font-size: 20px; }
.admin-manual-linker p { max-width: 790px; margin: 0; color: #68776a; font-size: 13px; line-height: 1.5; }
.admin-manual-linker-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.admin-manual-linker label { display: grid; gap: 6px; color: #496052; font-size: 12px; font-weight: 800; }
.admin-manual-linker input,
.admin-manual-linker select { width: 100%; min-height: 41px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d8dfd4; border-radius: 8px; background: #fffdf9; color: #244935; font: 600 13px/1.3 'Manrope', sans-serif; }
.admin-manual-linker-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.admin-manual-linker-actions > label { flex: 1 1 320px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.admin-manual-linker-actions > label input { grid-column: 1; }
.admin-manual-linker-actions > label .text-button { grid-column: 2; grid-row: 2; min-height: 41px; padding: 0 11px; white-space: nowrap; }
.admin-manual-linker-actions .admin-save { min-height: 41px; white-space: nowrap; }
.admin-manual-link-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.admin-manual-selection { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 9px; align-items: center; min-width: 0; padding: 9px; border: 1px solid #dce6d9; border-radius: 10px; background: rgba(255, 253, 249, .88); }
.admin-manual-selection img,
.admin-manual-selection-empty { width: 52px; height: 58px; border-radius: 7px; object-fit: cover; background: #e6e1d5; }
.admin-manual-selection-empty { display: grid; place-items: center; padding: 5px; box-sizing: border-box; color: #7b7b70; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.admin-manual-selection small { display: block; margin-bottom: 3px; color: #90733e; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.admin-manual-selection strong { display: block; overflow: hidden; color: #244935; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.admin-manual-selection p { display: -webkit-box; margin-top: 3px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #68776a; font-size: 11px; line-height: 1.35; }
.admin-compare-row { overflow: hidden; border: 1px solid #e2dacd; border-radius: 14px; background: #fffdf9; }
.admin-compare-row[hidden] { display: none; }
.admin-compare-status { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-bottom: 1px solid #e9e2d7; background: #faf7f0; }
.admin-compare-status > span { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; background: #f5e6c4; color: #725b32; font-size: 11px; font-weight: 800; }
.admin-compare-status > span.ok { background: #dcebdc; color: #315a42; }
.admin-compare-status > p { flex: 1; margin: 0; color: #68776a; font-size: 12px; line-height: 1.4; }
.admin-compare-status .text-button { flex: 0 0 auto; font-size: 12px; }
.admin-compare-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-compare-source { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 14px; border-right: 1px solid #e9e2d7; }
.admin-compare-source:last-child { border-right: 0; }
.admin-compare-source.telegram { background: #fffdf9; }
.admin-compare-source.crm { background: #f7fbf6; }
.admin-compare-source.site { background: #fbf8f1; }
.admin-compare-photo { display: block; width: 104px; height: 126px; border-radius: 9px; background: #e8e1d5; object-fit: cover; }
.admin-compare-photo-empty { display: grid; place-content: center; gap: 5px; padding: 10px; border: 1px dashed #cfc3b1; color: #7a766d; text-align: center; }
.admin-compare-photo-empty span { color: #527060; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.admin-compare-photo-empty small { font-size: 11px; }
.admin-compare-copy { min-width: 0; }
.admin-compare-source-title { margin: 0 0 6px; color: #927543; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.admin-compare-copy h3 { margin: 0 0 6px; color: #244935; font-size: 16px; line-height: 1.15; }
.admin-compare-meta, .admin-compare-reason, .admin-compare-variants, .admin-compare-alternatives { margin: 0 0 7px; color: #68776a; font-size: 12px; line-height: 1.42; }
.admin-compare-reason { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.admin-compare-variants { color: #315a42; }
.admin-compare-alternatives { color: #82693e; }
.admin-compare-state { display: inline-block; margin: 0 0 9px; color: #825f35; font-size: 11px; font-weight: 800; }
.admin-compare-state.ok { color: #34704a; }
.admin-compare-state.warn { color: #9a6d2f; }
.admin-compare-source .text-button { padding: 0; font-size: 12px; }
.admin-compare-empty { grid-column: span 2; display: grid; align-content: center; min-height: 126px; }
.admin-compare-empty strong { color: #725b32; font-size: 14px; }
.admin-compare-empty p { margin: 6px 0 0; color: #68776a; font-size: 12px; line-height: 1.45; }
.admin-compare-site-actions { display: grid; gap: 7px; justify-items: start; }
.admin-compare-link { display: grid; gap: 13px; padding: 13px 14px 15px; border-top: 1px solid #e9e2d7; background: #f9f6ef; }
.admin-compare-link summary { color: #315a42; cursor: pointer; font-size: 13px; font-weight: 900; }
.admin-compare-link > p { max-width: 840px; margin: 0; color: #68776a; font-size: 12px; line-height: 1.45; }
.admin-compare-link-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; }
.admin-compare-link label { display: grid; gap: 6px; color: #496052; font-size: 12px; font-weight: 800; }
.admin-compare-link input,
.admin-compare-link select { width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d8dfd4; border-radius: 8px; background: #fffdf9; color: #244935; font: 600 13px/1.3 'Manrope', sans-serif; }
.admin-compare-link-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.admin-compare-link-actions > label { flex: 1 1 310px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.admin-compare-link-actions > label input { grid-column: 1; }
.admin-compare-link-actions > label .text-button { grid-column: 2; grid-row: 2; min-height: 40px; padding: 0 11px; white-space: nowrap; }
.admin-compare-link-actions .admin-save { min-height: 40px; white-space: nowrap; }

@media (max-width: 720px) {
    .admin-tabs { overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
    .admin-tabs button { flex: 0 0 auto; }
    .admin-sync-status { align-items: flex-start; flex-direction: column; }
    .admin-sync-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-sync-modes { grid-template-columns: 1fr; }
    .admin-sync-preview-heading { display: grid; }
    .admin-sync-preview-heading small { text-align: left; }
    .admin-section-heading { align-items: flex-start; gap: 13px; flex-direction: column; }
    .admin-section-controls { justify-content: flex-start; }
    .admin-hprofit-issue { align-items: stretch; flex-direction: column; }
    .admin-hprofit-issue .text-button { align-self: flex-start; }
    .admin-compare-intro { grid-template-columns: 1fr; align-items: start; }
    .admin-compare-intro .admin-save { justify-self: start; }
    .admin-compare-status { align-items: flex-start; flex-direction: column; }
    .admin-compare-sources { grid-template-columns: 1fr; }
    .admin-compare-source { border-right: 0; border-bottom: 1px solid #e9e2d7; }
    .admin-compare-source:last-child { border-bottom: 0; }
    .admin-manual-linker-fields,
    .admin-manual-link-preview { grid-template-columns: 1fr; }
    .admin-manual-linker-actions { align-items: stretch; }
    .admin-manual-linker-actions > label { grid-template-columns: 1fr; }
    .admin-manual-linker-actions > label .text-button { grid-column: auto; grid-row: auto; justify-self: start; }
    .admin-compare-link-fields { grid-template-columns: 1fr; }
    .admin-compare-link-actions { align-items: stretch; }
    .admin-compare-link-actions > label { grid-template-columns: 1fr; }
    .admin-compare-link-actions > label .text-button { grid-column: auto; grid-row: auto; justify-self: start; }
}

@media (max-width: 1080px) and (min-width: 721px) {
    .admin-compare-source { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .admin-compare-photo { width: 78px; height: 104px; }
    .admin-compare-copy h3 { font-size: 14px; }
    .admin-compare-reason { -webkit-line-clamp: 3; }
}

/* ==========================
   NEWS
========================== */
.news-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 100px; }
.news-hero { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.news-hero .eyebrow { margin: 0 0 14px; color: #8b7445; }
.news-hero h1 { margin: 0; color: #204b33; font-family: 'Cormorant Garamond', serif; font-size: clamp(54px, 7vw, 84px); font-weight: 600; line-height: .9; }
.news-hero > p:last-child { max-width: 540px; margin: 22px auto 0; color: #677268; font-size: 18px; line-height: 1.65; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.news-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 220px; overflow: hidden; border: 1px solid rgba(50, 87, 58, .13); border-radius: 22px; background: rgba(255, 253, 249, .82); box-shadow: 0 18px 42px rgba(49, 63, 43, .07); }
.news-card-featured { grid-column: span 2; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); min-height: 265px; }
.news-card-media { min-height: 100%; background: #dae4d4; }
.news-card-media img,
.news-card-media video { width: 100%; height: 100%; object-fit: cover; }
.news-card-ornament { display: grid; place-items: center; min-height: 100%; padding: 16px; background: linear-gradient(150deg, #2f6243, #1b4430); color: #ead18c; font-size: 40px; }
.news-card-featured .news-card-ornament { font-size: 76px; background: radial-gradient(circle at 25% 25%, rgba(243, 217, 148, .28), transparent 30%), linear-gradient(135deg, #20513a, #122f23); }
.news-card-content { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.news-card-date { margin: 0 0 10px; color: #9a7d42; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.news-card h2 { margin: 0; color: #214d35; font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3vw, 39px); font-weight: 600; line-height: .98; }
.news-card:not(.news-card-featured) h2 { font-size: 29px; }
.news-card-body { margin: 14px 0 0; color: #606d61; font-size: 14px; line-height: 1.62; white-space: pre-line; }
.news-loading, .news-empty { grid-column: 1 / -1; padding: 46px 24px; border: 1px dashed #b9c5b5; border-radius: 18px; color: #667366; text-align: center; }
.news-telegram-callout { position: relative; overflow: hidden; margin-top: 48px; padding: 48px min(8vw, 86px); border-radius: 26px; background: #1f4c35; color: #fffaf1; text-align: center; }
.news-telegram-callout::before { position: absolute; inset: -100px auto auto -40px; width: 260px; height: 260px; border: 1px solid rgba(243, 216, 142, .22); border-radius: 50%; content: ''; }
.news-telegram-callout .eyebrow { position: relative; margin: 0 0 14px; color: #ead18c; }
.news-telegram-callout h2 { position: relative; margin: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(38px, 5vw, 56px); font-weight: 600; line-height: .95; }
.news-telegram-callout p:not(.eyebrow) { position: relative; max-width: 620px; margin: 18px auto 27px; color: rgba(255, 250, 241, .82); font-size: 16px; line-height: 1.65; }
.news-telegram-button { position: relative; display: inline-flex; align-items: center; gap: 24px; padding: 14px 21px; border-radius: 999px; background: #efd795; color: #214d35; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.news-telegram-button:hover { background: #f7e4ae; transform: translateY(-2px); }
@media (max-width: 720px) {
    .news-main { width: min(100% - 30px, 600px); padding: 46px 0 70px; }
    .news-hero { margin-bottom: 30px; }
    .news-hero > p:last-child { font-size: 16px; }
    .news-list, .news-card-featured { grid-template-columns: 1fr; }
    .news-card, .news-card-featured { grid-column: auto; min-height: 0; }
    .news-card-ornament, .news-card-featured .news-card-ornament { min-height: 104px; font-size: 40px; }
    .news-card-media { min-height: 205px; }
    .news-card-content { padding: 23px 20px 25px; }
    .news-telegram-callout { margin-top: 30px; padding: 39px 22px; border-radius: 20px; }
}

/* iPhone Safari: use the dynamic viewport and the device safe areas only for
   fixed purchase flows. This keeps the established visual design while the
   browser toolbars expand and collapse. */
html,
body { min-height: 100%; min-height: -webkit-fill-available; }

.cart,
.checkout-overlay,
.cart-items,
.checkout-modal { -webkit-overflow-scrolling: touch; }

.cart-items,
.checkout-overlay,
.checkout-modal { overscroll-behavior: contain; }

.cart-items,
.checkout-overlay { touch-action: pan-y; }

.product-card-title,
.product-card-title a,
.cart-item-info h3,
.checkout-item strong { overflow-wrap: anywhere; }

.price-row,
.checkout-item,
.cart-total,
.checkout-total { min-width: 0; }

.price-row > *,
.checkout-item > *,
.cart-total > *,
.checkout-total > * { min-width: 0; }

.product-card-price,
.price-row span,
.cart-total strong,
.checkout-total strong { flex: 0 1 auto; overflow-wrap: anywhere; }

@supports (height: 100dvh) {
    .cart { height: 100dvh; max-height: 100dvh; }
    .checkout-overlay { min-height: 100dvh; height: 100dvh; }
    .checkout-modal { max-height: calc(100dvh - 60px); }
}

@media (max-width: 767px) {
    .cart { width: min(100%, 460px); max-width: 100vw; border-radius: 0; }
    .cart-header { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
    .cart-footer { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
    .cart-items { padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }

    .checkout-overlay {
        display: block;
        overflow-y: auto;
        padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
    }
    .checkout-modal { max-height: none; margin: 0 auto; }
    .checkout-header { padding: 18px 20px; }
    .checkout-content,
    .checkout-body { padding: 20px; }
    .checkout-item { align-items: flex-start; gap: 10px; }
    .checkout-item div { flex: 1 1 auto; }
    .checkout-item > span,
    .checkout-item > strong { flex: 0 0 auto; text-align: right; }

    .price-row { align-items: flex-start; gap: 10px; }
    .price-row span,
    .catalog-page .price-row span { font-size: clamp(20px, 6vw, 24px); line-height: 1.1; }
    .product-card-title { min-width: 0; }
}
