/* ============================================
   PENTHE — Design System
   Editorial Fashion Magazine · Burgundy & Cream
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Jost:wght@200;300;400;500&family=Noto+Naskh+Arabic:wght@400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
    --burgundy:       #6B1A2A;
    --burgundy-dark:  #4A0F1C;
    --burgundy-light: #8B2A3F;
    --cream:          #F5F0E8;
    --cream-dark:     #EDE7D9;
    --charcoal:       #1C1C1C;
    --charcoal-mid:   #2E2E2E;
    --stone:          #C8C0B0;
    --stone-light:    #E0D9CE;
    --gold:           #B8975A;
    --white:          #FFFFFF;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Jost', sans-serif;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-med:  0 8px 40px rgba(0,0,0,0.14);
    --radius: 0px; /* Sharp edges for luxury */
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 300;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }

/* ── RTL / Arabic support ── */
[dir="rtl"] {
    font-family: 'Noto Naskh Arabic', Georgia, serif;
}
[dir="rtl"] body {
    font-family: 'Noto Naskh Arabic', Georgia, serif;
    letter-spacing: 0;
}
/* Elements that should NOT have letter-spacing in RTL */
[dir="rtl"] .eyebrow,
[dir="rtl"] .label,
[dir="rtl"] .btn,
[dir="rtl"] .cart-btn,
[dir="rtl"] .lang-btn,
[dir="rtl"] .menu-btn,
[dir="rtl"] .menu-close-btn,
[dir="rtl"] .header-nav a,
[dir="rtl"] [class*="letter-spacing"] {
    letter-spacing: 0 !important;
}
/* RTL text alignment */
[dir="rtl"] .form-label,
[dir="rtl"] .form-input,
[dir="rtl"] .profile-dropdown-link { text-align: right; }
/* RTL header direction */
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }
[dir="rtl"] .menu-close-row { left: 48px; right: auto; }
[dir="rtl"] .menu-cols { flex-direction: row-reverse; }
[dir="rtl"] .menu-col ul li a { font-family: 'Noto Naskh Arabic', Georgia, serif; font-size: 1.4rem; }
[dir="rtl"] .menu-col h3 { font-family: 'Noto Naskh Arabic', Georgia, serif; text-align: right; }
[dir="rtl"] .menu-col ul { text-align: right; }
/* RTL profile dropdown */
[dir="rtl"] .profile-dropdown { right: auto; left: 0; }
[dir="rtl"] .profile-dropdown::before { right: auto; left: 12px; }
[dir="rtl"] .profile-dropdown-link { text-align: right; flex-direction: row-reverse; }
[dir="rtl"] .profile-dropdown-name,
[dir="rtl"] .profile-dropdown-email { text-align: right; }
/* RTL toast */
[dir="rtl"] .penthe-toast { right: auto; left: 32px; border-left: none; border-right: 3px solid var(--burgundy); transform: translateX(-120%); }
[dir="rtl"] .penthe-toast.show { transform: translateX(0); }
/* RTL product cards */
[dir="rtl"] .product-name,
[dir="rtl"] .product-price,
[dir="rtl"] .product-cat { text-align: right; }
[dir="rtl"] .product-meta { direction: rtl; }
/* RTL buttons */
[dir="rtl"] .btn { font-family: 'Noto Naskh Arabic', Georgia, serif; }
/* RTL footer */
[dir="rtl"] footer nav { align-items: flex-end; }
[dir="rtl"] footer { direction: rtl; text-align: right; }
/* RTL page-hero accent line flip */
[dir="rtl"] .page-hero::after { right: auto; left: 0; }
[dir="rtl"] .page-hero { text-align: right; }
/* RTL filter bar */
[dir="rtl"] .filter-bar { direction: rtl; }
/* RTL section titles */
[dir="rtl"] .display-xl,
[dir="rtl"] .display-lg,
[dir="rtl"] .display-md { font-family: var(--font-display), 'Noto Naskh Arabic', serif; letter-spacing: 0; }
/* RTL cart toast */
[dir="rtl"] #_penthe_cart_toast ._ct_inner { border-left: none; border-right: 3px solid var(--gold); flex-direction: row-reverse; }
[dir="rtl"] ._ct_title,
[dir="rtl"] ._ct_name { text-align: right; }
/* RTL cart/checkout/orders pages */
[dir="rtl"] .cart-item { flex-direction: row-reverse; }
[dir="rtl"] .cart-item-info { text-align: right; }
[dir="rtl"] .form-group { text-align: right; }
[dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select { direction: rtl; text-align: right; }

/* ── Typography ── */
.display-xl {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 8rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.02em;
}
.display-lg {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
}
.display-md {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 400;
}
.eyebrow {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--burgundy);
    display: block;
}
.eyebrow--light { color: var(--gold); }
.eyebrow--stone { color: var(--stone); }
.body-sm {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    line-height: 1.7;
}
.label {
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

/* ── Header ── */
#penthe-header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 500;
    transition: background var(--transition), box-shadow var(--transition);
}
#penthe-header.scrolled {
    background: rgba(28, 28, 28, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 72px;
}
.header-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 10px;
    color: var(--charcoal);
    text-transform: uppercase;
    transition: color var(--transition);
}
#penthe-header.scrolled .header-logo,
#penthe-header.hero .header-logo { color: var(--cream); }
.header-logo:hover { opacity: 0.75; }

