/* ==========================================================================
   Power Protection — WhatsApp Catalog Store
   Design tokens from design.md (WhatsApp marketing site).
   ========================================================================== */

/* --- Custom properties (design.md tokens) -------------------------------- */
:root {
    /* Colors */
    --primary: #25d366;
    --secondary: #e6ffda;
    --ink: #1c1e21;
    --ink-muted: #5e5e5e;
    --ink-inverse: #ffffff;
    --canvas: #fcf5eb;
    --surface: #ffffff;
    --surface-dark: #000000;
    --link: #0373e9;
    --hairline: #1c1e21;

    /* Radii */
    --tile: 25px;
    --pill: 50px;
    --full: 9999px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --weight: 400;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 18px;
    --space-xl: 20px;
    --space-2xl: 24px;
    --space-3xl: 32px;
    --space-4xl: 40px;
    --space-5xl: 80px;

    /* Sizing */
    --nav-height: 56px;
    --max-width: 1080px;
}

/* --- Reset & base -------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: var(--weight);
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--ink);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Typography ---------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--weight);
    line-height: 1.1;
}

/* --- Hamburger (hidden on desktop, shown on mobile) ---------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Mobile navigation overlay & panel ----------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1098;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: none;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: #008069;
    z-index: 1099;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-2xl) var(--space-2xl);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.mobile-nav-link {
    display: block;
    padding: var(--space-lg) 0;
    font-size: 1.125rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-link.active {
    color: #fff;
    font-weight: 500;
    border-bottom-color: #fff;
}

/* --- Top nav (design.md: top-nav) ---------------------------------------- */
.top-nav {
    background: #008069;
    height: var(--nav-height);
    padding: var(--space-md) var(--space-2xl);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.nav-logo {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
}

.nav-center {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: var(--weight);
    padding: 0 var(--space-md);
    transition: opacity 0.15s;
    color: #fff;
}

.nav-link:hover {
    opacity: 0.7;
    text-decoration: none;
}

.nav-link.active {
    border-bottom: 2px solid #fff;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-link svg {
    display: block;
    width: 18px;
    height: 18px;
}

#cartCount {
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--full);
    padding: 0 6px;
    line-height: 1;
}

/* --- Main content area --------------------------------------------------- */
.site-main {
    flex: 1;
    width: 100%;
}

/* --- Hero band (design.md: cream canvas + heading) ----------------------- */
.hero-band {
    background: var(--canvas);
    padding: var(--space-5xl) var(--space-2xl) var(--space-4xl);
    text-align: center;
}

.hero-band h1 {
    font-size: clamp(2.25rem, 6vw, 5rem);
    /* 36px → 80px */
    font-weight: var(--weight);
    color: var(--ink);
    letter-spacing: -0.02em;
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.hero-band p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--ink-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* --- Category section header --------------------------------------------- */
.category-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 var(--space-sm);
}

.category-heading {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    padding-left: 12px;
}

.category-see-all {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: opacity 0.15s;
    padding-right: 12px;
}

.category-see-all:hover {
    opacity: 0.6;
    text-decoration: none;
}

/* --- Category pills (design.md: contact-chip / pill) --------------------- */
.category-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-sm);
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--space-sm);
    padding: 4px var(--space-md) var(--space-4xl);
}

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

.pill {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    width: 90px;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    overflow: hidden;
    padding: 0;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Dark overlay for readability on background images */
.pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
    border-radius: 8px;
    pointer-events: none;
}

/* Solid background fallback when no image */
.pill:not([style*="background-image"])::before {
    background: rgba(0, 0, 0, 0.03);
}

.pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.pill.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 4px 12px rgba(37, 211, 102, 0.25);
}

.pill-label {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* For pills without a background image, use dark text */
.pill:not([style*="background-image"]) .pill-label {
    color: var(--ink);
    text-shadow: none;
}

/* --- Product grid -------------------------------------------------------- */
.product-grid-section {
    padding: 0 var(--space-2xl) var(--space-5xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* --- Product card (design.md: tile radius, flat surface) ----------------- */
.product-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: transform 0.2s ease;
    border: none;
    text-decoration: none;
    color: inherit;
    /* No shadow — flat per design.md */
}

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

.product-card .card-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    display: block;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 8px;
}

.product-card .card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.product-card .card-title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
}

