/* =========================
   GULFS DISPLAY — VARIABLE FONT
========================= */

@font-face {
    font-family: "Gulfs Display";
    src: url("../fonts/GulfsDisplay-Variable.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}


/* =========================
   TOKENS
========================= */

:root {
    --navy: #172B46;
    --navy-deep: #0F1F35;
    --off: #F5F3EE;
    --off-soft: #EDEAE3;
    --silver: #A8B0BA;
    --silver-soft: #C8CDD3;

    --gold: #C49A4D;
    --gold-deep: #A8823A;

    --wood: #9A7B5A;
    --wood-deep: #7A5F45;
    --wood-light: #B89470;

    --bg: #F5F3EE;
    --bg-soft: #EDEAE3;
    --surface: #FFFFFF;

    --text: #0A0A0A;
    --text-soft: #4A5568;
    --text-muted: #7A8794;

    --border: #D9DCE0;
    --border-soft: #E8EAED;

    --danger: #A33A2E;
    --danger-bg: #F5E5E2;

    --space: clamp(56px, 8vw, 104px);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 980px;

    --font: "Gulfs Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* =========================
   RESET
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    touch-action: pan-y;
}

a { color: inherit; text-decoration: none; }

button,
input { font: inherit; -webkit-tap-highlight-color: transparent; }

button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

img, video { max-width: 100%; display: block; }

::selection { background: var(--navy); color: var(--off); }

:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
    border-radius: 4px;
}

.hidden { display: none !important; }

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}


/* =========================
   SCROLL ANIMATIONS
========================= */

[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    will-change: opacity, transform;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] { opacity: 1; transform: none; transition: none; }
}


/* =========================
   SITE TOP
========================= */

.site-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    transition: background 0.4s var(--ease);
}

.site-top.is-solid {
    background: rgba(245, 243, 238, 0.94);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
}


/* =========================
   ANNOUNCEMENT
========================= */

.announcement-bar {
    width: 100%;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--off);
}

.announcement-track { width: 100%; overflow: hidden; }

.announcement-content {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 100%;
    min-height: 32px;
    white-space: nowrap;
    will-change: transform;
    animation: announcementMove 30s linear infinite;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    margin-right: 48px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.announcement-separator {
    margin-left: 14px;
    color: var(--silver);
    opacity: 0.6;
}

@keyframes announcementMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* =========================
   STORE CLOSED
========================= */

.store-closed-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding-inline: 18px;
    background: var(--danger-bg);
    color: var(--danger);
    text-align: center;
    font-size: 11px;
    font-weight: 500;
}


/* =========================
   HEADER
========================= */

.header {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 24px;
    margin-right: auto;
}

.nav-link {
    position: relative;
    color: rgba(23, 43, 70, 0.6);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--navy); }

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 2px;
    background: var(--navy);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-action {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    border-radius: 50%;
    transition: background 0.25s ease;
}

.header-action:hover { background: rgba(23, 43, 70, 0.08); }

.cart-count {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--off);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.cart-count.is-bumping {
    animation: cartBump 0.4s var(--ease);
}

@keyframes cartBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.menu-button {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
}

.menu-button span {
    width: 18px;
    height: 1.5px;
    background: var(--navy);
    border-radius: 1px;
}


/* =========================
   SEARCH
========================= */

.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: none;
    background: var(--navy-deep);
    color: var(--off);
    padding-top: 100px;
}

.search-panel.open { display: block; animation: fadeDown 0.4s var(--ease); }

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-panel-inner { padding-block: 24px 40px; }

.search-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.search-panel .eyebrow { color: var(--silver); }

.search-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--off);
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
}

.search-close:hover { background: rgba(245, 243, 238, 0.1); }

.home-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 720px;
}

.home-search-form input {
    width: 100%;
    min-height: 52px;
    padding-inline: 20px;
    background: rgba(245, 243, 238, 0.08);
    color: var(--off);
    border: 1px solid rgba(245, 243, 238, 0.18);
    border-radius: var(--radius-pill);
    outline: none;
    font-size: 15px;
}

.home-search-form input::placeholder { color: rgba(245, 243, 238, 0.45); }

.home-search-form input:focus {
    border-color: var(--silver);
    background: rgba(245, 243, 238, 0.12);
}

.home-search-submit {
    min-height: 52px;
    padding-inline: 30px;
    background: var(--silver);
    color: var(--navy-deep);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
}

