/* =====================================================================
   Yarpizim UI — header, mobile drawer, bottom bar, home page, footer.
   Mobile-first. All classes are prefixed with "yp-" to avoid clashes
   with the older theme (assets/style.css).
   ===================================================================== */

:root {
    /* brand colors (overridden by the admin theme settings) */
    --yp-primary: #2f855a;
    --yp-accent: #c2410c;

    /* light palette: herbal greens on warm off-white */
    --yp-bg: #f3f6f0;
    --yp-surface: #ffffff;
    --yp-surface-2: #f4f7f1;
    --yp-text: #1d2b22;
    --yp-muted: #67776b;
    --yp-line: #e1e9dc;
    --yp-footer-bg: #13261a;
    --yp-shadow: 0 8px 26px -14px rgba(20, 50, 30, .28);

    /* derived from the brand color */
    --yp-primary-dark: color-mix(in srgb, var(--yp-primary) 80%, #000);
    --yp-primary-2: color-mix(in srgb, var(--yp-primary) 55%, #9bc53d);
    --yp-primary-soft: color-mix(in srgb, var(--yp-primary) 12%, var(--yp-surface));
    --yp-link: var(--yp-primary-dark);
    --yp-card: var(--yp-surface);

    --yp-radius: 16px;
    --yp-radius-sm: 10px;
    --yp-header-h: 60px;
    --yp-bottombar-h: 62px;
    --yp-ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: light;
}

/* dark palette: deep forest */
:root[data-theme="dark"] {
    /* black page; boxes and text get their own light (see the dark-mode section at the end) */
    --yp-bg: #090d0b;
    --yp-surface: #141c17;
    --yp-surface-2: #1c2620;
    --yp-text: #f1f7f3;
    --yp-muted: #b2c3b8;
    --yp-line: #26352c;
    --yp-footer-bg: #060908;
    --yp-shadow: 0 12px 30px -14px rgba(0, 0, 0, .55);
    --yp-link: color-mix(in srgb, var(--yp-primary) 35%, #eafff1);
    --yp-primary-soft: color-mix(in srgb, var(--yp-primary) 30%, var(--yp-surface));
    color-scheme: dark;
}

body { -webkit-tap-highlight-color: transparent; background: var(--yp-bg) !important; color: var(--yp-text); transition: background-color .25s; }

/* bottom bar must never cover page content on mobile */
@media (max-width: 991.98px) {
    body { padding-bottom: calc(var(--yp-bottombar-h) + env(safe-area-inset-bottom, 0px)); }
}

body.yp-lock { overflow: hidden; }

.yp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.yp-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 16px;
}

@media (min-width: 992px) {
    .yp-mobile-only { display: none !important; }
}

@media (max-width: 991.98px) {
    .yp-desktop-only { display: none !important; }
}

/* ---------- Buttons & small pieces ---------- */

.yp-icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--yp-text);
    cursor: pointer;
    transition: background .2s;
}

.yp-icon-btn:hover, .yp-icon-btn:focus-visible { background: var(--yp-surface-2); }
.yp-icon-btn svg { width: 24px; height: 24px; }

.yp-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--yp-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--yp-surface);
}

.yp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, background .2s, box-shadow .2s;
}

.yp-btn:active { transform: scale(.97); }
.yp-btn svg { width: 20px; height: 20px; }
.yp-btn--block { width: 100%; }
.yp-btn--primary { background: var(--yp-primary); color: #fff; }
.yp-btn--primary:hover { background: var(--yp-primary-dark); color: #fff; }
.yp-btn--light { background: #fff; color: var(--yp-primary-dark); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.yp-btn--light:hover { color: var(--yp-primary); }

/* ---------- Header ---------- */

.yp-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--yp-surface);
    transition: box-shadow .25s, background-color .25s;
}

.yp-header.is-scrolled { box-shadow: 0 4px 20px -10px rgba(35, 37, 78, .25); }

.yp-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "menu logo actions" "search search search";
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    padding-block: 8px 10px;
}

.yp-header__bar > .yp-icon-btn { grid-area: menu; }

.yp-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-width: 0;
    color: var(--yp-text);
    font-weight: 900;
    font-size: 1.15rem;
    text-decoration: none;
}

.yp-logo img { height: 36px; width: auto; max-width: 150px; object-fit: contain; }

.yp-header__search { grid-area: search; position: relative; min-width: 0; }

.yp-header__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 4px;
}

.yp-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--yp-line);
    border-radius: 12px;
    color: var(--yp-text);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.yp-account:hover { border-color: var(--yp-primary); color: var(--yp-link); }
.yp-account svg { width: 20px; height: 20px; }

@media (min-width: 992px) {
    .yp-header__bar {
        grid-template-columns: auto minmax(0, 560px) 1fr;
        grid-template-areas: "logo search actions";
        column-gap: 32px;
        padding-block: 14px;
    }
    .yp-logo { justify-content: flex-start; }
    .yp-logo img { height: 44px; max-width: 180px; }
    .yp-header__actions { justify-content: flex-end; gap: 10px; }
}

/* Search (markup comes from the Blazor SearchComponent) */

.yp-header .search-form {
    display: flex;
    align-items: center;
    height: 46px;
    padding-inline: 6px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--yp-surface-2);
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.yp-header .search-form:focus-within {
    border-color: var(--yp-primary);
    background: var(--yp-surface);
    box-shadow: 0 0 0 4px var(--yp-primary-soft);
}

.yp-header .search-form .input_search {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--yp-text);
    font-size: 16px; /* 16px stops iOS from zooming on focus */
}

.yp-header .search-form .input_search::placeholder { color: var(--yp-muted); }

.yp-header .search-form button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--yp-muted);
}

.yp-search-results {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    z-index: 20;
    max-height: 60vh;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--yp-line);
    border-radius: 14px;
    background: var(--yp-surface);
    box-shadow: var(--yp-shadow);
    animation: yp-fade-down .18s var(--yp-ease);
}

.yp-search-results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--yp-text);
    text-decoration: none;
}

.yp-search-results a:hover, .yp-search-results a:focus-visible { background: var(--yp-bg); }

.yp-search-results img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--yp-surface-2);
    object-fit: contain;
}

.yp-search-results .yp-search-empty { padding: 14px; color: var(--yp-muted); text-align: center; }

@keyframes yp-fade-down {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Desktop navigation ---------- */

.yp-nav { border-top: 1px solid var(--yp-line); }

.yp-nav__list {
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin: 0 auto;
    list-style: none;
}

.yp-nav__list > li { position: relative; }

.yp-nav__list > li > a,
.yp-nav__toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 48px;
    padding: 0 14px;
    border: 0;
    background: none;
    color: var(--yp-text);
    font: inherit;
    font-size: .93rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
}

.yp-nav__list > li > a::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--yp-primary);
    transform: scaleX(0);
    transition: transform .25s var(--yp-ease);
}

.yp-nav__list > li > a:hover, .yp-nav__toggle:hover, .yp-nav__list > li > a.is-active { color: var(--yp-link); }
.yp-nav__list > li > a.is-active::after, .yp-nav__list > li > a:hover::after { transform: scaleX(1); }
.yp-nav svg { width: 16px; height: 16px; transition: transform .2s; }

