/*
 * Visual refresh of the main store: header, product cards, category page, footer.
 * Same palette as the catalog (catalog/site/style.css). Loaded after style.css.
 * The page also has inline <style> blocks later in <body>, so rules here use a
 * "body" prefix to win without !important where possible.
 */
:root {
    --brand-pink: #e7739f;
    --brand-rose: #c64a7d;
    --brand-blush: #fde8f0;
    --brand-cream: #fff8fa;
    --brand-gold: #d4a63c;
    --brand-ink: #2b1d24;
    --brand-muted: #7d6570;
    --brand-line: #f3d6e2;
}

body { background: var(--brand-cream); color: var(--brand-ink); }

/* ---------- Header ---------- */
body .header {
    background: linear-gradient(90deg, #2b1d24 0%, #3b2230 55%, #2b1d24 100%);
    border-bottom: 0;
    box-shadow: 0 4px 18px rgba(43, 29, 36, .25);
    padding-top: 10px;
    padding-bottom: 10px;
}
body .header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
    opacity: .7;
}

/* menu links (the pill padding replaces most of the old 35px gap) */
@media (min-width: 993px) {
    body .main-nav ul { gap: 4px; align-items: center; }
}
body .main-nav ul li a,
body .header-btn { white-space: nowrap; }
body .main-nav ul li a {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    border-bottom: 0;
    transition: background .2s, color .2s;
}
body .main-nav ul li a:hover { color: #ffd1e1; background: rgba(231, 115, 159, .14); }
body .main-nav ul li a.nav-active {
    color: #fff;
    background: rgba(231, 115, 159, .28);
    border-bottom: 0;
    padding-bottom: 7px;
    box-shadow: inset 0 0 0 1px rgba(231, 115, 159, .55);
}
body .main-nav ul li a.nav-catalog { box-shadow: 0 4px 14px rgba(231, 115, 159, .35); }

/* search */
body .search-box input {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
body .search-box input::placeholder { color: rgba(255, 255, 255, .55); }
body .search-box input:focus {
    background: rgba(255, 255, 255, .13);
    border-color: var(--brand-pink);
    box-shadow: 0 0 0 3px rgba(231, 115, 159, .25);
}
body .search-box i.fa-search { color: #f3b6cc; }

/* buttons: login / language / cart */
body .header-btn {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
}
body .header-btn:hover {
    background: var(--brand-pink);
    border-color: var(--brand-pink);
}
body .header-btn.lang-btn { border-color: rgba(212, 166, 60, .6); color: #f5d98f; }
body .header-btn.lang-btn:hover { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--brand-ink); }
body .cart-btn .badge {
    background: var(--brand-pink);
    box-shadow: 0 0 0 2px #2b1d24;
}

/* mobile drawer menu keeps its white panel; tint the links */
@media (max-width: 992px) {
    body .main-nav ul li a { color: var(--brand-ink); }
    body .main-nav ul li a:hover,
    body .main-nav ul li a.nav-active { color: var(--brand-rose); background: var(--brand-blush); box-shadow: none; }
    body .main-nav ul li a.nav-catalog { color: #fff; }
}

/* ---------- Category page header band ---------- */
.cat-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(231, 115, 159, .16), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(212, 166, 60, .14), transparent 40%),
        linear-gradient(160deg, #fff 0%, var(--brand-blush) 100%);
    border-bottom: 1px solid var(--brand-line);
    padding: 26px 0 30px;
    text-align: center;
    margin-bottom: 32px;
}
.cat-hero .breadcrumb {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
    font-size: 14px; color: var(--brand-muted);
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--brand-line);
    padding: 5px 14px; border-radius: 999px;
}
.cat-hero .breadcrumb a { color: var(--brand-rose); font-weight: 600; }
.cat-hero .breadcrumb a:hover { text-decoration: underline; }
.cat-hero .breadcrumb .sep { opacity: .5; }
.cat-hero .category-title {
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 800;
    margin: 14px 0 6px;
    color: var(--brand-ink);
}
.cat-hero .category-title::after {
    content: ''; display: block; width: 64px; height: 3px; margin: 10px auto 0; border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-gold));
}
.cat-hero .cat-count {
    display: inline-block; margin-top: 6px;
    font-size: 14px; font-weight: 700; color: var(--brand-rose);
}
.category-layout { padding-bottom: 20px; }

/* ---------- Product cards (home + category) ---------- */
body .product-grid { gap: 24px; }
body .product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(198, 74, 125, .10);
    border: 1px solid var(--brand-line);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