.home-search-submit:hover { background: var(--off); }

.search-results {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    max-height: 400px;
    overflow-y: auto;
}

.search-empty {
    padding: 20px 4px;
    color: rgba(245, 243, 238, 0.5);
    font-size: 14px;
}

.search-result {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: var(--radius-md);
}

.search-result:hover { background: rgba(245, 243, 238, 0.06); }

.search-result-image {
    width: 52px;
    height: 52px;
    overflow: hidden;
    background: rgba(245, 243, 238, 0.06);
    border-radius: var(--radius-sm);
}

.search-result-image img { width: 100%; height: 100%; object-fit: cover; }

.search-result-info strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--off);
}

.search-result-info span {
    color: rgba(245, 243, 238, 0.55);
    font-size: 12px;
}

.search-result-price {
    color: var(--silver);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}


/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    display: none;
    padding: 110px 24px 32px;
    background: var(--navy-deep);
    min-height: 100vh;
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    animation: fadeDown 0.3s var(--ease);
}

.mobile-menu a {
    padding: 20px 0;
    border-bottom: 1px solid rgba(245, 243, 238, 0.08);
    color: var(--off);
    font-size: 20px;
    font-weight: 500;
}

.mobile-menu a:last-child { border-bottom: 0; }


/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding-inline: 32px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s var(--ease), transform 0.15s ease, color 0.3s ease;
    cursor: pointer;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--off);
    color: var(--navy-deep);
}

.btn-primary:hover {
    background: var(--silver);
    color: var(--navy-deep);
}

.btn-ghost {
    background: transparent;
    color: var(--off);
    border: 1px solid rgba(245, 243, 238, 0.5);
}

.btn-ghost:hover {
    background: rgba(245, 243, 238, 0.15);
    border-color: rgba(245, 243, 238, 0.8);
}

.btn-warm {
    background: var(--off);
    color: var(--navy-deep);
}

.btn-warm:hover { background: var(--silver); }


/* =========================
   HERO — MOBILE (fullscreen bg)
========================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--navy-deep);
    display: flex;
    align-items: stretch;
    padding: 0;
    margin: 0;
}

.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 120px 24px 70px;
    margin: 0;
}

.hero-content {
    position: relative;
    z-index: 11;
    width: 100%;
    max-width: 640px;
    color: #FFFFFF;
}

.hero-title {
    font-size: clamp(34px, 10vw, 46px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
    color: #FFFFFF;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.6);

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease) 0.1s, transform 1s var(--ease) 0.1s;
}

.hero.is-ready .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-desc {
    max-width: 480px;
    margin-bottom: 26px;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.5;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.6);

    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s var(--ease) 0.35s, transform 1s var(--ease) 0.35s;
}

.hero.is-ready .hero-desc {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;

    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s var(--ease) 0.6s, transform 1s var(--ease) 0.6s;
}

.hero.is-ready .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

.hero-actions .btn {
    flex: 1;
    min-height: 48px;
    padding-inline: 16px;
    font-size: 14px;
}

/* الفيديو: absolute، ملء الشاشة، على الموبايل */

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.hero-media-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--navy-deep);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 45%,
        rgba(0, 0, 0, 0.55) 75%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
}


/* =========================
   TRIPLE
========================= */

.triple {
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding-block: clamp(36px, 5vw, 56px);
}

.triple-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.triple-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-inline: 12px;
}

.triple-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    color: var(--navy);
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
}

.triple-item:hover .triple-icon {
    background: var(--navy);
    color: var(--off);
}

.triple-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.015em;
}

.triple-item p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 220px;
    line-height: 1.5;
}


/* =========================
   SECTIONS
========================= */

.section { padding-block: var(--space); }

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--silver);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--silver);
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.section-link span { transition: transform 0.2s ease; }
.section-link:hover span { transform: translateX(3px); }


/* =========================
   PRODUCTS
========================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    display: block;
    min-width: 0;
    transition: transform 0.4s var(--ease);
}

.product-card:hover { transform: translateY(-4px); }

.product-image {
    position: relative;
    aspect-ratio: 3 / 4;
    margin-bottom: 14px;
    overflow: hidden;
    background: var(--navy);
    border-radius: var(--radius-lg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.product-card:hover .product-image img { transform: scale(1.05); }

.product-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--off);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-align: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 11px;
    background: var(--silver);
    color: var(--navy-deep);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.product-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 3px;
    color: var(--navy);
}

.product-category {
    color: var(--text-muted);
    font-size: 13px;
}

.product-price {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--navy);
}

.product-old-price {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: line-through;
}

.loading-placeholder {
    grid-column: 1 / -1;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}


/* =========================
   OUR STORY
========================= */

