/* =====================================================
   Sea Fresh — Storefront Design System
   Palette:
     --navy   #0E2F3C   (deep ocean — header, footer, text on light)
     --teal   #2E8B8B   (seafoam accent — links, secondary actions)
     --coral  #E8633C   (catch-of-the-day — CTAs, prices)
     --sand   #F7F3EC   (page background)
     --ice    #EAF4F4   (card background)
     --ink    #1F2A2E   (body text)
   Type:
     Display: 'Fraunces' (market signage feel)
     Body:    'Work Sans'
     Tags/price: 'Space Mono' (stamped price-tag signature)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --navy: #0E2F3C;
    --teal: #2E8B8B;
    --coral: #E8633C;
    --sand: #F7F3EC;
    --ice: #EAF4F4;
    --ink: #1F2A2E;
    --line: #DDD6C9;
    --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    background: var(--sand);
    color: var(--ink);
    line-height: 1.6;
}

h1, h2, h3, h4, .display {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 .4em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- Header ---------------- */
.topbar {
    background: var(--navy);
    color: #fff;
    font-size: .85rem;
    padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cfe9e9; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
.logo {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--navy);
    letter-spacing: .5px;
}
.logo span { color: var(--coral); }

.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
}
.main-nav a:hover { color: var(--teal); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--navy);
}
.cart-badge {
    background: var(--coral);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #154457 100%);
    color: #fff;
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; }
.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .8rem;
    color: #8FD3D3;
    margin-bottom: 12px;
    display: inline-block;
}
.hero h1 {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 18px;
}
.hero h1 em { color: #8FD3D3; font-style: italic; }
.hero p { font-size: 1.05rem; color: #D7E7E7; max-width: 480px; margin-bottom: 28px; }
.hero-stamp-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
    flex: 1 1 320px;
    min-width: 280px;
    display: flex;
    justify-content: center;
}
.catch-badge {
    background: var(--ice);
    border-radius: var(--radius);
    padding: 26px;
    color: var(--navy);
    text-align: center;
    transform: rotate(-2deg);
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
    max-width: 280px;
}
.catch-badge .label {
    font-family: 'Space Mono', monospace;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--coral);
}
.catch-badge .big {
    font-family: 'Fraunces', serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin: 8px 0;
}

/* tide divider */
.tide {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: -1px;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(232,99,60,.35); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline.dark { border-color: var(--navy); color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-secondary { background: var(--ice); color: var(--navy); }
.btn-danger { background: #C0392B; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- Sections ---------------- */
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.section-head h2 { font-size: 1.9rem; margin: 0; }
.section-head .eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--coral);
    display: block;
    margin-bottom: 6px;
}
.section-alt { background: var(--ice); }

/* ---------------- Category chips ---------------- */
.cat-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.cat-chip {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}
.cat-chip.active, .cat-chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); text-decoration: none; }

/* ---------------- Product grid ---------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: 0 10px 28px rgba(14,47,60,.12); transform: translateY(-2px); }
.product-card .thumb {
    aspect-ratio: 4 / 3;
    background: var(--ice);
    overflow: hidden;
    position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 1.1rem; margin: 0; }
.product-card .meta { font-size: .82rem; color: #6B7B80; }
.product-card .price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.price-tag {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--coral);
    font-size: 1.05rem;
}
.price-tag .mrp {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    color: #9AA7AA;
    text-decoration: line-through;
    font-size: .8rem;
    margin-left: 6px;
}
.badge {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 9px;
    border-radius: 4px;
    background: var(--ice);
    color: var(--navy);
}
.badge.featured { background: var(--coral); color: #fff; position: absolute; top: 10px; left: 10px; }
.badge.out { background: #C0392B; color: #fff; }

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--navy);
    color: #C9DBDB;
    padding: 48px 0 20px;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 30px; margin-bottom: 30px; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.footer-grid a { color: #C9DBDB; display: block; margin-bottom: 6px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; text-align: center; font-size: .82rem; color: #8FA9A9; }

/* ---------------- WhatsApp floating button ---------------- */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 60;
    text-decoration: none;
}

/* ---------------- Forms ---------------- */
label { font-weight: 600; font-size: .9rem; color: var(--navy); display: block; margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.radio-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}
.radio-card input { width: auto; }
.radio-card.selected { border-color: var(--teal); background: var(--ice); }

/* ---------------- Alerts ---------------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: .92rem; }
.alert-success { background: #E3F4E9; color: #1F6E3F; border: 1px solid #BCE6CB; }
.alert-error { background: #FBE6E2; color: #A6311C; border: 1px solid #F4C2B6; }
.alert-info { background: var(--ice); color: var(--navy); border: 1px solid #cfe6e6; }

/* ---------------- Tables (account / orders) ---------------- */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table th, table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; }
table th { background: var(--ice); color: var(--navy); font-family: 'Space Mono', monospace; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------------- Status pill ---------------- */
.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { font-size: .85rem; color: #6B7B80; margin-bottom: 18px; }
.breadcrumb a { color: var(--teal); }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.1rem; }
    .section { padding: 38px 0; }
}
.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
}
