/* =========================
   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;

    --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,
select { font: inherit; -webkit-tap-highlight-color: transparent; }

button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

img { 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 PANEL
========================= */

.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; }


/* =========================
   GENERAL
========================= */

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--silver);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================
   SHOP HERO
========================= */

.shop-hero {
    padding-block: 140px 60px;
    background: transparent;
    border-bottom: 1px solid var(--border-soft);
}

.shop-hero h1 {
    max-width: 760px;
    margin-bottom: 20px;
    color: var(--navy);
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.shop-hero p {
    max-width: 520px;
    color: var(--text-soft);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.5;
}


/* =========================
   SHOP SECTION
========================= */

.shop-section {
    padding-block: clamp(40px, 6vw, 72px) var(--space);
}


/* =========================
   TOOLBAR
========================= */

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-soft);
}

.results-count {
    color: var(--text-muted);
    font-size: 14px;
}

.results-count span {
    color: var(--navy);
    font-weight: 600;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-button {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--navy);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover {
    background: var(--bg-soft);
    border-color: var(--navy);
}

.filter-button svg { flex-shrink: 0; }

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.sort-wrapper select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--navy);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23172B46' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease;
}

.sort-wrapper select:focus { border-color: var(--navy); }


/* =========================
   SHOP LAYOUT
========================= */

.shop-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    padding-top: 40px;
}


/* =========================
   FILTERS
========================= */

.filters {
    align-self: start;
    min-width: 0;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.filter-header h2 {
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
}

.filter-header button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-header button:hover { color: var(--navy); }

.filter-group {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border-soft);
}

.filter-group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-soft);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-option:last-child { margin-bottom: 0; }
.filter-option:hover { color: var(--navy); }

.filter-option input {
    accent-color: var(--navy);
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.filter-loading {
    color: var(--text-muted);
    font-size: 13px;
}


/* =========================
   PRODUCTS GRID
========================= */

.products-area { min-width: 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 32px 20px;
    min-width: 0;
}


/* =========================
   PRODUCT CARD
========================= */

.product-card { min-width: 0; }
.product-card-link { display: block; }

.product-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--silver-soft), var(--silver));
    color: var(--navy);
    transition: transform 0.4s var(--ease);
}

.product-card:hover .product-image { transform: translateY(-4px); }

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.product-card:hover .product-image img { transform: scale(1.04); }

.product-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 100px;
    padding: 20px;
    text-align: center;
    color: var(--navy);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 11px;
    background: var(--navy);
    color: var(--off);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.product-badge.out {
    background: var(--text-muted);
    color: #FFFFFF;
}

.product-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.product-info h3 {
    margin-bottom: 3px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}

.product-category {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

.product-prices {
    flex-shrink: 0;
    text-align: right;
}

.product-prices strong {
    color: var(--navy);
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
}

.old-price {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: line-through;
}


/* =========================
   LOADING + EMPTY
========================= */

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 100px 20px;
    text-align: center;
}

.empty-state.visible { display: block; }

.empty-state h2 {
    color: var(--navy);
    font-size: 22px;
    font-weight: 600;
}

.empty-state p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}


/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 90;
    width: 56px;
    height: 56px;
    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: 28px; height: 28px; }


/* =========================
   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: 2fr 1fr;
    gap: 40px;
    padding-block: 56px;
}

.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;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding-block: 18px;
    border-top: 1px solid rgba(168, 176, 186, 0.15);
    color: var(--silver);
    font-size: 12px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

    .shop-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .filters { display: none; }

    .filter-button { display: inline-flex; }

    .filters.open {
        display: block;
        padding: 24px;
        margin-bottom: 24px;
        background: var(--surface);
        border: 1px solid var(--border-soft);
        border-radius: var(--radius-md);
        animation: fadeDown 0.3s var(--ease);
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }
}


/* =========================
   MOBILE
========================= */

@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; }

    .shop-hero {
        padding-block: 110px 44px;
    }

    .shop-hero h1 {
        font-size: clamp(34px, 10vw, 48px);
        letter-spacing: -0.035em;
    }

    .shop-section { padding-block: 32px 72px; }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .products-grid {
        gap: 20px 12px;
    }

    .product-image { margin-bottom: 10px; }

    .product-info { gap: 8px; }
    .product-info h3 { font-size: 14px; }
    .product-prices strong { font-size: 14px; }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-float svg { width: 24px; height: 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; }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px 10px;
    }

    .product-info { display: block; }
    .product-prices { margin-top: 6px; text-align: left; }
    .product-info h3 { font-size: 13px; }
    .product-prices strong { font-size: 13px; }
    .product-category { font-size: 11px; }

    .product-badge {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 9px;
    }
}


/* =========================
   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; }
}