/* ============================================
   E-commerce Store – Mobile-first (The Souled Store style)
   Flexbox + Grid, semantic layout, CLS-safe
   ============================================ */

:root {
    --color-bg: #f6f6f8;
    --color-bg-hero: #1a1a1a;
    --color-text: #1a1a1a;
    --color-text-muted: #666;
    --color-border: #e5e5e5;
    --color-accent: #e63946;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --header-h: 56px;
    --container-padding: 16px;
    --transition-fast: 0.2s ease;
    --transition-slide: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-header: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

#main-content {
    flex: 1 0 auto;
}

/* Mobile: prevent horizontal scroll, fit viewport */
main,
.site-main {
    min-width: 0;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------
   HEADER – Sticky dark bar (all pages), mobile-friendly
   -------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.35);
    -webkit-tap-highlight-color: transparent;
}

/* Header icon buttons – professional symbolic actions */
.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.header-btn:hover,
.header-btn:focus-visible {
    color: var(--color-accent);
    opacity: 0.9;
}

.header-btn:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.header-btn--icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
}

.header-btn-label {
    display: none;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .header-btn--icon {
        width: auto;
        min-width: 0;
        padding-inline: 8px;
        gap: 4px;
        height: 48px;
        min-height: 48px;
    }

    .header-btn-label {
        display: inline;
    }

    .header-logo__img {
        height: 42px;
        max-width: 240px;
    }
}

.header-btn--icon:hover,
.header-btn--icon:focus-visible {
    transform: scale(1.05);
}

.header-btn .header-cart-count {
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-h);
    padding: 0 var(--container-padding);
    max-width: 100%;
}

/* Hamburger – visible on mobile */
.header-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin: -10px 0 -10px -10px;
    transition: opacity var(--transition-fast);
}

.header-hamburger:hover,
.header-hamburger:focus-visible {
    opacity: 0.7;
}

.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Logo – center on mobile */
.header-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--color-text);
    transition: opacity var(--transition-fast);
}

.header-logo:hover {
    opacity: 0.85;
}

.header-logo__img {
    height: 28px;
    width: auto;
    max-width: 180px;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    white-space: nowrap;
}

/* Nav – hidden on mobile (inside drawer or toggled) */
.header-nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--color-text);
    padding: 8px 0;
    transition: color var(--transition-fast);
}

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

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

.nav-item--more {
    position: relative;
}

.nav-link--dropdown {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link--dropdown::after {
    content: '';
    border: 5px solid transparent;
    border-top-color: currentColor;
    margin-left: 2px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    min-width: 180px;
    background: var(--color-bg);
    box-shadow: var(--shadow-header);
    border-radius: 8px;
    z-index: 50;
    display: none;
}

.nav-item--more:hover .nav-dropdown,
.nav-item--more.is-open .nav-dropdown {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

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

.nav-drawer-label {
    margin-top: 12px;
    padding: 8px var(--container-padding);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.nav-drawer-link--sub {
    padding-left: calc(var(--container-padding) + 12px);
}

/* Mobile nav drawer */
.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
    transition: visibility var(--transition-slide);
}

.nav-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.nav-drawer.is-open .nav-drawer-backdrop {
    opacity: 1;
}

.nav-drawer.is-open .nav-drawer-panel {
    transform: translateX(0);
}

.nav-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-slide);
}

.nav-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 88vw;
    height: 100%;
    background: var(--color-bg);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-slide);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.nav-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: var(--color-text);
}

.nav-drawer-brand__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-drawer-brand__name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.nav-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-drawer-close:hover,
.nav-drawer-close:focus-visible {
    background: var(--color-bg-soft, #f5f5f5);
    border-color: var(--color-text-muted);
}

.nav-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px 16px;
}