/* Mega menu */
.yp-nav__item--mega { position: static !important; }

.yp-mega {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    visibility: hidden;
    opacity: 0;
    background: var(--yp-surface);
    border-top: 1px solid var(--yp-line);
    box-shadow: 0 24px 40px -24px rgba(35, 37, 78, .35);
    transform: translateY(8px);
    transition: opacity .2s, transform .2s var(--yp-ease), visibility .2s;
}

.yp-nav__item--mega:hover .yp-mega,
.yp-nav__item--mega:focus-within .yp-mega { visibility: visible; opacity: 1; transform: none; }
.yp-nav__item--mega:hover .yp-nav__toggle svg { transform: rotate(180deg); }

.yp-mega__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-block: 24px 28px;
}

.yp-mega__title {
    display: block;
    margin-bottom: 10px;
    padding-inline-start: 10px;
    border-inline-start: 3px solid var(--yp-primary);
    color: var(--yp-text);
    font-weight: 700;
    text-decoration: none;
}

.yp-mega ul { margin: 0; padding: 0; list-style: none; }

.yp-mega li a {
    display: block;
    padding: 6px 13px;
    color: var(--yp-muted);
    font-size: .9rem;
    text-decoration: none;
    transition: color .15s, padding .15s;
}

.yp-mega li a:hover { color: var(--yp-link); padding-inline-start: 18px; }

/* Dropdown (articles) */
.yp-drop {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 5;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    visibility: hidden;
    opacity: 0;
    border-radius: 14px;
    background: var(--yp-surface);
    box-shadow: var(--yp-shadow), 0 0 0 1px var(--yp-line);
    transform: translateY(8px);
    transition: opacity .2s, transform .2s var(--yp-ease), visibility .2s;
}

.yp-drop .yp-drop { top: -8px; inset-inline-start: 100%; }

li:hover > .yp-drop, li:focus-within > .yp-drop { visibility: visible; opacity: 1; transform: none; }

.yp-drop li { position: relative; }

.yp-drop a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--yp-text);
    font-size: .9rem;
    text-decoration: none;
}

.yp-drop a:hover { background: var(--yp-primary-soft); color: var(--yp-link); }

/* ---------- Drawers (mobile menu + cart) ---------- */

.yp-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: min(86vw, 360px);
    background: var(--yp-surface);
    box-shadow: -10px 0 40px -10px rgba(0, 0, 0, .25);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .3s var(--yp-ease), visibility .3s;
}

.yp-drawer--left { right: auto; left: 0; transform: translateX(-105%); }

.yp-drawer.is-open { transform: none; visibility: visible; }

.yp-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--yp-line);
}

.yp-drawer__head img { height: 34px; width: auto; }

.yp-drawer__body {
    flex: 1;
    padding: 8px 12px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.yp-drawer__foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--yp-line);
}

.yp-drawer__link,
.yp-acc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--yp-text);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.yp-drawer__link:hover, .yp-acc > summary:hover { background: var(--yp-bg); color: var(--yp-text); }

.yp-acc > summary { list-style: none; }
.yp-acc > summary::-webkit-details-marker { display: none; }
.yp-acc > summary svg { width: 18px; height: 18px; color: var(--yp-muted); transition: transform .2s; }
.yp-acc[open] > summary svg { transform: rotate(180deg); }
.yp-acc[open] > summary { color: var(--yp-link); }

.yp-acc--sub { margin-inline-start: 12px; padding-inline-start: 4px; border-inline-start: 2px solid var(--yp-line); }
.yp-acc--sub .yp-drawer__link { min-height: 42px; color: var(--yp-muted); font-weight: 400; font-size: .93rem; }
.yp-drawer__link--all { color: var(--yp-link) !important; font-size: .88rem !important; }

.yp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(20, 20, 40, .45);
    animation: yp-fade .25s;
}

@keyframes yp-fade { from { opacity: 0; } }

/* Cart drawer content */
.yp-cart-list { margin: 0; padding: 0; list-style: none; }

.yp-cart-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid var(--yp-line);
}

.yp-cart-list__img img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--yp-bg);
    object-fit: contain;
}

.yp-cart-list__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--yp-text);
    font-size: .9rem;
    text-decoration: none;
}

.yp-cart-list__meta { display: block; margin-top: 4px; color: var(--yp-muted); font-size: .82rem; }

.yp-cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: .95rem; }

.yp-empty { display: grid; place-items: center; gap: 8px; padding: 56px 0; color: var(--yp-muted); }
.yp-empty svg { width: 56px; height: 56px; opacity: .4; }

/* ---------- Mobile bottom bar ---------- */

.yp-bottombar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1035;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--yp-bottombar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--yp-surface) 96%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px -10px rgba(35, 37, 78, .25);
}

.yp-bottombar > a, .yp-bottombar > button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: none;
    color: var(--yp-muted);
    font: inherit;
    font-size: 11px;
    text-decoration: none;
}

.yp-bottombar svg { width: 24px; height: 24px; transition: transform .2s; }
.yp-bottombar .is-active { color: var(--yp-link); font-weight: 700; }
.yp-bottombar > *:active svg { transform: scale(.88); }
.yp-bottombar .yp-badge { top: 6px; left: calc(50% - 22px); }

@media (min-width: 992px) {
    .yp-bottombar { display: none; }
}

/* ---------- Home sections ---------- */

.yp-home { padding-block: 12px 24px; }

.yp-section { margin-top: 28px; }

.yp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.yp-section__head h2 {
    position: relative;
    margin: 0;
    padding-inline-start: 12px;
    color: var(--yp-text);
    font-size: 1.1rem;
    font-weight: 800;
}

.yp-section__head h2::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 4px;
    background: var(--yp-primary);
}

.yp-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--yp-link);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.yp-more svg { width: 16px; height: 16px; }

/* Horizontal, swipeable rail — native scroll, no JS library */
.yp-rail {
    --yp-rail-item: 44%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--yp-rail-item);
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
}

.yp-rail::-webkit-scrollbar { display: none; }
.yp-rail > * { scroll-snap-align: start; }

@media (min-width: 576px) { .yp-rail { --yp-rail-item: 30%; } }
@media (min-width: 768px) { .yp-rail { --yp-rail-item: 23%; } }
@media (min-width: 1200px) {
    .yp-rail { --yp-rail-item: calc((100% - 5 * 16px) / 6); gap: 16px; margin-inline: 0; padding-inline: 0; scrollbar-width: thin; }
}

/* Product card */
.yp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border-radius: var(--yp-radius);
    background: var(--yp-card);
    box-shadow: 0 0 0 1px var(--yp-line);
    transition: box-shadow .25s, transform .25s var(--yp-ease);
}

@media (hover: hover) {
    .yp-card:hover { box-shadow: var(--yp-shadow), 0 0 0 1px var(--yp-line); transform: translateY(-3px); }
}

.yp-card__img {
    position: relative;
    display: block;
    aspect-ratio: 1;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--yp-surface-2);
}

.yp-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--yp-ease); }
.yp-card:hover .yp-card__img img { transform: scale(1.04); }

