/* Modern font – Plus Jakarta Sans (readable, friendly, great for UI) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
/* Premium footer font – Outfit (geometric, premium feel) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&display=swap');

:root {
    /* Colors - Light Blue Theme */
    --bg-body: #e0f2fe;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-input: rgba(255, 255, 255, 0.9);

    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-glow: rgba(2, 132, 199, 0.2);
    --secondary: #7c3aed;
    --accent: #0891b2;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;

    --border: rgba(148, 163, 184, 0.3);
    --border-hover: rgba(2, 132, 199, 0.5);

    /* Spacing */
    --container-padding: 1rem;
    --header-height: 64px;

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 4px 20px var(--primary-glow);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Skip link for keyboard/screen reader users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Smooth scroll & reduce motion */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

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

/* Focus visible for keyboard users (accessibility) */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Touch-friendly minimum sizes (44px guideline) */
.btn,
.product-card-button,
.btn-icon,
.menu-btn,
.wishlist-icon,
.filter-item,
.chip {
    min-height: 44px;
    min-width: 44px;
}
.btn-icon.menu-btn { min-width: 44px; }
.nav-links a { padding: 0.5rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.product-card-image {
    background: rgba(241, 245, 249, 0.9);
}

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

/* Utilities */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

/* Tightened page header and content (all listing/account-style pages) — same font size, spaces, UI */
.page-header {
    background: rgba(255, 255, 255, 0.6);
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.page-header .section-title {
    margin-bottom: 0.15rem !important;
    font-size: 2rem !important;
}
.page-header p {
    margin-bottom: 0 !important;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9375rem;
}

/* Mobile: tighter page header, same relative sizes */
@media (max-width: 767px) {
    .page-header {
        padding: 0.25rem 0 !important;
    }
    .page-header .container {
        padding-top: 0.05rem;
        padding-bottom: 0.05rem;
    }
    .page-header .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.05rem !important;
    }
    .page-header p {
        font-size: 0.8125rem;
        line-height: 1.25;
        max-width: 100%;
    }
    .page-section {
        padding: 0.3rem 0 !important;
    }
    .page-section .search-bar {
        margin-bottom: 0.35rem !important;
    }
    .page-section .container > .flex {
        gap: 0.6rem;
    }
}

.page-section {
    padding: 1rem 0 !important;
}

/* Less space between page header and toolbar/search */
.page-header + .page-section,
.page-header + main.page-section {
    padding-top: 0.5rem !important;
}

.page-section .search-bar {
    margin-bottom: 0.6rem !important;
}
.page-section .container > .flex {
    gap: 1rem;
}

/* Tighter left/right margins for blog and contact content */
.tight-content {
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (max-width: 768px) {
    .tight-content {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
@media (max-width: 480px) {
    .tight-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Contact form: tighter left/right margins on mobile */
.contact-form-card {
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .contact-form-card {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}
@media (max-width: 480px) {
    .contact-form-card {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* ========== Contact page – modern UI ========== */
.contact-content-section {
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, #f0f9ff 0%, rgba(255, 255, 255, 0) 100%);
}

.contact-page-header {
    text-align: center;
    padding: 1.25rem 0;
}

.contact-page-header .section-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.contact-page-header p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-info-card {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.25);
}

.contact-info-card .icon-wrap {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(8, 145, 178, 0.12));
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.contact-info-card h3 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.contact-info-card a:hover {
    color: var(--primary);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-form-card {
    padding: 2rem !important;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form-card h3 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-form-card .form-intro {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
}

.contact-form-card .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-card .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: var(--text-muted);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: #fff;
}

.contact-form-card textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form-card .btn-submit {
    margin-top: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-cta-card {
    padding: 2rem !important;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-cta-card h3 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.contact-cta-card .cta-intro {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-cta-card .feature-list {
    display: grid;
    gap: 0.75rem;
}

.contact-cta-card .feature-list .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-main);
}

.contact-cta-card .feature-list .feature-item i {
    color: var(--primary);
    font-size: 1rem;
}

.contact-cta-card .urgent-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(8, 145, 178, 0.06));
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.contact-cta-card .urgent-box h4 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.contact-cta-card .urgent-box p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

@media (max-width: 599px) {
    .contact-content-section {
        padding: 1.5rem 0 3rem;
    }
    .contact-info-grid {
        gap: 1rem;
        margin-bottom: 1.75rem;
    }
    .contact-info-card {
        padding: 1.25rem;
    }
    .contact-form-card,
    .contact-cta-card {
        padding: 1.5rem !important;
    }
}

/* ========== Blog page – modern UI ========== */
.blog-content-section {
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, #f0f9ff 0%, rgba(255, 255, 255, 0) 100%);
}

.blog-page-header {
    text-align: center;
    padding: 1.25rem 0;
}

.blog-page-header .section-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.blog-page-header p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
}

.blog-card-image i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.blog-card-image.grad-1 { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.blog-card-image.grad-2 { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.blog-card-image.grad-3 { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.blog-card-image.grad-4 { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.blog-card-image.grad-5 { background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.blog-card-image.grad-6 { background: linear-gradient(135deg, var(--accent), var(--secondary)); }

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-meta i {
    opacity: 0.9;
}

.blog-card-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card-link:hover {
    color: var(--primary-hover);
    gap: 0.75rem;
}

.blog-card-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.blog-card-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 599px) {
    .blog-content-section {
        padding: 1.5rem 0 3rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .blog-card-body {
        padding: 1.25rem;
    }
    .blog-card-title {
        font-size: 1.1rem;
    }
}

/* ========== Checkout page – Indian user, no card ========== */
.checkout-page-wrap {
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, #f0f9ff 0%, rgba(255, 255, 255, 0) 100%);
}

.checkout-page-header {
    margin-bottom: 1.5rem;
}

.checkout-page-header h1 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.checkout-page-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.checkout-form-card h2 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.checkout-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.checkout-form-grid .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.checkout-form-grid .form-group {
    margin-bottom: 0;
}

.checkout-form-grid label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.checkout-form-grid input,
.checkout-form-grid select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input, #fff);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.checkout-form-grid input:focus,
.checkout-form-grid select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.checkout-form-grid input::placeholder {
    color: var(--text-muted);
}

.checkout-form-grid .input-prefix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input, #fff);
    overflow: hidden;
}

.checkout-form-grid .input-prefix span {
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    background: var(--bg-muted, #f1f5f9);
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.checkout-form-grid .input-prefix input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
}

.checkout-form-grid .input-prefix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.checkout-form-grid .input-prefix:focus-within span {
    background: rgba(2, 132, 199, 0.08);
}

/* Payment method – no card details */
.checkout-payment-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.checkout-payment-section h3 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-method-option:hover {
    border-color: rgba(2, 132, 199, 0.4);
    background: rgba(2, 132, 199, 0.04);
}

.payment-method-option.selected {
    border-color: var(--primary);
    background: rgba(2, 132, 199, 0.08);
}

.payment-method-option i {
    font-size: 1.25rem;
    color: var(--primary);
}

.payment-method-option span {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-main);
}

.checkout-form-card .btn-place-order {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* Order summary sidebar */
.checkout-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 1rem;
}

.checkout-summary-card h3 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.checkout-summary-items {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 1.25rem;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

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

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

.checkout-summary-item .qty {
    color: var(--text-muted);
    font-weight: normal;
}

.checkout-summary-total {
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.checkout-summary-total .amount {
    color: var(--primary);
}

/* Success screen */
.checkout-success-wrap {
    text-align: center;
    padding: 3rem 0 4rem;
}

.checkout-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.checkout-success-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.checkout-success-wrap h1 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.checkout-success-wrap .order-id-note {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

/* Track order: tighter left/right margins on mobile */
@media (max-width: 768px) {
    .track-form-card {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .track-result.card {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
@media (max-width: 480px) {
    .track-form-card {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .track-result.card {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Products/shop toolbar: search + count + sort — 2 lines on mobile, one line on tablet/laptop */
.products-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.products-toolbar .search-bar {
    margin-bottom: 0 !important;
    max-width: 100%;
}
.products-toolbar .results-count {
    margin-bottom: 0;
}
.products-toolbar .sort-select {
    width: 100%;
}

/* Mobile: 2 lines — search on line 1, count + sort on line 2, tighter spacing */
@media (max-width: 767px) {
    .products-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem 0.35rem;
        margin-bottom: 0.4rem;
    }
    .products-toolbar-search {
        grid-column: 1 / -1;
    }
    .products-toolbar .results-count {
        font-size: 0.8125rem;
        align-self: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .products-toolbar .sort-select {
        min-width: 0;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .products-toolbar {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.65rem;
    }
    .products-toolbar-search {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    .products-toolbar .results-count {
        flex-shrink: 0;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .products-toolbar .sort-select {
        width: auto;
        min-width: 160px;
        flex-shrink: 0;
    }
}

@media (min-width: 900px) {
    .page-header .container {
        padding-bottom: 0.35rem;
    }
    .page-header .section-title {
        margin-bottom: 0.2rem;
    }
    .page-header p {
        margin-bottom: 0;
    }
    .page-section {
        padding: 1.25rem 0 !important;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Global heading typography – modern premium font */
h1,
h2,
h3,
h4,
.page-header .section-title,
.hero-title,
.logo-main span {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.03em;
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

/* Prevent zoom on focus on iOS (16px+ font) */
input, select, textarea {
    font-size: 16px;
    font-size: max(16px, 1rem);
}
@media (min-width: 768px) {
    input, select, textarea { font-size: inherit; }
}

.search-bar input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

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

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Components */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-outline {
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-main);
    padding: 0.625rem 1.25rem;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-icon:hover {
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
}

.btn-icon:active {
    background: rgba(2, 132, 199, 0.15);
    transform: scale(0.96);
}

/* Current page / active icon highlight */
.navbar .btn-icon.text-primary {
    background: rgba(2, 132, 199, 0.12);
    color: var(--primary);
}

.navbar .btn-icon.text-primary:hover {
    background: rgba(2, 132, 199, 0.18);
}

.navbar .btn-icon.text-primary:active {
    background: rgba(2, 132, 199, 0.22);
}

.load-more-wrap {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.load-more-wrap .btn {
    min-width: 180px;
}

/* Floating action buttons: scroll to top & message */
.floating-actions {
    position: fixed;
    right: 1rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1200;
}

.fab-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(145deg, #6366f1, #8b5cf6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fab-btn i {
    font-size: 1.1rem;
}

.fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(79, 70, 229, 0.5);
}

.fab-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

@media (max-width: 599px) {
    .floating-actions {
        right: 0.75rem;
        bottom: 1.25rem;
        gap: 0.4rem;
    }
    .fab-btn {
        width: 36px;
        height: 36px;
    }
    .fab-btn i {
        font-size: 0.9rem;
    }
}

/* Quick nav items (Wishlist, Cart, Orders, Support) – visible in mobile menu */
.nav-quick-item {
    display: none;
}

/* My Account icon – modern UI (circular, soft background, subtle depth) */
.nav-account-btn {
    border-radius: 50%;
    background: #e8f9fd;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15), 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 0.5rem;
    min-width: 40px;
    min-height: 40px;
}

.nav-account-btn:hover {
    background: rgba(2, 132, 199, 0.12);
    color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2), 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.15;
    overflow: hidden;
    background: rgba(241, 245, 249, 0.8);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    z-index: 2;
}

/* Promotional Badges */
.promo-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.promo-badge.supersaver {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.promo-badge.limited-deal {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Wishlist Icon */
.wishlist-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wishlist-icon:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-icon i {
    color: #ef4444;
    font-size: 1rem;
}

.wishlist-icon.active i {
    color: #ef4444;
}

/* Price with Discount */
.price-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
    opacity: 0.7;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Product Specs on Card */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-spec-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-spec-item::after {
    content: '•';
    margin-left: 0.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.product-spec-item:last-child::after {
    display: none;
}

/* Special Offers */
.special-offers {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.offer-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.offer-item i {
    color: var(--primary);
    font-size: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.offer-item strong {
    color: var(--text-main);
    font-weight: 600;
}

.deal-label {
    display: inline-block;
    background: rgba(139, 92, 246, 0.15);
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.product-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
}

.product-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    display: none;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.product-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.product-card-button {
    padding: 0.625rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card-button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Product listing grids: tighter gap, uniform card spacing */
#products-grid,
#shop-grid {
    gap: 1rem !important;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    max-height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Mobile filter toggle */
.filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.filter-toggle i {
    color: var(--primary);
}

.filter-toggle:hover {
    border-color: var(--border-hover);
    color: var(--primary);
}

.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.filter-clear {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-clear:hover {
    color: var(--primary);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.filter-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.filter-count {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.filter-item.active .filter-count {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.4s ease forwards;
}

/* Promo strip (shared — same on all pages) */
.promo-strip {
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 0.4rem 0;
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 500;
}

.promo-strip-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: promoScroll 25s linear infinite;
    width: max-content;
}

.promo-strip-inner span {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.promo-strip-inner span strong {
    font-weight: 700;
}

@keyframes promoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.search-bar-nav {
    max-width: 180px;
}

.search-bar-nav input {
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.875rem;
}

.search-bar-nav i {
    left: 0.75rem;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

@media (max-width: 768px) {
    .search-bar-nav { display: none; }
}

/* Navigation */
.navbar {
    background: #ffffff;
    backdrop-filter: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    height: var(--header-height);
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo .logo-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo .logo-tagline {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.05rem;
}

@media (max-width: 768px) {
    .logo .logo-tagline {
        display: block;
    }
}

.nav-links {
    display: flex;
    gap: 1.35rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    padding: 0.35rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: var(--radius-full);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 0.5rem;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    width: 0;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.text-primary {
    color: var(--primary);
}

.nav-links a:hover {
    background: rgba(2, 132, 199, 0.06);
}

.nav-links a.text-primary {
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
}

.nav-links a:active {
    background: rgba(2, 132, 199, 0.15);
}

.nav-links a:hover::after,
.nav-links a.text-primary::after {
    width: calc(100% - 1rem);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
}

.dropdown-menu a::after {
    display: none;
}

.menu-btn {
    display: none;
    padding: 0.5rem;
    color: var(--text-main);
    font-size: 1.25rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.menu-btn:hover {
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
}

.menu-btn:active {
    background: rgba(2, 132, 199, 0.15);
    transform: scale(0.96);
}

/* Footer spacing tweaks */
footer {
    padding: 3rem 0 1.75rem !important;
}

footer .grid {
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

footer .logo {
    margin-bottom: 0.75rem !important;
}

footer h4 {
    margin-bottom: 0.75rem !important;
}

footer ul {
    gap: 0.4rem !important;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .filter-sidebar {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 52px;
    }

    .container {
        padding: 0 0.5rem;
    }

    .navbar .container {
        height: auto;
        min-height: var(--header-height);
        position: relative;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.35rem 0.5rem;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 0;
        font-size: 1.2rem;
    }

    .logo .logo-tagline {
        font-size: 0.55rem;
        margin-top: 0.02rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0.6rem 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        align-items: flex-start;
        text-align: left;
    }

    .navbar .logo,
    .nav-links {
        padding-left: 0.75rem;
    }
    .navbar .logo {
        padding-left: 0.25rem;
    }

    footer .logo {
        padding-left: 0;
    }

    .nav-links li,
    .nav-links a {
        width: 100%;
    }

    .nav-links a {
        justify-content: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-quick-item {
        display: list-item;
    }
    .nav-quick-item a {
        font-weight: 600;
        color: var(--primary);
    }
    .nav-quick-item + .nav-quick-item a {
        font-weight: 500;
    }
    .nav-quick-item:last-of-type {
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
    }
    .menu-btn {
        display: block;
    }

    /* Navbar icons: tighter gap, single line on mobile */
    .navbar .container .flex.items-center.gap-3 {
        gap: 0.35rem;
        flex-wrap: nowrap;
    }
    .navbar .btn-icon,
    .navbar .menu-btn {
        padding: 0.35rem;
        min-width: 36px;
        min-height: 36px;
    }
    .navbar .nav-account-btn {
        min-width: 36px;
        min-height: 36px;
    }

    .search-bar {
        max-width: 100%;
        margin: 1rem 0;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
        flex: 1 1 100%;
        max-height: none;
        display: none;
    }

    .filter-sidebar.is-open {
        display: block;
    }

    .filter-toggle {
        display: inline-flex;
    }

    header {
        padding: 0.5rem 0 !important;
    }

    section {
        padding: 0.5rem 0 !important;
    }

    footer {
        padding: 1.75rem 0 1rem !important;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .product-card-price {
        font-size: 1.2rem;
    }
    
    .price-current {
        font-size: 1.25rem;
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-select {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    #products-grid,
    #shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.35rem !important;
    }

    .product-card-title {
        font-size: 0.8125rem;
    }

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

    .product-card-content {
        padding: 0.5rem 0.6rem;
    }

    .product-card-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card-footer {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .price-inputs {
        flex-direction: column;
    }

    .checkout-form-grid .form-row {
        grid-template-columns: 1fr;
    }

    #checkout-container .flex.gap-4 {
        flex-direction: column;
    }

    #checkout-container .flex.gap-4 > .form-group {
        width: 100%;
    }

    #checkout-container {
        gap: 2rem !important;
    }

    #contact-form .btn {
        width: 100%;
        align-self: stretch !important;
        justify-content: center;
    }

    #cart-items .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    #cart-items .cart-item-image {
        width: 100%;
        max-width: 160px;
    }

    #cart-items .cart-item-total {
        width: 100%;
        text-align: left;
    }

    .cart-page {
        padding: 0.75rem 0 1rem !important;
    }

    .cart-grid {
        max-width: none !important;
        margin: 0 !important;
    }

    .contact-card > div {
        align-items: flex-start !important;
    }

    .contact-details {
        line-height: 1.5;
        word-break: break-word;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-card__media {
        max-width: 240px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.5rem 0 0.75rem !important;
    }

    footer .grid {
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    :root {
        --container-padding: 0.5rem;
        --header-height: 48px;
    }

    .container {
        padding: 0 0.4rem;
    }

    .cart-page {
        padding-left: 0.1rem !important;
        padding-right: 0.1rem !important;
    }

    .navbar .container {
        padding: 0.3rem 0.5rem;
    }
    .navbar .container .flex.items-center.gap-3 {
        gap: 0.25rem;
    }
    .navbar .btn-icon,
    .navbar .menu-btn {
        padding: 0.3rem;
        min-width: 34px;
        min-height: 34px;
    }
    .navbar .nav-account-btn {
        min-width: 34px;
        min-height: 34px;
    }

    /* Cart item – tighten layout and keep delete inside card on very small screens */
    .cart-item {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
        padding-top: 2.4rem;
    }
    .cart-item-remove {
        top: 0.55rem;
        right: 0.65rem;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo .logo-tagline {
        font-size: 0.5rem;
    }

    .product-card-content {
        padding: 0.45rem 0.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .product-card-image {
        aspect-ratio: 1.15;
    }
    
    .product-card-title {
        font-size: 0.75rem;
    }
    
    .product-card-price {
        font-size: 0.8125rem;
    }

    .price-current {
        font-size: 0.9rem;
    }
    
    .price-original {
        font-size: 0.8125rem;
    }
    
    .promo-badge {
        font-size: 0.65rem;
        padding: 0.375rem 0.625rem;
    }
    
    .wishlist-icon {
        width: 32px;
        height: 32px;
    }
    
    .filter-sidebar {
        padding: 1rem;
    }

    #products-grid,
    #shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.3rem !important;
    }

    .contact-card {
        padding: 1.5rem !important;
    }

    .contact-details h3 {
        font-size: 1rem;
    }

    .contact-details p,
    .contact-details a {
        font-size: 0.9rem;
    }

    .product-detail-card__meta {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    #products-grid,
    #shop-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Product gallery – image slider, aligned with content */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-gallery-main {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(241, 245, 249, 0.9);
    aspect-ratio: 1;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 0.5rem;
}

.product-thumb {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    aspect-ratio: 1;
    min-height: 56px;
    padding: 0;
}

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

.product-thumb:hover {
    border-color: rgba(2, 132, 199, 0.4);
}

.product-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(2, 132, 199, 0.04);
}

/* Product detail summary card */
.product-detail-card {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 1.5rem;
    align-items: center;
}

.product-detail-card__media {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(241, 245, 249, 0.8);
    aspect-ratio: 1;
}

.product-detail-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.product-detail-card__subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.product-detail-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-detail-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1.25rem;
}

.product-detail-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.product-detail-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.product-detail-card__value {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Product page layout – modern, user-friendly, all screens */
.product-page {
    padding: 2rem 0 2.5rem;
    min-height: 80vh;
    font-family: inherit;
}

.product-page .container {
    max-width: 1120px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
}

.product-layout__gallery .card {
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.product-layout__info {
    max-width: 100%;
    min-width: 0;
}

/* Typography hierarchy – clear and readable */
.product-brand {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.product-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.product-title-main {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0.35rem 0 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.product-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.product-price-main {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
}

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

.product-price-discount {
    font-size: 0.75rem;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    margin-bottom: 1.35rem;
    max-width: 46rem;
}

.product-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    margin-bottom: 1.35rem;
}

.product-cta-row .btn-primary {
    padding: 0.8rem 2rem;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.product-cta-row .btn-outline {
    padding: 0.8rem 1.5rem;
    font-size: clamp(0.875rem, 1.1vw, 0.95rem);
}

.product-benefits-row {
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
    font-size: clamp(0.8rem, 1vw, 0.85rem);
    color: var(--text-muted);
}

.product-benefits-row i {
    color: var(--primary);
    margin-right: 0.3rem;
}

/* Product page: specs & features cards – tighter, scannable */
.product-section-title {
    margin-bottom: 1.1rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
}
.product-specs-card .product-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}
.product-spec-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
}
.product-spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}
.product-spec-value {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}
.product-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .product-page {
        padding: 1.75rem 0 2rem;
    }
    .product-layout {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }
    .product-layout__gallery {
        order: 1;
    }
    .product-layout__info {
        order: 2;
    }
    .product-layout__gallery .card {
        max-width: 380px;
        margin: 0 auto;
        padding: 0.9rem;
    }
    .product-gallery {
        gap: 0.6rem;
    }
    .product-gallery-thumbs {
        gap: 0.45rem;
    }
    .product-detail-card {
        grid-template-columns: 1fr;
    }
    .product-detail-card__media {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .product-page {
        padding-top: 1.5rem;
    }
    .product-price-main {
        font-size: 1.7rem;
    }
    .product-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    .product-cta-row .btn-primary,
    .product-cta-row .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile: image on top, then descriptions below */
@media (max-width: 768px) {
    .product-page {
        padding: 1rem 0 1.5rem;
    }
    .product-page .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .product-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-layout__gallery {
        order: 1;
    }
    .product-layout__info {
        order: 2;
    }
    .product-layout__gallery .card {
        max-width: 100%;
        padding: 0.75rem;
    }
    .product-detail-card {
        grid-template-columns: 1fr;
    }
    .product-detail-card__media {
        max-width: 100%;
        margin: 0 auto;
    }
    .product-gallery {
        gap: 0.5rem;
    }
    .product-gallery-thumbs {
        gap: 0.4rem;
        grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    }
    .product-thumb {
        min-height: 52px;
    }
    .product-category-pill {
        margin-bottom: 0.3rem;
    }
    .product-title-main {
        margin: 0.25rem 0 0.5rem;
    }
    .product-rating {
        margin-bottom: 0.35rem;
    }
    .product-rating .stars i {
        font-size: 0.8rem;
    }
    .product-price-block {
        margin-bottom: 0.75rem;
    }
    .product-description {
        margin-bottom: 1rem;
    }
    .product-cta-row {
        margin-bottom: 1rem;
    }
    .product-benefits-row {
        padding-top: 0.85rem;
        gap: 0.45rem 0.85rem;
    }
    .product-detail-summary-card {
        margin-top: 1.25rem !important;
        padding: 0.85rem !important;
    }
    .product-detail-card {
        gap: 0.85rem;
    }
    .product-detail-card__title {
        margin-bottom: 0.2rem;
    }
    .product-detail-card__subtitle {
        margin-bottom: 0.4rem;
    }
    .product-detail-card__price {
        margin-bottom: 0.5rem;
    }
    .product-detail-card__meta {
        gap: 0.4rem 0.6rem;
    }
    .product-detail-card__meta-item {
        gap: 0.05rem;
    }
    .product-specs-card,
    .product-features-card {
        margin-top: 1rem !important;
        padding: 0.85rem !important;
    }
    .product-section-title {
        margin-bottom: 0.75rem;
        font-size: 1.15rem;
    }
    .product-specs-card .product-specs-grid {
        gap: 0.5rem;
    }
    .product-spec-item {
        padding-bottom: 0.4rem;
    }
    .product-spec-label {
        margin-bottom: 0.1rem;
        font-size: 0.75rem;
    }
    .product-spec-value {
        font-size: 0.9rem;
    }
    .product-features-list {
        gap: 0.4rem;
    }
    .product-feature-item {
        gap: 0.35rem;
        font-size: 0.85rem;
    }
    .trust-badges {
        gap: 1.25rem 1.5rem;
        padding: 1.25rem 1rem;
        margin-top: 1rem;
    }
    .product-page .trust-badges .container {
        padding-left: 1rem;
        padding-right: 3.5rem; /* clear floating action buttons */
    }
    .trust-badge {
        gap: 0.35rem;
        min-width: 0;
        padding: 0 0.25rem;
    }
    .trust-badge-title {
        font-size: 0.9rem;
    }
    .trust-badge > div:last-child {
        font-size: 0.8125rem;
        line-height: 1.35;
    }
    .trust-badge i {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .product-page .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .product-layout__gallery .card {
        max-width: 100%;
        padding: 0.6rem;
    }
    .product-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
        gap: 0.35rem;
    }
    .product-thumb {
        min-height: 48px;
    }
    .product-specs-card .product-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* Large screens and tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    #shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }
}

/* Large desktop screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    #shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
}

/* Extra large screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
    
    #shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    }
}

/* Ensure body fills viewport on all devices */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper */
main {
    flex: 1;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Results Count */
.results-count {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Rating Stars */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
    color: #fbbf24;
}

.stars i {
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rating-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Product Brand */
.product-brand {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Sort Dropdown — reduced height for all pages */
.sort-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sort-select {
    padding: 0.38rem 0.75rem;
    min-height: unset;
    line-height: 1.35;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

/* All select/dropdown boxes — reduced height site-wide */
select {
    padding: 0.38rem 0.75rem;
    line-height: 1.35;
    min-height: unset;
}

.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Price Range Filter */
.price-range {
    margin-top: 1rem;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
}

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

/* Brand Filter */
.brand-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.brand-checkbox:hover {
    background: rgba(59, 130, 246, 0.1);
}

.brand-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Rating Filter */
.rating-filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.rating-filter-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.rating-filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Stock Badge */
.in-stock-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.out-of-stock {
    opacity: 0.6;
    position: relative;
}

.out-of-stock::after {
    content: 'Out of Stock';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 3;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.trust-badge i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.trust-badge-title {
    font-weight: 600;
    color: var(--text-main);
}

/* ========== Cart page – modern UI ========== */
.cart-page .cart-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .cart-page .cart-grid {
        grid-template-columns: 1fr 340px;
        gap: 2.5rem;
    }
    .cart-page #cart-summary {
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
        margin-top: 0;
    }
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.25rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.cart-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.cart-item-image-wrap {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(241, 245, 249, 0.8);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

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

.cart-item-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-info h3 a {
    color: var(--text-main);
    text-decoration: none;
}

.cart-item-info h3 a:hover {
    color: var(--primary);
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(241, 245, 249, 0.8);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.cart-item-qty button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    background: white;
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.cart-item-qty button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cart-item-qty span {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.cart-item-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 90px;
    text-align: right;
}

.cart-item-remove {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    color: #dc2626;
    background: #fff;
    transition: var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #b91c1c;
}

.cart-item-remove i {
    font-size: 1rem;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#cart-summary.card {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

#cart-summary .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.cart-page #empty-state {
    padding: 3rem 1.5rem;
}

.cart-page #empty-state i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.cart-page #empty-state .btn {
    margin-top: 0.5rem;
}

@media (max-width: 767px) {
    .cart-page {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    .cart-item-image-wrap {
        grid-row: 1 / 4;
    }
    .cart-item-image-wrap .cart-item-image {
        width: 80px;
        height: 80px;
    }
    .cart-item-info {
        grid-column: 2;
    }
    .cart-item-qty {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .cart-item-total {
        grid-column: 1 / -1;
        text-align: left;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .cart-item-total::before {
        content: 'Total: ';
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.95rem;
    }
    .cart-item-remove {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(239, 68, 68, 0.35);
        background: #fff;
        color: #dc2626;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    .cart-item-remove:hover {
        background: rgba(239, 68, 68, 0.12);
        border-color: #ef4444;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
    }
    .cart-item-remove i {
        font-size: 1.05rem;
    }
    .cart-item {
        position: relative;
        padding-top: 2.75rem;
    }
}

/* Footer spacing (legacy footers only) */
footer:not(.footer-main) {
    padding: 3rem 0 1.5rem !important;
}

footer:not(.footer-main) .grid {
    margin-bottom: 2rem !important;
    gap: 2rem !important;
}

footer:not(.footer-main) .logo {
    margin-bottom: 0.75rem !important;
}

@media (max-width: 768px) {
    footer:not(.footer-main) {
        padding: 2.5rem 0 1.25rem !important;
    }

    footer:not(.footer-main) .grid {
        margin-bottom: 1.5rem !important;
        gap: 1.5rem !important;
        text-align: left;
    }

    footer:not(.footer-main) .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ========== Modern e-commerce footer (shared across all pages) ========== */
.footer-main {
    background: #E5E7EB;
    color: #1f2937;
    padding: 1.25rem 0 0;
    margin-top: auto;
    position: relative;
    font-family: inherit;
}

.footer-main .container {
    max-width: 1200px;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    opacity: 0.9;
}

.footer-newsletter {
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 0 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-newsletter h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.newsletter-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1f3a;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.2s ease;
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.newsletter-form input:focus {
    outline: none;
    background: #fff;
}

.newsletter-form .btn-primary {
    white-space: nowrap;
    padding: 0.85rem 1.5rem;
    border-radius: 0;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    box-shadow: 0 2px 12px rgba(2, 132, 199, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    padding: 0 0.75rem;
    text-align: left;
}

.footer-col {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: left;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: #6b7280;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: flex-start;
}

.footer-col li a {
    padding: 0.3rem 0;
    min-height: 36px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: #374151;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col li a:hover,
.footer-col a:hover {
    color: #111827;
}

.footer-col a {
    color: #374151;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-brand {
    text-align: left;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
    transition: opacity 0.2s ease;
}

.footer-brand .footer-logo:hover {
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
    max-width: 280px;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding: 0.6rem 0.75rem 0.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #6b7280;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
        margin-bottom: 1.75rem;
        padding: 0 1rem;
    }
    .footer-col li a {
        min-height: 32px;
    }
}

/* Desktop / Laptop: 4 columns, tighter spacing */
@media (min-width: 900px) {
    .footer-main {
        padding: 1rem 0 0;
    }
    .footer-newsletter {
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }
    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
        gap: 1rem 1.5rem;
        margin-bottom: 1.25rem;
        padding: 0 1rem;
    }
    .footer-col h4 {
        margin-bottom: 0.5rem;
        font-size: 0.72rem;
    }
    .footer-col ul {
        gap: 0.25rem;
    }
    .footer-col li a {
        min-height: 26px;
        font-size: 0.9rem;
    }
    .footer-desc {
        max-width: 260px;
        margin-bottom: 0;
    }
    .footer-bottom {
        padding: 0.5rem 1rem 0.35rem;
    }
}

/* Mobile: single column stack, touch-friendly */
@media (max-width: 599px) {
    .footer-main {
        padding: 0.65rem 0 0;
        background: #E5E7EB;
        color: #1f2937;
    }
    .footer-main::before {
        background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    }
    .footer-main .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .footer-newsletter {
        margin-bottom: 0.6rem;
        padding: 0 0 0.6rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .footer-newsletter h3 {
        margin-bottom: 0.4rem;
        font-size: 1rem;
        text-align: center;
        color: #1f2937;
        font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        text-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 2px 2px rgba(0,0,0,0.06), 0 3px 4px rgba(0,0,0,0.04);
    }
    .newsletter-form {
        border-radius: var(--radius-md);
        flex-direction: column;
        max-width: 100%;
        gap: 0.35rem;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    .newsletter-form input,
    .newsletter-form .btn-primary {
        border-radius: var(--radius-sm);
        min-width: 100%;
        width: 100%;
        padding: 0.6rem 0.75rem;
        box-sizing: border-box;
    }
    .newsletter-form input { margin: 0; }
    .newsletter-form .btn-primary { margin: 0; }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem 0.5rem;
        margin-bottom: 0.6rem;
        padding: 0;
    }
    .footer-col {
        padding: 0;
    }
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-brand .footer-logo {
        font-size: 1.35rem;
        margin-bottom: 0.1rem;
        font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        color: var(--primary);
        text-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 2px 2px rgba(0,0,0,0.08), 0 3px 4px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
    }
    .footer-tagline {
        margin-bottom: 0.15rem;
        font-size: 0.78rem;
        color: #475569;
        font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
        font-weight: 500;
    }
    .footer-brand .footer-desc {
        max-width: none;
        font-size: 0.8rem;
        line-height: 1.35;
        margin: 0 auto 1.25rem;
        text-align: center;
        color: #334155;
    }
    .footer-grid .footer-col:not(.footer-brand) h4 {
        margin-bottom: 0.25rem;
        font-size: 0.6rem;
        letter-spacing: 0.06em;
        color: #1f2937;
        font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        text-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 2px 2px rgba(0,0,0,0.06), 0 3px 3px rgba(0,0,0,0.04);
    }
    .footer-grid .footer-col:not(.footer-brand) ul {
        gap: 0.12rem;
    }
    .footer-grid .footer-col:not(.footer-brand) li a {
        min-height: 26px;
        padding: 0.15rem 0;
        font-size: 0.72rem;
        color: #475569;
    }
    .footer-grid .footer-col:not(.footer-brand) li a:hover,
    .footer-grid .footer-col:not(.footer-brand) a:hover {
        color: #0f172a;
    }
    .footer-col h4 {
        margin-bottom: 0.35rem;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        color: #0f172a;
        font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        text-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 2px 2px rgba(0,0,0,0.06), 0 3px 3px rgba(0,0,0,0.04);
    }
    .footer-col ul {
        gap: 0.15rem;
    }
    .footer-col li a {
        min-height: 28px;
        padding: 0.2rem 0;
        font-size: 0.8rem;
        color: #475569;
    }
    .footer-col li a:hover,
    .footer-col a:hover {
        color: #0f172a;
    }
    .footer-col a {
        color: #475569;
    }
    .footer-grid {
        margin-bottom: 0.5rem;
    }
    .footer-bottom {
        padding: 0.5rem 0.75rem 0.35rem;
        border-top: 1px solid rgba(15, 23, 42, 0.1);
        color: #64748b;
    }
    .footer-bottom p {
        font-size: 0.7rem;
        color: #64748b;
    }
}