.nav-drawer-footer {
    flex-shrink: 0;
    padding: 16px;
    padding-bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.nav-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-drawer-link {
    display: block;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.04em;
    padding: 14px 0;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.nav-drawer-link:hover,
.nav-drawer-link:focus-visible {
    color: var(--color-accent);
}

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

@media (min-width: 768px) {
    .nav-drawer {
        display: none;
    }
}

/* Actions: search + icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 480px) {
    .header-actions {
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .header-actions {
        gap: 8px;
    }
}

.header-search-wrap {
    display: none;
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 280px;
}

/* Mobile header layout: logo left + search center + cart + hamburger right */
@media (max-width: 767px) {
    .header-inner {
        justify-content: flex-start;
        gap: 10px;
    }

    .header-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
        order: 1;
    }

    .header-actions {
        flex: 1;
        justify-content: flex-end;
        order: 2;
        min-width: 0;
    }

    .header-hamburger {
        order: 3;
        margin: 0;
    }

    .header-search-wrap {
        display: block;
        max-width: 220px;
    }

    .header-search {
        height: 36px;
        padding: 0 34px 0 12px;
    }

    .header-search-mic {
        width: 28px;
        height: 28px;
    }

    /* Keep cart visible, hide extra auth buttons on mobile (drawer still has them) */
    .header-actions .header-btn--icon:not(.header-cart-link) {
        display: none;
    }

    .header-greeting {
        display: none;
    }
}

.header-search {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-search::placeholder {
    color: var(--color-text-muted);
}

.header-search:hover,
.header-search:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.header-search-mic {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.header-search-mic:hover {
    color: var(--color-text);
}

.header-search-mic .icon-mic {
    width: 18px;
    height: 18px;
}

/* Dark navbar theme overrides (applies everywhere `layouts.app` is used) */
.site-header .nav-link,
.site-header .header-btn,
.site-header .header-greeting,
.site-header .header-icon {
    color: #f0f0f0;
}

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

.site-header .header-icon:hover,
.site-header .header-icon:focus-visible,
.site-header .header-btn:hover,
.site-header .header-btn:focus-visible {
    color: var(--color-accent);
    opacity: 1;
}

.site-header .header-hamburger .hamburger-line {
    background: #f0f0f0;
}

.site-header .header-logo {
    color: #f0f0f0;
}

.site-header .header-logo__img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.site-header .header-search {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.site-header .header-search::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.site-header .header-search:hover,
.site-header .header-search:focus {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.site-header .header-search-mic {
    color: rgba(255, 255, 255, 0.85);
}

.site-header .header-search-mic:hover {
    color: #fff;
}

.site-header .header-cart-count {
    background: #fff;
    color: #0a0a0a;
}

.site-header .header-btn:focus-visible {
    outline-color: rgba(255, 255, 255, 0.55);
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.header-icon:hover,
.header-icon:focus-visible {
    color: var(--color-accent);
}

.header-icon .icon {
    width: 22px;
    height: 22px;
}

.icon-heart:hover {
    fill: var(--color-accent);
}

/* --------------------------------------------
   HERO – Full-bleed slider (Souled Store style)
   Edge-to-edge, background image + gradient overlay, text overlay
   -------------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    min-height: 42vh;
    overflow: hidden;
}

/* Slider fills hero; hero height comes from min-height (mobile) or aspect-ratio (desktop) */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide--active {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Full-bleed background image */
.hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* LEFKO showroom slide: keep focal area centered for flexible laptop + mobile crop */
.hero-slide--lefko .hero-bg-img {
    object-position: center center;
}

/* Dark gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Mobile: more uniform overlay for centered text */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

/* Text overlay – centered on mobile */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px var(--container-padding);
    text-align: center;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
}

.hero-title--brand {
    letter-spacing: 0.2em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
}

/* Arrows – smooth transition */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.25);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-arrow--prev {
    left: var(--container-padding);
}

.hero-arrow--next {
    right: var(--container-padding);
}

/* Minimal slider indicators */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dot--active {
    background: #fff;
    transform: scale(1.35);
}

/* --------------------------------------------
   SECTIONS – Unique per section, rich headings
   -------------------------------------------- */

.section {
    padding: 32px var(--container-padding) 40px;
    position: relative;
}

.section--alt {
    background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
}

/* Section style variants – keep on-brand but visually distinct */
.section--style-highlight {
    background: radial-gradient(circle at top left, #ffffff 0%, #f5f5f5 48%, #f0f0f0 100%);
}

.section--style-highlight .section-header {
    text-align: left;
}

.section--style-highlight .section-heading {
    letter-spacing: 0.16em;
}

.section--style-highlight .section-heading-accent {
    width: 80px;
}

.section--style-boxed {
    background: #ffffff;
}

.section--style-boxed .product-grid {
    gap: 16px;
}

.section--style-boxed .product-card {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.section--style-minimal {
    background: #fafafa;
}

.section--style-minimal .section-header {
    margin-bottom: 18px;
}

.section--style-minimal .section-heading {
    font-weight: 600;
    letter-spacing: 0.08em;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Collection / menu page – professional entrance and styling */
.collection-page-wrap {
    animation: collectionPageEnter 0.5s ease-out forwards;
}
@keyframes collectionPageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section--collection-title {
    padding-top: 20px;
    padding-bottom: 16px;
    text-align: center;
    position: relative;
}
.section--collection-title .section-inner {
    padding-left: 56px;
    padding-right: 56px;
}

.collection-back-btn {
    position: absolute;
    left: var(--container-padding);
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.collection-back-btn:hover,
.collection-back-btn:focus-visible {
    background: #f8f8f8;
    border-color: #ddd;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.05);
}
.collection-back-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.collection-page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}
.collection-page-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-text), transparent);
    border-radius: 2px;
}

.section--collection-full {
    padding-top: 24px;
    padding-bottom: 48px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 120px);
}

.product-grid--collection {
    gap: 20px;
}

.product-card--collection {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    animation: collectionCardEnter 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: calc(var(--card-index, 0) * 0.05s);
}
.product-card--collection:hover,
.product-card--collection:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.product-card--collection .product-card-image-wrap {
    border-radius: 12px 12px 0 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card--collection:hover .product-card-image,
.product-card--collection:focus-within .product-card-image {
    transform: scale(1.06);
}

.product-card--collection .product-card-add-btn,
.product-card--collection .product-card-add-btn--guest {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card--collection .product-card-add-btn:hover,
.product-card--collection .product-card-add-btn--guest:hover,
.product-card--collection .product-card-add-btn:focus-visible,
.product-card--collection .product-card-add-btn--guest:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-heading {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 12px;
    line-height: 1.2;
}

.section-heading-accent {
    display: block;
    width: 48px;
    height: 4px;
    margin: 0 auto;
    background: var(--color-accent);
    border-radius: 2px;
}

/* First section – hero-adjacent, bolder */
.section:first-of-type .section-heading {
    font-size: 1.5rem;
    letter-spacing: 0.14em;
}

.section:first-of-type .section-heading-accent {
    width: 64px;
    height: 5px;
}

/* Unique section accents by slug */
.section--hot-season .section-heading-accent {
    background: linear-gradient(90deg, #e65100, #ff9800);
}

.section--new-arrivals .section-heading-accent {
    background: var(--color-accent);
}

.section--bestsellers .section-heading-accent,
.section--trending .section-heading-accent {
    background: #2e7d32;
}

.section--sale .section-heading-accent,
.section--deals .section-heading-accent {
    background: linear-gradient(90deg, #c62828, #e65100);
}

.section--collections .section-heading-accent {
    background: #1565c0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
}

.product-card {
    position: relative;
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-card);
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-link {
    display: block;
    color: var(--color-text);
}

.product-card-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
    aspect-ratio: 4 / 5;
    max-width: 100%;
}

.product-card-image-wrap--fallback .product-card-image {
    display: none;
}

.product-card-image-wrap--fallback {
    background: #e8e8e8;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-link:hover .product-card-image,
.product-card-link:focus-visible .product-card-image {
    transform: scale(1.08);
}

.product-card-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

.product-card-label--offer {
    right: 12px;
    left: auto;
    background: #e65100;
}

.product-card-label--discount {
    top: 12px;
    left: 12px;
    bottom: auto;
    background: #2e7d32;
}

.offer-countdown-wrap {
    font-size: 12px;
    margin-top: 6px;
    color: var(--color-text-muted);
}

.offer-countdown-wrap .offer-countdown-label {
    margin-right: 6px;
}

.offer-countdown-wrap.offer-countdown--ended .offer-countdown {
    color: #c62828;
}

.product-card-out-of-stock {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #c62828;
}

.section-empty {
    grid-column: 1 / -1;
    padding: 24px var(--container-padding);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Home: menu-wise section images (cards) – click to collection */
.section--menu-cards {
    padding: 20px var(--container-padding) 28px;
}
.menu-cards-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}
.menu-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f0f0;
}
.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.menu-card:hover .menu-card-img,
.menu-card:focus-visible .menu-card-img {
    transform: scale(1.05);
}
.menu-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
@media (min-width: 768px) {
    .menu-cards-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Home: menu-wise section – slider of product images (click → that menu’s page) */
.section--menu-slider {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section--menu-slider.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section--menu-slider .section-inner {
    position: relative;
}

.section--menu-slider:not(:last-child)::after {
    content: '';
    position: absolute;
    left: var(--container-padding);
    right: var(--container-padding);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border) 15%, var(--color-border) 85%, transparent 100%);
    opacity: 0.6;
}

.section--menu-slider .section-heading-link {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast), letter-spacing 0.25s ease;
}
.section--menu-slider .section-heading-link:hover,
.section--menu-slider .section-heading-link:focus-visible {
    text-decoration: underline;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.section--menu-slider .section-slider-slide {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--slide-index, 0) * 0.06s);
}

.section--menu-slider.is-visible .section-slider-slide {
    opacity: 1;
    transform: translateY(0);
}

.menu-slider-product-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4 / 5;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-slider-product-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.08) 100%);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.menu-slider-product-link:hover,
.menu-slider-product-link:focus-visible {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.menu-slider-product-link:hover::before,
.menu-slider-product-link:focus-visible::before {
    opacity: 1;
}

.menu-slider-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

.menu-slider-product-link:hover .menu-slider-product-img,
.menu-slider-product-link:focus-visible .menu-slider-product-img {
    transform: scale(1.06);
}

.menu-slider-product-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #999;
    background: #e8e8e8;
}

.menu-slider-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 4px;
    z-index: 1;
}

.menu-slider-badge--offer {
    background: var(--color-text);
    color: #fff;
}

.menu-slider-badge--discount {
    background: var(--color-accent);
    color: #fff;
    left: auto;
    right: 8px;
}

.menu-slider-price-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 10px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    z-index: 1;
}

.menu-slider-price-original {
    font-size: 12px;
    text-decoration: line-through;
    opacity: 0.9;
}

.menu-slider-price {
    font-size: 15px;
    font-weight: 700;
}

/* Collection page: product list – image only, mobile fit */
.section--collection-products {
    padding-top: 0;
    padding-bottom: 32px;
}
.collection-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}
.collection-product-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4 / 5;
}
.collection-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.collection-product-card:hover .collection-product-img,
.collection-product-card:focus-visible .collection-product-img {
    transform: scale(1.03);
}
.collection-product-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #999;
    background: #e8e8e8;
}
@media (min-width: 600px) {
    .collection-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (min-width: 900px) {
    .collection-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Section product slider – mobile 1/slide, desktop 3–4/slide */
.section-slider {
    position: relative;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0 var(--container-padding);
}
.section-slider-viewport {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}
.section-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.section-slider-track.is-dragging {
    transition: none;
}
.section-slider-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 6px;
}
.section-slider .product-card--slide {
    height: 100%;
}
.section-slider .product-card-link {
    display: block;
}
.section-slider .product-card-image-wrap {
    transition: transform 0.35s ease;
}
.section-slider .product-card:hover .product-card-image-wrap,
.section-slider .product-card:focus-within .product-card-image-wrap {
    transform: scale(1.02);
}
.section-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.section-slider-arrow:hover,
.section-slider-arrow:focus-visible {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.08);
}
.section-slider-arrow:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}
.section-slider-arrow--prev {
    left: 8px;
}
.section-slider-arrow--next {
    right: 8px;
}
.section-slider-thumbs {
    display: none;
}
.section-slider-thumbs:not(:empty) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    min-height: 0;
}
.section-slider-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
}
.section-slider-thumb:hover,
.section-slider-thumb:focus-visible {
    opacity: 1;
}
.section-slider-thumb.is-active {
    border-color: var(--color-text);
    opacity: 1;
}
.section-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-slider-viewport.is-dragging {
    cursor: grabbing;
}
.section-slider-viewport.cursor-grab {
    cursor: grab;
}

@media (min-width: 768px) {
    .section-slider-slide {
        flex: 0 0 33.333%;
    }
    .section-slider-arrow--prev {
        left: 12px;
    }
    .section-slider-arrow--next {
        right: 12px;
    }
}

@media (min-width: 1024px) {
    .section-slider-slide {
        flex: 0 0 25%;
    }
}

.product-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price-original {
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.product-card-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.product-card-add-form,
.product-card-add-btn {
    margin-top: 8px;
}

.product-card-add-btn {
    display: inline-block;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: var(--color-text);
    border-radius: 6px;
    transition: background var(--transition-fast), opacity var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.product-card-add-btn:hover,
.product-card-add-btn:focus-visible {
    background: #333;
}

.product-card-add-btn--guest {
    text-decoration: none;
    background: var(--color-accent);
}

.product-card-add-btn--guest:hover,
.product-card-add-btn--guest:focus-visible {
    background: #c42d3a;
    color: #fff;
}

/* --------------------------------------------
   Header auth: greeting, cart count, logout
   -------------------------------------------- */

.header-greeting {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--color-text);
}

.header-cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--color-accent);
    border-radius: 9px;
}