.yp-card__off {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--yp-accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.yp-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.9em;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.45;
}

.yp-card__title a { color: var(--yp-text); text-decoration: none; }

.yp-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 2.8em;
    margin-top: auto;
}

.yp-card__price del { color: var(--yp-muted); font-size: .8rem; }
.yp-card__price strong { color: var(--yp-text); font-size: .98rem; font-weight: 800; }
.yp-card__price small { color: var(--yp-muted); font-size: .72rem; font-weight: 400; }
.yp-card__na { align-self: stretch; padding: 4px; border-radius: 8px; background: var(--yp-bg); color: var(--yp-muted); font-size: .85rem; text-align: center; }

/* Hero slider */
.yp-hero { position: relative; margin-top: 4px; }

.yp-hero__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 20px;
}

.yp-hero__track::-webkit-scrollbar { display: none; }

.yp-hero__slide {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 8px;
    min-height: 190px;
    padding: 20px;
    scroll-snap-align: start;
    background: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .16), transparent 45%), linear-gradient(135deg, var(--yp-primary-dark) 0%, var(--yp-primary) 55%, var(--yp-primary-2) 100%);
    color: #fff;
}

.yp-hero__slide:nth-child(3n+2) { background: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .16), transparent 45%), linear-gradient(135deg, #4d5d1f 0%, #6f8a2a 55%, #9aab45 100%); }
.yp-hero__slide:nth-child(3n+3) { background: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .16), transparent 45%), linear-gradient(135deg, #8a4b14 0%, #b7791f 55%, #d69e2e 100%); }

.yp-hero__text h2 { margin: 0 0 6px; color: #fff; font-size: 1.15rem; font-weight: 900; line-height: 1.5; }
.yp-hero__text p { margin: 0 0 14px; color: rgba(255, 255, 255, .88); font-size: .85rem; line-height: 1.7; }
.yp-hero__text .yp-btn { min-height: 38px; padding: 0 16px; font-size: .85rem; }

.yp-hero__img { display: flex; justify-content: center; }
.yp-hero__img img { width: 100%; max-width: 360px; height: auto; max-height: 200px; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .25)); }

.yp-hero__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.yp-hero__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .55);
    transition: width .3s var(--yp-ease), background .3s;
}

.yp-hero__dots button.is-active { width: 22px; background: #fff; }

@media (min-width: 768px) {
    .yp-hero__slide { min-height: 320px; padding: 40px 56px; gap: 32px; }
    .yp-hero__text h2 { font-size: 2rem; }
    .yp-hero__text p { font-size: 1.05rem; max-width: 40ch; }
    .yp-hero__text .yp-btn { min-height: 46px; padding: 0 26px; font-size: .95rem; }
    .yp-hero__img img { max-height: 280px; }
}

/* Banners */
.yp-rail--banners { --yp-rail-item: 78%; }
@media (min-width: 576px) { .yp-rail--banners { --yp-rail-item: 46%; } }
@media (min-width: 992px) { .yp-rail--banners { --yp-rail-item: calc((100% - 3 * 16px) / 4); } }

.yp-banner {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--yp-radius);
    background: var(--yp-surface-2);
}

.yp-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--yp-ease); }
.yp-banner:hover img { transform: scale(1.05); }

.yp-banner span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
}

/* Special offers */
.yp-offer {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    padding: 18px 0 6px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--yp-accent) 0%, color-mix(in srgb, var(--yp-accent) 60%, #f6ad55) 100%);
    overflow: hidden;
}

.yp-offer__intro { padding-inline: 18px; color: #fff; }
.yp-offer__intro h2 { margin: 0; color: #fff; font-size: 1.15rem; font-weight: 900; }
.yp-offer__intro p { margin: 2px 0 0; color: rgba(255, 255, 255, .85); font-size: .85rem; }

.yp-rail--offer { margin-inline: 0; padding-inline: 18px; scroll-padding-inline: 18px; }

@media (min-width: 992px) {
    .yp-offer { grid-template-columns: 180px 1fr; align-items: center; padding: 18px; }
    .yp-offer__intro { padding-inline: 8px; text-align: center; }
    .yp-offer__intro h2 { font-size: 1.4rem; }
    .yp-rail--offer { --yp-rail-item: calc((100% - 4 * 12px) / 5); padding: 0; }
}

/* Brand chips */
.yp-chips {
    display: flex;
    gap: 8px;
    margin-inline: -16px;
    padding: 2px 16px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.yp-chips::-webkit-scrollbar { display: none; }

@media (min-width: 992px) { .yp-chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }

.yp-chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 22px;
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line);
    color: var(--yp-text);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow .2s, color .2s;
}

.yp-chip:hover { box-shadow: 0 0 0 1.5px var(--yp-primary); color: var(--yp-link); }
.yp-chip img { width: 28px; height: 28px; object-fit: contain; }

/* Blog cards */
.yp-rail--blog { --yp-rail-item: 82%; }
@media (min-width: 576px) { .yp-rail--blog { --yp-rail-item: 48%; } }
@media (min-width: 992px) { .yp-rail--blog { --yp-rail-item: calc((100% - 3 * 16px) / 4); } }

.yp-post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--yp-radius);
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line);
}

.yp-post__img { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--yp-surface-2); }
.yp-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--yp-ease); }
.yp-post:hover .yp-post__img img { transform: scale(1.05); }

.yp-post__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px; }

.yp-post__tag {
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 8px;
    background: var(--yp-primary-soft);
    color: var(--yp-link);
    font-size: .75rem;
    font-weight: 700;
}

.yp-post h3 { margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.6; }
.yp-post h3 a { color: var(--yp-text); text-decoration: none; }
.yp-post h3 a:hover { color: var(--yp-link); }

.yp-post p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    overflow: hidden;
    color: var(--yp-muted);
    font-size: .85rem;
    line-height: 1.8;
}

.yp-post time { margin-top: auto; padding-top: 6px; color: var(--yp-muted); font-size: .78rem; }

/* Footer styles live in footer.css */

/* ---------- Accessibility & motion ---------- */