.product-card .card-category {
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card .card-desc {
    font-size: 0.8rem;
    color: var(--ink-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-card .card-price {
    margin-top: auto;
    padding-top: var(--space-xs);
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.product-card .card-price .sale-price {
    font-size: 0.95rem;
}

.product-card .card-price .original-price {
    font-size: 0.8rem;
}

.product-card .card-footer {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-add-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #555;
    transition: background 0.15s, opacity 0.15s;
    padding: 0;
    line-height: 1;
}

.card-add-btn:hover {
    background: #d0d0d0;
}

.card-add-btn svg {
    display: block;
}

/* --- Home page category sections ----------------------------------------- */
.home-categories {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-5xl);
}

.home-category-section {
    margin-bottom: var(--space-4xl);
}

.home-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 var(--space-md);
}

.home-category-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.home-category-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-muted);
    cursor: pointer;
    transition: opacity 0.15s;
}

.home-category-link:hover {
    opacity: 0.6;
    text-decoration: none;
}

.home-category-section .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* --- Prices -------------------------------------------------------------- */
.price {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.sale-price {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--primary);
}

.original-price {
    font-size: 0.875rem;
    color: var(--ink-muted);
    text-decoration: line-through;
}

/* --- Buttons (design.md: button-primary & button-secondary) -------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: var(--weight);
    line-height: 1;
    border-radius: var(--pill);
    padding: var(--space-md) 28px;
    height: 53px;
    border: 1px solid var(--hairline);
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.85;
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: var(--weight);
    line-height: 1;
    border-radius: var(--pill);
    padding: var(--space-sm) var(--space-2xl);
    height: 44px;
    border: 1px solid var(--hairline);
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    opacity: 0.7;
    text-decoration: none;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-sm {
    height: 36px;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

/* --- Product detail page ------------------------------------------------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-5xl) var(--space-2xl);
}

.product-detail .detail-image-col {
    display: flex;
    flex-direction: column;
}

.product-detail .detail-image {
    border-radius: var(--tile);
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 1 / 1;
}

.product-detail .detail-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.product-detail .image-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.product-detail .product-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--tile, 25px);
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.product-detail .product-thumb:hover {
    border-color: var(--primary);
    opacity: 1;
    transform: scale(1.05);
}

.product-detail .product-thumb.active {
    border-color: var(--primary);
    opacity: 1;
    transform: scale(1.05);
}

.product-detail .detail-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.product-detail .detail-info h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: var(--weight);
}

.product-detail .detail-info .detail-category {
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-detail .detail-info .detail-description {
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.7;
}

.product-detail .detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    margin-top: var(--space-md);
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border: 1px solid var(--hairline);
    border-radius: var(--full);
    padding: var(--space-xs) var(--space-md);
    height: 44px;
}

/* Floating action buttons — shown in product detail on all screen sizes */
.fab-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 28px;
    right: 20px;
    gap: 10px;
    z-index: 1000;
}

.fab-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.fab-btn svg {
    width: 20px;
    height: 20px;
}

.fab-btn:active {
    transform: scale(0.92);
}

.fab-cart,
.fab-add {
    background: var(--primary);
    color: #fff;
    position: relative;
}

.fab-whatsapp {
    background: #25d366;
    color: #fff;
}

.fab-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #fff;
    color: var(--primary);
    font-size: 0.5625rem;
    font-weight: 600;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.qty-selector button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--full);
    color: var(--ink);
}

.qty-selector button:hover {
    background: var(--secondary);
}

.qty-selector input {
    width: 40px;
    text-align: center;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
}

.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-selector input[type='number'] {
    -moz-appearance: textfield;
}

/* --- Related products (product detail) ----------------------------------- */
.related-section {
    padding-top: var(--space-4xl);
}

.related-heading {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: var(--weight);
    margin-bottom: var(--space-2xl);
    color: var(--ink);
}

/* --- Cart page ----------------------------------------------------------- */
.cart-page {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-5xl) var(--space-2xl);
}

.cart-page h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: var(--weight);
    margin-bottom: var(--space-4xl);
}