.header-logout-form {
    display: inline-flex;
    align-items: center;
}

.nav-drawer-form {
    margin: 0;
}

.nav-drawer-link--button {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

.nav-drawer-logout-btn {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    color: #fff;
    background: #c62828;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast), opacity var(--transition-fast);
}

.nav-drawer-logout-btn:hover,
.nav-drawer-logout-btn:focus-visible {
    background: #b71c1c;
}

/* --------------------------------------------
   Flash messages
   -------------------------------------------- */

.flash-message {
    padding: 12px var(--container-padding);
    font-size: 14px;
    text-align: center;
}

.flash-message--success {
    background: #d4edda;
    color: #155724;
}

.flash-message--error {
    background: #f8d7da;
    color: #721c24;
}

.flash-message-list {
    margin: 0;
    padding-left: 1.2em;
}

/* --------------------------------------------
   Auth (login / register) – overlay / top-up style
   -------------------------------------------- */

.page-auth-overlay #main-content {
    padding: 0;
    min-height: 100vh;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--container-padding);
    overflow-y: auto;
}

.auth-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.auth-overlay-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    animation: auth-card-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-overlay-card--tall {
    max-width: 480px;
    max-height: calc(100vh - 24px);
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-overlay-close:hover,
.auth-overlay-close:focus-visible {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.06);
}

.auth-overlay-close:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.auth-section {
    padding: 32px var(--container-padding) 48px;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
    border: 1px solid var(--color-border);
    position: relative;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.45;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field--half {
    flex: 1;
    min-width: 0;
}

.auth-row {
    display: flex;
    gap: 16px;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.required {
    color: var(--color-accent);
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--color-bg);
}

.auth-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.8;
}

.auth-input:hover {
    border-color: #ccc;
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.auth-input--error {
    border-color: var(--color-accent);
}

.auth-input--error:focus {
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.auth-error {
    font-size: 12px;
    color: var(--color-accent);
}

.auth-address-block {
    margin-top: 4px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-soft, #f7f6f4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-address-block__head {
    margin: 0;
}

.auth-address-block__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-address-block__hint {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.auth-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-address-detect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-address-detect-btn:hover:not(:disabled),
.auth-address-detect-btn:focus-visible:not(:disabled) {
    border-color: var(--color-text-muted);
    background: #fff;
}

.auth-address-detect-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-address-status {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--color-border);
}

.auth-address-status[hidden] {
    display: none;
}

.auth-address-status.is-loading {
    color: var(--color-text-muted);
    border-color: #e0e0e0;
}

.auth-address-status.is-success {
    color: #2e7d32;
    background: #f1f8f4;
    border-color: #c8e6c9;
}

.auth-address-status.is-error {
    color: #c62828;
    background: #fff5f5;
    border-color: #ffcdd2;
}

.auth-address-pincode {
    position: relative;
}

.auth-address-pincode.is-loading .auth-input {
    padding-right: 40px;
}

.auth-address-pincode.is-loading::after {
    content: '';
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: auth-pincode-spin 0.65s linear infinite;
    pointer-events: none;
}

@keyframes auth-pincode-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-field--checkbox {
    flex-direction: row;
    align-items: center;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-text-muted);
}

.auth-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color-text);
}

.auth-divider {
    height: 1px;
    background: var(--color-border);
    margin: 20px 0 16px;
}

.auth-submit {
    margin-top: 4px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--color-text);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background: #333;
}

.auth-submit:active {
    transform: scale(0.98);
}

.auth-submit:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.auth-footer {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    text-align: center;
}

.auth-link {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.auth-link:hover,
.auth-link:focus-visible {
    color: var(--color-accent);
}

/* --------------------------------------------
   Cart page
   -------------------------------------------- */

.cart-section {
    padding: 32px var(--container-padding) 48px;
    max-width: 800px;
    margin: 0 auto;
    min-width: 0;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.cart-empty {
    font-size: 16px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 48px 16px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 16px;
    align-items: start;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.cart-item-image-wrap {
    aspect-ratio: 4/5;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #999;
    background: #e8e8e8;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.product-card-price-wrap .cart-item-price {
    font-weight: 700;
    color: var(--color-text);
}

.cart-item-price {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.cart-item-qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-item-qty {
    width: 60px;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.cart-item-update,
.cart-item-remove {
    font-size: 13px;
    padding: 6px 12px;
    color: var(--color-accent);
    background: none;
    border: none;
    cursor: pointer;
}

.cart-item-remove:hover,
.cart-item-update:hover {
    text-decoration: underline;
}

.cart-item-subtotal {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.cart-total-wrap {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total-label {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.cart-total {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.cart-checkout-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border-radius: 8px;
    text-align: center;
    transition: opacity var(--transition-fast);
}

.cart-checkout-btn:hover {
    opacity: 0.9;
}

.cart-item-link {
    color: var(--color-text);
}

.cart-item-link:hover {
    color: var(--color-accent);
}

.cart-item-meta {
    font-weight: normal;
    color: var(--color-text-muted);
}

/* --------------------------------------------
   Product detail page
   -------------------------------------------- */

.product-detail {
    padding: 24px var(--container-padding) 48px;
    max-width: 1100px;
    margin: 0 auto;
    min-width: 0;
}

.product-detail-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product gallery: carousel with side thumbs */
.product-gallery--carousel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .product-gallery--carousel {
        flex-direction: row;
        gap: 16px;
    }
}

.product-gallery-thumbs--side {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 0;
    order: 1;
}

@media (min-width: 768px) {
    .product-gallery-thumbs--side {
        flex-direction: column;
        order: 0;
        margin-right: 0;
        flex-shrink: 0;
    }
}

.product-gallery-main {
    position: relative;
    aspect-ratio: 4/5;
    max-height: 340px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .product-gallery-main {
        max-height: 460px;
    }
}

.product-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-gallery-slide[hidden] {
    display: none;
}

.product-gallery-slide--with-overlay {
    position: absolute;
    inset: 0;
}

.product-gallery-slide--with-overlay .product-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Key Highlights – pure text overlay only (Flipkart/Myntra style, no cards/panels) */
.product-gallery-specs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 16px;
    pointer-events: none;
    z-index: 1;
}

.product-gallery-specs-overlay--text-only {
    padding: 24px 20px;
}

@media (min-width: 768px) {
    .product-gallery-specs-overlay--text-only {
        padding: 28px 24px;
    }
}

.key-highlights-text {
    max-width: 50%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', var(--font-sans), sans-serif;
}

.key-highlights-text__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .key-highlights-text__title {
        font-size: 20px;
        margin-bottom: 18px;
    }
}

.key-highlights-text__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.key-highlights-text__row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.key-highlights-text__row:first-of-type {
    padding-top: 0;
}

.key-highlights-text__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .key-highlights-text__row {
        padding: 9px 0;
    }
}

.key-highlights-text__label {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 0.35);
}

.key-highlights-text__value {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .key-highlights-text__label {
        font-size: 14px;
    }

    .key-highlights-text__value {
        font-size: 19px;
    }
}

.product-gallery-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease;
    image-rendering: auto;
}

.product-gallery-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: #999;
    background: #e8e8e8;
}

.product-gallery-specs-panel {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.product-gallery-specs-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--color-text);
}

.product-gallery-specs-list {
    margin: 0;
}

.product-gallery-specs-list .product-spec-row {
    padding: 8px 0;
}

.product-thumb-placeholder {
    font-size: 1.5rem;
    font-weight: 700;
    color: #999;
}

.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.product-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.product-thumb--active {
    border-color: var(--color-text);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--color-text);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-badge--offer {
    background: #e65100;
    margin-left: 8px;
}

.product-badge--discount {
    background: #2e7d32;
    margin-left: 8px;
}

.offer-countdown-wrap--detail {
    font-size: 14px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff3e0;
    border-radius: 8px;
}

.offer-countdown-wrap--detail .offer-countdown {
    font-weight: 700;
    color: var(--color-text);
}