.our-story {
    padding: 0;
    background: var(--navy-deep);
    position: relative;
}

.story-scene {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    perspective: 1800px;
    perspective-origin: 50% 55%;
    isolation: isolate;
    overflow: hidden;
    contain: layout paint style;
}

.story-glow {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 40%;
    height: 50%;
    background: radial-gradient(
        circle at 60% 30%,
        rgba(168, 176, 186, 0.14) 0%,
        rgba(168, 176, 186, 0.04) 30%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 1;
}

.story-wall {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44%;
    background: linear-gradient(180deg, #0F1F35 0%, #172B46 60%, #1F3556 100%);
    z-index: 2;
    display: flex;
    align-items: flex-start;
    padding: 40px 24px 0;
}

.story-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.story-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--silver);
    text-transform: uppercase;

    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.9s var(--ease) 0.1s, transform 0.9s var(--ease) 0.1s;
}

.story-line {
    display: block;
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, var(--silver), transparent);

    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.9s var(--ease) 0.25s, transform 0.9s var(--ease) 0.25s;
}

.story-title {
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--off);

    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1.1s var(--ease) 0.4s, transform 1.1s var(--ease) 0.4s;
}

.story-desc {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(245, 243, 238, 0.68);
    max-width: 100%;

    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1s var(--ease) 0.6s, transform 1s var(--ease) 0.6s;
}

.story-scene.is-active .story-eyebrow { opacity: 1; transform: translateY(0); }
.story-scene.is-active .story-line    { opacity: 1; transform: scaleX(1); }
.story-scene.is-active .story-title   { opacity: 1; transform: translateY(0); }
.story-scene.is-active .story-desc    { opacity: 1; transform: translateY(0); }

.story-desk {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56%;
    background: linear-gradient(180deg, #6B5138 0%, #4A3624 45%, #2E2117 100%);
    z-index: 4;
    box-shadow: inset 0 2px 0 rgba(255, 220, 180, 0.15), inset 0 -20px 40px rgba(0, 0, 0, 0.4);
}

.story-desk::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        92deg,
        rgba(0, 0, 0, 0.08) 0px,
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 42px
    );
    opacity: 0.7;
    pointer-events: none;
}

.story-lamp {
    position: absolute;
    right: 4%;
    bottom: 42%;
    width: 52px;
    height: 110px;
    z-index: 6;
    pointer-events: none;
}

.lamp-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 200, 120, 0.22) 0%, rgba(255, 200, 120, 0.07) 30%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}

.lamp-shade {
    position: absolute;
    top: 0;
    left: 50%;
    width: 48px;
    height: 28px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #D9A76A 0%, #A8823A 50%, #7A5F45 100%);
    border-radius: 50% 50% 14% 14% / 65% 65% 35% 35%;
    box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.lamp-shade::after {
    content: "";
    position: absolute;
    inset: 6px 10px auto 10px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 220, 180, 0.4), transparent);
    border-radius: 2px;
}

.lamp-arm {
    position: absolute;
    top: 26px;
    left: 50%;
    width: 3px;
    height: 58px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #A8823A, #5B4530);
    border-radius: 2px;
}

.lamp-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 40px;
    height: 9px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #5B4530, #2E2117);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.story-plant {
    position: absolute;
    right: 2%;
    bottom: 62%;
    width: 38px;
    height: 62px;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s var(--ease) 0.7s, transform 1s var(--ease) 0.7s;
}

.story-scene.is-active .story-plant {
    opacity: 1;
    transform: translateY(0);
}

.story-book {
    position: absolute;
    left: 50%;
    bottom: 3%;
    width: 54%;
    max-width: 240px;
    aspect-ratio: 3 / 4;
    transform: translateX(-50%) translateZ(0);
    z-index: 7;
    transform-style: preserve-3d;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.story-scene.is-active .story-book { opacity: 1; }

.book-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.book-shadow {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -8px;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 75%);
    transform: translateZ(-5px);
    pointer-events: none;
    z-index: 1;
}