body .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(198, 74, 125, .20);
}
body .product-image {
    border: 0;
    background: #fff;
}
body .product-image img { padding: 10px; }
body .product-info {
    border: 0;
    border-top: 1px solid var(--brand-line);
    padding: 12px 14px 16px;
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
body .product-cat {
    display: inline-block;
    font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
    color: var(--brand-rose);
    background: var(--brand-blush);
    padding: 3px 10px; border-radius: 999px;
    margin-bottom: 4px;
}
body .product-cat:empty { display: none; }
body .product-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
body .product-name a:hover { color: var(--brand-rose) !important; }
body .product-price { color: var(--brand-rose); font-weight: 800; font-size: 17px; direction: ltr; }
body .product-price .old-price { font-weight: 500; }

/* add-to-cart circle + quick add */
body .action-btn {
    background: var(--brand-pink); color: #fff;
    box-shadow: 0 6px 16px rgba(231, 115, 159, .45);
    transition: transform .15s, background .15s;
}
body .action-btn:hover { background: var(--brand-rose); transform: scale(1.08); }
body .sold-out-badge { border-radius: 999px !important; background: rgba(43, 29, 36, .85) !important; }

/* section titles on the home page */
body .section-title h2 { font-weight: 800; color: var(--brand-ink); }
body .section-title h2::after {
    content: ''; display: block; width: 64px; height: 3px; margin: 12px auto 0; border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-gold));
}

/* ---------- Footer (inline styles on the element, so !important) ---------- */
body .main-footer {
    background: linear-gradient(180deg, #2b1d24, #22161c) !important;
    border-top: 2px solid rgba(212, 166, 60, .55) !important;
}
body .main-footer .footer-links a:first-child { color: #f3b6cc !important; }
body .main-footer .footer-links a:hover { color: #fff !important; }

@media (max-width: 768px) {
    .cat-hero { padding: 18px 0 22px; margin-bottom: 20px; }
    body .product-grid { gap: 12px; }
    body .product-info { padding: 10px 8px 12px; }
    body .product-name { font-size: 13px; }
    body .product-price { font-size: 15px; }
    body .product-cat { font-size: 10px; padding: 2px 8px; }
}

/* ---------- Product cards: nicer photo + share row (assets/js/cards.js) ---------- */
body .product-card { border-radius: 22px; position: relative; }
body .product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(198, 74, 125, .22); }
body .product-image {
    margin: 10px 10px 0;
    border-radius: 16px;
    aspect-ratio: 4 / 5;
    isolation: isolate;
    background: var(--brand-blush);
}
/* blurred copy of the photo fills the empty bands around it */
body .product-image.has-bg::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--bg) center / cover no-repeat;
    filter: blur(22px) saturate(1.25);
    transform: scale(1.25);
    opacity: .6;
}
body .product-image.has-bg::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0) 40%, rgba(43, 29, 36, .06));
}
body .product-image img { padding: 0; transition: opacity .4s ease, transform .6s cubic-bezier(.2, .75, .2, 1); }
body .product-card:hover .product-image img.hover-img { transform: scale(1.04); }
body .product-image img.main-img { filter: drop-shadow(0 8px 18px rgba(43, 29, 36, .14)); }
body .product-image .product-actions,
body .product-image .discount-badge { z-index: 5; }
body .product-image .discount-badge { border-radius: 999px !important; padding: 4px 10px !important; box-shadow: 0 4px 12px rgba(255, 51, 51, .35); }
body .quick-add-overlay { border-radius: 16px 16px 0 0; }

