/* =====================================================
   کی‌کو میلانو — استایل فروشگاه آرایشی (RTL)
   Palette: #111111 | #ffffff | #fdecef | #ff4d7d | #f7f7f7
   Fonts: Vazirmatn · Playfair Display (لوگو)
   ===================================================== */

:root {
    --ink: #111111;
    --bg: #ffffff;
    --pink-soft: #fdecef;
    --accent: #ff4d7d;
    --accent-dark: #e03563;
    --gray: #f7f7f7;
    --muted: #8a8a8a;
    --border: #ebebeb;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --topbar-h: 70px;
    --nav-h: 48px;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Vazirmatn", Tahoma, sans-serif;
    --font-ui: "Vazirmatn", Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

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


/* =====================================================
   TOP HEADER — fixed search / logo / icons
   ===================================================== */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    padding: 6px 0;
    border: none;
    background: transparent;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    transition: 0.25s;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 280px;
    padding: 10px 16px;
    background: var(--gray);
    border-radius: 30px;
}

.topbar-search .icon-search {
    color: var(--muted);
    display: flex;
}

.topbar-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink);
}

.topbar-search input::placeholder {
    color: #b0b0b0;
}

.brand-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    line-height: 1;
    text-align: right;
}

.brand-logo-img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 77, 125, 0.25);
    background: #000;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.brand-top {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-bottom {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--muted);
}

.topbar-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
}

.icon-btn:hover {
    background: var(--pink-soft);
    color: var(--accent);
}

.icon-btn .badge {
    position: absolute;
    top: 4px;
    left: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}


/* =====================================================
   CATEGORY NAV — pastel gradient, uppercase, letter-spacing
   ===================================================== */

.category-nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 190;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 20px;
    overflow-x: auto;
    background: linear-gradient(90deg, #fff0f5 0%, #fdecef 40%, #fff5f8 100%);
    border-bottom: 1px solid rgba(255, 77, 125, 0.08);
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    flex: 0 0 auto;
    display: inline-block;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    white-space: nowrap;
    position: relative;
    transition: color 0.25s;
    text-decoration: none;
    cursor: pointer;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    transform: scaleX(1);
}


/* =====================================================
   HERO SLIDER — full-width fade + Ken Burns
   ===================================================== */

.hero-slider {
    position: relative;
    margin-top: calc(var(--topbar-h) + var(--nav-h));
    height: min(79vh, 682px);
    overflow: hidden;
    background: #1a0f14;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-color: #2a121c;
}