.book-pages {
    position: absolute;
    inset: 0 0 0 8px;
    border-radius: 2px 5px 5px 2px;
    background: linear-gradient(180deg, #EFE8D5 0%, #D9D0B8 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset -5px 0 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateZ(0);
    z-index: 2;
}

.book-pages-side {
    position: absolute;
    inset: 4px;
    border-radius: 2px 4px 4px 2px;
    background: repeating-linear-gradient(
        180deg,
        rgba(180, 160, 120, 0.4) 0px,
        rgba(180, 160, 120, 0.4) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1;
}

.book-page-inner {
    position: absolute;
    inset: 8px 12px 8px 10px;
    background: #0A0A0A;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.book-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0A0A0A;
}

.book-spine {
    position: absolute;
    left: 0;
    top: 1%;
    width: 9px;
    height: 98%;
    background: linear-gradient(90deg, #4A2F1C 0%, #3A2414 50%, #2A1A0E 100%);
    border-radius: 3px 0 0 3px;
    transform: translateZ(-2px);
    box-shadow: inset 1px 0 2px rgba(255, 200, 140, 0.12), 0 0 12px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.book-cover {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 48, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 80%, rgba(90, 58, 30, 0.4) 0%, transparent 55%),
        linear-gradient(135deg, #6B4423 0%, #4A2E15 40%, #3A2410 70%, #5A3818 100%);
    border-radius: 3px 6px 6px 3px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 200, 140, 0.14),
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        inset 0 -8px 20px rgba(0, 0, 0, 0.55),
        4px 0 20px rgba(0, 0, 0, 0.5),
        0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 10;
    backface-visibility: hidden;
    will-change: transform;
}

.book-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(-45deg, rgba(255, 200, 140, 0.03) 0px, rgba(255, 200, 140, 0.03) 1px, transparent 1px, transparent 4px);
    opacity: 0.9;
    pointer-events: none;
}

.story-book[data-state="open"] .book-cover,
.story-book[data-state="playing"] .book-cover {
    transform: rotateY(-172deg);
}

.book-cover-design {
    position: absolute;
    inset: 12% 14%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.book-cover-frame {
    position: absolute;
    inset: -14px -8px;
    border: 1px solid rgba(168, 176, 186, 0.45);
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 200, 140, 0.04);
    pointer-events: none;
}

.book-cover-frame::before,
.book-cover-frame::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    background: var(--silver);
    box-shadow: 0 0 8px rgba(168, 176, 186, 0.4);
}

.book-cover-frame::before { top: -7px; }
.book-cover-frame::after  { bottom: -7px; }

.book-cover-brand {
    position: relative;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #D9D0BC;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 -1px 0 rgba(255, 220, 160, 0.12), 0 0 20px rgba(168, 176, 186, 0.35);
}

.book-cover-line {
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--silver), transparent);
    opacity: 0.6;
    position: relative;
}

.book-cover-line::before,
.book-cover-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--silver);
    transform: translateY(-50%);
    box-shadow: 0 0 6px rgba(168, 176, 186, 0.5);
}

.book-cover-line::before { left: -10px; }
.book-cover-line::after  { right: -10px; }

.book-cover-tag {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.44em;
    color: rgba(217, 208, 188, 0.7);
}

.book-cover-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(118deg, transparent 32%, rgba(255, 220, 160, 0.08) 47%, rgba(255, 220, 160, 0.02) 53%, transparent 68%);
    pointer-events: none;
    z-index: 1;
}

.book-cover-corner-tl,
.book-cover-corner-br {
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
    z-index: 2;
}

.book-cover-corner-tl {
    top: 10px;
    left: 10px;
    border-top: 1px solid rgba(168, 176, 186, 0.5);
    border-left: 1px solid rgba(168, 176, 186, 0.5);
    border-top-left-radius: 2px;
}

.book-cover-corner-br {
    bottom: 10px;
    right: 10px;
    border-bottom: 1px solid rgba(168, 176, 186, 0.5);
    border-right: 1px solid rgba(168, 176, 186, 0.5);
    border-bottom-right-radius: 2px;
}