body .product-info { border-top: 0; padding: 12px 14px 14px; gap: 6px; }
body .product-name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .product-price {
    display: inline-flex; align-items: baseline; gap: 6px;
    background: linear-gradient(135deg, #fff, var(--brand-blush));
    border: 1px solid var(--brand-line);
    padding: 3px 14px; border-radius: 999px;
}

/* share row */
.share-row {
    display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
    margin-top: auto; padding-top: 10px; width: 100%;
    border-top: 1px dashed var(--brand-line);
}
.share-btn {
    width: 34px; height: 34px; border-radius: 11px;
    display: inline-grid; place-items: center;
    background: #f4f6f9; color: #1f2937;
    border: 1px solid #e8ebf0; padding: 0; cursor: pointer;
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-x:hover { background: #000; border-color: #000; }
.share-email:hover { background: #ea4335; border-color: #ea4335; }
.share-copy:hover { background: var(--brand-pink); border-color: var(--brand-pink); }
.share-btn.done { background: #1fae55; border-color: #1fae55; color: #fff; }
.share-btn:focus-visible { outline: 2px solid var(--brand-pink); outline-offset: 2px; }
.share-row-hero { border-top: 0; margin-top: 12px; padding-top: 0; }
.share-row-hero .share-btn { background: rgba(255, 255, 255, .85); border-color: var(--brand-line); }

@media (max-width: 768px) {
    body .product-image { margin: 6px 6px 0; border-radius: 12px; }
    body .product-price { padding: 2px 10px; }
    .share-row { gap: 4px; padding-top: 8px; }
    .share-btn { width: 28px; height: 28px; border-radius: 9px; }
    .share-btn svg { width: 14px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .share-btn, body .product-image img { transition: none; }
}

/* ---------- Login / register modal ---------- */
body .login-modal {
    background: radial-gradient(circle at 50% 30%, rgba(198, 74, 125, .35), rgba(43, 29, 36, .72));
    backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2);
    padding: 16px;
}
body .login-modal.active { animation: lm-fade .3s ease; }
@keyframes lm-fade { from { opacity: 0; } }
body .login-modal-content {
    width: 100%; max-width: 430px; max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 0 28px 26px; border-radius: 28px; font-family: 'Tajawal', sans-serif;
    background: #fff; box-shadow: 0 30px 80px rgba(43, 29, 36, .45), 0 0 0 1px rgba(255, 255, 255, .6);
    scrollbar-width: none;
}
body .login-modal-content::-webkit-scrollbar { display: none; }
body .login-modal.active .login-modal-content { animation: lm-pop .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes lm-pop { from { opacity: 0; transform: translateY(40px) scale(.85); } }

/* pink header with floating hearts */
.lm-hero {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px;
    margin: 0 -28px; padding: 26px 20px 58px; color: #fff;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-rose) 60%, #a83a68);
}
.lm-hero::before, .lm-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.lm-hero::before { width: 180px; height: 180px; top: -90px; inset-inline-start: -50px; }
.lm-hero::after { width: 120px; height: 120px; bottom: -50px; inset-inline-end: -30px; background: rgba(212, 166, 60, .25); }
.lm-hello { position: relative; z-index: 1; font-size: 22px; font-weight: 800; }
.lm-sub { position: relative; z-index: 1; font-size: 14px; opacity: .92; }
.lm-hero i {
    position: absolute; bottom: -20px; font-style: normal; line-height: 1; color: #fff; opacity: 0;
    animation: lm-float 6s linear infinite;
}
.lm-hero i:nth-child(1) { left: 8%; font-size: 14px; animation-delay: 0s; }
.lm-hero i:nth-child(2) { left: 24%; font-size: 11px; animation-delay: -2s; color: #ffe08a; }
.lm-hero i:nth-child(3) { left: 42%; font-size: 16px; animation-delay: -4s; }
.lm-hero i:nth-child(4) { left: 62%; font-size: 12px; animation-delay: -1s; color: #ffe08a; }
.lm-hero i:nth-child(5) { left: 78%; font-size: 15px; animation-delay: -3s; }
.lm-hero i:nth-child(6) { left: 92%; font-size: 10px; animation-delay: -5s; }
@keyframes lm-float {
    0% { opacity: 0; transform: translateY(0) rotate(0); }
    15% { opacity: .7; }
    85% { opacity: .5; }
    100% { opacity: 0; transform: translateY(-150px) rotate(40deg); }
}
/* logo in a circle overlapping the header */
.lm-avatar {
    position: relative; width: 92px; height: 92px; margin: -46px auto 6px; border-radius: 50%;
    display: grid; place-items: center; isolation: isolate;
}
.lm-avatar::before { /* spinning ring */
    content: ''; position: absolute; inset: -9px; border-radius: 50%; z-index: -1;
    background: conic-gradient(var(--brand-pink), var(--brand-gold), var(--brand-rose), #fff, var(--brand-pink));
    animation: lm-spin 5s linear infinite;
}
.lm-avatar::after { /* white disc on top of the ring */
    content: ''; position: absolute; inset: -2px; border-radius: 50%; z-index: -1;
    background: #fff; box-shadow: 0 10px 26px rgba(198, 74, 125, .35);
}
@keyframes lm-spin { to { transform: rotate(360deg); } }
.lm-avatar img { width: 74px; height: auto; }

body .close-login-btn {
    z-index: 3; top: 14px; left: auto; inset-inline-end: 14px;
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .22); color: #fff; font-size: 24px;
    transition: transform .3s, background .2s;
}
body .close-login-btn:hover { color: #fff; background: rgba(255, 255, 255, .38); transform: rotate(90deg); }

body .login-modal .login-title { font-size: 22px; font-weight: 800; color: var(--brand-ink); margin: 6px 0 18px; text-transform: none; letter-spacing: 0; }
body .login-modal .login-form-panel > p { color: var(--brand-muted) !important; }

/* fields */
body .login-modal .form-group { position: relative; text-align: start; }
body .login-modal .form-group label {
    text-align: start; text-transform: none; font-size: 13px; font-weight: 800; color: var(--brand-rose);
}
body .login-modal .form-group input {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
    border: 1.5px solid var(--brand-line); background: var(--brand-cream);
    font-size: 15px; color: var(--brand-ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
body .login-modal .form-group input:focus {
    border-color: var(--brand-pink); background: #fff;
    box-shadow: 0 0 0 4px rgba(231, 115, 159, .16);
}
body .login-modal .form-group input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--brand-cream) inset; -webkit-text-fill-color: var(--brand-ink); }
body .login-modal .field-ico {
    position: absolute; bottom: 0; height: 50px; display: flex; align-items: center;
    color: #c9a3b4; font-size: 15px; pointer-events: none; transition: color .2s, transform .3s;
}
body .login-modal .password-wrapper .field-ico { bottom: auto; top: 0; }
body .login-modal .form-group:focus-within .field-ico { color: var(--brand-pink); transform: scale(1.15); }
body .login-modal .toggle-password { color: #c9a3b4 !important; transition: color .2s; }
body .login-modal .toggle-password:hover { color: var(--brand-rose) !important; }
/* inputs are LTR; put the icon on the start side of the page and the eye on the other */
[dir="rtl"] body .login-modal .field-ico { right: 15px; }
[dir="rtl"] body .login-modal .form-group input { padding-right: 42px !important; padding-left: 40px !important; }
[dir="ltr"] body .login-modal .field-ico { left: 15px; }
[dir="ltr"] body .login-modal .form-group input { padding-left: 42px !important; padding-right: 40px !important; }

/* main button */
body .login-modal .submit-btn {
    position: relative; overflow: hidden; height: 52px; margin-top: 14px; border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-rose));
    font-family: 'Tajawal', sans-serif; font-size: 17px; font-weight: 800; text-transform: none; letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(198, 74, 125, .4);
}
body .login-modal .submit-btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%);
    transform: translateX(-120%); animation: lm-shine 3s ease-in-out infinite;
}
@keyframes lm-shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
body .login-modal .submit-btn:hover { background: linear-gradient(135deg, var(--brand-rose), #a83a68); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(198, 74, 125, .5); }

body .login-modal .login-divider::before { background: linear-gradient(90deg, transparent, var(--brand-line), transparent); }
body .login-modal .login-divider span { color: var(--brand-gold); font-weight: 700; }
body .login-modal a#goToRegister,
body .login-modal a#goToLogin,
body .login-modal a#forgotBackToLogin { color: var(--brand-rose) !important; font-weight: 800 !important; border-bottom: 2px solid rgba(231, 115, 159, .35); }
body .login-modal a#goToForgotPassword { color: var(--brand-muted) !important; }
body .login-modal a:hover { color: var(--brand-pink) !important; }

/* content slides in when the modal opens */
body .login-modal.active .login-form-panel > *,
body .login-modal.active form > * { animation: lm-up .5s cubic-bezier(.2, .75, .2, 1) backwards; }
body .login-modal.active form > :nth-child(1) { animation-delay: .15s; }
body .login-modal.active form > :nth-child(2) { animation-delay: .22s; }
body .login-modal.active form > :nth-child(3) { animation-delay: .29s; }
body .login-modal.active form > :nth-child(n+4) { animation-delay: .36s; }
@keyframes lm-up { from { opacity: 0; transform: translateY(14px); } }
.lm-shake { animation: lm-shake .45s ease !important; }
@keyframes lm-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

@media (max-width: 480px) {
    body .login-modal-content { padding: 0 18px 22px; border-radius: 24px; }
    .lm-hero { margin: 0 -18px; padding: 22px 16px 54px; }
    .lm-hello { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .lm-hero i, .lm-avatar::before, body .login-modal .submit-btn::after { animation: none; }
}

/* tighter menu pills on medium screens so the header never overflows */
@media (min-width: 993px) and (max-width: 1450px) {
    body .main-nav ul li a { padding: 6px 8px; }
}
@media (min-width: 993px) and (max-width: 1200px) {
    body .main-nav ul li a { padding: 5px 6px; }
    body .main-nav ul { gap: 2px; }
}
@media (min-width: 993px) and (max-width: 1100px) {
    body .logo img { height: 70px !important; }
    body .header-right { padding-inline-end: 8px; }
}

/* Phones/tablets: the logo shrinks to fit between the menu button and the header buttons.
   (At a fixed 90px height it was 264px wide, pushed the EN button off-screen and made the whole page scroll sideways.) */
@media (max-width: 992px) {
    body .header .logo { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
    body .header .logo a { max-width: 100%; min-width: 0; }
    body .header .logo img,
    body .header.mo-small .logo img { height: auto !important; max-height: 90px; max-width: 100%; min-width: 0; object-fit: contain; }
    body .header.mo-small .logo img { max-height: 64px; }
    body .header .header-container { gap: 8px; }
    body .menu-toggle, body .header-right { flex-shrink: 0; }
}
/* Safety net: nothing may make the page wider than the screen */
body { overflow-x: clip; }

/* ---------- Phone/tablet drawer menu ---------- */
@media (max-width: 992px) {
    body .main-nav {
        top: var(--nav-top, 83px);
        height: calc(100dvh - var(--nav-top, 83px));
        width: min(300px, 86vw);
        padding: 18px 16px 28px;
        gap: 16px;
        background: linear-gradient(180deg, #fff 0%, var(--brand-cream) 45%, var(--brand-blush) 100%);
        border-end-start-radius: 22px;
        box-shadow: -10px 0 30px rgba(43, 29, 36, .22);
        overflow-y: auto;
        overscroll-behavior: contain;
        font-family: 'Tajawal', 'Jost', sans-serif;
    }
    html[dir="ltr"] body .main-nav { box-shadow: 10px 0 30px rgba(43, 29, 36, .22); }

    /* search box: readable on the light panel */
    body .main-nav .mobile-search { margin: 0; }
    body .main-nav .mobile-search input {
        width: 100%; height: 46px; padding: 0 44px 0 16px;
        background: #fff; color: var(--brand-ink);
        border: 1.5px solid var(--brand-line); border-radius: 999px;
        font-size: 15px; font-family: inherit;
        box-shadow: 0 4px 14px rgba(231, 115, 159, .1);
    }
    body .main-nav .mobile-search input::placeholder { color: var(--brand-muted); opacity: .8; }
    body .main-nav .mobile-search input:focus { border-color: var(--brand-pink); box-shadow: 0 0 0 4px rgba(231, 115, 159, .15); background: #fff; }
    body .main-nav .mobile-search i.fa-search { color: var(--brand-pink); font-size: 16px; }

    /* links as soft cards */
    body .main-nav ul { gap: 8px; align-items: stretch; }
    body .main-nav ul li a {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        padding: 13px 16px; border: 1px solid var(--brand-line); border-radius: 14px;
        background: #fff; color: var(--brand-ink);
        font-size: 16px; font-weight: 700; line-height: 1.3;
        box-shadow: 0 2px 8px rgba(43, 29, 36, .04);
        transition: background .2s, color .2s, border-color .2s, transform .2s;
    }
    body .main-nav ul li a::after {
        content: '‹'; font-size: 22px; line-height: 1; color: var(--brand-pink);
        transition: transform .2s;
    }
    html[dir="ltr"] body .main-nav ul li a::after { content: '›'; }
    body .main-nav ul li a:hover,
    body .main-nav ul li a:active { background: var(--brand-blush); color: var(--brand-rose); border-color: var(--brand-pink); }
    body .main-nav ul li a:hover::after { transform: translateX(-3px); }
    html[dir="ltr"] body .main-nav ul li a:hover::after { transform: translateX(3px); }
    body .main-nav ul li a.nav-active {
        background: var(--brand-blush); color: var(--brand-rose); border-color: var(--brand-pink);
        box-shadow: inset 4px 0 0 var(--brand-pink);
    }
    html[dir="rtl"] body .main-nav ul li a.nav-active { box-shadow: inset -4px 0 0 var(--brand-pink); }

    /* catalog: full-width pink button at the end */
    body .main-nav ul li:last-child { margin-top: 8px; }
    body .main-nav ul li a.nav-catalog {
        justify-content: center; padding: 14px 16px !important; border: 0 !important;
        background: linear-gradient(135deg, var(--brand-pink), var(--brand-rose)); color: #fff !important;
        font-size: 16px; box-shadow: 0 8px 20px -6px rgba(198, 74, 125, .55);
    }
    body .main-nav ul li a.nav-catalog::after { content: none; }

    /* dim the page behind the open menu (header stays on top so the X still works) */
    body::before {
        content: ''; position: fixed; inset: 0; z-index: 99;
        background: rgba(43, 29, 36, .45); backdrop-filter: blur(2px);
        opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    }
    html.nav-open body::before { opacity: 1; visibility: visible; }
    html.nav-open { overflow: hidden; }
}
