/* =====================================================================
   Herbal theme — dark green header, cream navigation and the home page
   (hero, benefit cards, deal of the day, gift banner, best sellers).
   Loaded after ui.css and only overrides/extends it.
   ===================================================================== */

:root {
    --yh-green: #1f4a2c;
    --yh-green-2: #2c6a3d;
    --yh-green-deep: #143220;
    --yh-gold: #f5b83d;
    --yh-gold-2: #f8cf6a;
    --yh-wine: #8c1f33;
    --yh-wine-2: #a8324a;
    --yh-cream: #f8f2e4;
    --yh-paper: #fbf6ea;
    --yh-brown: #6d4220;
}

/* warm cream page in light mode */
:root:not([data-theme="dark"]) {
    --yp-bg: #f6f0e3;
    --yp-surface-2: #faf5ea;
    --yp-line: #eadfca;
}

/* ---------- Header ---------- */

.yp-header {
    background:
        radial-gradient(ellipse at 85% -40%, rgba(255, 255, 255, .10), transparent 55%),
        linear-gradient(180deg, var(--yh-green) 0%, var(--yh-green-deep) 100%);
    color: #fff;
}

:root[data-theme="dark"] .yp-header { background: linear-gradient(180deg, #17301f 0%, #0d1d13 100%); }

.yp-header__bar .yp-icon-btn,
.yp-header__actions .yp-icon-btn { color: #fff; }
.yp-header__bar .yp-icon-btn:hover,
.yp-header__bar .yp-icon-btn:focus-visible { background: rgba(255, 255, 255, .12); }

.yp-header .yp-logo { color: #fff; }
.yp-header .yp-logo__text b { color: #fff; font-size: 1.35rem; letter-spacing: -.3px; }
.yp-header .yp-logo__text small { color: rgba(255, 255, 255, .78); font-size: .78rem; }

.yp-header .yp-account { border: 0; color: #fff; }
.yp-header .yp-account:hover { color: var(--yh-gold-2); background: rgba(255, 255, 255, .08); }
.yp-header .yp-account svg { width: 24px; height: 24px; }

.yp-header .yp-badge { background: #e53e3e; box-shadow: 0 0 0 2px var(--yh-green); }

.yp-header .search-form,
:root[data-theme="dark"] .yp-header .search-form {
    height: 48px;
    border-radius: 14px;
    background: #fff;
    border-color: transparent;
}
.yp-header .search-form .input_search { color: #1d2b22; }
.yp-header .search-form .input_search::placeholder { color: #7a857c; }
.yp-header .search-form button { color: #1d2b22; }
.yp-header .search-form:focus-within { box-shadow: 0 0 0 4px rgba(245, 184, 61, .45); border-color: var(--yh-gold); }

@media (min-width: 992px) {
    .yp-header__bar { padding-block: 16px; grid-template-columns: auto minmax(0, 620px) 1fr; }
    .yp-header__search { justify-self: center; width: 100%; }
}

/* cream navigation strip */
.yp-nav {
    border-top: 0;
    background: var(--yh-cream);
    box-shadow: inset 0 -1px 0 #eadfca;
    color: #1d2b22;
}
:root[data-theme="dark"] .yp-nav { background: #121a14; box-shadow: inset 0 -1px 0 #26352c; }

.yp-nav__list { justify-content: space-between; gap: 0; }
.yp-nav__list > li + li > a:not(.yp-nav__hot),
.yp-nav__list > li + li > .yp-nav__toggle:not(.yp-nav__hot) {
    border-inline-start: 1px solid transparent;
}
.yp-nav__list > li + li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: #ddd0b4;
}
:root[data-theme="dark"] .yp-nav__list > li + li::before { background: #2a3a30; }

.yp-nav__list > li > a,
.yp-nav__toggle { color: #1f3a27; font-weight: 700; gap: 8px; }
:root[data-theme="dark"] .yp-nav__list > li > a,
:root[data-theme="dark"] .yp-nav__toggle { color: var(--yp-text); }

.yp-nav svg.yp-nav__ico { width: 22px; height: 22px; opacity: 1; color: var(--yh-green-2); flex: none; }
:root[data-theme="dark"] .yp-nav svg.yp-nav__ico { color: #7cc48f; }

/* highlighted item = wine pill (as in the seasonal offers button) */
.yp-nav__list > li > a.yp-nav__hot,
.yp-nav__list > li > .yp-nav__hot,
.yp-nav__list > li > a.yp-nav__hot:hover {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--yh-wine), var(--yh-wine-2));
    box-shadow: 0 8px 18px -10px var(--yh-wine);
}
.yp-nav__hot svg.yp-nav__ico { color: var(--yh-gold-2); }
.yp-nav__list > li:has(> .yp-nav__hot)::before { display: none; }

/* ---------- Home ---------- */

.yp-home--herbal { padding-top: 16px; }

.yp-home--herbal h2, .yp-home--herbal h3 { font-family: inherit; }

/* Hero */
.yp-hh { position: relative; }

.yp-hh__frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 20px 40px -24px rgba(20, 50, 30, .6);
}

.yp-hh__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.yp-hh__track::-webkit-scrollbar { display: none; }

.yp-hh__slide {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "media" "text";
    scroll-snap-align: start;
    overflow: hidden;
    color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2'%3E%3Cpath d='M20 140c10-40 40-70 80-80-10 40-40 70-80 80zM20 140l50-50'/%3E%3Cpath d='M110 50c5-20 20-35 40-40-5 20-20 35-40 40z'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(ellipse at 70% 40%, #2e6b3d 0%, transparent 60%),
        linear-gradient(135deg, #1a4227 0%, #245733 50%, #173a23 100%);
}

.yp-hh__media { grid-area: media; position: relative; min-height: 200px; }
.yp-hh__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 35%);
    mask-image: linear-gradient(to top, transparent 0, #000 35%);
}
.yp-hh__media img[src$=".svg"] { object-fit: contain; padding: 16px; }

.yp-hh__text { grid-area: text; position: relative; padding: 4px 20px 56px; text-align: center; }

.yp-hh__text h2 {
    display: flex;
    flex-direction: column;
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.45;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.yp-hh__gold { color: var(--yh-gold-2); }

.yp-hh__text p { margin: 0 auto 18px; max-width: 46ch; color: rgba(255, 255, 255, .9); font-size: .9rem; line-height: 1.9; }

.yp-hh__cta, .yp-gift__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--yh-gold-2), var(--yh-gold));
    color: #2a1d05 !important;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6), inset 0 -2px 0 rgba(0, 0, 0, .12);
    transition: transform .2s var(--yp-ease), filter .2s;
}
.yp-hh__cta:hover, .yp-gift:hover .yp-gift__cta { transform: translateY(-2px); filter: brightness(1.05); }
.yp-hh__cta svg, .yp-gift__cta svg { width: 18px; height: 18px; }

.yp-hh__side { display: none; }

.yp-hh__ribbon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px 40px 999px 40px;
    background: linear-gradient(135deg, var(--yh-wine-2), var(--yh-wine));
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.5;
    transform: rotate(-7deg);
    box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .7);
}
.yp-hh__ribbon svg { width: 34px; height: 34px; color: var(--yh-gold-2); flex: none; }

.yp-hh__note {
    margin: 0;
    padding: 18px 22px;
    list-style: none;
    border-radius: 6px;
    background: var(--yh-paper);
    color: #2b2216;
    font-size: .92rem;
    font-weight: 700;
    transform: rotate(-4deg);
    box-shadow: 0 16px 28px -16px rgba(0, 0, 0, .75);
}
.yp-hh__note li { display: flex; align-items: center; gap: 8px; padding-block: 3px; }
.yp-hh__note svg { width: 18px; height: 18px; color: var(--yh-wine); flex: none; }

.yp-hh__dots {
    position: absolute;
    bottom: 14px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.yp-hh__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .5); transition: width .25s; }
.yp-hh__dots button.is-active { width: 24px; background: var(--yh-gold-2); }

@media (min-width: 768px) {
    .yp-hh__slide {
        grid-template-columns: 1.15fr 1fr;
        grid-template-areas: "text media";
        min-height: 330px;
    }
    .yp-hh__media { min-height: 0; }
    .yp-hh__media img {
        -webkit-mask-image: linear-gradient(to left, transparent 0, #000 30%);
        mask-image: linear-gradient(to left, transparent 0, #000 30%);
    }
    .yp-hh__text { align-self: center; padding: 32px 36px 72px; }
    .yp-hh__dots { bottom: 56px; }
    .yp-hh__text h2 { font-size: 2rem; }
}

@media (min-width: 1100px) {
    .yp-hh__slide {
        grid-template-columns: 250px 1.25fr 1fr;
        grid-template-areas: "side text media";
        min-height: 400px;
    }
    .yp-hh__side {
        grid-area: side;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 24px 26px 72px 0;
    }
    .yp-hh__text h2 { font-size: 2.5rem; line-height: 1.4; }
    .yp-hh__text p { font-size: 1.02rem; }
}

/* Benefit cards (overlap the bottom of the hero) */
.yp-benefits {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: -34px 12px 0;
}

.yp-benefit {
    --tone: #2f7a3b;
    --tone-bg: #edf5e4;
    --tone-line: #cfe3bd;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid var(--tone-line);
    border-radius: 18px;
    background: var(--tone-bg);
    color: #22302a;
    text-decoration: none;
    box-shadow: 0 12px 24px -18px rgba(0, 0, 0, .5);
    transition: transform .25s var(--yp-ease), box-shadow .25s;
}
.yp-benefit:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5); color: #22302a; }
.yp-benefit b { font-size: .88rem; font-weight: 800; line-height: 1.6; }

.yp-benefit__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--tone);
    color: #fff;
    box-shadow: 0 0 0 4px #fff, 0 8px 16px -8px var(--tone);
}
.yp-benefit__icon svg { width: 26px; height: 26px; }

.yp-benefit--rose { --tone: #b24a5a; --tone-bg: #fbe8e7; --tone-line: #f1c9c9; }
.yp-benefit--amber { --tone: #c88a1e; --tone-bg: #fcf0d9; --tone-line: #f0d8a6; }
.yp-benefit--violet { --tone: #7b58bd; --tone-bg: #eee8f8; --tone-line: #d8ccef; }

:root[data-theme="dark"] .yp-benefit { --tone-bg: color-mix(in srgb, var(--tone) 18%, #141c17); --tone-line: color-mix(in srgb, var(--tone) 40%, #141c17); color: var(--yp-text); }
:root[data-theme="dark"] .yp-benefit__icon { box-shadow: 0 0 0 4px #141c17; }

@media (min-width: 768px) {
    .yp-benefits { grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -42px 7% 0; }
    .yp-benefit { padding: 14px 18px; }
    .yp-benefit b { font-size: 1rem; }
    .yp-benefit__icon { width: 56px; height: 56px; }
    .yp-benefit__icon svg { width: 30px; height: 30px; }
}

/* ---------- Showcase: deal, gift banner, trust list, best sellers ---------- */

.yp-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "deal" "gift" "best" "trust";
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 992px) {
    .yp-showcase {
        /* deal is wider than the trust list: row 1 = gift | deal, row 2 = best sellers | trust */
        grid-template-columns: minmax(0, 1fr) 100px 260px;
        grid-template-areas: "gift deal deal" "best best trust";
        gap: 20px;
    }
    .yp-showcase:not(:has(.yp-deal)) { grid-template-areas: "gift gift gift" "best best trust"; }
}

/* Deal of the day */
.yp-deal {
    grid-area: deal;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
    border: 2px solid #ecc9c9;
    border-radius: 20px;
    background:
        radial-gradient(circle at 0 100%, rgba(140, 31, 51, .06), transparent 50%),
        #fffaf4;
}
:root[data-theme="dark"] .yp-deal { background: #1a1416; border-color: #4a2630; }

.yp-deal__head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--yh-wine); font-size: 1.25rem; font-weight: 900; }
.yp-deal__head svg { width: 28px; height: 28px; color: var(--yh-gold); }
:root[data-theme="dark"] .yp-deal__head { color: #f19aab; }

.yp-deal__body { display: grid; grid-template-columns: 1fr 44%; gap: 12px; align-items: center; flex: 1; }

.yp-deal__info h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 800; line-height: 1.7; }
.yp-deal__info h3 a { color: var(--yp-text); text-decoration: none; }

.yp-deal__prices { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.yp-deal__prices > div { display: flex; flex-direction: column; }
.yp-deal__prices del { color: var(--yp-muted); font-size: .85rem; }
.yp-deal__prices strong { color: var(--yh-wine); font-size: 1.25rem; font-weight: 900; white-space: nowrap; }
.yp-deal__prices strong small { font-size: .75rem; }
:root[data-theme="dark"] .yp-deal__prices strong { color: #f19aab; }

.yp-deal__off {
    display: grid;
    place-items: center;
    flex: none;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--yh-wine-2), var(--yh-wine));
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e7b8bf;
}
.yp-deal__off small { display: block; font-size: .68rem; font-weight: 700; }

.yp-deal__left { margin: 0 0 6px; color: var(--yp-muted); font-size: .85rem; font-weight: 700; }

.yp-countdown { display: inline-flex; align-items: center; gap: 4px; }
.yp-countdown b {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 32px;
    border: 1.5px solid #e2b8bd;
    border-radius: 8px;
    background: #fff;
    color: var(--yh-wine);
    font-size: 1rem;
    font-weight: 900;
}
.yp-countdown i { color: var(--yh-wine); font-style: normal; font-weight: 900; }
:root[data-theme="dark"] .yp-countdown b { background: #241a1d; border-color: #4a2630; color: #f19aab; }

.yp-deal__img { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; }
.yp-deal__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--yp-ease); }
.yp-deal:hover .yp-deal__img img { transform: scale(1.05); }

.yp-deal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--yh-wine-2), var(--yh-wine));
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 22px -14px var(--yh-wine);
    transition: filter .2s, transform .2s;
}
.yp-deal__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.yp-deal__btn svg { width: 22px; height: 22px; }

/* Gift banner */
.yp-gift {
    grid-area: gift;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 230px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(255, 220, 160, .22), transparent 55%),
        linear-gradient(135deg, #5a3417 0%, #8a5a2c 55%, #b07a43 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 20px 36px -24px rgba(60, 30, 10, .8);
}
.yp-gift:hover { color: #fff; }

.yp-gift img {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 62%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 35%);
    mask-image: linear-gradient(to left, transparent 0, #000 35%);
    transition: transform .5s var(--yp-ease);
}
.yp-gift img[src$=".svg"] { object-fit: cover; }
.yp-gift:hover img { transform: scale(1.04); }

.yp-gift__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    padding: 24px 20px;
    text-align: center;
}
.yp-gift__text h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: #fff; font-size: 1.6rem; font-weight: 900; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.yp-gift__text h2 svg { width: 36px; height: 36px; }
.yp-gift__text p { margin: 0 0 18px; color: rgba(255, 255, 255, .92); line-height: 1.9; font-size: .98rem; }
.yp-gift__cta { min-height: 40px; padding: 0 20px; font-size: .88rem; }

@media (max-width: 575.98px) {
    .yp-gift img { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; }
    .yp-gift__text { width: 100%; }
}

/* Trust list */
.yp-trust { grid-area: trust; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; align-content: start; }
.yp-trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line);
}
.yp-trust svg { width: 34px; height: 34px; flex: none; color: var(--yh-green-2); }
:root[data-theme="dark"] .yp-trust svg { color: #7cc48f; }
.yp-trust div { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.yp-trust b { font-size: .88rem; font-weight: 800; color: var(--yp-text); }
.yp-trust span { font-size: .78rem; color: var(--yp-muted); }

@media (min-width: 992px) {
    .yp-trust { grid-template-columns: 1fr; gap: 12px; margin-top: 58px; }
    .yp-trust li { padding: 14px 16px; }
}

/* Best sellers */
.yp-best { grid-area: best; min-width: 0; }

.yp-best__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.yp-best__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--yh-green); font-size: 1.5rem; font-weight: 900; white-space: nowrap; }
:root[data-theme="dark"] .yp-best__head h2 { color: #9fd9ad; }
.yp-best__head h2 svg { width: 32px; height: 32px; color: var(--yh-green-2); }
.yp-best__head::after { content: ""; order: 1; flex: 1; height: 10px; border-radius: 99px; background: var(--yp-line); }
.yp-best__head .yp-more { order: 2; }

.yp-best__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.yp-best__grid::-webkit-scrollbar { display: none; }
.yp-best__grid > * { scroll-snap-align: start; }

@media (min-width: 576px) { .yp-best__grid { grid-auto-columns: 31%; } }
@media (min-width: 992px) {
    .yp-best__grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 1200px) { .yp-best__grid { grid-template-columns: repeat(6, 1fr); gap: 10px; } .yp-hcard__price strong { font-size: .9rem; } }

/* Herbal product card */
.yp-hcard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 8px 8px 12px;
    border-radius: 16px;
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line), 0 10px 22px -20px rgba(40, 30, 10, .6);
    transition: transform .25s var(--yp-ease), box-shadow .25s;
}
@media (hover: hover) {
    .yp-hcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--yp-line), 0 18px 30px -18px rgba(40, 30, 10, .55); }
}