.slide:nth-child(1) {
    background-image:
        linear-gradient(120deg, rgba(26, 10, 18, 0.55), rgba(255, 77, 125, 0.25)),
        url("/static/images/back1.jpg"),
        linear-gradient(135deg, #2a121c, #ff4d7d);
}

.slide:nth-child(2) {
    background-image:
        linear-gradient(120deg, rgba(26, 10, 18, 0.55), rgba(255, 77, 125, 0.2)),
        url("/static/images/home2.jpg"),
        linear-gradient(135deg, #1c1228, #c44d7a);
}

.slide:nth-child(3) {
    background-image:
        linear-gradient(120deg, rgba(26, 10, 18, 0.55), rgba(255, 77, 125, 0.25)),
        url("/static/images/home3.jpg"),
        linear-gradient(135deg, #221018, #e03563);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Ken Burns zoom on the active slide */
.slide.active {
    animation: kenBurns 5s ease-out forwards;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* =====================================================
   معرفی Ninax — اسلاید پیکسلی home1/2/3 + متن بزرگ
   ===================================================== */

.welcome-section {
    position: relative;
    overflow: hidden;
    min-height: min(55vh, 518px);
}

.welcome-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #1a0a12;
}

.welcome-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.4s ease-in-out, transform 5s ease-out;
    transform: scale(1);
    will-change: opacity, transform;
    /* کمی روشن‌تر تا عکس‌ها بهتر دیده شوند */
    filter: brightness(1.08) contrast(1.05) saturate(1.08);
}

.welcome-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1.05);
}

.welcome-pixel-veil {
    display: none;
}

.welcome-overlay {
    position: relative;
    z-index: 5;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 40px 24px;
    /* بالای بخش روشن‌تر تا عکس پشت عنوان دیده شود */
    background: linear-gradient(
        180deg,
        rgba(12, 4, 10, 0.18) 0%,
        rgba(12, 4, 10, 0.35) 28%,
        rgba(12, 4, 10, 0.55) 70%,
        rgba(12, 4, 10, 0.7) 100%
    );
}

/* عنوان مستقیم روی عکس‌ها */
.welcome-eyebrow {
    margin: 0;
    max-width: 900px;
    padding: 14px 22px;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.7;
    text-align: center;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.7),
        0 6px 24px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(255, 77, 125, 0.35);
    background: rgba(8, 3, 6, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* کارت متن — شفاف‌تر تا پس‌زمینه دیده شود */
.welcome-card {
    width: min(860px, 100%);
    padding: 28px 34px;
    border-radius: 22px;
    background: rgba(8, 3, 6, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.welcome-text {
    width: 100%;
    color: #fff;
    line-height: 2;
    text-align: right;
    direction: rtl;
}

.welcome-lead {
    margin: 0 0 22px;
    padding-bottom: 18px;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.9;
    color: #ffffff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.welcome-body {
    margin: 0 0 8px;
}

.welcome-body p,
.welcome-guide {
    margin: 0 0 16px;
    font-size: clamp(14px, 1.45vw, 17px);
    font-weight: 500;
    color: #ffffff;
    text-align: justify;
    text-justify: inter-word;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.welcome-shipping {
    margin: 18px 0 20px;
    padding: 18px 20px;
    background: rgba(255, 77, 125, 0.22);
    border: 1px solid rgba(255, 208, 220, 0.35);
    border-radius: 14px;
    text-align: right;
}

.welcome-shipping h3 {
    margin: 0 0 10px;
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.8;
}

.welcome-shipping .shipping-label {
    margin: 0 0 6px;
    font-size: clamp(14px, 1.35vw, 16px);
    font-weight: 700;
    color: #ffd0dc;
}

.welcome-shipping ul {
    margin: 0;
    padding: 0 18px 0 0;
    list-style: disc;
}

.welcome-shipping li {
    font-size: clamp(14px, 1.35vw, 16px);
    color: #ffffff;
    line-height: 1.9;
}

.welcome-shipping strong {
    color: #ffe0ea;
    font-weight: 800;
}

.welcome-brand {
    margin: 22px 0 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.welcome-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 4px;
}

.welcome-brand-name {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.welcome-brand-tag {
    font-size: clamp(14px, 1.45vw, 17px);
    color: #ffe0ea;
    font-weight: 600;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.welcome-cta {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    transition: transform 0.25s, background 0.25s, color 0.25s;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.welcome-cta:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.welcome-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.welcome-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.welcome-dot.active {
    width: 28px;
    border-radius: 10px;
    background: #fff;
}

/* بنر صفحات دسته — پس‌زمینه: {tab}_back.jpg + زوم داینامیک */
.category-banner {
    margin-top: calc(var(--topbar-h) + var(--nav-h));
    min-height: min(62vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #2a121c;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.category-banner-bg {
    position: absolute;
    inset: -8%;
    z-index: 0;
    background-color: #2a121c;
    background-image: var(--banner-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: bannerZoom 10s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes bannerZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.14);
    }
}

.category-banner-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 28px;
    color: #fff;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.category-banner h1 {
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.category-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.slide-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 8%;
    color: #fff;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
    text-align: right;
}

.slide-eyebrow {
    margin: 0 0 14px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #ffd0dc;
}

.slide-overlay h1 {
    margin: 0 0 28px;
    font-family: var(--font-display);
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 600;
    line-height: 1.25;
    max-width: 560px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 2px;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.hero-cta:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.slide-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
    transition: 0.3s;
}

.dot.active {
    background: #fff;
    width: 24px;
    border-radius: 10px;
}


/* =====================================================
   PRODUCT PANELS & GRID
   ===================================================== */

main#shop {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 28px 140px;
}

.product-panel {
    display: none;
    animation: panelIn 0.4s ease;
}

.product-panel.active {
    display: block;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.panel-heading h2 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0;
}

.panel-count {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 24px;
}

.empty-panel {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
    font-family: var(--font-ui);
}

.load-more-wrap {
    margin-top: 36px;
    text-align: center;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.load-more-btn {
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.load-more-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.load-more-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 16px 22px;
    background: var(--pink-soft);
    border-radius: 30px;
}

.load-more-spinner[hidden] {
    display: none !important;
}

.load-more-spinner::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 77, 125, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinLoad 0.8s linear infinite;
}

@keyframes spinLoad {
    to {
        transform: rotate(360deg);
    }
}

.load-end {
    margin: 28px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}


/* =====================================================
   PRODUCT CARD — soft shadow, floating image, hover lift
   ===================================================== */

.product-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.3s ease;
}

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

.card-image {
    position: relative;
    aspect-ratio: 1 / 1.05;
    background: var(--gray);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.card-image img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    transition: transform 0.45s ease;
}

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

.no-image {
    width: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 12px;
}

.no-image img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.promo {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 2px;
}

.wishlist-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: color 0.25s, transform 0.25s;
}

.wishlist-toggle:hover,
.wishlist-toggle.active {
    color: var(--accent);
    transform: scale(1.1);
}

.wishlist-toggle.active {
    animation: heartPop 0.4s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1.1); }
}

.card-subtitle {
    margin: 0 0 4px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.card-name {
    margin: 0 0 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
}

.stars {
    color: #111;
    letter-spacing: 1px;
    font-size: 11px;
}

.rating-num {
    font-weight: 600;
}

.reviews {
    color: var(--muted);
}

.price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.discount-tag {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.current-price {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
}

.old-price {
    font-size: 13px;
    color: var(--muted);
}

.add-to-bag {
    margin-top: auto;
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 2px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.product-card:hover .add-to-bag,
.add-to-bag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.add-to-bag.added {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}


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

.site-footer {
    position: relative;
    text-align: center;
    padding: 64px 24px 130px;
    color: rgba(255, 255, 255, 0.78);
    background-color: #0f090c;
    background-image:
        linear-gradient(
            180deg,
            rgba(12, 4, 10, 0.72) 0%,
            rgba(12, 4, 10, 0.82) 100%
        ),
        url("/static/images/footer_back.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.footer-brand-logo {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 208, 220, 0.3);
    margin-bottom: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.footer-brand-top {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
}

.footer-brand-bottom {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #ffd0dc;
}

.footer-tagline {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
}

.footer-divider {
    width: 64px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin-bottom: 22px;
}

.footer-rights {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
}

.footer-rights strong {
    color: #fff;
    font-weight: 700;
}

.footer-link {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffd0dc;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 208, 220, 0.35);
    transition: color 0.25s, border-color 0.25s;
}

.footer-link:hover {
    color: #fff;
    border-color: #fff;
}

.footer-copy {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}


/* =====================================================
   BOTTOM FLOATING CONTROLS
   ===================================================== */

.fab {
    position: fixed;
    z-index: 180;
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.a11y-fab {
    right: 24px;
    left: auto;
    bottom: 28px;
    width: 48px;
    height: 48px;
    background: #fff;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
}

.a11y-fab:hover,
.a11y-fab.active {
    background: var(--ink);
    color: #fff;
}

.fab-bar {
    position: fixed;
    z-index: 180;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.fab-bar button {
    border: none;
    background: transparent;
    padding: 14px 28px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    transition: background 0.25s, color 0.25s;
}

.fab-bar button:hover {
    background: var(--pink-soft);
    color: var(--accent);
}

.fab-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.sort-menu {
    position: fixed;
    z-index: 185;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.sort-menu.open {
    display: flex;
}

.sort-menu button {
    border: none;
    background: transparent;
    text-align: right;
    padding: 14px 20px;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--ink);
    transition: background 0.2s;
}

.sort-menu button:hover {
    background: var(--pink-soft);
    color: var(--accent);
}

/* Accessibility large-text mode */
body.a11y-large {
    font-size: 16px;
}

body.a11y-large .card-name {
    font-size: 16px;
}


/* =====================================================
   RESPONSIVE — tablet / mobile
   ===================================================== */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 18px;
    }

    .topbar-search {
        max-width: 200px;
    }

    .welcome-section {
        min-height: min(45vh, 423px);
    }
}

@media (max-width: 720px) {
    :root {
        --topbar-h: 60px;
        --nav-h: 44px;
    }

    .topbar {
        grid-template-columns: auto 1fr auto;
        padding: 0 16px;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }

    .topbar-search {
        display: none;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        max-width: none;
        margin-top: 8px;
        box-shadow: var(--shadow);
    }

    .topbar-search.open {
        display: flex;
    }

    .brand-top {
        font-size: 22px;
        letter-spacing: 4px;
    }

    .brand-bottom {
        letter-spacing: 5px;
        font-size: 9px;
    }

    .category-nav {
        justify-content: flex-start;
        padding: 0 12px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
        letter-spacing: 0;
    }

    /* Mobile drawer for category nav when hamburger is open */
    .category-nav.mobile-open {
        flex-wrap: wrap;
        height: auto;
        max-height: 70vh;
        justify-content: flex-start;
        padding: 12px;
        gap: 4px;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-slider {
        height: 64vh;
    }

    .slide-overlay {
        align-items: center;
        text-align: center;
        padding: 0 24px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
    }

    .welcome-section {
        min-height: auto;
    }

    .welcome-overlay {
        padding: 28px 14px;
    }

    .welcome-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .welcome-cta {
        font-size: 13px;
        padding: 12px 28px;
    }

    .category-banner {
        min-height: min(42vh, 380px);
        padding: 0;
    }

    .category-banner-overlay {
        padding: 36px 16px;
    }

    .category-banner h1 {
        font-size: 24px;
    }

    main#shop {
        padding: 32px 16px 130px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 400px;
        margin: 0 auto;
    }

    .panel-heading h2 {
        font-size: 22px;
    }

    .fab-bar button {
        padding: 12px 18px;
        font-size: 12px;
    }

    .a11y-fab {
        right: 14px;
        left: auto;
        bottom: 22px;
        width: 42px;
        height: 42px;
    }
}