.product-out-of-stock {
    font-size: 1rem;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 16px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.product-rating-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-rating-stars .star {
    color: #ddd;
}

.product-rating-stars .star--filled {
    color: #f0ad4e;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-price-wrap .product-price-original {
    font-size: 1.25rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.product-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.product-description {
    margin-bottom: 20px;
}

.product-options {
    margin-bottom: 16px;
}

.product-option {
    margin-bottom: 10px;
}

.product-option-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.product-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-option-value {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.product-option-value input {
    margin-right: 6px;
}

.product-option-values--size .product-option-value span {
    display: inline-block;
    min-width: 36px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.product-option-value input:checked + span {
    border-color: var(--color-text);
    font-weight: 600;
}

/* Product color picker – circular swatches, hover, active with check, mobile-friendly */
.product-color-picker .product-option-label {
    display: block;
    margin-bottom: 10px;
}
.color-picker-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.color-swatch-wrap {
    display: inline-flex;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.color-swatch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.color-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    background-color: #e0e0e0;
}
.color-swatch-wrap:hover .color-swatch,
.color-swatch-wrap:focus-within .color-swatch {
    transform: scale(1.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.color-swatch-input:checked + .color-swatch {
    border-color: var(--color-text);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-text);
    transform: scale(1);
}
.color-swatch-input:checked + .color-swatch .color-swatch-check {
    opacity: 1;
    transform: scale(1);
}
.color-swatch-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.color-picker-selected-name {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    min-height: 1.4em;
    transition: opacity 0.2s ease;
}

/* Size option circle shape; unavailable = square with light cross (X) over it */
.product-option-values--size span.product-option-value__circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.35rem;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 500;
    background: #fafafa;
}
.product-option-values--size .product-option-value input:checked + .product-option-value__circle {
    border-color: #999;
    background: #f0f0f0;
    color: var(--color-text);
}
.product-option-values--size .product-option-value--unavailable {
    display: inline-flex;
    cursor: not-allowed;
}
.product-option-values--size span.product-option-value__circle--unavailable {
    position: relative;
    overflow: visible;
    border-color: #e0e0e0;
    background: #f5f5f5;
    color: #aaa;
}
.product-option-values--size span.product-option-value__circle--unavailable::before,
.product-option-values--size span.product-option-value__circle--unavailable::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130%;
    height: 1.5px;
    background: #bbb;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}
.product-option-values--size span.product-option-value__circle--unavailable::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.product-option-values--size span.product-option-value__circle--unavailable::after {
    transform: translate(-50%, -50%) rotate(45deg);
}
.product-option-values--size span.product-option-value__circle--square {
    border-radius: 0.2rem;
}
.product-option-values--size span.product-option-value__circle--square.product-option-value__circle--unavailable {
    border-radius: 0.2rem;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.product-add-form,
.product-buy-form {
    display: inline;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.btn--primary {
    color: #fff;
    background: var(--color-text);
}

.btn--primary:hover {
    opacity: 0.9;
}

.btn--accent {
    color: #fff;
    background: var(--color-accent);
}

.btn--accent:hover {
    opacity: 0.9;
}

.product-specs {
    margin-bottom: 32px;
}

.product-spec-list {
    margin: 0;
}

.product-spec-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.product-spec-row dt {
    margin: 0;
    color: var(--color-text-muted);
}

.product-spec-row dd {
    margin: 0;
    color: var(--color-text);
}

/* --------------------------------------------
   Product Highlights & All Details (Flipkart-style, mobile-first)
   -------------------------------------------- */

.product-highlights,
.product-all-details {
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    -webkit-tap-highlight-color: transparent;
}

/* Product highlights: header row with expand/collapse */
.product-highlights__header,
.product-all-details__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    margin: 0;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}

.product-highlights__header:focus-visible,
.product-all-details__header:focus-visible {
    outline: 2px solid var(--color-accent, #2563eb);
    outline-offset: 2px;
}

.product-highlights__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.product-highlights__arrow {
    flex-shrink: 0;
    color: var(--color-text-muted, #666);
    transition: transform 0.25s ease;
}

.product-highlights__header[aria-expanded="false"] .product-highlights__arrow {
    transform: rotate(-90deg);
}

/* Highlights content: 2-column grid, smooth collapse */
.product-highlights__content {
    max-height: 1200px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.product-highlights__content:not(.product-highlights__content--open) {
    max-height: 0;
    opacity: 0;
}

.product-highlights__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-top: 4px;
}

.product-highlights__row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    min-height: 44px;
}

.product-highlights__label {
    font-size: 13px;
    color: var(--color-text-muted, #878787);
    font-weight: 400;
}

.product-highlights__value {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #1a1a1a);
    text-align: right;
}

.product-highlights__divider {
    grid-column: 1 / -1;
    height: 1px;
    background: #e8e8e8;
}

/* All details: title + subtitle + dropdown arrow */
.product-all-details__header {
    align-items: center;
}

.product-all-details__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.product-all-details__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.product-all-details__subtitle {
    font-size: 13px;
    color: var(--color-text-muted, #878787);
}

.product-all-details__arrow {
    flex-shrink: 0;
    color: var(--color-text-muted, #666);
    transition: transform 0.25s ease;
}

.product-all-details__header[aria-expanded="true"] .product-all-details__arrow {
    transform: rotate(-90deg);
}

.product-all-details__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.product-all-details__content.product-all-details__content--open {
    max-height: 800px;
}

.product-all-details__body {
    padding: 12px 0 4px;
}

.product-all-details__block {
    margin-bottom: 16px;
}

.product-all-details__block:last-child {
    margin-bottom: 0;
}

.product-all-details__block-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.product-all-details__block-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text, #333);
}

.product-all-details__spec-list {
    margin: 0;
}

.product-all-details__spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #e8e8e8;
}

.product-all-details__spec-row:last-child {
    border-bottom: none;
}

.product-all-details__spec-row dt {
    margin: 0;
    color: var(--color-text-muted, #878787);
    font-weight: 400;
}

.product-all-details__spec-row dd {
    margin: 0;
    color: var(--color-text, #1a1a1a);
    font-weight: 500;
    text-align: right;
}

/* --------------------------------------------
   Delivery & Order Info (Flipkart-style)
   -------------------------------------------- */

.delivery-order-info {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-benefit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.delivery-benefit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.delivery-benefit-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.delivery-benefit-arrow {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.delivery-details {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.delivery-details-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--color-text);
}

.delivery-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.delivery-detail-row:last-child {
    border-bottom: none;
}

.delivery-detail-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.delivery-detail-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.delivery-detail-value {
    flex: 1;
    min-width: 0;
    color: var(--color-text);
}

.delivery-detail-link {
    color: var(--color-accent);
    text-decoration: none;
}

.delivery-detail-link:hover,
.delivery-detail-link:focus-visible {
    text-decoration: underline;
}

.delivery-detail-link--btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.delivery-address-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.delivery-address-modal[hidden] {
    display: none;
}

.delivery-address-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.delivery-address-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.delivery-address-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.delivery-address-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.delivery-address-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-muted, #666);
    padding: 4px;
}

.delivery-address-modal__close:hover {
    color: var(--color-text, #333);
}

.delivery-address-modal__status {
    margin: 0;
    padding: 12px 20px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 14px;
}

.delivery-address-form {
    padding: 20px;
}

.delivery-address-form__group {
    margin-bottom: 14px;
}

.delivery-address-form__row {
    display: flex;
    gap: 12px;
}

.delivery-address-form__row .delivery-address-form__group {
    flex: 1;
}

.delivery-address-form__label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.delivery-address-form__label .required {
    color: #c62828;
}

.delivery-address-form__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: 8px;
    font-size: 14px;
}

.delivery-address-form__input:focus {
    outline: none;
    border-color: var(--color-accent, #2563eb);
}

.delivery-address-form__error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #c62828;
}

.delivery-address-form__actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.delivery-address-form__actions .btn {
    flex: 1;
}

.delivery-detail-arrow {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.delivery-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.delivery-star {
    color: #f0ad4e;
}

.delivery-service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.delivery-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.delivery-service-icon {
    font-size: 22px;
    line-height: 1;
}

.delivery-service-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

@media (min-width: 600px) {
    .delivery-order-info {
        margin-top: 28px;
        gap: 20px;
    }

    .delivery-benefit-card {
        padding: 16px 20px;
    }

    .delivery-details {
        padding: 20px;
    }

    .delivery-service-cards {
        gap: 12px;
    }

    .delivery-service-card {
        padding: 18px 12px;
    }

    .delivery-service-text {
        font-size: 12px;
    }
}

.product-reviews {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.product-no-reviews {
    color: var(--color-text-muted);
    font-size: 14px;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.review-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-stars .star {
    color: #ddd;
}

.review-stars .star--filled {
    color: #f0ad4e;
}

.review-author {
    font-weight: 600;
    font-size: 14px;
}

.review-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

.review-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-comment {
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
}

/* Review form (write a review) */
.review-form-wrap {
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.review-form-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--color-text);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-form-row,
.review-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.review-stars-input {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.review-star-label {
    cursor: pointer;
    padding: 4px;
}

.review-star-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.review-star-label .star--input {
    display: inline-block;
    font-size: 24px;
    color: #ddd;
    transition: color var(--transition-fast);
}

.review-star-label:hover .star--input,
.review-star-radio:focus-visible + .star--input {
    color: #f0ad4e;
}

.review-star-radio:checked + .star--input {
    color: #f0ad4e;
}

.review-form-input,
.review-form-textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition-fast);
}

.review-form-input:focus,
.review-form-textarea:focus {
    outline: none;
    border-color: #999;
}

.review-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.review-form-file {
    width: 100%;
    font-size: 14px;
    color: var(--color-text);
}

.review-form-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
}

.review-form-error {
    font-size: 12px;
    color: var(--color-accent);
}

.review-form-submit {
    align-self: flex-start;
    margin-top: 4px;
}

/* Review images (photos in reviews) */
.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.review-image-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.review-image-link:hover,
.review-image-link:focus-visible {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
}

.review-list {
    margin-top: 0;
}

/* --------------------------------------------
   Account – My Orders
   -------------------------------------------- */

.account-section {
    padding: 32px var(--container-padding) 48px;
    max-width: 900px;
    margin: 0 auto;
}

.account-header {
    margin-bottom: 28px;
}

.account-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-text);
}

.account-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.account-empty {
    text-align: center;
    padding: 48px 16px;
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.account-empty p {
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--color-text-muted);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.order-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.order-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid var(--color-border);
}

.order-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.order-id {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.order-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

.order-card-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
}

.order-status--pending {
    background: #fff3cd;
    color: #856404;
}

.order-status--confirmed,
.order-status--shipped,
.order-status--delivered {
    background: #d4edda;
    color: #155724;
}

.order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.order-address {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
}

.order-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-link {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    color: var(--color-text);
}

.order-item-link:hover {
    color: var(--color-accent);
}

.order-item-image {
    width: 64px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.order-item-placeholder {
    width: 64px;
    height: 80px;
    border-radius: 8px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #999;
    flex-shrink: 0;
}

.order-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.order-item-name {
    font-size: 15px;
    font-weight: 600;
}

.order-item-meta {
    font-size: 12px;
    color: var(--color-text-muted);
}

.order-item-qty,
.order-item-price {
    font-size: 13px;
    color: var(--color-text-muted);
}

.order-item-price {
    font-weight: 600;
    color: var(--color-text);
}

.order-item-review {
    flex-shrink: 0;
}

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.btn-review--write {
    color: #fff;
    background: var(--color-accent);
}

.btn-review--write:hover,
.btn-review--write:focus-visible {
    opacity: 0.9;
}

.btn-review--done {
    color: var(--color-text);
    background: #f0f0f0;
    border: 1px solid var(--color-border);
}

.btn-review--done:hover,
.btn-review--done:focus-visible {
    background: #e5e5e5;
}

.btn-review-stars .star {
    color: #ddd;
}

.btn-review-stars .star--filled {
    color: #f0ad4e;
}

.account-pagination {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.account-pagination nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.account-pagination a,
.account-pagination span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.account-pagination a:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.account-pagination span {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
}

.account-pagination .disabled span {
    background: #e5e5e5;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

/* --------------------------------------------
   Checkout
   -------------------------------------------- */

.checkout-section {
    padding: 24px var(--container-padding) 48px;
    max-width: 900px;
    margin: 0 auto;
    min-width: 0;
}

.checkout-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-text);
}

.checkout-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr 340px;
    }
}

.checkout-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.checkout-heading--mt {
    margin-top: 24px;
}

.checkout-field {
    margin-bottom: 16px;
}

.checkout-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.checkout-textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    resize: vertical;
}

.checkout-demo-payment {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.checkout-submit {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.checkout-submit:hover {
    opacity: 0.9;
}

.checkout-summary {
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.checkout-items {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
}

.checkout-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.checkout-item-name {
    color: var(--color-text);
}

.checkout-item-name small {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
}

.checkout-item-qty {
    color: var(--color-text-muted);
}

.checkout-item-price {
    font-weight: 600;
    color: var(--color-text);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
}

.checkout-success {
    padding: 32px var(--container-padding) 48px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.checkout-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.checkout-success-order-id {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.checkout-success-summary {
    text-align: left;
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.checkout-success-address {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --------------------------------------------
   Order Summary (Checkout step 2) – Flipkart-style
   -------------------------------------------- */

.os-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    padding-bottom: 24px;
}

.os-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.os-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text, #1a1a1a);
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.os-header__title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.os-header__spacer {
    width: 32px;
}

.os-main {
    padding: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.os-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.os-stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.os-stepper__circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: #e0e0e0;
    color: #666;
}

.os-stepper__step--done .os-stepper__circle {
    background: #4caf50;
    color: #fff;
}

.os-stepper__step--active .os-stepper__circle {
    background: var(--color-accent, #2563eb);
    color: #fff;
}

.os-stepper__label {
    font-size: 11px;
    color: #666;
}

.os-stepper__step--active .os-stepper__label {
    color: var(--color-accent, #2563eb);
    font-weight: 600;
}

.os-stepper__line {
    width: 24px;
    height: 2px;
    background: #e0e0e0;
}

.os-stepper__line--inactive {
    background: #e0e0e0;
}

.os-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.os-address-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.os-address-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.os-address-card__change {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent, #2563eb);
    text-decoration: none;
}

.os-address-card__change.delivery-detail-link--btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.cart-address-card {
    margin-bottom: 20px;
}

.os-address-card__name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.os-address-card__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
}

.os-address-card__text,
.os-address-card__phone {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.os-product-card__row {
    display: flex;
    gap: 12px;
}

.os-product-card__thumb-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.os-product-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.os-product-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #999;
}

.os-product-card__info {
    flex: 1;
    min-width: 0;
}

.os-product-card__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.os-product-card__variant {
    margin: 0 0 4px;
    font-size: 12px;
    color: #666;
}

.os-product-card__rating {
    margin: 0 0 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.os-product-card__stars .star {
    font-size: 12px;
}

.os-product-card__review-count {
    color: #666;
}

.os-product-card__price-wrap {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.os-product-card__discount {
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
}

.os-product-card__price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.os-product-card__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
}

.os-product-card__qty-form {
    margin-bottom: 6px;
}

.os-product-card__qty {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    min-width: 56px;
}

.os-product-card__delivery {
    margin: 0;
    font-size: 12px;
    color: #2e7d32;
}

.os-product-card__badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #c62828;
}

.os-offer-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-color: #e0e4e8;
}

.os-offer-banner__logo {
    color: var(--color-accent, #2563eb);
}

.os-offer-banner__content {
    flex: 1;
    min-width: 0;
}

.os-offer-banner__text {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.os-offer-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent, #2563eb);
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

body.checkout-offers-modal-open {
    overflow: hidden;
}

.checkout-offers-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.checkout-offers-modal[hidden] {
    display: none;
}

.checkout-offers-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.checkout-offers-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.checkout-offers-modal.is-open .checkout-offers-modal__backdrop {
    opacity: 1;
}

.checkout-offers-modal__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.checkout-offers-modal.is-open .checkout-offers-modal__sheet {
    transform: translateY(0);
}

.checkout-offers-modal__handle {
    flex-shrink: 0;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
}

.checkout-offers-modal__content {
    display: flex;
    flex-direction: column;
    max-height: calc(88vh - 12px);
    margin-top: 8px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.checkout-offers-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #eee;
}

.checkout-offers-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.checkout-offers-modal__close {
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

.checkout-offers-modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
}

.checkout-offers-accordion__item {
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.checkout-offers-accordion__item:last-child {
    margin-bottom: 0;
}

.checkout-offers-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: none;
    background: #fafafa;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.checkout-offers-accordion__item.is-open .checkout-offers-accordion__trigger {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.checkout-offers-accordion__trigger-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.checkout-offers-accordion__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.checkout-offers-accordion__chevron {
    flex-shrink: 0;
    color: #666;
    transition: transform 0.25s ease;
}

.checkout-offers-accordion__item.is-open .checkout-offers-accordion__chevron {
    transform: rotate(180deg);
}

.checkout-offers-accordion__panel {
    padding: 12px 14px 14px;
    background: #fff;
}

.checkout-offers-accordion__panel[hidden] {
    display: none;
}

.checkout-offer-item__text {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.checkout-offer-item__badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #2e7d32;
    background: #e8f5e9;
    border-radius: 4px;
}

.checkout-offers-modal__empty {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.checkout-offers-modal__footer {
    flex-shrink: 0;
    padding: 12px 16px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.checkout-offers-modal__footer .btn {
    width: 100%;
}

.os-price-details {
    padding: 12px 0;
    margin-bottom: 12px;
    border-top: 1px solid #e8e8e8;
}

.os-price-details__list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
}

.os-price-details__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #555;
}

.os-price-details__total {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    font-weight: 700;
    font-size: 15px;
}

.checkout-page-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.checkout-page-actions--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-page-actions .pay-footer__btn {
    width: 100%;
}

.os-footer__total-label {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.os-footer__total {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text, #1a1a1a);
    margin-left: 4px;
}

.os-footer__price-detail {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--color-accent, #2563eb);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.os-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent, #2563eb);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.os-footer__btn:hover {
    opacity: 0.95;
}

/* --------------------------------------------
   Payments (Checkout step 3) – Flipkart-style
   -------------------------------------------- */

.pay-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f5f5f5;
    padding-bottom: 24px;
}

.pay-form .checkout-page-actions {
    margin-top: 16px;
    padding-top: 20px;
}

.pay-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.pay-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text, #1a1a1a);
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.pay-header__center {
    flex: 1;
    text-align: center;
}

.pay-header__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.pay-header__subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #666;
}

.pay-header__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2e7d32;
}

.pay-main {
    padding: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.pay-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pay-total-card {
    background: #e3f2fd;
    border-color: #90caf9;
}

.pay-total-card__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.pay-total-card__label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.pay-total-card__amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
}

.pay-total-card__arrow {
    transition: transform 0.25s ease;
    color: #555;
}

.pay-total-card__header[aria-expanded="false"] .pay-total-card__arrow {
    transform: rotate(-90deg);
}

.pay-total-card__body {
    padding: 0 16px 14px;
}

.pay-total-card__body[hidden] {
    display: none;
}

.pay-total-card__list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
}

.pay-total-card__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #555;
}

.pay-total-card__total {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    font-weight: 700;
    font-size: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pay-cashback-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #e8f5e9;
    border-color: #a5d6a7;
}

.pay-cashback-banner__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
}

.pay-cashback-banner__text {
    margin: 2px 0 0;
    font-size: 13px;
    color: #1b5e20;
}

.pay-cashback-banner__icons {
    display: flex;
    gap: 8px;
}

.pay-cashback-banner__icon {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    background: #fff;
    border-radius: 6px;
    color: #2e7d32;
}

.pay-accordion {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.pay-accordion--selected {
    border-color: var(--color-accent, #2563eb);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.pay-accordion__head-row {
    display: flex;
    align-items: stretch;
    background: #fff;
}

.pay-method-select {
    display: flex;
    align-items: center;
    padding: 0 12px 0 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.pay-method-select__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pay-method-select__indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #bdbdbd;
    border-radius: 50%;
    display: block;
    position: relative;
}

.pay-method-select__input:checked + .pay-method-select__indicator {
    border-color: var(--color-accent, #2563eb);
}

.pay-method-select__input:checked + .pay-method-select__indicator::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--color-accent, #2563eb);
    border-radius: 50%;
}

.pay-accordion__head {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 14px 0;
    background: #fff;
    border: none;
    font: inherit;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.pay-accordion__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

.pay-accordion__arrow {
    transition: transform 0.25s ease;
    color: #666;
}

.pay-accordion--open .pay-accordion__head .pay-accordion__arrow {
    transform: rotate(-90deg);
}

.pay-accordion__head[aria-expanded="true"] .pay-accordion__arrow {
    transform: rotate(-90deg);
}

.pay-accordion__body {
    padding: 12px 16px 16px;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
}

.pay-accordion__body[hidden] {
    display: none;
}

.pay-accordion__subtitle,
.pay-accordion__offer {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
}

.pay-accordion__offer {
    color: #2e7d32;
}

.pay-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-radio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
}

.pay-radio input:checked + .pay-radio__label {
    font-weight: 600;
}

.pay-radio:has(input:checked) {
    border-color: var(--color-accent, #2563eb);
    background: #e3f2fd;
}

.pay-radio__label {
    flex: 1;
    font-size: 14px;
}

.pay-radio__hint {
    font-size: 12px;
    color: var(--color-accent, #2563eb);
    text-decoration: none;
}

.pay-cashback-banner--btn {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.pay-offers-panel {
    margin: -4px 0 12px;
    padding: 12px 16px;
    background: #f0f7ff;
    border: 1px solid #cfe3fc;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
}

.pay-offers-panel__item {
    margin: 0 0 8px;
    line-height: 1.4;
}

.pay-offers-panel__item:last-child {
    margin-bottom: 0;
}

.pay-cod-summary {
    margin: 12px 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.pay-cod-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.pay-cod-summary__row--total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
}

.pay-cod-confirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    cursor: pointer;
}

.pay-cod-confirm input {
    margin-top: 3px;
    flex-shrink: 0;
}

.pay-footer__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pay-errors {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
}

.pay-errors__item {
    margin: 0 0 4px;
    font-size: 13px;
    color: #c62828;
}

.pay-errors__item:last-child {
    margin-bottom: 0;
}

.pay-gift-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pay-gift-row__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.pay-gift-row__add {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent, #2563eb);
    background: none;
    border: 1px solid var(--color-accent, #2563eb);
    border-radius: 8px;
    cursor: pointer;
}

.pay-footer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    background: #ffc107;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.35);
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.pay-footer__btn:hover {
    background: #ffb300;
}

/* Laptop: Order Summary & Payment – centered, max-width */
@media (min-width: 768px) {
    .os-main,
    .pay-main {
        max-width: 560px;
        padding: 24px 20px 32px;
        margin-left: auto;
        margin-right: auto;
    }

    .os-header,
    .pay-header {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        padding: 16px 24px;
        box-sizing: border-box;
    }

    .checkout-page-actions--split .os-footer__btn {
        flex: 0 0 auto;
        min-width: 200px;
        max-width: 260px;
    }

    .checkout-page-actions--split .os-footer__left {
        flex: 1;
        min-width: 0;
    }

    .pay-footer__btn {
        min-height: 52px;
        font-size: 17px;
    }
}

/* --------------------------------------------
   MOBILE – Small screens (fit & functional)
   -------------------------------------------- */

/* --------------------------------------------
   MOBILE FIT – Touch targets, no overflow
   -------------------------------------------- */

@media (max-width: 767px) {
    .section-inner {
        width: 100%;
        max-width: 100%;
    }

    .product-card-link,
    .product-card-add-btn,
    .product-card-add-btn--guest {
        min-height: 44px;
    }

    .product-card-add-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-arrow {
        min-width: 44px;
        min-height: 44px;
    }

    /* Dots: no extra padding — padding was painting huge white circles (background fills padding box) */
    .hero-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
    }

    .hero-dot--active {
        transform: scale(1.15);
    }

    .hero-dots {
        gap: 8px;
        bottom: 14px;
    }

    .page-home .hero-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
    }

    .page-home .hero-dot--active {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 12px;
    }

    .header-inner {
        gap: 8px;
        padding: 0 var(--container-padding);
    }

    .header-logo .logo-text {
        font-size: 12px;
        letter-spacing: 0.03em;
    }

    .header-actions {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .header-greeting {
        max-width: 72px;
        font-size: 12px;
    }

    .header-icon--register,
    .header-logout-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .header-hamburger {
        width: 40px;
        height: 40px;
        margin: -8px 0 -8px -8px;
    }

    .hero {
        min-height: 45vh;
    }

    .hero-content {
        padding: 28px var(--container-padding);
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-arrow--prev {
        left: 12px;
    }

    .hero-arrow--next {
        right: 12px;
    }

    .hero-dots {
        bottom: 16px;
    }

    .section {
        padding: 24px var(--container-padding) 32px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-heading {
        font-size: 1.125rem;
        letter-spacing: 0.1em;
    }

    .section:first-of-type .section-heading {
        font-size: 1.2rem;
    }

    .product-grid {
        gap: 12px;
    }

    .product-card-title {
        font-size: 12px;
    }

    .product-card-price {
        font-size: 13px;
    }

    .product-card-add-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    .auth-section {
        padding: 24px var(--container-padding) 32px;
    }

    .auth-card {
        padding: 20px 16px;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .auth-row {
        flex-direction: column;
        gap: 16px;
    }

    .auth-field--half {
        flex: none;
    }

    .cart-section {
        padding: 24px var(--container-padding) 32px;
    }

    .cart-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 12px;
    }

    .cart-item-subtotal {
        grid-column: 2;
        grid-row: 2;
        font-size: 14px;
        margin-top: 4px;
    }

    .cart-item-details {
        grid-column: 2;
        grid-row: 1;
    }

    .cart-item-image-wrap {
        grid-row: 1 / 3;
        aspect-ratio: 4/5;
        max-height: 120px;
    }

    .cart-item-name {
        font-size: 14px;
    }

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

    .cart-item-qty {
        width: 52px;
    }

    .cart-checkout-btn {
        width: 100%;
        margin-top: 16px;
        padding: 14px 20px;
        font-size: 15px;
    }

    .product-detail {
        padding: 20px var(--container-padding) 32px;
    }

    .product-detail-grid {
        gap: 20px;
        margin-bottom: 28px;
    }

    .product-title {
        font-size: 1.25rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .product-spec-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
    }

    .product-add-form .btn,
    .product-buy-form .btn,
    .product-actions .btn,
    .product-actions a {
        width: 100%;
        text-align: center;
    }

    .checkout-section {
        padding: 20px var(--container-padding) 32px;
    }

    .checkout-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .checkout-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 4px 12px;
    }

    .checkout-item-name {
        grid-column: 1;
        grid-row: 1;
    }

    .checkout-item-qty {
        grid-column: 1;
        grid-row: 2;
        font-size: 13px;
    }

    .checkout-item-price {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }

    .checkout-submit {
        width: 100%;
        padding: 14px 20px;
    }

    .checkout-success {
        padding: 24px var(--container-padding) 32px;
    }

    .checkout-success-title {
        font-size: 1.25rem;
    }

    .checkout-success-summary {
        padding: 16px;
    }

    .flash-message {
        padding: 10px var(--container-padding);
        font-size: 13px;
    }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .site-header .header-inner {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }

    .nav-drawer-header,
    .nav-drawer-body,
    .nav-drawer-footer {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .nav-drawer-body {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* --------------------------------------------
   TABLET (768px+)
   -------------------------------------------- */

@media (min-width: 768px) {
    :root {
        --header-h: 64px;
        --container-padding: 24px;
    }

    .header-hamburger {
        display: none;
    }

    .header-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .header-nav {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    .header-actions {
        flex: 0 0 auto;
    }

    .header-search-wrap {
        display: block;
    }

    .hero {
        min-height: 50vh;
    }

    /* Tablet+: text on the left, edge-to-edge section */
    .hero-content {
        align-items: flex-start;
        justify-content: center;
        text-align: left;
        padding: 48px var(--container-padding);
    }

    .hero-title {
        font-size: clamp(2rem, 4vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    }

    /* Desktop: gradient stronger on left for text readability */
    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            rgba(0, 0, 0, 0.12) 100%
        );
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .section {
        padding: 40px var(--container-padding) 48px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-heading {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------
   DESKTOP (1024px+)
   -------------------------------------------- */

@media (min-width: 1024px) {
    :root {
        --container-padding: 32px;
    }

    .header-inner {
        max-width: 1280px;
        margin: 0 auto;
    }

    .nav-list {
        gap: 32px;
    }

    .nav-link {
        font-size: 14px;
    }

    /* Laptop: fixed aspect ratio so hero image (1920×640) fits full width without odd crop */
    .hero {
        min-height: 0;
        aspect-ratio: 1920 / 640;
    }

    .hero-content {
        padding: 56px 80px;
        gap: 12px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 3.5vw, 3.25rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-arrow {
        width: 48px;
        height: 48px;
    }

    .hero-arrow--prev {
        left: 24px;
    }

    .hero-arrow--next {
        right: 24px;
    }

    .hero-dots {
        bottom: 24px;
    }

    .section {
        padding: 56px var(--container-padding) 64px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-heading {
        font-size: 1.75rem;
        letter-spacing: 0.14em;
    }

    .section:first-of-type .section-heading {
        font-size: 1.85rem;
    }

    .section-heading-accent {
        width: 56px;
        height: 4px;
    }

    .section:first-of-type .section-heading-accent {
        width: 80px;
        height: 5px;
    }

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

    .product-card-title {
        font-size: 14px;
    }

    .product-card-price {
        font-size: 15px;
    }
}

/* --------------------------------------------
   FOOTER – Accordion, legal, minimal premium
   -------------------------------------------- */

.site-footer {
    background: var(--color-bg);
    color: var(--color-text);
    margin-top: auto;
    -webkit-tap-highlight-color: transparent;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px var(--container-padding) 28px;
}

@media (min-width: 600px) {
    .footer-inner {
        padding: 48px var(--container-padding) 32px;
    }
}

@media (min-width: 900px) {
    .footer-inner {
        padding: 56px var(--container-padding) 36px;
    }
}

/* Accordion grid: mobile stacked, tablet 2-col, desktop 4-col */
.footer-accordion-grid {
    display: grid;
    gap: 0;
    margin-bottom: 32px;
}

@media (min-width: 600px) {
    .footer-accordion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 32px;
    }
}

@media (min-width: 900px) {
    .footer-accordion-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 48px;
    }
}

.footer-accordion-item {
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 900px) {
    .footer-accordion-item {
        border-bottom: none;
    }
}

.footer-accordion-heading {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font: inherit;
    color: inherit;
    text-align: left;
    background: none;
    cursor: pointer;
    border: none;
    min-height: 48px;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.footer-accordion-trigger:active {
    opacity: 0.9;
}

.footer-accordion-trigger:hover,
.footer-accordion-trigger:focus-visible {
    color: var(--color-text-muted);
}

.footer-accordion-trigger:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.footer-accordion-title {
    flex: 1;
}

.footer-accordion-icon {
    flex-shrink: 0;
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slide);
}

.footer-accordion-item.is-open .footer-accordion-icon {
    transform: rotate(90deg);
}

@media (min-width: 900px) {
    .footer-accordion-icon {
        transform: rotate(90deg);
    }
    .footer-accordion-item.is-open .footer-accordion-icon {
        transform: rotate(90deg);
    }
}

.footer-accordion-panel {
    overflow: hidden;
    transition: height var(--transition-slide);
}

.footer-accordion-panel[hidden] {
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

@media (min-width: 900px) {
    .footer-accordion-panel,
    .footer-accordion-panel[hidden] {
        display: block;
        height: auto;
        visibility: visible;
        overflow: visible;
    }

    .footer-accordion-trigger {
        padding: 0 0 12px;
        min-height: auto;
        pointer-events: none;
    }

    .footer-accordion-trigger .footer-accordion-icon {
        display: none;
    }
}

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

@media (min-width: 900px) {
    .footer-links {
        padding: 0;
    }
}

.footer-links li {
    margin: 0;
}

.footer-links a,
.footer-contact-text {
    display: inline-block;
    padding: 6px 0;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.footer-links a:focus-visible {
    outline: none;
}

.footer-contact-text {
    border: none;
    cursor: default;
}

/* Perks section */
.footer-perks {
    margin-bottom: 32px;
}

.footer-perks-heading {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px;
    color: var(--color-text);
}

.footer-perks-divider {
    height: 1px;
    background: var(--color-border);
    margin-bottom: 16px;
    max-width: 100%;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.footer-disclaimer-link {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-disclaimer-link:hover,
.footer-disclaimer-link:focus-visible {
    color: var(--color-text-muted);
}

.footer-disclaimer-link:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

/* Bottom copyright */
.footer-bottom {
    padding-top: 24px;
}

.footer-bottom-divider {
    height: 1px;
    background: #e0e0e0;
    margin-bottom: 16px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0;
}

/* --------------------------------------------
   HOME PAGE ONLY (route `home`) – premium storefront
   Dark sticky nav is defined above; hero + menu sections below.
   Does not affect other routes.
   -------------------------------------------- */

.page-home #main-content {
    background: #f3f3f5;
}

.page-home .hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.page-home .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.page-home .hero-arrow {
    width: 48px;
    height: 48px;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-home .hero-arrow:hover,
.page-home .hero-arrow:focus-visible {
    background: #fff;
    color: #000;
}

.page-home .hero-dots {
    bottom: 16px;
    gap: 8px;
}

.page-home .hero-dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.45);
}

.page-home .hero-dot--active {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/*
 * Admin offer banners (not hero): fixed-height letterbox + cover. Multiple same placement = slider below.
 */
.page-home .offer-banner {
    width: 100%;
    margin: 0;
    padding: 4px 0;
    background: transparent;
}

.page-home .offer-banner-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.page-home .offer-banner-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #ececee;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    height: clamp(120px, 28vh, 180px);
}

.page-home .offer-banner-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    line-height: 0;
}

.page-home .offer-banner-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 767px) {
    .page-home .offer-banner {
        padding: 6px 0;
    }

    .page-home .offer-banner-inner {
        padding: 0 12px;
    }

    .page-home .offer-banner-frame {
        border-radius: 10px;
        height: clamp(130px, 28vh, 200px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .page-home .offer-banner-frame {
        height: clamp(100px, 12vw, 140px);
        max-height: 140px;
    }
}

@media (min-width: 1024px) {
    .page-home .offer-banner {
        padding: 4px 0 8px;
    }

    .page-home .offer-banner-frame {
        height: clamp(88px, 7.5vw, 120px);
        max-height: 120px;
        border-radius: 8px;
    }
}

.page-home .offer-banner + .section--menu-slider {
    padding-top: 18px;
}

/* Multiple promos, same placement: fade slider */
.page-home .offer-banner--slider .offer-banner-inner--slider {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.page-home .offer-banner--slider .offer-slider {
    position: relative;
    width: 100%;
}

.page-home .offer-banner--slider .offer-slider-viewport {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
}

.page-home .offer-banner--slider .offer-slider-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    pointer-events: none;
}

.page-home .offer-banner--slider .offer-slider-slide--active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.page-home .offer-banner--slider .offer-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.page-home .offer-banner--slider .offer-slider-arrow:hover,
.page-home .offer-banner--slider .offer-slider-arrow:focus-visible {
    background: rgba(0, 0, 0, 0.55);
}

.page-home .offer-banner--slider .offer-slider-arrow--prev {
    left: 8px;
}

.page-home .offer-banner--slider .offer-slider-arrow--next {
    right: 8px;
}

.page-home .offer-banner--slider .offer-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-home .offer-banner--slider .offer-slider-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.page-home .offer-banner--slider .offer-slider-dot--active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 767px) {
    .page-home .offer-banner--slider .offer-slider-arrow {
        width: 36px;
        height: 36px;
    }

    .page-home .offer-banner--slider .offer-slider-arrow--prev {
        left: 4px;
    }

    .page-home .offer-banner--slider .offer-slider-arrow--next {
        right: 4px;
    }
}

/* Menu sections: alternating light surfaces, centered headings */
.page-home .section--menu-slider {
    padding-top: 36px;
    padding-bottom: 44px;
}

.page-home .section--menu-slider:nth-child(even) {
    background: #fff;
}

.page-home .section--menu-slider:nth-child(odd) {
    background: #f7f7f9;
}

.page-home .section--menu-slider:not(:last-child)::after {
    display: none;
}

.page-home .section--menu-slider .section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.page-home .section--menu-slider .section-header {
    text-align: center;
    margin-bottom: 22px;
}

.page-home .section--menu-slider .section-heading {
    font-size: clamp(1.15rem, 3.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111;
}

.page-home .section--menu-slider .section-heading-link {
    color: inherit;
}

.page-home .section--menu-slider .section-heading-link:hover,
.page-home .section--menu-slider .section-heading-link:focus-visible {
    opacity: 0.75;
    text-decoration: none;
}

.page-home .section-slider {
    margin: 0;
}

.page-home .section-slider-arrow {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.page-home .section-slider-arrow:hover,
.page-home .section-slider-arrow:focus-visible {
    background: #fff;
    color: #000;
}

.page-home .menu-slider-product-link {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.page-home .menu-slider-badge--offer {
    background: #111;
}

.page-home .menu-slider-badge--discount {
    background: #c41e3a;
}

@media (max-width: 767px) {
    .page-home .hero {
        min-height: 38vh;
        border-radius: 0 0 12px 12px;
    }

    .page-home .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .page-home .hero-arrow--prev {
        left: 10px;
    }

    .page-home .hero-arrow--next {
        right: 10px;
    }

    .page-home .section--menu-slider {
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .page-home .section--menu-slider .section-heading {
        letter-spacing: 0.1em;
    }
}

@media (min-width: 1024px) {
    .page-home .hero {
        margin: 0 auto;
        max-width: min(100%, 1440px);
        border-radius: 0 0 18px 18px;
    }
}

/* --------------------------------------------
   Reduced motion
   -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .product-card-link:hover .product-card-image,
    .product-card-link:focus-visible .product-card-image {
        transform: none;
    }

    .footer-accordion-icon {
        transition: none;
    }
    .footer-accordion-panel {
        transition: none;
    }

    .section--menu-slider,
    .section--menu-slider .section-slider-slide {
        opacity: 1;
        transform: none;
    }
    .section--menu-slider .section-heading-link {
        transition: none;
    }
    .menu-slider-product-link,
    .menu-slider-product-link .menu-slider-product-img {
        transition: none;
    }
    .section-slider-arrow:hover,
    .section-slider-arrow:focus-visible {
        transform: translateY(-50%);
    }

    .auth-overlay-card {
        animation: none;
    }
}

/* --------------------------------------------
   Premium responsive polish (all pages)
   -------------------------------------------- */

.top-promo-strip {
    background: #042347;
    color: #f4f7fb;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    padding: 8px 12px;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    :root {
        --mobile-bottom-nav-h: 64px;
    }

    body {
        background: #eef1f5;
    }

    #main-content {
        padding-bottom: 20px;
    }

    .site-footer {
        padding-bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    }

    .footer-inner {
        padding-bottom: 20px;
    }

    .footer-bottom {
        padding-top: 20px;
        padding-bottom: 4px;
    }

    .footer-credit {
        margin-top: 10px;
        line-height: 1.5;
    }

    body.is-nav-drawer-open .mobile-bottom-nav {
        display: none;
    }

    .site-header {
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 14px rgba(0, 0, 0, 0.24);
    }

    .header-inner {
        min-height: 58px;
        gap: 10px;
    }

    .header-logo__img {
        height: 30px;
        max-width: 150px;
    }

    .header-search-wrap {
        max-width: none;
        flex: 1;
    }

    .header-search {
        border-radius: 8px;
        height: 38px;
        font-size: 13px;
    }

    .header-actions .header-btn--icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    /* Mobile: keep only hamburger + drawer; hide top horizontal nav links */
    .header-nav {
        display: none !important;
    }

    .hero {
        margin: 0;
        border-radius: 0 0 12px 12px;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .hero-arrow {
        width: 46px;
        height: 46px;
        background: rgba(255, 255, 255, 0.9);
        color: #1f1f1f;
    }

    .section {
        padding: 20px 12px 28px;
    }

    .section--menu-slider .section-heading {
        letter-spacing: 0.12em;
    }

    .product-card,
    .menu-slider-product-link,
    .delivery-details,
    .delivery-benefit-card,
    .product-highlights,
    .product-all-details,
    .review-form-wrap,
    .review-item,
    .cart-item,
    .checkout-summary,
    .os-card,
    .pay-card {
        border-radius: 12px;
    }

    .checkout-page-actions--split {
        flex-wrap: wrap;
        gap: 10px;
    }

    .checkout-page-actions--split .os-footer__left {
        flex: 1 1 100%;
        min-width: 0;
    }

    .checkout-page-actions--split .os-footer__btn {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        justify-content: center;
        text-align: center;
    }

    .pay-footer__btn {
        min-height: 50px;
        padding: 13px 16px;
        font-size: 15px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: max(0px, env(safe-area-inset-left));
        right: max(0px, env(safe-area-inset-right));
        bottom: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #fff;
        border-top: 1px solid #dfe4ea;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        box-sizing: border-box;
        width: auto;
    }

    .mobile-bottom-nav__item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 56px;
        color: #5f6670;
        font-size: 9px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-inline: 2px;
        line-height: 1.1;
    }

    .mobile-bottom-nav__item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .mobile-bottom-nav__item span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bottom-nav__item.is-active,
    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:focus-visible {
        color: #111827;
    }
}

/* Auth overlays should not be squeezed by promo/header/bottom nav on mobile */
body.page-auth-overlay .top-promo-strip,
body.page-auth-overlay .site-header,
body.page-auth-overlay .mobile-bottom-nav,
body.page-auth-overlay footer {
    display: none !important;
}

body.page-auth-overlay #main-content {
    padding-bottom: 0 !important;
}

@media (max-width: 767px) {
    body.page-auth-overlay {
        overflow: hidden;
    }

    body.page-auth-overlay .auth-overlay {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    body.page-auth-overlay .auth-overlay-card,
    body.page-auth-overlay .auth-overlay-card--tall {
        display: block;
        width: 100%;
        max-width: none;
        min-height: auto;
        max-height: none;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        border-radius: 0;
        overflow: visible;
        animation: none;
    }

    body.page-auth-overlay .auth-card {
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 100dvh;
        padding: max(52px, calc(14px + env(safe-area-inset-top))) var(--container-padding) max(28px, calc(16px + env(safe-area-inset-bottom)));
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    body.page-auth-overlay .auth-overlay-close {
        position: fixed;
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        z-index: 210;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    body.page-auth-overlay .auth-form {
        gap: 14px;
    }

    body.page-auth-overlay .auth-title {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }

    body.page-auth-overlay .auth-subtitle {
        margin-bottom: 16px;
        font-size: 13px;
    }

    body.page-auth-overlay .auth-address-block {
        padding: 12px;
    }

    body.page-auth-overlay .auth-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (min-width: 768px) {
    .top-promo-strip {
        font-size: 14px;
        padding: 8px 16px;
    }

    .header-inner {
        min-height: 66px;
    }

    .header-logo__img {
        height: 40px;
    }

    .header-search-wrap {
        max-width: 380px;
    }

    .header-search {
        height: 42px;
        border-radius: 10px;
    }

    .nav-link {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.06em;
    }

    .section--menu-slider .section-inner,
    .section-inner,
    .product-detail,
    .cart-section,
    .checkout-section,
    .checkout-success {
        max-width: 1280px;
    }

    .mobile-bottom-nav {
        display: none !important;
    }
}