.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 400;
    transition: color var(--transition);
    position: relative;
}
#penthe-header.scrolled .header-nav a { color: var(--cream); }
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--burgundy);
    transition: width var(--transition);
}
.header-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 24px; }
.cart-btn {
    background: none;
    border: none;
    color: var(--charcoal);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}
#penthe-header.scrolled .cart-btn,
#penthe-header.hero .cart-btn { color: var(--cream); }
.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    background: var(--burgundy);
    color: white;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 500;
}
.lang-btn {
    background: none;
    border: none;
    color: var(--charcoal);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color var(--transition);
}
#penthe-header.scrolled .lang-btn,
#penthe-header.hero .lang-btn { color: var(--cream); }
.menu-btn {
    background: none;
    border: none;
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--charcoal);
    cursor: pointer;
    transition: color var(--transition);
}
#penthe-header.scrolled .menu-btn,
#penthe-header.hero .menu-btn { color: var(--cream); }

/* ── Full Screen Menu ── */
#fullscreen-menu {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    z-index: 800;
    display: flex;
    transform: translateY(-100%);
    transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
    overflow: hidden;
}
#fullscreen-menu.open { transform: translateY(0); }
.menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 80px;
}
.menu-close-row {
    position: fixed;
    top: 24px; right: 48px;
    z-index: 900;
    display: block;
}
.menu-close-btn {
    background: none;
    border: none;
    color: var(--cream);
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.menu-close-btn:hover { opacity: 1; }
.menu-cols { display: flex; gap: 80px; }
.menu-col h3 {
    font-size: 0.6rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 32px;
}
.menu-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.menu-col ul li a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--cream);
    transition: color var(--transition);
}
.menu-col ul li a:hover { color: var(--gold); }
.menu-image-panel {
    width: 380px;
    position: relative;
    overflow: hidden;
    background: var(--burgundy-dark);
}
.menu-image-panel img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 48px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}
.btn-primary {
    background: var(--burgundy);
    color: var(--cream);
}
.btn-primary:hover { background: var(--burgundy-dark); }

.btn-outline {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245,240,232,0.4);
}
.btn-outline:hover { background: rgba(245,240,232,0.1); }

.btn-outline-dark {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--cream); }

.btn-dark {
    background: var(--charcoal);
    color: var(--cream);
}
.btn-dark:hover { background: var(--charcoal-mid); }

/* ── Section Spacing ── */
.section { padding: 100px 80px; }
.section--sm { padding: 60px 80px; }
.section--burgundy { background: var(--burgundy); color: var(--cream); }
.section--charcoal { background: var(--charcoal); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--cream-dark { background: var(--cream-dark); }
.section--white { background: var(--white); }

/* ── Product Cards ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px 0;
}
.product-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: cardReveal 0.6s ease forwards;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.13);
}
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.12s; }
.product-card:nth-child(3) { animation-delay: 0.19s; }
.product-card:nth-child(4) { animation-delay: 0.26s; }
.product-card:nth-child(5) { animation-delay: 0.33s; }
.product-card:nth-child(6) { animation-delay: 0.40s; }
.product-img-wrap {
    position: relative;
    background: var(--cream);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,28,28,0.65) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.product-card:hover .product-img-overlay { opacity: 1; }
.product-img-overlay .btn { width: 100%; backdrop-filter: blur(4px); }
.product-meta {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.product-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
}
.product-price {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--burgundy);
    font-weight: 500;
}
.product-cat {
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--stone);
}

/* ── Forms ── */
.form-group { margin-bottom: 28px; }
.form-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(245,240,232,0.5);
    margin-bottom: 10px;
}
.form-label--dark { color: rgba(28,28,28,0.5); }
.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(245,240,232,0.2);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 0;
    outline: none;
    transition: border-color var(--transition);
    font-weight: 300;
}
.form-input:focus { border-color: var(--gold); }
.form-input--dark {
    border-color: rgba(28,28,28,0.2);
    color: var(--charcoal);
}
.form-input--dark:focus { border-color: var(--burgundy); }
.form-input::placeholder { color: rgba(245,240,232,0.3); }
.form-input--dark::placeholder { color: rgba(28,28,28,0.3); }
select.form-input { appearance: none; cursor: pointer; }