.yp-hcard__img { display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; overflow: hidden; border-radius: 12px; background: var(--yp-surface-2); }
.yp-hcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--yp-ease); }
.yp-hcard:hover .yp-hcard__img img { transform: scale(1.06); }

.yp-hcard__title { margin: 0 4px 10px; font-size: .92rem; font-weight: 800; line-height: 1.7; text-align: center; min-height: 3.4em; }
.yp-hcard__title a { color: var(--yp-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.yp-hcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-inline: 4px; }
.yp-hcard__foot form { margin: 0; }
.yp-hcard__price { display: flex; flex-direction: column; line-height: 1.4; }
.yp-hcard__price del { color: var(--yp-muted); font-size: .75rem; }
.yp-hcard__price strong { color: var(--yh-wine); font-size: .98rem; font-weight: 900; white-space: nowrap; }
.yp-hcard__price strong small { font-size: .7rem; font-weight: 700; }
:root[data-theme="dark"] .yp-hcard__price strong { color: #f19aab; }
.yp-hcard__na { color: var(--yp-muted); font-size: .85rem; font-weight: 700; }

.yp-hcard__cart {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f7e2b0;
    color: #8a5a12;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}
.yp-hcard__cart:hover { background: var(--yh-gold); color: #2a1d05; transform: scale(1.06); }
.yp-hcard__cart svg { width: 22px; height: 22px; }
:root[data-theme="dark"] .yp-hcard__cart { background: #3a2c12; color: var(--yh-gold-2); }

/* older home sections pick up the herbal accents */
.yp-home--herbal .yp-section__head h2::before { background: var(--yh-gold); }
.yp-home--herbal .yp-offer { background: linear-gradient(135deg, var(--yh-wine), var(--yh-wine-2)); }

/* =====================================================================
   Theme polish — richer light theme, glowing boxes in dark theme
   ===================================================================== */

/* ---------- Light ---------- */

:root:not([data-theme="dark"]) body {
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245, 184, 61, .10), transparent 70%),
        radial-gradient(ellipse 50% 35% at 0% 30%, rgba(47, 122, 59, .08), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%237a5a2a' stroke-opacity='.05' stroke-width='1.6'%3E%3Cpath d='M30 190c12-48 48-84 96-96-12 48-48 84-96 96zM30 190l60-60'/%3E%3Cpath d='M150 70c6-24 24-42 48-48-6 24-24 42-48 48z'/%3E%3C/g%3E%3C/svg%3E"),
        #f6f0e3 !important;
    background-attachment: fixed !important;
}

/* gold hairline on top of the green bar */
.yp-header::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--yh-gold) 30%, var(--yh-gold-2) 50%, var(--yh-gold) 70%, transparent);
    opacity: .85;
    pointer-events: none;
}

/* menu items get a soft pill on hover */
.yp-nav__list > li > a:not(.yp-nav__hot):hover,
.yp-nav__toggle:not(.yp-nav__hot):hover { background: rgba(47, 122, 59, .07); color: var(--yh-green-2); }

/* hero: fine gold frame and inner light */
.yp-hh__frame { box-shadow: 0 0 0 1px rgba(245, 184, 61, .35), 0 28px 50px -28px rgba(20, 50, 30, .75); }
.yp-hh__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -80px 80px -60px rgba(0, 0, 0, .35);
}
.yp-hh__gold { background: linear-gradient(180deg, #ffe08a, var(--yh-gold)); -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3)); }

/* shine sweep on the main buttons */
.yp-hh__cta, .yp-gift__cta, .yp-deal__btn { position: relative; overflow: hidden; }
.yp-hh__cta::after, .yp-gift__cta::after, .yp-deal__btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--yp-ease);
}
.yp-hh__cta:hover::after, .yp-gift:hover .yp-gift__cta::after, .yp-deal__btn:hover::after { left: 130%; }