.story-book[data-state="shaking"] .book-3d {
    animation: bookShake 1.1s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes bookShake {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20%      { transform: translateY(-1px) rotate(-0.6deg); }
    40%      { transform: translateY(0) rotate(0.6deg); }
    60%      { transform: translateY(-1px) rotate(-0.3deg); }
    80%      { transform: translateY(0) rotate(0.3deg); }
}

.story-book[data-state="open"] .book-3d,
.story-book[data-state="playing"] .book-3d {
    transform: translateY(-3px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.story-book[data-state="closing"] .book-cover {
    transform: rotateY(0deg);
    transition-duration: 1.3s;
}


/* =========================
   CATEGORIES
========================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.category-card { display: block; }

.category-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--ease), background 0.3s ease;
}

.category-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s var(--ease);
}

.category-card:hover .category-visual { background: var(--surface); }
.category-card:hover .category-visual img { transform: scale(1.06); }

.category-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.category-number {
    display: block;
    margin-bottom: 2px;
    color: var(--silver);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.category-info h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.category-arrow {
    color: var(--silver);
    font-size: 16px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-card:hover .category-arrow {
    transform: translate(2px, -2px);
    color: var(--navy);
}


/* =========================
   CTA
========================= */

.cta-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 28px;
    padding: 32px 24px;
    background:
        radial-gradient(ellipse 80% 100% at 100% 0%, rgba(168, 176, 186, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, #172B46 0%, #0F1F35 100%);
    color: var(--off);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cta-content { position: relative; z-index: 1; }

.cta-box .eyebrow { color: var(--silver); }

.cta-box h2 {
    font-size: clamp(24px, 6vw, 34px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--off);
}


/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 90;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    box-shadow:
        0 10px 24px rgba(37, 211, 102, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow:
        0 14px 32px rgba(37, 211, 102, 0.45),
        0 6px 14px rgba(0, 0, 0, 0.25);
}

.whatsapp-float svg { width: 24px; height: 24px; }


/* =========================
   FOOTER
========================= */

.footer {
    position: relative;
    margin-top: var(--space);
    background: var(--navy-deep);
    color: var(--off);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--silver), transparent);
    opacity: 0.4;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 44px;
}

.footer-brand .logo { color: var(--off); }

.footer-brand p {
    max-width: 320px;
    margin-top: 12px;
    color: var(--silver);
    font-size: 14px;
    line-height: 1.5;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column > span {
    margin-bottom: 4px;
    color: var(--silver);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.footer-column a {
    color: #DDE2E8;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column a:hover { color: var(--off); }

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 60px;
    padding-block: 18px;
    border-top: 1px solid rgba(168, 176, 186, 0.15);
    color: var(--silver);
    font-size: 12px;
}


/* =========================
   IMAGE FALLBACK
========================= */

.image-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: var(--off);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-align: center;
}

.image-failed .image-fallback { display: flex; }
.image-failed img { display: none !important; }


/* =========================
   MOBILE OVERRIDES
========================= */

@media (max-width: 700px) {

    .container { width: calc(100% - 32px); }

    .header-inner { min-height: 60px; }
    .nav { display: none; }
    .menu-button { display: flex; }
    .logo { font-size: 18px; }

    .triple { padding-block: 28px; }

    .triple-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .triple-item {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding-inline: 0;
    }

    .triple-icon {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .triple-item p { max-width: 100%; }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        margin-bottom: 10px;
        border-radius: var(--radius-md);
    }

    .product-info { gap: 6px; }
    .product-info h3 { font-size: 13px; }
    .product-price { font-size: 13px; }

    .product-badge {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .story-plant {
        width: 44px;
        height: 72px;
        right: 3%;
        bottom: 60%;
    }

    .story-book {
        width: 50%;
        bottom: 4%;
    }

    .cta-box { padding: 32px 24px; }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 44px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-block: 18px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 450px) {
    .container { width: calc(100% - 24px); }

    .header-actions { gap: 0; }
    .header-action { width: 38px; height: 38px; }

    .hero-title { font-size: clamp(30px, 10vw, 42px); }

    .story-plant {
        width: 38px;
        height: 62px;
        right: 2%;
        bottom: 62%;
    }

    .story-book { width: 54%; bottom: 3%; }

    .category-grid { gap: 10px; }
    .products-grid { gap: 10px; }

    .product-info h3 { font-size: 12px; }
    .product-price { font-size: 12px; }
}


/* =========================
   TABLET
========================= */

@media (min-width: 701px) and (max-width: 950px) {

    .container { width: calc(100% - 40px); }

    .triple-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .triple-item {
        flex-direction: column;
        text-align: center;
        padding-inline: 8px;
    }

    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 40px 32px;
    }

    .footer-main {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
        padding-block: 56px;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .story-scene { aspect-ratio: 5 / 3.2; }
    .story-wall { height: 56%; padding: 60px 40px 0; align-items: center; }
    .story-book { width: 36%; max-width: 240px; bottom: 8%; }
    .story-plant { right: 22%; bottom: 38%; width: 52px; height: 88px; }
    .story-lamp { right: 6%; bottom: 36%; width: 70px; height: 150px; }
    .lamp-glow { width: 200px; height: 200px; top: -40px; }
    .lamp-shade { width: 62px; height: 36px; }
    .lamp-arm { height: 78px; top: 34px; }
    .lamp-base { width: 52px; height: 11px; }
}


/* =========================
   DESKTOP
========================= */

@media (min-width: 951px) {

    .hero {
        min-height: auto;
        padding-block: 130px 80px;
        background: var(--bg);
        display: block;
    }

    .hero-inner {
        position: relative;
        z-index: 2;
        width: min(1200px, calc(100% - 40px));
        margin-inline: auto;
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
        gap: clamp(40px, 6vw, 88px);
        align-items: center;
        padding: 0;
    }

    .hero-content {
        grid-column: 1;
        max-width: 600px;
        padding: 0;
        color: var(--navy);
    }

    .hero-title {
        color: var(--navy);
        font-size: clamp(48px, 6vw, 84px);
        text-shadow: none;
        margin-bottom: 22px;
    }

    .hero-desc {
        color: var(--text-soft);
        text-shadow: none;
        font-size: clamp(16px, 1.5vw, 18px);
        margin-bottom: 32px;
    }

    .hero-actions {
        width: auto;
    }

    .hero-actions .btn {
        flex: none;
    }

    .hero-media {
        position: relative;
        inset: auto;
        grid-column: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        max-height: 640px;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
    }

    .hero-media-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-media-overlay { display: none; }

    .btn-primary {
        background: var(--navy);
        color: var(--off);
    }

    .btn-primary:hover {
        background: var(--navy-deep);
        color: var(--off);
    }

    .btn-ghost {
        background: transparent;
        color: var(--navy);
        border-color: var(--navy);
    }

    .btn-ghost:hover {
        background: var(--navy);
        color: var(--off);
    }

    .story-scene {
        aspect-ratio: 5 / 3.2;
    }

    .story-wall {
        height: 56%;
        padding: 0 clamp(28px, 6vw, 88px);
        align-items: center;
    }

    .story-text {
        max-width: 520px;
        gap: 14px;
    }

    .story-title { font-size: clamp(28px, 4.4vw, 60px); }
    .story-desc { font-size: clamp(13px, 1.3vw, 16px); max-width: 420px; }

    .story-desk { height: 44%; }

    .story-lamp {
        right: 6%;
        bottom: 36%;
        width: 78px;
        height: 168px;
    }

    .lamp-glow { width: 240px; height: 240px; top: -50px; }
    .lamp-shade { width: 70px; height: 42px; }
    .lamp-arm { height: 88px; top: 38px; }
    .lamp-base { width: 58px; height: 12px; }

    .story-plant {
        right: 24%;
        bottom: 40%;
        width: 60px;
        height: 100px;
    }

    .story-book {
        width: 32%;
        max-width: 270px;
        bottom: 8%;
    }

    .section-heading {
        flex-direction: row;
        align-items: flex-end;
        gap: 28px;
    }

    .section-heading h2 { font-size: clamp(28px, 4vw, 46px); }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .product-info h3 { font-size: 15px; }
    .product-price { font-size: 15px; }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .category-visual { padding: 14px; }
    .category-info h3 { font-size: 14px; }

    .triple-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .triple-item {
        flex-direction: column;
        text-align: center;
        padding-inline: 12px;
    }

    .cta-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: clamp(40px, 5vw, 72px);
    }

    .cta-box h2 { font-size: clamp(26px, 4.5vw, 48px); }

    .footer-main {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
        padding-block: 56px;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 22px;
        right: 22px;
    }

    .whatsapp-float svg { width: 28px; height: 28px; }
}


/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .announcement-content { animation: none; }

    .story-book,
    .story-book .book-cover,
    .story-plant,
    .hero-title,
    .hero-desc,
    .hero-actions {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}


/* =========================
   PERFORMANCE HINTS
========================= */

.hero-media-video,
.book-video {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.story-scene,
.hero-media {
    contain: layout paint style;
}