/* ── Toast Notification ── */
.penthe-toast {
    position: fixed;
    bottom: 32px; right: 32px;
    background: var(--charcoal);
    color: var(--cream);
    padding: 16px 28px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 9999;
    border-left: 3px solid var(--burgundy);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}
.penthe-toast.show { transform: translateX(0); }
.penthe-toast.success { border-color: var(--gold); }

/* ── Divider ── */
.divider {
    width: 48px;
    height: 1px;
    background: var(--burgundy);
    margin: 24px 0;
}
.divider--light { background: var(--gold); }
.divider--center { margin-left: auto; margin-right: auto; }

/* ── Page hero (non-video) ── */
.page-hero {
    background: var(--charcoal);
    color: var(--cream);
    padding: 160px 80px 80px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 35%;
    height: 4px;
    background: var(--burgundy);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .section, .section--sm { padding: 80px 40px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .header-inner { padding: 0 24px; }
    .header-nav { display: none; }
}
@media (max-width: 768px) {
    .header-inner { height: 60px; padding: 0 16px; }
    .header-actions { gap: 14px; }
    .header-logo { font-size: 1.2rem; letter-spacing: 6px; }
    .cart-btn { font-size: 0; gap: 0; } /* icon only on mobile */
    .cart-count-badge { font-size: 0.6rem; width: 20px; height: 20px; margin: 0; }
    .cart-btn .cart-count-badge { font-size: 0.6rem; }
    /* Show bag text on mobile but keep it small */
    .cart-btn span:first-child { font-size: 0.6rem; letter-spacing: 1px; }
    .profile-icon { width: 26px; height: 26px; font-size: 0.7rem; }
    .lang-btn { font-size: 0.75rem; letter-spacing: 0; padding: 4px; }

    /* Product grid: always 2 columns on tablet/mobile */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* Page hero padding fix for mobile */
    .page-hero { padding: 90px 20px 40px; }

    /* Filter bar sticky top offset */
    .filter-bar { top: 60px !important; }

    /* toast on mobile — full width bottom */
    .penthe-toast {
        bottom: 0; right: 0; left: 0;
        border-left: none; border-top: 3px solid var(--burgundy);
        transform: translateY(100%);
        font-size: 0.65rem;
    }
    .penthe-toast.show { transform: translateY(0); }
    [dir="rtl"] .penthe-toast { left: 0; right: 0; border-right: none; border-top: 3px solid var(--burgundy); transform: translateY(100%); }
    [dir="rtl"] .penthe-toast.show { transform: translateY(0); }

    /* Profile dropdown — prevent overflow on mobile */
    .profile-dropdown {
        right: 0;
        left: auto;
        width: 200px;
    }
    [dir="rtl"] .profile-dropdown {
        left: 0;
        right: auto;
    }

    /* Sections padding */
    .section, .section--sm { padding: 60px 20px; }

    /* RTL mobile header fixes */
    [dir="rtl"] .header-inner { direction: rtl; }
    [dir="rtl"] .menu-btn { order: 3; }
    [dir="rtl"] .header-logo { order: 2; }
    [dir="rtl"] .header-actions { order: 1; }
}
@media (max-width: 640px) {
    .section, .section--sm { padding: 60px 20px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .page-hero { padding: 100px 20px 50px; }
    .menu-body { padding: 80px 24px; }
    .menu-cols { flex-direction: column; gap: 40px; }
    .menu-image-panel { display: none; }
    .menu-close-row { right: 24px; top: 20px; }
    [dir="rtl"] .menu-close-row { left: 24px; right: auto; }
    .menu-col ul li a { font-size: 1.3rem; }
    [dir="rtl"] .menu-col ul li a { font-size: 1.2rem; }
    /* section padding RTL fixes */
    [dir="rtl"] .menu-cols { flex-direction: column-reverse; }

    /* Product name/price smaller on mobile */
    .product-name { font-size: 0.85rem; }
    .product-price { font-size: 0.85rem; }
    .product-cat { font-size: 0.55rem; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .header-logo { font-size: 1.1rem; letter-spacing: 4px; }
    .product-card { border-radius: 8px; }
    /* Cart toast full-width on small mobile */
    #_penthe_cart_toast { bottom: 0 !important; right: 0 !important; left: 0 !important; }
    #_penthe_cart_toast ._ct_inner { min-width: unset; border-left: none; border-top: 3px solid var(--gold); }
    /* Smaller action area */
    .header-actions { gap: 10px; }
}
/* ── Menu close backdrop ── */
#menu-backdrop {
    display: none; position: fixed; inset: 0;
    z-index: 799; cursor: pointer; background: transparent;
}
#menu-backdrop.active { display: block; }

/* ── Profile Dropdown ── */
.profile-wrap { position: relative; }
.profile-btn {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    color: var(--cream); transition: color var(--transition); padding: 6px 0;
}
.profile-icon {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; transition: all var(--transition); font-weight: 400;
}
.profile-btn:hover .profile-icon { background: var(--burgundy); border-color: var(--burgundy); color: white; }
.profile-dropdown {
    position: absolute; top: calc(100% + 14px); right: 0;
    width: 220px; background: var(--charcoal);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease; z-index: 600;
}
.profile-dropdown::before {
    content: ''; position: absolute; top: -6px; right: 12px;
    width: 10px; height: 10px; background: var(--charcoal);
    border-left: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: rotate(45deg);
}
.profile-wrap.open .profile-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.profile-dropdown-header { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.profile-dropdown-name { font-family: var(--font-display); font-size: 0.95rem; color: var(--cream); font-weight: 400; }
.profile-dropdown-email { font-size: 0.6rem; color: rgba(245,240,232,0.35); letter-spacing: 1px; margin-top: 3px; }
.profile-dropdown-link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px; font-size: 0.62rem; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(245,240,232,0.55);
    transition: color 0.2s, background 0.2s; cursor: pointer;
    background: none; border: none; width: 100%; text-align: left;
    font-family: var(--font-body); text-decoration: none;
}
.profile-dropdown-link:hover { color: var(--cream); background: rgba(255,255,255,0.04); }
.profile-dropdown-link.danger:hover { color: #ff8888; background: rgba(107,26,42,0.12); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }
.profile-section { padding: 4px 0; }

/* ── Wishlist Button (product card overlay) ── */
.wish-icon-btn {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(245,240,232,0.92);
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    /* Desktop: hidden until hover */
    opacity: 0;
    transform: scale(0.8);
}
.product-card:hover .wish-icon-btn,
.wish-icon-btn.wishlisted { opacity: 1; transform: scale(1); }
.wish-icon-btn.wishlisted { background: var(--burgundy); color: white; }
.wish-icon-btn:hover { background: var(--burgundy); color: white; transform: scale(1.1); }
[dir="rtl"] .wish-icon-btn { right: auto; left: 12px; }

/* Mobile: always visible (no hover on touch devices) */
@media (hover: none), (max-width: 768px) {
    .wish-icon-btn {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Wishlist Page ── */
.wishlist-hero {
    background: var(--charcoal);
    color: var(--cream);
    padding: 140px 80px 60px;
    position: relative;
}
.wishlist-hero::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 35%; height: 3px; background: var(--burgundy);
}
.wishlist-grid-wrap { padding: 60px 80px 100px; }
.wishlist-empty {
    text-align: center;
    padding: 100px 40px;
}
.wishlist-empty-icon { font-size: 3rem; margin-bottom: 24px; opacity: 0.25; }
.wishlist-empty-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--charcoal);
}
.wishlist-empty-sub { font-size: 0.8rem; color: var(--stone); letter-spacing: 1px; margin-bottom: 36px; }
[dir="rtl"] .wishlist-hero { text-align: right; }
[dir="rtl"] .wishlist-hero::after { right: auto; left: 0; }
[dir="rtl"] .wishlist-empty { text-align: center; }

@media (max-width: 768px) {
    .wishlist-hero { padding: 110px 24px 48px; }
    .wishlist-grid-wrap { padding: 40px 20px 80px; }
    [dir="rtl"] .wishlist-hero { padding: 110px 24px 48px; }
}

/* ── Mobile: profile dropdown tap support ── */
@media (max-width: 1024px) {
    .profile-wrap.open .profile-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
    /* RTL profile dropdown on mobile stays on correct side */
    [dir="rtl"] .profile-dropdown { right: auto; left: 0; }
}

/* ── RTL mobile overrides ── */
@media (max-width: 768px) {
    [dir="rtl"] .header-inner { flex-direction: row-reverse; padding: 0 16px; }
    [dir="rtl"] .header-actions { flex-direction: row-reverse; gap: 10px; }
    [dir="rtl"] .menu-close-row { left: 24px; right: auto; }
    [dir="rtl"] .penthe-toast { left: 0; right: 0; border-right: none; border-top: 3px solid var(--burgundy); transform: translateY(100%); }
    [dir="rtl"] .penthe-toast.show { transform: translateY(0); }
    [dir="rtl"] .filter-bar { direction: rtl; justify-content: flex-start; }
}