/* benefit cards: soft gradient, top highlight, glossy icon */
.yp-benefit {
    background: linear-gradient(160deg, #fff 0%, var(--tone-bg) 55%);
    box-shadow: inset 0 1px 0 #fff, 0 14px 28px -18px color-mix(in srgb, var(--tone) 70%, transparent);
}
.yp-benefit:hover { border-color: color-mix(in srgb, var(--tone) 55%, #fff); box-shadow: inset 0 1px 0 #fff, 0 20px 34px -18px color-mix(in srgb, var(--tone) 80%, transparent); }
.yp-benefit__icon { background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tone) 60%, #fff), var(--tone) 70%); }

/* deal: paper-like card, pulsing discount badge */
.yp-deal {
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 184, 61, .14), transparent 45%),
        radial-gradient(circle at 0 100%, rgba(140, 31, 51, .08), transparent 50%),
        linear-gradient(180deg, #fffdf8, #fff6ee);
    box-shadow: 0 18px 36px -26px rgba(140, 31, 51, .55);
}
.yp-deal__off { animation: yh-pulse 2.6s ease-in-out infinite; }
@keyframes yh-pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e7b8bf, 0 0 22px rgba(168, 50, 74, .45); } }
.yp-countdown b { background: linear-gradient(180deg, #fff, #fdf1ef); box-shadow: 0 4px 8px -6px rgba(140, 31, 51, .6); }

/* gift banner: warm inner edge */
.yp-gift { box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .25), 0 22px 40px -24px rgba(60, 30, 10, .85); }

/* trust list + product cards: white, warm edge, lift on hover */
.yp-trust li,
.yp-hcard,
.yp-home--herbal .yp-card {
    background: linear-gradient(180deg, #fff 0%, #fffcf6 100%);
    box-shadow: 0 0 0 1px #efe4cd, 0 12px 26px -22px rgba(90, 60, 20, .55);
}
.yp-trust li { transition: transform .25s var(--yp-ease), box-shadow .25s; }
.yp-trust li:hover { transform: translateX(-4px); box-shadow: 0 0 0 1px #e4cf9f, 0 14px 28px -20px rgba(90, 60, 20, .6); }
.yp-trust svg { padding: 7px; width: 46px; height: 46px; border-radius: 12px; background: #eef5e6; }
@media (hover: hover) {
    .yp-hcard:hover,
    .yp-home--herbal .yp-card:hover { box-shadow: 0 0 0 1.5px var(--yh-gold), 0 22px 34px -20px rgba(140, 95, 20, .55); }
}

.yp-best__head::after { height: 6px; background: linear-gradient(90deg, transparent, #e7d6b2 40%, #d9e8cc); }
.yp-best__head h2 svg { filter: drop-shadow(0 4px 6px rgba(47, 122, 59, .35)); }

/* ---------- Dark: deep forest page, boxes that clearly stand out ---------- */

:root[data-theme="dark"] {
    --yp-bg: #0a110d;
    --yp-surface: #16211b;
    --yp-surface-2: #1d2a22;
    --yp-line: #2b3c31;
    --yp-card-bg: linear-gradient(180deg, #1c2a22 0%, #141e18 100%);
    --yp-card-edge: rgba(150, 230, 175, .22);
    --yp-card-edge-hover: #f5b83d;
    --yp-card-shine: inset 0 1px 0 rgba(255, 255, 255, .09);
    --yh-box: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(124, 196, 143, .10), transparent 70%), linear-gradient(180deg, #23352a 0%, #17241d 100%);
    --yh-box-shadow: 0 0 0 1px rgba(150, 230, 175, .34), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 22px -12px rgba(124, 196, 143, .45), 0 22px 44px -24px #000;
    --yh-glow-gold: 0 0 0 1.5px rgba(245, 184, 61, .85), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 30px -6px rgba(245, 184, 61, .45);
}

:root[data-theme="dark"] body {
    background:
        radial-gradient(ellipse 55% 40% at 100% 0%, rgba(46, 107, 61, .28), transparent 70%),
        radial-gradient(ellipse 45% 35% at 0% 40%, rgba(245, 184, 61, .07), transparent 70%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(140, 31, 51, .12), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23bfe8c9' stroke-opacity='.035' stroke-width='1.6'%3E%3Cpath d='M30 190c12-48 48-84 96-96-12 48-48 84-96 96zM30 190l60-60'/%3E%3Cpath d='M150 70c6-24 24-42 48-48-6 24-24 42-48 48z'/%3E%3C/g%3E%3C/svg%3E"),
        #0a110d !important;
    background-attachment: fixed !important;
}

:root[data-theme="dark"] .yp-header { box-shadow: 0 10px 30px -14px #000; }
:root[data-theme="dark"] .yp-nav { background: rgba(16, 25, 19, .96); box-shadow: inset 0 -1px 0 rgba(150, 230, 175, .14); }
:root[data-theme="dark"] .yp-nav__list > li > a:not(.yp-nav__hot):hover,
:root[data-theme="dark"] .yp-nav__toggle:not(.yp-nav__hot):hover { background: rgba(124, 196, 143, .1); color: #c9f0d3; }

/* hero: glowing frame */
:root[data-theme="dark"] .yp-hh__frame { box-shadow: 0 0 0 1px rgba(245, 184, 61, .4), 0 0 50px -14px rgba(46, 140, 75, .55), 0 30px 60px -30px #000; }

/* every box: lifted surface, bright edge, deep shadow */
:root[data-theme="dark"] .yp-trust li,
:root[data-theme="dark"] .yp-hcard,
:root[data-theme="dark"] .yp-home--herbal .yp-card,
:root[data-theme="dark"] .yp-post,
:root[data-theme="dark"] .yp-feature,
:root[data-theme="dark"] .yp-panel {
    background: var(--yh-box);
    box-shadow: var(--yh-box-shadow);
}
@media (hover: hover) {
    :root[data-theme="dark"] .yp-hcard:hover,
    :root[data-theme="dark"] .yp-home--herbal .yp-card:hover,
    :root[data-theme="dark"] .yp-trust li:hover,
    :root[data-theme="dark"] .yp-post:hover { box-shadow: var(--yh-glow-gold); }
}

/* product photos sit on a light frame so they pop on dark boxes */
:root[data-theme="dark"] .yp-hcard__img,
:root[data-theme="dark"] .yp-deal__img { background: #f3efe4; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .yp-hcard__title a,
:root[data-theme="dark"] .yp-trust b,
:root[data-theme="dark"] .yp-deal__info h3 a { color: #f7fbf8; }
:root[data-theme="dark"] .yp-trust span { color: #b5c8bb; }
:root[data-theme="dark"] .yp-trust svg { background: rgba(124, 196, 143, .14); color: #8fdca3; box-shadow: inset 0 0 0 1px rgba(124, 196, 143, .25); }
:root[data-theme="dark"] .yp-hcard__price strong { color: var(--yh-gold-2); }
:root[data-theme="dark"] .yp-hcard__price del { color: #93a79a; }
:root[data-theme="dark"] .yp-hcard__cart { background: linear-gradient(180deg, var(--yh-gold-2), var(--yh-gold)); color: #2a1d05; box-shadow: 0 6px 14px -6px rgba(245, 184, 61, .6); }

/* benefit cards: tinted glass with a colored glow */
:root[data-theme="dark"] .yp-benefit {
    background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 30%, #16211b) 0%, #141e18 75%);
    border-color: color-mix(in srgb, var(--tone) 60%, #16211b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 26px -10px var(--tone), 0 18px 34px -22px #000;
    color: #fff;
}
:root[data-theme="dark"] .yp-benefit:hover { border-color: color-mix(in srgb, var(--tone) 85%, #fff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 34px -6px var(--tone); color: #fff; }
:root[data-theme="dark"] .yp-benefit__icon { box-shadow: 0 0 0 4px #141e18, 0 0 18px -2px var(--tone); }

/* deal: wine glass with a rosy glow */
:root[data-theme="dark"] .yp-deal {
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 184, 61, .12), transparent 45%),
        radial-gradient(circle at 0 100%, rgba(168, 50, 74, .25), transparent 55%),
        linear-gradient(180deg, #23171b, #170f12);
    border-color: rgba(232, 120, 145, .45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 36px -12px rgba(200, 60, 90, .55), 0 24px 44px -26px #000;
}
:root[data-theme="dark"] .yp-deal__off { box-shadow: 0 0 0 3px #1c1215, 0 0 0 5px rgba(232, 120, 145, .55); }
:root[data-theme="dark"] .yp-countdown b { background: linear-gradient(180deg, #2c1c21, #20151a); border-color: rgba(232, 120, 145, .5); box-shadow: 0 0 12px -4px rgba(232, 120, 145, .5); }
:root[data-theme="dark"] .yp-deal__left { color: #c9b4ba; }

/* gift banner: warm edge glow */
:root[data-theme="dark"] .yp-gift { box-shadow: 0 0 0 1px rgba(255, 200, 120, .4), 0 0 40px -14px rgba(245, 160, 60, .5), 0 26px 46px -26px #000; }

:root[data-theme="dark"] .yp-best__head::after { background: linear-gradient(90deg, transparent, rgba(245, 184, 61, .35) 40%, rgba(124, 196, 143, .35)); }
:root[data-theme="dark"] .yp-best__head h2 { text-shadow: 0 0 18px rgba(124, 196, 143, .45); }
:root[data-theme="dark"] .yp-home--herbal .yp-offer { box-shadow: 0 0 0 1px rgba(232, 120, 145, .4), 0 0 40px -14px rgba(200, 60, 90, .5); }

@media (prefers-reduced-motion: reduce) {
    .yp-deal__off { animation: none; }
}

/* lower home sections match the new boxes */
:root[data-theme="dark"] .yp-home--herbal .yp-card__price strong { color: var(--yh-gold-2); }
:root[data-theme="dark"] .yp-home--herbal .yp-card__img { background: #f3efe4; }
.yp-home--herbal .yp-banner { box-shadow: 0 16px 30px -22px rgba(60, 30, 10, .7); transition: box-shadow .25s, transform .25s var(--yp-ease); }
.yp-home--herbal .yp-banner:hover { transform: translateY(-3px); }
:root[data-theme="dark"] .yp-home--herbal .yp-banner { box-shadow: 0 0 0 1px rgba(255, 210, 140, .3), 0 18px 34px -22px #000; }
:root[data-theme="dark"] .yp-home--herbal .yp-banner:hover { box-shadow: var(--yh-glow-gold); }

/* ---------- Menu: mega panel & dropdowns in herbal colors ---------- */

.yp-nav__list { justify-content: flex-start; }
.yp-nav__list > li:last-child { margin-inline-start: auto; display: flex; align-items: center; }
.yp-nav__list > li:last-child::before { display: none; }
.yp-nav__list > li > a, .yp-nav__toggle { padding: 0 15px; font-size: .92rem; }

.yp-mega {
    border-radius: 0 0 24px 24px;
    background:
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(245, 184, 61, .10), transparent 70%),
        linear-gradient(180deg, #fffdf7, #fbf5e8);
    box-shadow: inset 0 3px 0 var(--yh-gold), 0 34px 50px -28px rgba(20, 50, 30, .45), 0 0 0 1px #eadfca;
}
.yp-mega__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding-block: 22px 24px; }
.yp-mega__col { background: #fff; box-shadow: 0 0 0 1px #efe4cd, 0 10px 20px -18px rgba(90, 60, 20, .6); }
.yp-mega__col:hover { background: #fff; box-shadow: 0 0 0 1.5px var(--yh-gold), 0 16px 26px -18px rgba(140, 95, 20, .55); }
.yp-mega__title { display: flex; align-items: center; gap: 8px; color: var(--yh-green) !important; border-bottom: 2px solid #f1e6cc; }
.yp-mega__title::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #eef5e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19c0-8 5-14 15-15-1 10-7 15-15 15zM5 19l8-8' fill='none' stroke='%232c6a3d' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.yp-mega li a { color: #3a4a3f; }
.yp-mega li a::before { color: var(--yh-gold); }
.yp-mega li a:hover { color: var(--yh-green-2); background: #f6f0e1; }

/* last column (shop by need) = gold tinted */
.yp-mega__col:last-child { background: linear-gradient(180deg, #fff8e6, #fdf0d2); box-shadow: 0 0 0 1px #f0d9a4; }
.yp-mega__col:last-child .yp-mega__title { color: #8a5a12 !important; border-bottom-color: #f0d9a4; }
.yp-mega__col:last-child .yp-mega__title::before {
    background: #f7e2b0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.4 6.7 19.4l1.2-6L3.4 9.3l6-.7z' fill='none' stroke='%238a5a12' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.yp-drop { background: #fffdf7; box-shadow: inset 0 3px 0 var(--yh-gold), 0 28px 44px -20px rgba(20, 50, 30, .42), 0 0 0 1px #eadfca; }
.yp-drop::before { background: var(--yh-gold); box-shadow: none; }
.yp-drop a { color: #2e3d33; }
.yp-drop a:hover { background: #f3ecdb; color: var(--yh-green-2); }

:root[data-theme="dark"] .yp-mega {
    background: radial-gradient(ellipse 40% 60% at 0% 100%, rgba(245, 184, 61, .08), transparent 70%), linear-gradient(180deg, #16211b, #101813);
    box-shadow: inset 0 3px 0 var(--yh-gold), 0 34px 50px -28px #000, 0 0 0 1px rgba(150, 230, 175, .2);
}
:root[data-theme="dark"] .yp-mega__col { background: var(--yh-box); box-shadow: var(--yh-box-shadow); }
:root[data-theme="dark"] .yp-mega__col:hover { background: var(--yh-box); box-shadow: var(--yh-glow-gold); }
:root[data-theme="dark"] .yp-mega__title { color: #a8e3b6 !important; border-bottom-color: rgba(150, 230, 175, .18); }
:root[data-theme="dark"] .yp-mega__title::before { background-color: rgba(124, 196, 143, .18); }
:root[data-theme="dark"] .yp-mega li a { color: #d6e4da; }
:root[data-theme="dark"] .yp-mega li a:hover { color: #fff; background: rgba(124, 196, 143, .1); }
:root[data-theme="dark"] .yp-mega__col:last-child { background: linear-gradient(180deg, #2a2312, #1c180d); box-shadow: 0 0 0 1px rgba(245, 184, 61, .4); }
:root[data-theme="dark"] .yp-mega__col:last-child .yp-mega__title { color: var(--yh-gold-2) !important; border-bottom-color: rgba(245, 184, 61, .25); }
:root[data-theme="dark"] .yp-drop { background: #141e18; box-shadow: inset 0 3px 0 var(--yh-gold), 0 28px 44px -20px #000, 0 0 0 1px rgba(150, 230, 175, .2); }
:root[data-theme="dark"] .yp-drop a { color: #d6e4da; }
:root[data-theme="dark"] .yp-drop a:hover { background: rgba(124, 196, 143, .12); color: #fff; }
:root[data-theme="dark"] .yp-mega__title::before { filter: brightness(2.2) saturate(.8); }