.cart-empty {
    text-align: center;
    padding: var(--space-5xl) 0;
    color: var(--ink-muted);
}

.cart-empty p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.cart-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--surface);
    border-radius: var(--tile);
    padding: var(--space-md);
}

.cart-item .item-image {
    width: 64px;
    height: 64px;
    border-radius: var(--tile);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--canvas);
}

.cart-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.cart-item .item-info {
    flex: 1;
    min-width: 0;
}

.cart-item .item-info .item-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.cart-item .item-info .item-price {
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.cart-item .item-qty {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    border: 1px solid var(--hairline);
    border-radius: var(--full);
    padding: 2px var(--space-sm);
}

.cart-item .item-qty button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: var(--full);
    color: var(--ink);
}

.cart-item .item-qty button:hover {
    background: var(--secondary);
}

.cart-item .item-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}

.cart-item .item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-muted);
    font-size: 0.875rem;
    padding: var(--space-xs);
    border-radius: var(--full);
}

.cart-item .item-remove:hover {
    color: red;
    background: var(--secondary);
}

.cart-summary {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--surface);
    border-radius: var(--tile);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
}

.cart-summary .summary-total {
    font-weight: 500;
    font-size: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: var(--space-md);
}

.cart-summary .cart-checkout-btn {
    width: 100%;
}

/* --- Search bar ---------------------------------------------------------- */
.search-bar {
    max-width: 480px;
    margin: 0 auto var(--space-2xl);
    padding: 0 var(--space-2xl);
}

.search-input {
    width: 100%;
    height: 48px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: var(--weight);
    border-radius: var(--pill);
    border: 1px solid var(--hairline);
    background: var(--surface);
    padding: var(--space-sm) var(--space-xl);
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
}

/* Nav search toggle icon */
.nav-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 8px;
    border-radius: var(--full);
    transition: background 0.15s, opacity 0.15s;
    line-height: 1;
}

.nav-search-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

/* Nav search — hidden overlay that slides in */
.nav-search {
    position: absolute;
    top: var(--nav-height);
    right: 0;
    left: 0;
    z-index: 100;
    background: var(--canvas);
    padding: var(--space-md) var(--space-2xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: none;
}

.nav-search.open {
    display: block;
}

.nav-search .search-input {
    width: 100%;
    max-width: 480px;
    height: 44px;
    font-size: 1rem;
    padding: var(--space-sm) var(--space-xl);
    display: block;
    margin: 0 auto;
}

/* --- Results info -------------------------------------------------------- */
.results-info {
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.875rem;
    padding: 0 var(--space-2xl) var(--space-xl);
}

/* --- Footer (design.md: footer) ------------------------------------------ */
.site-footer {
    background: #008069;
    padding: var(--space-5xl) var(--space-2xl) var(--space-3xl);
    margin-top: var(--space-5xl);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    gap: var(--space-5xl);
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 160px;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    color: #fff;
}

.footer-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    transition: opacity 0.15s;
}

.footer-links a:hover {
    color: #fff;
    opacity: 0.7;
    text-decoration: none;
}

.footer-bottom {
    margin-top: var(--space-4xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-copy a {
    color: #fff;
}

/* --- Policy page (delivery, terms, etc.) -------------------------------- */
.policy-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-2xl) var(--space-5xl);
}

.policy-content {
    background: var(--surface);
    border-radius: var(--tile);
    padding: var(--space-4xl) var(--space-3xl);
    line-height: 1.7;
}

.policy-content h2 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--ink);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-md);
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    font-size: 1rem;
    color: var(--ink-muted);
    margin-bottom: var(--space-md);
}

.policy-list {
    list-style: disc;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--ink-muted);
    font-size: 1rem;
}

.policy-list li {
    margin-bottom: var(--space-xs);
}

.policy-list li strong {
    color: var(--ink);
}

.policy-cta {
    margin-top: var(--space-2xl);
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: var(--full);
    flex-shrink: 0;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-detail strong {
    font-size: 0.875rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-detail a {
    font-size: 1.125rem;
    color: var(--ink);
}

/* --- Order form (cart page) --------------------------------------------- */
.order-form-section {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--surface);
    border-radius: var(--tile);
}

.order-form-section h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.order-form .form-group {
    margin-bottom: var(--space-md);
}

.order-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.order-form input[type="text"],
.order-form input[type="tel"] {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--pill);
    background: var(--canvas);
    outline: none;
}