.yp-header a:focus-visible, .yp-header button:focus-visible,
.yp-drawer a:focus-visible, .yp-drawer button:focus-visible, .yp-drawer summary:focus-visible,
.yp-bottombar a:focus-visible, .yp-bottombar button:focus-visible,
.yp-home a:focus-visible, .yp-home button:focus-visible {
    outline: 2px solid var(--yp-primary) !important;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Light / dark toggle ---------- */

.yp-theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .yp-theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .yp-theme-btn .i-moon { display: none; }
:root[data-theme-toggle="off"] .yp-theme-btn { display: none !important; }

.yp-logo__text { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.yp-logo__text b { font-size: 1.1rem; font-weight: 900; color: var(--yp-link); }
.yp-logo__text small { color: var(--yp-muted); font-size: .7rem; font-weight: 500; }
:root[data-theme="dark"] .yp-logo img { filter: brightness(1.15); }

/* smooth color change when switching themes */
.yp-theme-anim, .yp-theme-anim * { transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s !important; }

/* ---------- Bootstrap & older pages follow the theme ---------- */

a { color: var(--yp-link); }
a:hover { color: var(--yp-primary-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--yp-text); }

.btn-primary, .btn-primary:focus { background-color: var(--yp-primary); border-color: var(--yp-primary); color: #fff; }
.btn-primary:hover, .btn-primary:active { background-color: var(--yp-primary-dark) !important; border-color: var(--yp-primary-dark) !important; color: #fff; }
.btn-outline-primary { color: var(--yp-link); border-color: var(--yp-primary); }
.btn-outline-primary:hover { background-color: var(--yp-primary); color: #fff; }
.text-primary { color: var(--yp-link) !important; }
.bg-primary { background-color: var(--yp-primary) !important; }
.form-control:focus, .form-select:focus { border-color: var(--yp-primary); box-shadow: 0 0 0 .2rem var(--yp-primary-soft); }
.form-check-input:checked { background-color: var(--yp-primary); border-color: var(--yp-primary); }
.page-link { color: var(--yp-link); }
.page-item.active .page-link { background-color: var(--yp-primary); border-color: var(--yp-primary); }

:root[data-theme="dark"] .bg-white,
:root[data-theme="dark"] .bg-light,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .list-group-item,
:root[data-theme="dark"] .tab_product_header {
    background-color: var(--yp-surface) !important;
    color: var(--yp-text);
    border-color: var(--yp-line);
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    background-color: var(--yp-surface-2);
    color: var(--yp-text);
    border-color: var(--yp-line);
}

:root[data-theme="dark"] .form-control::placeholder { color: var(--yp-muted); }
:root[data-theme="dark"] .table { color: var(--yp-text); --bs-table-bg: transparent; border-color: var(--yp-line); }
:root[data-theme="dark"] .table > :not(caption) > * > * { border-color: var(--yp-line); color: var(--yp-text); }
:root[data-theme="dark"] .text-dark { color: var(--yp-text) !important; }
:root[data-theme="dark"] .text-muted { color: var(--yp-muted) !important; }
:root[data-theme="dark"] .border, :root[data-theme="dark"] hr { border-color: var(--yp-line) !important; }
:root[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(2); }
:root[data-theme="dark"] .btn-light { background-color: var(--yp-surface-2); border-color: var(--yp-line); color: var(--yp-text); }

:root[data-theme="dark"] .page-link { background-color: var(--yp-surface); border-color: var(--yp-line); color: var(--yp-text); }
:root[data-theme="dark"] .page-item.active .page-link { background-color: var(--yp-primary); color: #fff; }
:root[data-theme="dark"] .yp-card__img img, :root[data-theme="dark"] .yp-cart-list__img img { filter: brightness(.95) saturate(1.05); }
:root[data-theme="dark"] .alert { background-color: var(--yp-surface-2); color: var(--yp-text); border-color: var(--yp-line); }
.bg-success, .badge.bg-success { color: #fff !important; }

/* =====================================================================
   Content pages: about us / contact us
   ===================================================================== */

.yp-page { padding-block: 12px 24px; }

.yp-pagehero {
    position: relative;
    display: grid;
    gap: 12px;
    align-items: center;
    overflow: hidden;
    padding: 28px 20px 0;
    border-radius: 24px;
    background: radial-gradient(circle at 12% 88%, rgba(255, 255, 255, .14), transparent 40%),
                linear-gradient(135deg, var(--yp-primary-dark) 0%, var(--yp-primary) 60%, var(--yp-primary-2) 100%);
    color: #fff;
}

.yp-pagehero::after {
    content: "";
    position: absolute;
    top: -80px;
    left: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.yp-pagehero__text { position: relative; z-index: 1; }
.yp-pagehero h1 { margin: 6px 0 10px; color: #fff; font-size: 1.45rem; font-weight: 900; line-height: 1.55; }
.yp-pagehero p { margin: 0 0 18px; color: rgba(255, 255, 255, .88); font-size: .92rem; line-height: 1.9; max-width: 46ch; }
.yp-pagehero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.yp-pagehero__img { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

.yp-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.yp-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.yp-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

@media (min-width: 768px) {
    .yp-pagehero { grid-template-columns: 1.1fr 1fr; padding: 48px 56px 0; gap: 32px; }
    .yp-pagehero__text { padding-bottom: 48px; }
    .yp-pagehero h1 { font-size: 2.1rem; }
    .yp-pagehero p { font-size: 1.02rem; }
    .yp-pagehero__img { align-self: end; }
}

/* Panels & rich text from the admin editor */
.yp-panel {
    padding: 20px;
    border-radius: var(--yp-radius);
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line);
}

.yp-panel__sub { margin: 22px 0 12px; color: var(--yp-text); font-size: .95rem; font-weight: 700; }

.yp-prose { color: var(--yp-text); font-size: .95rem; line-height: 2.05; }
.yp-prose p { margin: 0 0 12px; }
.yp-prose p:last-child { margin-bottom: 0; }
.yp-prose h2, .yp-prose h3 { margin: 18px 0 8px; color: var(--yp-text); font-size: 1.05rem; font-weight: 800; }
.yp-prose ul, .yp-prose ol { margin: 0 0 12px; padding-inline-start: 20px; }
.yp-prose li { margin-bottom: 6px; }
.yp-prose strong, .yp-prose b { font-weight: 800; }
.yp-prose a { color: var(--yp-link); }

/* Stats */
.yp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }

.yp-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 18px 10px;
    border-radius: var(--yp-radius);
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line);
    text-align: center;
}

.yp-stats b { color: var(--yp-link); font-size: 1.6rem; font-weight: 900; }
.yp-stats span { color: var(--yp-muted); font-size: .85rem; }

@media (min-width: 768px) { .yp-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.yp-split { display: grid; gap: 4px; }
@media (min-width: 992px) { .yp-split { grid-template-columns: 220px 1fr; gap: 32px; align-items: start; } }

/* Feature cards */
.yp-features { display: grid; gap: 12px; }
@media (min-width: 576px) { .yp-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .yp-features { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.yp-feature {
    padding: 20px;
    border-radius: var(--yp-radius);
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line);
    transition: transform .25s var(--yp-ease), box-shadow .25s;
}

@media (hover: hover) {
    .yp-feature:hover { transform: translateY(-3px); box-shadow: var(--yp-shadow), 0 0 0 1px var(--yp-line); }
}

.yp-feature h3 { margin: 12px 0 6px; color: var(--yp-text); font-size: 1rem; font-weight: 800; }
.yp-feature p { margin: 0; color: var(--yp-muted); font-size: .88rem; line-height: 1.9; }

.yp-feature__icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--yp-primary-soft);
    color: var(--yp-link);
}

.yp-feature__icon svg { width: 24px; height: 24px; }

/* Category cards */
.yp-catgrid { display: grid; gap: 12px; }
@media (min-width: 576px) { .yp-catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .yp-catgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.yp-catcard {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--yp-radius);
    color: #fff;
    text-decoration: none;
}

.yp-catcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--yp-ease); }
.yp-catcard:hover img { transform: scale(1.05); }
.yp-catcard:hover { color: #fff; }

.yp-catcard > span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 36px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}

.yp-catcard b { font-size: 1rem; font-weight: 800; }
.yp-catcard small { color: rgba(255, 255, 255, .85); font-size: .8rem; }

/* Call to action */
.yp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--yp-accent) 0%, color-mix(in srgb, var(--yp-accent) 60%, #f6ad55) 100%);
    color: #fff;
}

.yp-cta h2 { margin: 0 0 4px; color: #fff; font-size: 1.2rem; font-weight: 900; }
.yp-cta p { margin: 0; color: rgba(255, 255, 255, .9); font-size: .9rem; }
.yp-cta .yp-btn--light { color: var(--yp-accent); }

/* Contact */
.yp-contact-cards { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 576px) { .yp-contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .yp-contact-cards { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.yp-contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: var(--yp-radius);
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line);
    color: var(--yp-text);
    text-decoration: none;
    transition: transform .25s var(--yp-ease), box-shadow .25s;
}

.yp-contact-card:hover { color: var(--yp-text); transform: translateY(-2px); box-shadow: var(--yp-shadow), 0 0 0 1.5px var(--yp-primary); }
.yp-contact-card .yp-feature__icon { grid-row: span 2; }
.yp-contact-card small { color: var(--yp-muted); font-size: .8rem; }
.yp-contact-card b { min-width: 0; font-size: .95rem; font-weight: 800; line-height: 1.7; overflow-wrap: anywhere; text-align: start; }

.yp-contact-grid { display: grid; gap: 16px; }
@media (min-width: 992px) { .yp-contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }

.yp-socials { display: flex; flex-wrap: wrap; gap: 8px; }

.yp-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    background: var(--yp-primary-soft);
    color: var(--yp-link);
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.yp-socials a:hover { background: var(--yp-primary); color: #fff; }
.yp-socials i { font-size: 1.1rem; }

/* FAQ: the admin writes <details><summary>question</summary><p>answer</p></details> */
.yp-faq details { border-bottom: 1px solid var(--yp-line); }
.yp-faq details:last-child { border-bottom: 0; }

.yp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 0;
    color: var(--yp-text);
    font-weight: 700;
    font-size: .95rem;
    list-style: none;
    cursor: pointer;
}

.yp-faq summary::-webkit-details-marker { display: none; }

.yp-faq summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--yp-primary-soft);
    color: var(--yp-link);
    font-size: 1.1rem;
    font-weight: 400;
}

.yp-faq details[open] summary::after { content: "−"; }
.yp-faq details[open] summary { color: var(--yp-link); }
.yp-faq details p { margin: 0 0 16px; color: var(--yp-muted); font-size: .9rem; line-height: 2; }
.yp-faq > p { color: var(--yp-text); line-height: 2; }

/* ---------- Dark mode: black page, boxes that glow softly ---------- */

:root[data-theme="dark"] {
    --yp-card-bg: linear-gradient(180deg, #18221c 0%, #121914 100%);
    --yp-card-edge: rgba(148, 233, 180, .13);
    --yp-card-edge-hover: color-mix(in srgb, var(--yp-primary) 70%, #9ae6b4);
    --yp-card-shine: inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* boxes: lifted surface, fine green edge and a light top highlight */
:root[data-theme="dark"] .yp-card,
:root[data-theme="dark"] .yp-post,
:root[data-theme="dark"] .yp-panel,
:root[data-theme="dark"] .yp-feature,
:root[data-theme="dark"] .yp-stats > div,
:root[data-theme="dark"] .yp-contact-card {
    background: var(--yp-card-bg);
    box-shadow: 0 0 0 1px var(--yp-card-edge), var(--yp-card-shine), 0 18px 40px -24px rgba(0, 0, 0, .9);
}

@media (hover: hover) {
    :root[data-theme="dark"] .yp-card:hover,
    :root[data-theme="dark"] .yp-post:hover,
    :root[data-theme="dark"] .yp-feature:hover,
    :root[data-theme="dark"] .yp-contact-card:hover {
        box-shadow: 0 0 0 1px var(--yp-card-edge-hover), var(--yp-card-shine),
                    0 0 28px -6px color-mix(in srgb, var(--yp-primary) 45%, transparent);
    }
}

:root[data-theme="dark"] .yp-chip {
    background: #141c17;
    box-shadow: 0 0 0 1px var(--yp-card-edge), var(--yp-card-shine);
}

:root[data-theme="dark"] .yp-chip:hover { box-shadow: 0 0 0 1.5px var(--yp-card-edge-hover), 0 0 18px -6px color-mix(in srgb, var(--yp-primary) 50%, transparent); }

/* product images sit in a soft rounded frame instead of a hard white square */
:root[data-theme="dark"] .yp-card__img { background: #f4f6f1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .yp-card__img img { filter: brightness(.94); }

/* text: crisp white titles, bright prices, readable secondary text */
:root[data-theme="dark"] .yp-card__title a,
:root[data-theme="dark"] .yp-post h3 a,
:root[data-theme="dark"] .yp-feature h3,
:root[data-theme="dark"] .yp-section__head h2 { color: #f6fbf7; }

:root[data-theme="dark"] .yp-card__price strong { color: #ffffff; }
:root[data-theme="dark"] .yp-card__price small,
:root[data-theme="dark"] .yp-card__price del { color: #9fb3a6; }
:root[data-theme="dark"] .yp-post p,
:root[data-theme="dark"] .yp-feature p { color: #b9c9be; }
:root[data-theme="dark"] .yp-stats b { color: color-mix(in srgb, var(--yp-primary) 35%, #eafff1); text-shadow: 0 0 18px color-mix(in srgb, var(--yp-primary) 55%, transparent); }

/* section titles: glowing accent bar */
:root[data-theme="dark"] .yp-section__head h2::before {
    background: linear-gradient(180deg, #9ae6b4, var(--yp-primary));
    box-shadow: 0 0 14px color-mix(in srgb, var(--yp-primary) 80%, transparent);
}

:root[data-theme="dark"] .yp-more,
:root[data-theme="dark"] .yp-post__tag { color: #9ae6b4; }
:root[data-theme="dark"] .yp-post__tag { background: rgba(154, 230, 180, .1); box-shadow: inset 0 0 0 1px rgba(154, 230, 180, .2); }

/* header & bottom bar: a shade above black with a hairline edge */
:root[data-theme="dark"] .yp-header { background: #0e1410; box-shadow: 0 1px 0 var(--yp-card-edge); }
:root[data-theme="dark"] .yp-header.is-scrolled { box-shadow: 0 1px 0 var(--yp-card-edge), 0 10px 30px -12px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .yp-nav { border-top-color: var(--yp-card-edge); }
:root[data-theme="dark"] .yp-bottombar { background: #0e1410; box-shadow: 0 -1px 0 var(--yp-card-edge); }
:root[data-theme="dark"] .yp-bottombar .is-active { color: #9ae6b4; }
:root[data-theme="dark"] .yp-header .search-form { background: #18221c; border-color: var(--yp-card-edge); }

/* drawers & dropdowns */
:root[data-theme="dark"] .yp-drawer,
:root[data-theme="dark"] .yp-mega,
:root[data-theme="dark"] .yp-drop,
:root[data-theme="dark"] .yp-search-results { background: #121914; box-shadow: 0 0 0 1px var(--yp-card-edge), 0 24px 50px -20px #000; }


/* =====================================================================
   Sign in / sign up
   ===================================================================== */

.yp-auth { display: grid; place-items: start center; padding: 16px 16px 32px; }

@media (min-width: 768px) { .yp-auth { place-items: center; min-height: calc(100vh - 160px); padding-block: 32px 48px; } }

.yp-auth__card {
    display: grid;
    width: 100%;
    max-width: 980px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line), 0 30px 60px -30px rgba(20, 50, 30, .35);
}

@media (min-width: 900px) { .yp-auth__card { grid-template-columns: 1fr 1.05fr; } }

/* brand side */
.yp-auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    padding: 22px 22px 0;
    background: radial-gradient(circle at 15% 90%, rgba(255, 255, 255, .14), transparent 45%),
                linear-gradient(140deg, var(--yp-primary-dark) 0%, var(--yp-primary) 60%, var(--yp-primary-2) 100%);
    color: #fff;
}

.yp-auth__brand h2 { margin: 0 0 6px; color: #fff; font-size: 1.15rem; font-weight: 900; line-height: 1.6; }
.yp-auth__brand p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .88rem; line-height: 1.9; }
.yp-auth__brand ul { display: none; margin: 18px 0 0; padding: 0; list-style: none; }
.yp-auth__brand li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .92rem; }
.yp-auth__brand li svg { width: 22px; height: 22px; padding: 6px; box-sizing: content-box; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.yp-auth__brand img { display: none; width: 100%; max-width: 380px; height: auto; margin: 0 auto; }

@media (min-width: 900px) {
    .yp-auth__brand { padding: 40px 40px 0; }
    .yp-auth__brand h2 { font-size: 1.5rem; }
    .yp-auth__brand ul, .yp-auth__brand img { display: block; }
    .yp-auth__brand li { display: flex; }
}

/* form side */
.yp-auth__form { padding: 24px 20px 28px; }
@media (min-width: 900px) { .yp-auth__form { padding: 44px 44px 40px; } }

.yp-auth__form h1 { margin: 0 0 18px; color: var(--yp-text); font-size: 1.35rem; font-weight: 900; }
.yp-lead { margin: -6px 0 18px; color: var(--yp-muted); font-size: .92rem; line-height: 1.9; }
.yp-lead b { color: var(--yp-text); }
.yp-hint { margin: -4px 0 16px; color: var(--yp-muted); font-size: .8rem; line-height: 1.8; }
.yp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* tabs (pure CSS radio tabs) */
.yp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.yp-tabs > input { position: absolute; opacity: 0; pointer-events: none; }

.yp-tabs > label {
    display: grid;
    place-items: center;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--yp-surface-2);
    color: var(--yp-muted);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}

.yp-tabs > input:checked + label { background: var(--yp-primary-soft); color: var(--yp-link); box-shadow: inset 0 0 0 1.5px var(--yp-primary); }
.yp-tabs > input:focus-visible + label { outline: 2px solid var(--yp-primary); outline-offset: 2px; }
.yp-tabs__pane { grid-column: 1 / -1; display: none; }
#tabPass:checked ~ .yp-tabs__pane--pass,
#tabOtp:checked ~ .yp-tabs__pane--otp { display: block; animation: yp-fade .25s; }

/* fields */
.yp-field { margin-bottom: 16px; }
.yp-field label { display: block; margin-bottom: 6px; color: var(--yp-text); font-size: .88rem; font-weight: 700; }
.yp-field__row { display: flex; align-items: baseline; justify-content: space-between; }

.yp-field input,
.yp-pass input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1.5px solid var(--yp-line);
    border-radius: 14px;
    background: var(--yp-surface-2);
    color: var(--yp-text);
    font-size: 16px; /* no iOS zoom */
    text-align: left;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.yp-field input::placeholder { color: var(--yp-muted); opacity: .7; text-align: left; }
.yp-field input:focus,
.yp-pass input:focus { border-color: var(--yp-primary); background: var(--yp-surface); outline: none; box-shadow: 0 0 0 4px var(--yp-primary-soft); }
.yp-field input.input-validation-error { border-color: #e53e3e; }
.yp-field__err { display: block; margin-top: 6px; color: #e53e3e; font-size: .8rem; }

.yp-pass { position: relative; }
.yp-pass input { padding-left: 50px; }

.yp-pass__toggle {
    position: absolute;
    top: 50%;
    left: 6px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--yp-muted);
    transform: translateY(-50%);
    cursor: pointer;
}

.yp-pass__toggle:hover { color: var(--yp-link); }
.yp-pass__toggle svg { width: 22px; height: 22px; }
.yp-pass__toggle.is-on { color: var(--yp-link); }

.yp-otp {
    height: 64px !important;
    font-size: 1.8rem !important;
    font-weight: 800;
    letter-spacing: .6em;
    text-align: center !important;
    padding-inline: 0 !important;
    text-indent: .6em;
}

.yp-otp::placeholder { letter-spacing: .6em; text-align: center !important; }

.yp-check { display: flex; align-items: center; gap: 10px; margin: 2px 0 20px; color: var(--yp-text); font-size: .88rem; cursor: pointer; }
.yp-check input { width: 20px; height: 20px; accent-color: var(--yp-primary); }

.yp-btn--lg { min-height: 52px; font-size: 1rem; border-radius: 14px; }
.yp-btn--primary { box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--yp-primary) 80%, transparent); }

.yp-link-sm { color: var(--yp-link); font-size: .82rem; font-weight: 700; text-decoration: none; }
.yp-link-sm:hover { text-decoration: underline; }

.yp-link-btn {
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--yp-link);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}

.yp-link-btn:disabled { color: var(--yp-muted); cursor: default; }

.yp-auth__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

.yp-auth__switch {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--yp-line);
    color: var(--yp-muted);
    font-size: .9rem;
    text-align: center;
}

.yp-auth__switch a { color: var(--yp-link); font-weight: 800; text-decoration: none; }
.yp-auth__switch a:hover { text-decoration: underline; }

/* alerts */
.yp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.9;
}

.yp-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.yp-alert--ok { background: color-mix(in srgb, #38a169 12%, var(--yp-surface)); color: color-mix(in srgb, #22543d 80%, var(--yp-text)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #38a169 35%, transparent); }
.yp-alert--err { background: color-mix(in srgb, #e53e3e 10%, var(--yp-surface)); color: color-mix(in srgb, #c53030 75%, var(--yp-text)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #e53e3e 35%, transparent); }
.yp-alert--dev { background: color-mix(in srgb, #d69e2e 12%, var(--yp-surface)); color: var(--yp-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, #d69e2e 40%, transparent); }
.yp-alert .yp-devsms { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: var(--yp-surface-2); color: var(--yp-text); font-family: inherit; font-size: .9rem; }

/* dark theme: the card glows softly on the black page */
:root[data-theme="dark"] .yp-auth__card {
    background: linear-gradient(180deg, #151e18 0%, #10160f 100%);
    box-shadow: 0 0 0 1px var(--yp-card-edge), inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 80px -30px color-mix(in srgb, var(--yp-primary) 35%, transparent);
}

:root[data-theme="dark"] .yp-auth .yp-field input,
:root[data-theme="dark"] .yp-auth .yp-pass input { background: #0d130f; border-color: #2a3b31; }
:root[data-theme="dark"] .yp-auth .yp-field input:focus,
:root[data-theme="dark"] .yp-auth .yp-pass input:focus { background: #111a14; border-color: var(--yp-primary); }
:root[data-theme="dark"] .yp-tabs > label { background: #0d130f; box-shadow: inset 0 0 0 1px #24342a; }
:root[data-theme="dark"] .yp-tabs > input:checked + label { background: color-mix(in srgb, var(--yp-primary) 22%, #0d130f); color: #c6f6d5; box-shadow: inset 0 0 0 1.5px var(--yp-primary), 0 0 18px -6px color-mix(in srgb, var(--yp-primary) 60%, transparent); }
:root[data-theme="dark"] .yp-alert--ok { color: #c6f6d5; }
:root[data-theme="dark"] .yp-alert--err { color: #fed7d7; }

.yp-logout { margin-top: 8px; text-align: center; }
.yp-drawer__register { display: block; margin-top: 10px; color: var(--yp-muted); font-size: .85rem; text-align: center; text-decoration: none; }
.yp-drawer__register b { color: var(--yp-link); }

/* the search input sits inside its own styled box; keep it transparent in every theme */
.yp-header .search-form .input_search { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.yp-btn + .yp-hint { margin: 12px 0 0; text-align: center; }

/* =====================================================================
   Catalog: category / brand / tag listing + product page extras
   ===================================================================== */

.yp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 14px; padding: 0; list-style: none; font-size: .82rem; }
.yp-crumbs li { color: var(--yp-muted); }
.yp-crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--yp-muted); }
.yp-crumbs a { color: var(--yp-muted); text-decoration: none; }
.yp-crumbs a:hover { color: var(--yp-link); }
.yp-crumbs [aria-current] { color: var(--yp-text); font-weight: 700; }

.yp-listing__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.yp-listing__head h1 { margin: 0; color: var(--yp-text); font-size: 1.35rem; font-weight: 900; line-height: 1.5; }
.yp-listing__head p { margin: 4px 0 0; color: var(--yp-muted); font-size: .9rem; line-height: 1.9; max-width: 70ch; }
.yp-listing__count { color: var(--yp-muted); font-size: .85rem; white-space: nowrap; }
@media (min-width: 768px) { .yp-listing__head h1 { font-size: 1.7rem; } }

/* sub-category chips */
.yp-subcats { display: flex; gap: 10px; margin: 0 -16px 18px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.yp-subcats::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .yp-subcats { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }

.yp-subcat {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px 0 8px;
    border-radius: 16px;
    background: var(--yp-surface);
    box-shadow: 0 0 0 1px var(--yp-line);
    color: var(--yp-text);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow .2s, color .2s;
}

.yp-subcat img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.yp-subcat:hover, .yp-subcat.is-active { color: var(--yp-link); box-shadow: 0 0 0 1.5px var(--yp-primary); }

.yp-listing__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
/* grid items must be allowed to shrink, or the scrolling sort row widens the whole page */
.yp-listing__body > * { min-width: 0; }
@media (min-width: 992px) { .yp-listing__body { grid-template-columns: 260px minmax(0, 1fr); } }

/* filters: sidebar on desktop, drawer on mobile */
.yp-filters { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 992px) {
    .yp-filters { position: sticky; top: 130px; padding: 16px; border-radius: var(--yp-radius); background: var(--yp-surface); box-shadow: 0 0 0 1px var(--yp-line); }
}

@media (max-width: 991.98px) {
    .yp-filters {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        z-index: 1050;
        width: min(88vw, 360px);
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        background: var(--yp-surface);
        box-shadow: -10px 0 40px -10px rgba(0, 0, 0, .3);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .3s var(--yp-ease), visibility .3s;
    }
    .yp-filters.is-open { transform: none; visibility: visible; }
}

.yp-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.yp-filters__head strong { color: var(--yp-text); font-size: 1rem; }

.yp-filter { padding-top: 12px; border-top: 1px solid var(--yp-line); }
.yp-filter:first-of-type { border-top: 0; padding-top: 0; }
.yp-filter > summary { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--yp-text); font-weight: 800; font-size: .9rem; list-style: none; cursor: pointer; }
.yp-filter > summary::-webkit-details-marker { display: none; }
.yp-filter > summary::after { content: "−"; color: var(--yp-muted); }
.yp-filter:not([open]) > summary::after { content: "+"; }

.yp-toggle { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--yp-text); font-size: .88rem; text-decoration: none; }
.yp-toggle__track { position: relative; width: 38px; height: 22px; flex-shrink: 0; border-radius: 11px; background: var(--yp-line); transition: background .2s; }
.yp-toggle__track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--yp-ease); }
.yp-toggle.is-on .yp-toggle__track { background: var(--yp-primary); }
.yp-toggle.is-on .yp-toggle__track::after { transform: translateX(-16px); }
.yp-toggle:hover { color: var(--yp-link); }

.yp-checks { margin: 0; padding: 0; list-style: none; max-height: 260px; overflow-y: auto; }
.yp-check-link { display: flex; align-items: center; gap: 10px; min-height: 38px; color: var(--yp-text); font-size: .88rem; text-decoration: none; }
.yp-check-link small { margin-inline-start: auto; color: var(--yp-muted); }
.yp-check-box { width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--yp-line); transition: background .15s, box-shadow .15s; }
.yp-check-link.is-on .yp-check-box { background: var(--yp-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.yp-check-link:hover { color: var(--yp-link); }

.yp-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yp-price label { display: flex; flex-direction: column; gap: 4px; color: var(--yp-muted); font-size: .78rem; }
.yp-price input { width: 100%; height: 42px; padding: 0 10px; border: 1.5px solid var(--yp-line); border-radius: 10px; background: var(--yp-surface-2); color: var(--yp-text); font-size: 15px; direction: ltr; text-align: left; }
.yp-price input:focus { border-color: var(--yp-primary); outline: none; }
.yp-price .yp-btn { grid-column: 1 / -1; min-height: 40px; }

/* toolbar */
.yp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.yp-btn--soft { min-height: 40px; padding: 0 14px; background: var(--yp-surface); color: var(--yp-text); box-shadow: 0 0 0 1px var(--yp-line); }
.yp-btn--soft svg { width: 18px; height: 18px; }

.yp-sorts { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; font-size: .85rem; }
.yp-sorts::-webkit-scrollbar { display: none; }
.yp-sorts > span { color: var(--yp-muted); white-space: nowrap; }
.yp-sorts a { flex-shrink: 0; padding: 7px 12px; border-radius: 10px; color: var(--yp-muted); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.yp-sorts a:hover { color: var(--yp-text); }
.yp-sorts a.is-active { background: var(--yp-primary-soft); color: var(--yp-link); font-weight: 800; }
@media (max-width: 991.98px) { .yp-sorts { flex: 1 1 100%; order: 2; } }

.yp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .yp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .yp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.yp-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 8px; }
.yp-pager a, .yp-pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--yp-surface); box-shadow: 0 0 0 1px var(--yp-line); color: var(--yp-text); font-size: .9rem; text-decoration: none; }
.yp-pager span { background: none; box-shadow: none; color: var(--yp-muted); }
.yp-pager a:hover { color: var(--yp-link); box-shadow: 0 0 0 1.5px var(--yp-primary); }
.yp-pager a.is-active { background: var(--yp-primary); color: #fff; box-shadow: none; font-weight: 800; }

.yp-about-cat > summary { list-style: none; cursor: pointer; }
.yp-about-cat > summary::-webkit-details-marker { display: none; }
.yp-about-cat > summary h2 { display: inline; margin: 0; color: var(--yp-text); font-size: 1.05rem; font-weight: 800; }
.yp-about-cat[open] > summary { margin-bottom: 10px; }

/* product page: category / brand / tags */
.yp-product-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.yp-product-links .yp-chip svg { width: 18px; height: 18px; }
.yp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.yp-tags a { padding: 4px 12px; border-radius: 20px; background: var(--yp-primary-soft); color: var(--yp-link); font-size: .82rem; text-decoration: none; }
.yp-tags a:hover { background: var(--yp-primary); color: #fff; }

:root[data-theme="dark"] .yp-subcat,
:root[data-theme="dark"] .yp-pager a { background: var(--yp-card-bg); box-shadow: 0 0 0 1px var(--yp-card-edge), var(--yp-card-shine); }
@media (min-width: 992px) {
    :root[data-theme="dark"] .yp-filters { background: var(--yp-card-bg); box-shadow: 0 0 0 1px var(--yp-card-edge), var(--yp-card-shine); }
}
:root[data-theme="dark"] .yp-price input { background: #0d130f; border-color: #2a3b31; }

/* ==========================================================================
   Main menu v2: pill items, badges, highlighted campaign item, card-style mega panel
   ========================================================================== */
.yp-nav { background: var(--yp-surface); border-top: 1px solid var(--yp-line); }
.yp-nav__list { gap: 2px; }
.yp-nav__list > li > a, .yp-nav__toggle { height: 54px; padding: 0 16px; font-size: .94rem; font-weight: 600; border-radius: 0; }
.yp-nav__list > li > a::after { inset-inline: 16px; height: 3px; }
.yp-nav__list > li > a:hover, .yp-nav__toggle:hover { background: color-mix(in srgb, var(--yp-primary) 6%, transparent); }
.yp-nav__list > li:hover > a, .yp-nav__list > li:focus-within > a, .yp-nav__item--mega:hover > .yp-nav__toggle { color: var(--yp-link); }
.yp-nav__list > li:hover > a::after { transform: scaleX(1); }
.yp-nav svg { opacity: .7; }

.yp-badge-tag {
    display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: middle;
    background: var(--yp-accent); color: #fff; font-size: .66rem; font-style: normal; font-weight: 800; line-height: 1.7; letter-spacing: 0;
    animation: yp-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes yp-badge-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--yp-accent) 22%, transparent); } }

/* highlighted item = accent pill */
.yp-nav__list > li > a.yp-nav__hot, .yp-nav__list > li > .yp-nav__hot {
    align-self: center; height: 38px; margin-inline: 6px; padding: 0 16px; border-radius: 999px;
    background: linear-gradient(135deg, var(--yp-accent), color-mix(in srgb, var(--yp-accent) 60%, #f6ad55)); color: #fff !important;
    box-shadow: 0 8px 18px -10px var(--yp-accent);
}
.yp-nav__list > li > a.yp-nav__hot::after { display: none; }
.yp-nav__list > li > a.yp-nav__hot:hover { background: linear-gradient(135deg, var(--yp-accent), color-mix(in srgb, var(--yp-accent) 60%, #f6ad55)); filter: brightness(1.07); }
.yp-nav__hot .yp-badge-tag { background: #fff; color: var(--yp-accent); animation: none; }
.yp-drop a.yp-nav__hot, .yp-drawer__link.yp-nav__hot { color: var(--yp-accent) !important; font-weight: 700; }

/* mega panel */
.yp-mega { border-top: 0; border-radius: 0 0 22px 22px; background: var(--yp-surface); box-shadow: 0 32px 48px -28px rgba(20, 50, 30, .4), 0 0 0 1px var(--yp-line); }
.yp-mega__grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; padding-block: 24px 26px; }
.yp-mega__col { padding: 16px 16px 12px; border-radius: 16px; background: var(--yp-surface-2, var(--yp-bg)); transition: background .2s, transform .2s var(--yp-ease), box-shadow .2s; }
.yp-mega__col:hover { background: var(--yp-primary-soft); transform: translateY(-2px); box-shadow: 0 14px 24px -18px var(--yp-primary); }
.yp-mega__title { display: block; margin-bottom: 8px; padding: 0 0 8px; border: 0; border-bottom: 1px dashed var(--yp-line); color: var(--yp-text); font-size: .98rem; font-weight: 800; text-decoration: none; }
a.yp-mega__title:hover { color: var(--yp-link); }
.yp-mega li a { padding: 6px 4px; border-radius: 8px; font-size: .88rem; }
.yp-mega li a::before { content: "‹"; display: inline-block; width: 12px; margin-inline-end: 4px; color: var(--yp-primary); opacity: 0; transition: opacity .15s; }
.yp-mega li a:hover { padding-inline-start: 4px; color: var(--yp-link); }
.yp-mega li a:hover::before { opacity: 1; }

/* dropdown */
.yp-drop { min-width: 230px; padding: 10px; border-radius: 18px; box-shadow: 0 28px 44px -20px rgba(20, 50, 30, .42), 0 0 0 1px var(--yp-line); }
.yp-drop::before { content: ""; position: absolute; top: -6px; inset-inline-start: 24px; width: 12px; height: 12px; background: var(--yp-surface); transform: rotate(45deg); box-shadow: -1px -1px 0 var(--yp-line); }
.yp-drop .yp-drop::before { display: none; }
.yp-drop a { padding: 10px 14px; border-radius: 11px; font-weight: 500; }
.yp-drop a:hover { padding-inline-start: 18px; }
.yp-drop a { transition: background .15s, padding .15s, color .15s; }

/* mobile drawer */
.yp-drawer__link, .yp-acc > summary { border-radius: 12px; }
.yp-acc > summary > span { display: inline-flex; align-items: center; gap: 4px; }
.yp-drawer__link .yp-badge-tag { margin-inline-start: 8px; }

:root[data-theme="dark"] .yp-nav { background: var(--yp-surface); }
:root[data-theme="dark"] .yp-drop::before { background: var(--yp-surface); }
:root[data-theme="dark"] .yp-mega__col:hover { background: color-mix(in srgb, var(--yp-primary) 18%, var(--yp-surface)); }
@media (prefers-reduced-motion: reduce) { .yp-badge-tag { animation: none; } }