.order-form input:focus {
    border-color: var(--primary);
}

.order-form .form-row {
    display: flex;
    gap: var(--space-md);
}

.order-form .form-row>* {
    flex: 1;
}

.order-form .order-summary {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--canvas);
    border-radius: var(--tile);
    font-size: 0.875rem;
}

.order-form .order-summary .osum-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.order-form .order-summary .osum-total {
    font-weight: 500;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: var(--space-xs);
    margin-top: var(--space-xs);
}

.order-form .order-actions {
    display: flex;
    gap: var(--space-sm);
}

/* --- Order complete page ------------------------------------------------- */
.order-complete {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-5xl) var(--space-2xl);
    text-align: center;
}

.order-complete .checkmark {
    width: 80px;
    height: 80px;
    border-radius: var(--full);
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-2xl);
}

.order-complete .checkmark svg {
    width: 40px;
    height: 40px;
}

.order-complete h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.order-complete .order-details {
    background: var(--surface);
    border-radius: var(--tile);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    text-align: left;
}

.order-complete .order-details .od-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.order-complete .order-details .od-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-complete .order-details h4 {
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
}

.order-complete .order-details .od-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.875rem;
}

.order-complete .order-details .od-total {
    font-weight: 500;
    font-size: 1.125rem;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.order-complete .auto-whatsapp-note {
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin-top: var(--space-lg);
}

/* --- Utility ------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.mt-2xl {
    margin-top: var(--space-2xl);
}

.mt-4xl {
    margin-top: var(--space-4xl);
}

.mb-4xl {
    margin-bottom: var(--space-4xl);
}

/* --- Responsive — mobile-first ------------------------------------------ */

/* Tablet and up — centered pills that fill available space */
@media (min-width: 769px) {
    .category-chips {
        justify-content: center;
        overflow-x: visible;
        scrollbar-width: auto;
        -ms-overflow-style: auto;
        scroll-snap-type: none;
    }

    .category-chips::-webkit-scrollbar {
        display: block;
    }

    .pill {
        flex: 1;
        max-width: 180px;
        width: auto;
    }
}

/* Tablet and below */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .product-detail .image-thumbs {
        justify-content: center;
    }

    .product-grid {
        gap: var(--space-sm);
    }

    .product-card .card-image {
        width: 100px;
        height: 100px;
    }

    .product-card .price {
        font-size: 0.85rem;
    }

    .card-add-btn {
        width: 34px;
        height: 34px;
    }

    .card-add-btn svg {
        width: 16px;
        height: 16px;
    }

    .home-category-section .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .nav-logo {
        font-size: 1rem;
    }

    /* Show hamburger, hide center nav links on mobile */
    .hamburger {
        display: flex;
    }

    .nav-center {
        display: none;
    }

    /* Mobile nav panel: slide in from left with transition */
    .mobile-nav-overlay {
        display: block;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .mobile-nav.open {
        transform: translateX(0);
    }

    .mobile-nav-overlay.open {
        display: block;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.875rem;
        padding: var(--space-sm) var(--space-xl);
    }

}

/* Small phones */
@media (max-width: 480px) {
    .top-nav {
        padding: var(--space-md) var(--space-sm);
    }

    .nav-links {
        gap: 8px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0 var(--space-xs);
    }

    .cart-link svg {
        width: 20px;
        height: 20px;
    }

    .nav-search-toggle {
        padding: 4px;
    }

    .hero-band {
        padding: var(--space-4xl) var(--space-md) var(--space-3xl);
    }

    .category-section {
        padding: 0 var(--space-xs);
    }

    .product-grid-section {
        padding: 0 var(--space-sm) var(--space-4xl);
    }

    .product-detail {
        padding: var(--space-3xl) var(--space-md);
    }

    .cart-page {
        padding: var(--space-3xl) var(--space-md);
    }

    .order-complete {
        padding: var(--space-3xl) var(--space-md);
    }

    .order-form .form-row {
        flex-direction: column;
    }
}