/* Modern fonts – Plus Jakarta Sans (UI) + Outfit (headings) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Site – light ocean canvas (navbar stays white) */
    --bg-body: #e8f4fc;
    --bg-site: #e8f4fc;
    --bg-hero: #e8f4fc;
    --bg-surface: rgba(255, 255, 255, 0.72);
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-input: #ffffff;

    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-glow: rgba(2, 132, 199, 0.18);
    --secondary: #0ea5e9;
    --accent: #38bdf8;

    --text-main: #0f2942;
    --text-muted: #5b7a94;
    --text-light: #476885;

    --border: rgba(14, 116, 144, 0.14);
    --border-hover: rgba(2, 132, 199, 0.35);

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --text-base: 1rem;
    --text-sm: 0.9375rem;
    --text-md: 1.0625rem;
    --text-lg: 1.1875rem;
    --text-xl: 1.375rem;

    /* 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;

    /* Limart product UI (detail, checkout, catalog) – ref product.html?id=4 */
    --limart-card-radius: 20px;
    --limart-card-pad: 0.85rem;
    --limart-gallery-thumb: 64px;
    --limart-gallery-gap: 0.65rem;
    --limart-stage-height: min(calc(100dvh - 8.25rem), 580px);
    --limart-card-border: 1px solid rgba(2, 132, 199, 0.14);
    --limart-card-bg: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    --limart-card-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 12px 32px rgba(2, 132, 199, 0.14),
        0 24px 48px rgba(15, 23, 42, 0.06);
}

/* Shared image frame – gallery, checkout, listing cards */
.limart-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.1);
    box-sizing: border-box;
}

.limart-image-frame img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.limart-image-frame--fill {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 14px;
}

.limart-image-frame--thumb {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
}

.limart-image-frame--card {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

/* 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;
    font-size: 16px;
}

@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: var(--font-sans);
    font-size: var(--text-base);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6,
.logo-main,
.section-title,
.product-title-main,
.product-card-title,
.page-header h1 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.site-content {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Unified seamless electronics background */
.site-energy-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    z-index: 0;
    pointer-events: none;
    overflow: clip;
    contain: strict;
    background: var(--bg-body);
}

.site-energy-mesh {
    position: absolute;
    inset: -20%;
    opacity: 0.55;
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 80% 25%, rgba(129, 140, 248, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 55% 75%, rgba(14, 165, 233, 0.15) 0%, transparent 45%);
    animation: site-energy-drift 18s ease-in-out infinite alternate;
    filter: blur(40px);
}

.site-energy-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform, opacity;
    opacity: 0.5;
}

.site-energy-orb--1 {
    width: 55vw;
    height: 55vw;
    max-width: 520px;
    max-height: 520px;
    top: -15%;
    left: -12%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
    animation: site-energy-pulse 7s ease-in-out infinite;
}

.site-energy-orb--2 {
    width: 45vw;
    height: 45vw;
    max-width: 440px;
    max-height: 440px;
    top: 35%;
    right: -10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    animation: site-energy-pulse 8.5s ease-in-out infinite 1.5s;
}

.site-energy-orb--3 {
    width: 50vw;
    height: 50vw;
    max-width: 480px;
    max-height: 480px;
    bottom: -20%;
    left: 25%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, transparent 70%);
    animation: site-energy-pulse 9s ease-in-out infinite 3s;
}

@keyframes site-energy-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -1.5%) scale(1.05); }
}

@keyframes site-energy-pulse {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.35;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.55;
    }
}

body > .promo-strip,
body > .site-content,
body > .navbar,
body > .page-header,
body > main,
body > section,
body > .footer-main,
body > footer.footer-main {
    position: relative;
    z-index: 1;
}

/* Fixed overlays must stay out of document flow (do not set position: relative) */
body > .floating-actions {
    z-index: 99999;
}

body > .limart-chat-panel {
    z-index: 1250;
}

body > .auth-modal-overlay {
    z-index: 2000;
}

@media (prefers-reduced-motion: reduce) {
    .site-energy-mesh,
    .site-energy-orb {
        animation: none;
        opacity: 0.4;
    }
}

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.75rem; min-height: 42px; display: inline-flex; align-items: center; white-space: nowrap; font-size: var(--text-sm); font-weight: 600; }
.product-card-image {
    background: transparent;
}

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 */
/* Hero / page title band – light ocean */
.page-header {
    background: var(--bg-body);
    padding: 0.15rem 0 0.1rem !important;
    border-bottom: none;
    margin: 0;
}

.page-header .container {
    padding-top: 0.1rem;
    padding-bottom: 0;
}

.page-header .section-title {
    margin: 0 !important;
    font-size: clamp(1.35rem, 3.5vw, 1.65rem) !important;
    line-height: 1.15;
    text-align: center;
}

.page-header p {
    display: none;
}

/* Mobile: same tight header */
@media (max-width: 767px) {
    .page-header {
        padding: 0.1rem 0 0.05rem !important;
    }
    .page-header .container {
        padding-top: 0.05rem;
        padding-bottom: 0;
    }
    .page-header .section-title {
        font-size: 1.35rem !important;
    }
    .page-section {
        padding: 0.2rem 0 !important;
    }
    .page-section .container,
    .catalog-page .container,
    .page-header .container,
    .footer-main .container {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }
    .catalog-grid,
    #products-grid,
    #shop-grid {
        gap: 0.35rem !important;
    }
    .catalog-page .product-card-image {
        padding: 0.15rem 0.15rem 0.25rem;
    }
    .page-section .search-bar {
        margin-bottom: 0.35rem !important;
    }
    .page-section .container > .flex {
        gap: 0.6rem;
    }
}

.page-section {
    padding: 0.5rem 0 !important;
    background: transparent;
}

.product-page {
    padding: 0.35rem 0 0.5rem;
    margin-bottom: 0.25rem;
    min-height: 0;
    font-family: var(--font-sans);
    background: transparent;
    display: flex;
    flex-direction: column;
}

.product-page .container {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    padding-left: clamp(0.35rem, 1.5vw, 1.25rem);
    padding-right: clamp(0.35rem, 1.5vw, 1.25rem);
    box-sizing: border-box;
}

.product-page .product-breadcrumb {
    display: none;
}

.product-page .product-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.product-page .product-breadcrumb a:hover {
    opacity: 0.75;
}

.product-page .product-breadcrumb-current {
    color: var(--text-muted);
}
.page-header + .page-section,
.page-header + main.page-section {
    padding-top: 0.25rem !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: 0.15rem 0 0.1rem !important;
}

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

.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: stretch;
}

.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: 110px;
    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: 0.15rem 0 0.1rem !important;
}

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

.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 – matches product Buy Now checkout ========== */
.checkout-page-standalone {
    padding: 1.25rem 0 2.5rem;
    background: linear-gradient(180deg, #f0f9ff 0%, rgba(255, 255, 255, 0) 100%);
}

.checkout-page-standalone__inner {
    max-width: 1140px;
}

.checkout-page-standalone .checkout-rail--page {
    display: flex !important;
    position: static;
    inset: auto;
    width: 100%;
    min-height: min(calc(100dvh - 11rem), 640px);
    max-height: min(calc(100dvh - 7.5rem), 720px);
    animation: none;
}

a.product-checkout-rail__back,
a.product-checkout-rail__close {
    text-decoration: none;
}

.product-checkout-card--order {
    display: flex;
    flex-direction: column;
}

.checkout-order-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 0.35rem;
}

.checkout-order-item {
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed var(--border);
}

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

.checkout-order-item__body {
    flex: 1;
    min-width: 0;
}

.checkout-order-item__body .product-inline-qty {
    margin-bottom: 0;
    margin-top: 0.35rem;
}

.checkout-order-item__line {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.82rem;
    font-family: var(--font-display);
    flex-shrink: 0;
    padding-top: 0.15rem;
}

@media (max-width: 768px) {
    .checkout-page-standalone {
        padding: 0;
    }

    .checkout-page-standalone__inner {
        padding: 0;
        max-width: 100%;
    }

    .checkout-page-standalone .checkout-rail--page:not(.is-mobile-portal) {
        min-height: 0;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
}

.checkout-page-wrap {
    padding: 2rem 0 4rem;
    background: linear-gradient(180deg, #f0f9ff 0%, rgba(255, 255, 255, 0) 100%);
}

.checkout-page-header {
    margin-bottom: 0.5rem;
    padding-top: 0.15rem;
}

.checkout-page-header h1 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 1.65rem);
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: var(--text-main);
}

.checkout-page-header p {
    display: none;
}

.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.35rem;
    margin-bottom: 0.5rem;
}
.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;
    }
    .page-section {
        padding: 0.5rem 0 !important;
    }
}

/* Catalog listing pages – Accessories template */
.catalog-page {
    background: transparent;
}

.catalog-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.catalog-main {
    flex: 1 1 600px;
    min-width: 0;
}

.catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.catalog-group-header {
    grid-column: 1 / -1;
    margin: 0.15rem 0 0.35rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(14, 165, 233, 0.14);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.catalog-group-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.catalog-group-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.3;
}

.catalog-group-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.catalog-group-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.catalog-group-count {
    font-size: 0.68rem;
    font-weight: 700;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.1);
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.catalog-page .catalog-group-header + .product-card {
    scroll-margin-top: 5rem;
}

.catalog-page .product-card {
    background: var(--limart-card-bg);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.85) inset,
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 6px 18px rgba(2, 132, 199, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.catalog-page .product-card:hover {
    border-color: rgba(2, 132, 199, 0.22);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.95) inset,
        0 4px 10px rgba(15, 23, 42, 0.07),
        0 14px 28px rgba(2, 132, 199, 0.14);
}

.catalog-page .product-card {
    display: flex;
    flex-direction: column;
}

.catalog-page .product-card-image {
    aspect-ratio: 1;
    width: 100%;
    flex: 0 0 auto;
    padding: 0.2rem 0.2rem 0.35rem;
    background: transparent;
    margin: 0;
    box-sizing: border-box;
}

.catalog-page .product-card-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(2, 132, 199, 0.12);
    overflow: hidden;
    box-sizing: border-box;
}

.catalog-page .product-card-image .limart-image-frame--card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    flex: 1;
    min-height: 0;
    border: none;
    box-shadow: none;
    aspect-ratio: 1;
}

.catalog-page .product-card-image .limart-image-frame--card img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
    border-radius: 0;
}

.catalog-page .product-card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 5.4rem;
    padding: 0.28rem 0.38rem 0.36rem;
    gap: 0;
    box-sizing: border-box;
}

.catalog-page .product-card-row--top {
    align-items: center;
    gap: 0.15rem;
    padding-bottom: 0.18rem;
}

.catalog-page .product-card-row--bottom {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 0.18rem;
    align-items: center;
    gap: 0.22rem;
    border-top: 1px solid rgba(14, 116, 144, 0.08);
}

.catalog-page .product-card-meta {
    margin-top: 0.04rem;
    min-height: auto;
}

.catalog-page .product-card-stock {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.08rem 0.32rem;
    border-radius: 999px;
    line-height: 1.15;
}

.catalog-page .product-card-actions-mini {
    gap: 0.18rem;
    align-self: flex-start;
    margin-top: 0.02rem;
}

.catalog-page .product-card-icon-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(14, 116, 144, 0.1);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.catalog-page .product-card-icon-btn i {
    font-size: 0.72rem;
}

.catalog-page .product-card-actions-mini .wishlist-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 6px;
}

.catalog-page .product-card-buy-btn {
    padding: 0.28rem 0.48rem;
    min-height: 28px;
    font-size: 0.62rem;
    font-weight: 800;
    border-radius: 6px;
    gap: 0.22rem;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22);
}

.catalog-page .product-card-buy-btn i {
    font-size: 0.62rem;
}

.catalog-page .price-container {
    gap: 0;
    min-width: 0;
}

.catalog-page .price-row {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.18rem 0.28rem;
    line-height: 1.1;
}

.catalog-page .price-current {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.catalog-page .price-original {
    font-size: 0.65rem;
    opacity: 0.85;
}

.catalog-page .discount-badge {
    font-size: 0.54rem;
    font-weight: 800;
    padding: 0.06rem 0.28rem;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.catalog-page .product-card-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #0f172a;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-page .product-card-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-page .product-card-category {
    display: none !important;
}

.catalog-page .product-card:hover .product-card-image img,
.catalog-page .product-card-image-link:focus-visible img {
    transform: scale(1.03);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-copyright-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.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 .support-icon-img {
    width: 1.1rem;
    height: 1.1rem;
    object-fit: contain;
    vertical-align: middle;
}

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

/* Navbar icons – no background by default, compact size, blue on hover/click */
.navbar .container .flex.items-center.gap-3 {
    gap: 0.5rem;
}

.navbar .btn-icon,
.navbar .menu-btn {
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    min-width: 36px;
    min-height: 36px;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar .btn-icon i,
.navbar .menu-btn i {
    font-size: 1.1rem !important;
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar .btn-icon .support-icon-img {
    width: 1.1rem !important;
    height: 1.1rem !important;
    display: block;
}

.navbar .btn-icon:hover,
.navbar .btn-icon:active,
.navbar .menu-btn:hover,
.navbar .menu-btn:active {
    background: rgba(2, 132, 199, 0.12);
    color: var(--primary);
    box-shadow: none;
}

.navbar .btn-icon:hover .support-icon-img,
.navbar .btn-icon:active .support-icon-img {
    filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(1200%) hue-rotate(195deg);
}

/* Current page / active icon highlight */
.navbar .btn-icon.text-primary {
    background: transparent;
    color: var(--primary);
}

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

.load-more-wrap {
    display: none !important;
}

.catalog-lazy-sentinel {
    grid-column: 1 / -1;
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    visibility: hidden;
    pointer-events: none;
}

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

/* Floating action buttons – compact premium, bottom-right */
.floating-actions {
    position: fixed !important;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    z-index: 99999;
    pointer-events: none;
}

.floating-actions .fab-btn {
    pointer-events: auto;
}

.fab-chat-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    position: relative;
}

.fab-scroll-hint {
    position: absolute;
    right: calc(100% + 10px);
    bottom: 50%;
    transform: translateY(50%) translateX(6px);
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35), 0 1px 3px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.fab-scroll-hint.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(50%) translateX(0);
}

.fab-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(2, 132, 199, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.25s ease, visibility 0.25s, border-color 0.2s;
}

.fab-btn i {
    font-size: 0.95rem;
    line-height: 1;
}

.fab-btn.fab-up {
    background: #fff;
    color: var(--primary, #0284c7);
    box-shadow: 0 4px 14px rgba(14, 116, 144, 0.12);
}

.fab-btn.fab-chat {
    background: linear-gradient(145deg, #0284c7 0%, #0ea5e9 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fab-btn .fab-support-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.fab-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

.fab-btn.fab-up:hover {
    box-shadow: 0 8px 22px rgba(14, 116, 144, 0.18);
    border-color: rgba(2, 132, 199, 0.28);
}

.fab-btn.fab-chat:hover {
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.fab-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.9);
}

/* Limart AI Assistant chat */
.limart-chat-panel {
    position: fixed !important;
    right: max(1.15rem, env(safe-area-inset-right, 0px));
    bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 7rem);
    width: min(380px, calc(100vw - 2rem));
    height: min(560px, calc(100vh - 8rem));
    max-height: min(560px, calc(100vh - 8rem));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 1250;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.limart-chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.limart-chat-panel.is-minimized {
    max-height: none;
    height: auto;
    bottom: 1.25rem;
    width: min(280px, calc(100vw - 2rem));
}

.limart-chat-panel.is-minimized .limart-chat-messages,
.limart-chat-panel.is-minimized .limart-chat-suggestions,
.limart-chat-panel.is-minimized .limart-chat-footer {
    display: none;
}

.limart-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    cursor: default;
    flex-shrink: 0;
}

.limart-chat-panel.is-minimized .limart-chat-header {
    cursor: pointer;
    border-radius: 12px;
}

.limart-chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
}

.limart-chat-title i {
    font-size: 1.1rem;
    opacity: 0.95;
}

.limart-chat-actions {
    display: flex;
    gap: 0.25rem;
}

.limart-chat-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.limart-chat-actions button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.limart-chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.85rem 0.85rem 0.5rem;
    background: #f0f9ff;
    min-height: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.limart-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.limart-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.25);
    border-radius: 3px;
}

.limart-chat-msg-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.65rem;
    max-width: 88%;
}

.limart-chat-msg-wrap--user {
    align-self: flex-end;
    align-items: flex-end;
    margin-left: auto;
}

.limart-chat-msg-wrap--bot {
    align-self: flex-start;
    align-items: flex-start;
}

.limart-chat-msg-bubble {
    padding: 0.55rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    border-radius: 12px;
    word-break: break-word;
}

.limart-chat-msg-wrap--bot .limart-chat-msg-bubble {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--primary, #0284c7);
    color: #334155;
    border-radius: 12px 12px 12px 4px;
}

.limart-chat-msg-wrap--user .limart-chat-msg-bubble {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    border: none;
    border-radius: 12px 12px 4px 12px;
}

.limart-chat-msg-bubble a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.limart-chat-msg-wrap--bot .limart-chat-msg-bubble a {
    color: var(--primary, #0284c7);
}

.limart-chat-msg-time {
    font-size: 0.6rem;
    color: #94a3b8;
    margin-top: 0.2rem;
    padding: 0 0.15rem;
    line-height: 1;
    font-weight: 500;
}

.limart-chat-msg-wrap--user .limart-chat-msg-time {
    text-align: right;
}

.limart-chat-typing {
    display: none;
    align-self: flex-start;
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
    color: #64748b;
    font-style: italic;
}

.limart-chat-typing.is-visible {
    display: block;
}

.limart-chat-suggestions {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem 0.35rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.limart-chat-suggestions-label {
    width: 100%;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.1rem;
}

.limart-chat-chip {
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--primary, #0284c7);
    background: #e0f2fe;
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.limart-chat-chip:hover {
    background: #bae6fd;
    transform: translateY(-1px);
}

.limart-chat-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.limart-chat-footer input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
}

.limart-chat-footer input:focus {
    border-color: var(--primary, #0284c7);
    box-shadow: 0 0 0 3px var(--primary-glow, rgba(2, 132, 199, 0.15));
}

.limart-chat-send {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.limart-chat-send:hover {
    filter: brightness(1.05);
}

.fab-chat.is-active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(2, 132, 199, 0.35), 0 6px 18px rgba(2, 132, 199, 0.35);
}

@media (max-width: 599px) {
    .limart-chat-panel {
        right: 0.75rem;
        bottom: 5rem;
        height: min(520px, calc(100vh - 6rem));
        max-height: min(520px, calc(100vh - 6rem));
    }
    .limart-chat-panel.is-minimized {
        bottom: 1rem;
    }
    .floating-actions {
        right: 10px;
        bottom: 10px;
        gap: 6px;
    }
    .fab-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    .fab-btn i {
        font-size: 0.85rem;
    }
    .fab-scroll-hint {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
        max-width: calc(100vw - 5rem);
        overflow: hidden;
        text-overflow: ellipsis;
        color: #fff;
        background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
        border-color: rgba(255, 255, 255, 0.22);
    }
}

/* ========== Auth modal (Login, Forgot password, Sign up) ========== */
.auth-modal-overlay {
    position: fixed !important;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.auth-modal-overlay.is-open .auth-modal {
    transform: scale(1);
}

.auth-modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.75rem 1rem 0;
    min-height: 44px;
}

.auth-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.auth-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-main);
}

.auth-modal-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
}

.auth-modal-tab {
    flex: 1;
    padding: 1rem 0.75rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition-fast);
}

.auth-modal-tab:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.2em;
    background: var(--border);
}

.auth-modal-tab:hover {
    color: var(--primary);
}

.auth-modal-tab.is-active {
    color: var(--primary);
    background: rgba(2, 132, 199, 0.08);
    border-bottom-color: var(--primary);
}

.auth-modal-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

.auth-modal-panel {
    display: none;
}

.auth-modal-panel.is-active {
    display: block;
}

.auth-modal .form-group {
    margin-bottom: 1.25rem;
}

.auth-modal .form-group:last-of-type {
    margin-bottom: 1.5rem;
}

.auth-modal label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.auth-modal label .required {
    color: var(--text-muted);
    font-weight: 400;
}

.auth-modal input[type="text"],
.auth-modal input[type="email"],
.auth-modal input[type="tel"],
.auth-modal input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-main);
    transition: var(--transition-fast);
    box-sizing: border-box;
}

.auth-modal input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.auth-modal .btn-login {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-modal .btn-login:hover {
    background: linear-gradient(180deg, #38bdf8 0%, #0369a1 100%);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.auth-modal .btn-login:active {
    transform: translateY(1px);
}

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

/* My Account icon – same size and style as other navbar icons */
.nav-account-btn {
    color: var(--text-main);
}

.nav-account-btn:hover {
    color: var(--primary);
}

/* Product card – rounded image with inset margin (all listing + home grids) */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    color: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    box-shadow: 0 1px 4px rgba(14, 116, 144, 0.08);
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(14, 116, 144, 0.14);
}

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: visible;
    background: transparent;
    margin: 0;
    padding: 0.4rem;
    box-sizing: border-box;
    isolation: isolate;
}

.product-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: 0 1px 3px rgba(14, 116, 144, 0.06);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    padding: 0;
    margin: 0;
    display: block;
    border: none;
    border-radius: 10px;
    transform: scale(1.04);
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

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

.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.55rem;
    left: 0.55rem;
    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);
}

.product-card-image .out-of-stock-badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

/* Wishlist on image overlay (detail / legacy cards only) */
.product-card-image > .wishlist-icon {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font: inherit;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-card-image > .wishlist-icon:hover {
    background: white;
    transform: scale(1.08);
    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.1rem;
    min-width: 0;
    flex: 1;
}

.price-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.18rem 0.28rem;
    line-height: 1.1;
}

.price-current {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

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

.discount-badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #15803d;
    padding: 0.06rem 0.28rem;
    border-radius: 999px;
    font-size: 0.54rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* 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: 0.28rem 0.38rem 0.36rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0;
}

.product-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    min-width: 0;
}

.product-card-row--top {
    padding-bottom: 0.18rem;
}

.product-card-row--bottom {
    align-items: center;
    padding-top: 0.18rem;
    border-top: 1px solid rgba(14, 116, 144, 0.08);
}

.product-card-info {
    flex: 1;
    min-width: 0;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    margin-top: 0.04rem;
}

.product-card-stock {
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.08rem 0.32rem;
    border-radius: 999px;
    line-height: 1.15;
}

.product-card-stock--in {
    color: #15803d;
    background: #dcfce7;
}

.product-card-stock--out {
    color: #b91c1c;
    background: #fee2e2;
}

.product-card-actions-mini {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.18rem;
}

.product-card-icon-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    padding: 0;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.product-card-icon-btn i {
    font-size: 0.72rem;
}

.product-card-icon-btn:hover {
    background: #e0f2fe;
    color: var(--primary, #0284c7);
    border-color: rgba(2, 132, 199, 0.25);
    transform: translateY(-1px);
}

/* Wishlist in action row — left of cart (not on image) */
.product-card-actions-mini .wishlist-icon {
    position: static;
    top: auto;
    right: auto;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    backdrop-filter: none;
    z-index: auto;
}

.product-card-icon-btn.wishlist-icon i {
    color: #ef4444;
    font-size: 0.72rem;
}

.product-card-icon-btn.wishlist-icon.active,
.product-card-icon-btn.wishlist-icon:hover {
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
}

.product-card-buy-btn {
    padding: 0.28rem 0.48rem;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 28px;
    min-width: auto;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22);
    white-space: nowrap;
}

.product-card-buy-btn i {
    font-size: 0.62rem;
}

.product-card-buy-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.32);
}

.product-card-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.product-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-category {
    display: none;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-price-wrap {
    min-width: 0;
    flex: 1;
}

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

/* 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 – light panels on dark canvas */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    color: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

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

/* Light content panels on dark site background */
.product-card,
.card,
.filter-sidebar,
.checkout-summary-card,
.checkout-form-card,
.cart-item {
    color: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

.filter-sidebar {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(148, 163, 184, 0.35);
}

/* 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: 240px;
}

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

.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 – keep white bar intact */
.navbar {
    background: #ffffff !important;
    color: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #0284c7;
    --primary-hover: #0369a1;
    backdrop-filter: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    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: 0.2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-light, #476885);
    text-decoration: none;
    position: relative;
    padding: 0.42rem 0.85rem;
    margin: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    transform: translateX(-50%) scaleX(0);
    width: 1.25rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.25s ease, width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--primary);
    background: rgba(224, 242, 254, 0.75);
    border-color: rgba(2, 132, 199, 0.12);
    box-shadow: 0 2px 8px rgba(14, 116, 144, 0.06);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
    width: 1.5rem;
}

.nav-links a.text-primary {
    color: var(--primary-hover, #0369a1);
    font-weight: 600;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: rgba(2, 132, 199, 0.18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 10px rgba(2, 132, 199, 0.1);
}

.nav-links a.text-primary::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
    width: calc(100% - 1.4rem);
    height: 2.5px;
    bottom: 0.15rem;
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
    border-radius: 2px;
}

.nav-links a.text-primary:hover,
.nav-links a.text-primary:focus-visible {
    background: linear-gradient(180deg, #f0f9ff 0%, #dbeafe 100%);
    border-color: rgba(2, 132, 199, 0.28);
}

.nav-links a:active {
    transform: scale(0.98);
}

/* 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;
}

/* Laptop and desktop: never show hamburger */
@media (min-width: 768px) {
    .menu-btn {
        display: none !important;
    }
}

.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 (legacy footers only – not .footer-main) */
footer:not(.footer-main) {
    padding: 3rem 0 1.75rem !important;
}

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

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

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

footer:not(.footer-main) ul {
    gap: 0.4rem !important;
}

footer:not(.footer-main) 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.35rem;
    }

    .container {
        padding: 0 0.35rem;
    }

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

    .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 {
        padding-left: 0.25rem;
    }

    /* Mobile menu: align a little left, hover highlights only text + small margins */
    .nav-links {
        padding-left: 0.4rem;
        padding-right: 0.5rem;
    }

    footer .logo {
        padding-left: 0;
    }

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

    .nav-links a {
        width: auto;
        max-width: 100%;
        justify-content: flex-start;
        padding: 0.4rem 0.6rem;
        min-height: 40px;
    }

    .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;
    }
    /* Hamburger hidden on tablet; shown only in mobile (max-width: 599px) below */

    /* 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;
    }

    .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:not(.footer-main) {
        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: var(--text-sm);
    }

    .product-card-price {
        font-size: var(--text-sm);
    }

    .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-row--bottom {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .product-card-buy-btn {
        width: 100%;
        justify-content: center;
    }

    .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-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:not(.footer-main) {
        padding: 1.5rem 0 0.75rem !important;
    }

    footer:not(.footer-main) .grid {
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    :root {
        --container-padding: 0.3rem;
        --header-height: 48px;
    }

    .container {
        padding: 0 0.3rem;
    }

    .page-section .container,
    .catalog-page .container,
    .page-header .container,
    .product-page .container,
    .footer-main .container {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
    }

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

    .navbar .container {
        padding: 0.25rem 0.3rem;
    }
    .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 {
        padding: 0.3rem;
        aspect-ratio: 1;
    }

    .product-card-image-link,
    .product-card-image img {
        border-radius: 8px;
    }
    
    .product-card-title {
        font-size: var(--text-sm);
    }
    
    .product-card-price {
        font-size: var(--text-sm);
    }

    .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 – thumbnails left, main image right */
.product-gallery {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--limart-gallery-gap);
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
}

.product-gallery-thumbs {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.5rem;
    width: calc(var(--limart-gallery-thumb) + 4px);
    min-width: calc(var(--limart-gallery-thumb) + 4px);
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 4px 2px 0;
    scrollbar-width: thin;
}

.product-gallery-thumbs:empty {
    display: none;
    width: 0;
    min-width: 0;
}

.product-gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.25);
    border-radius: 4px;
}

.product-gallery-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    position: relative;
}

.product-gallery-viewport {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.product-gallery-track {
    display: flex;
    height: 100%;
    width: 100%;
    will-change: transform;
}

.product-gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.product-gallery-slide .limart-image-frame--fill {
    flex: 1;
    min-height: 0;
    border: 1px solid rgba(2, 132, 199, 0.1);
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.product-gallery-nav i {
    font-size: 0.85rem;
}

.product-gallery-nav--prev {
    left: 0.5rem;
}

.product-gallery-nav--next {
    right: 0.5rem;
}

.product-gallery-main:hover .product-gallery-nav,
.product-gallery-main:focus-within .product-gallery-nav {
    opacity: 1;
    visibility: visible;
}

.product-gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.product-gallery-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.product-gallery-main .limart-image-frame--fill {
    flex: 1;
    min-height: 0;
}

.product-gallery-main img {
    transition: opacity 0.2s ease, transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-gallery-card:focus-within .product-gallery-main .limart-image-frame--fill:hover img {
    transform: scale(1.03);
}

.product-thumb {
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s;
    width: var(--limart-gallery-thumb);
    height: var(--limart-gallery-thumb);
    min-height: var(--limart-gallery-thumb);
    flex-shrink: 0;
    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 – 50/50 full-width stage (ref id=4 gallery) */
.product-layout {
    --product-stage-max: var(--limart-stage-height);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
    align-items: stretch;
    width: 100%;
    min-height: var(--limart-stage-height);
    height: var(--limart-stage-height);
    margin-bottom: 0.75rem;
}

.product-layout.is-checkout-active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-layout__gallery {
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    max-width: none;
    display: flex;
    min-height: 0;
}

.product-layout__right {
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-layout__gallery .card,
.product-gallery-card {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0.35rem 0.35rem 0.5rem;
    border-radius: var(--limart-card-radius);
    border: var(--limart-card-border);
    background: var(--limart-card-bg);
    box-shadow: var(--limart-card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-gallery {
    flex: 1;
    min-height: 0;
    height: 100%;
    align-items: stretch;
}

/* Product info panel – visible by default */
.product-layout__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--limart-card-bg);
    border-radius: var(--limart-card-radius);
    padding: 0.7rem 0.8rem 0.75rem;
    border: var(--limart-card-border);
    box-shadow: var(--limart-card-shadow);
}

/* Hide product info when checkout is open */
.product-layout.is-checkout-active .product-layout__info {
    display: none !important;
}

.product-layout__info--tight .product-title-main {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    margin: 0 0 0.22rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.product-layout__info--tight .product-price-block {
    margin-bottom: 0.28rem;
    gap: 0.28rem 0.45rem;
}

.product-layout__info--tight .product-price-main {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 800;
}

.product-layout__info--tight .product-price-original {
    font-size: var(--text-md);
}

.product-layout__info--tight .product-price-discount {
    font-size: var(--text-sm);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
}

.product-rating--compact {
    margin-bottom: 0.4rem;
    font-size: var(--text-sm);
}

.product-layout__info--tight .product-stock-hint {
    margin: 0 0 0.32rem;
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.06);
}

.product-layout__info--tight .product-stock-hint--out {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.08);
}

.product-layout__info--tight .product-action-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
    margin-bottom: 0.32rem;
    flex-wrap: nowrap;
    width: 100%;
}

.product-layout__info--tight .product-action-btn {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0.38rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 8px;
}

.product-layout__info--tight .product-action-btn--wishlist,
.product-layout__info--tight .product-action-btn--cart,
.product-layout__info--tight .product-action-btn--buy {
    flex: none;
    min-width: 0;
    width: 100%;
}

.product-layout__info--tight .product-action-btn i {
    font-size: 0.82rem;
}

.product-description-inline {
    margin: 0 0 0.32rem;
    padding: 0.38rem 0.48rem 0.42rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.05);
    flex-shrink: 0;
    min-width: 0;
}

.product-description-inline__title {
    margin: 0 0 0.15rem;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    line-height: 1.15;
}

.product-description-inline__body {
    max-height: 5.5rem;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.product-description-inline__body.is-truncated::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.25rem;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0) 0%, #f8fcff 88%);
    pointer-events: none;
}

.product-description-inline__intro {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #334155;
    font-weight: 500;
}

.product-desc-specs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.product-desc-spec-row {
    display: grid;
    grid-template-columns: minmax(0, 34%) 1fr;
    gap: 0.3rem 0.4rem;
    align-items: start;
    min-width: 0;
}

.product-desc-spec-row dt {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

.product-desc-spec-row dd {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
}

.product-desc-spec-row--plain {
    grid-template-columns: 1fr;
}

.product-desc-more-btn {
    margin: 0.2rem 0 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.product-desc-more-btn:hover {
    text-decoration: underline;
}

.product-desc-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.product-desc-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-desc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.product-desc-modal__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(80vh, 640px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(2, 132, 199, 0.14);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-desc-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(2, 132, 199, 0.1);
}

.product-desc-modal__head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.product-desc-modal__close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-desc-modal__body {
    padding: 0.85rem 1rem 1rem;
    overflow-y: auto;
}

.product-desc-modal__body .product-description-inline__intro {
    font-size: 0.82rem;
    line-height: 1.5;
}

.product-desc-modal__body .product-desc-spec-row dt {
    font-size: 0.68rem;
}

.product-desc-modal__body .product-desc-spec-row dd {
    font-size: 0.8rem;
}

body.product-desc-modal-open {
    overflow: hidden;
}

.product-info-footer-bar {
    margin-top: auto;
    padding-top: 0.32rem;
    border-top: 1px solid rgba(2, 132, 199, 0.1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.product-category-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    width: fit-content;
    padding: 0.2rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-category-back-btn:hover {
    color: var(--primary-hover);
    transform: translateX(-2px);
}

.product-category-back-btn i {
    font-size: 0.75rem;
}

.product-benefits-row--tight {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 0.35rem 0.5rem;
    font-size: var(--text-sm);
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.product-benefits-row--one-line {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
}

.product-benefits-row--one-line span {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 0.3rem 0.45rem;
    font-size: clamp(0.65rem, 2.6vw, 0.76rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-benefits-row--tight span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.55rem;
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 999px;
    color: #0369a1;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.07);
}

.product-benefits-row--tight i {
    font-size: 0.9rem;
    color: var(--primary);
}

/* Right-side checkout – replaces product info panel */
.product-checkout-rail {
    display: none;
    flex-direction: column;
    width: 100%;
    flex: 1;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    background: var(--limart-card-bg);
    border-radius: var(--limart-card-radius);
    border: var(--limart-card-border);
    box-shadow: var(--limart-card-shadow);
    overflow: hidden;
    animation: product-checkout-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-layout.is-checkout-active .product-checkout-rail {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.product-checkout-rail__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    flex-shrink: 0;
}

.product-checkout-rail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.product-checkout-rail__back:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(-2px);
}

.product-checkout-rail__back i {
    font-size: 0.75rem;
}

.product-checkout-rail__head-text {
    flex: 1;
    min-width: 0;
}

.product-checkout-rail__head-text h2 {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 700;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-checkout-rail__head-text h2 i {
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.product-checkout-rail__sub {
    display: none;
}

.product-checkout-rail__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.product-checkout-rail__close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.product-checkout-rail__steps {
    display: flex;
    gap: 0;
    padding: 0.3rem 0.55rem;
    background: #f0f9ff;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.product-checkout-step {
    flex: 1;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.4rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    position: relative;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.product-checkout-step:hover {
    color: var(--primary);
}

@media (min-width: 901px) {
    .product-checkout-step {
        cursor: default;
        pointer-events: none;
    }
}

.product-checkout-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--border);
}

.product-checkout-step.is-active {
    color: var(--primary);
}

.product-checkout-step i {
    font-size: 0.72rem;
}

.product-checkout-cards {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.42fr) minmax(0, 1fr);
    flex: 1 1 auto;
    gap: 0.5rem;
    padding: 0.5rem;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
}

.product-checkout-card--delivery {
    min-width: 0;
}

.product-checkout-card--delivery .product-checkout-card__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.product-checkout-card--delivery .form-group textarea {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: var(--text-sm);
    font-family: inherit;
    line-height: 1.4;
    resize: vertical;
    background: #fff;
    box-sizing: border-box;
}

.product-checkout-card--delivery .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}


.product-checkout-card {
    min-height: 0;
    min-width: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    padding: 0.45rem 0.55rem;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.product-checkout-card__title {
    margin: 0 0 0.65rem;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
}

.product-checkout-card__num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-checkout-card .form-group {
    margin-bottom: 0.55rem;
}

.product-checkout-card .form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #475569;
}

.product-checkout-card .form-group input {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: var(--text-sm);
    font-family: inherit;
    background: #fff;
}

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

.product-checkout-card__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.product-checkout-card--pay {
    justify-content: flex-start;
    overflow-y: auto;
}

/* Payment method tiles (PhonePe, GPay, Razorpay, COD) */
.pd-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.pd-payment-methods--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-pay-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.45rem 0.35rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    min-height: 72px;
}

.pd-pay-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pd-pay-tile__mark {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
}

.pd-pay-tile.selected {
    border-color: #ea580c;
    background: #fff7ed;
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.15);
}

.pd-pay-tile.selected .pd-pay-tile__mark {
    border-color: #ea580c;
    background: #ea580c;
    box-shadow: inset 0 0 0 2px #fff;
}

.pd-pay-tile__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}

.pd-pay-tile__icon--phonepe { background: #5f259f; }
.pd-pay-tile__icon--gpay { background: linear-gradient(135deg, #4285f4, #34a853); font-family: inherit; }
.pd-pay-tile__icon--razorpay { background: #0c2451; font-size: 0.62rem; }
.pd-pay-tile__icon--cod { background: #dcfce7; color: #15803d; font-size: 1rem; }

.pd-pay-tile__label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
}

.pd-payment-upi {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 0.45rem;
    background: #fafafa;
}

.pd-payment-upi__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.pd-upi-id {
    font-size: 0.62rem;
    font-weight: 700;
    color: #15803d;
    background: #f0fdf4;
    border: 1px dashed #86efac;
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    word-break: break-all;
}

.pd-payment-qr {
    margin: 0;
}

.pd-payment-qr summary {
    font-size: 0.68rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    margin-bottom: 0.35rem;
}

.pd-payment-qr img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.pd-payment-cod-note {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pd-payment-cod-note i {
    color: #16a34a;
    margin-right: 0.25rem;
}

.pd-payment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: auto;
}

.pd-btn-proceed {
    width: 100%;
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.pd-btn-proceed:hover {
    background: linear-gradient(135deg, #c2410c, #ea580c);
}

.pd-btn-confirm,
.pd-btn-back-shop {
    width: 100%;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
}

.product-checkout-rail .product-inline-summary-product {
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border);
}

.product-checkout-rail .product-inline-summary-product .limart-image-frame--thumb {
    width: 72px;
    height: 72px;
}

.product-checkout-rail .product-inline-qty {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
}

.product-checkout-rail .product-inline-summary-total {
    margin-top: auto;
    font-size: 0.78rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-checkout-rail .product-inline-summary-total strong {
    font-size: 0.95rem;
    color: var(--primary);
}

.product-checkout-rail .product-inline-success {
    flex: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    min-height: 0;
    overflow-y: auto;
}

.product-checkout-rail.is-success .product-checkout-cards {
    display: none;
}

.product-checkout-rail.is-success .product-checkout-rail__steps {
    display: none;
}

.product-checkout-rail.is-success .product-inline-success {
    display: flex;
}

.product-checkout-rail.is-success .product-inline-success .checkout-success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.product-checkout-rail.is-success .product-inline-success h3 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.product-checkout-rail.is-success .product-inline-success p {
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
}

.product-checkout-rail.is-success .product-inline-success .btn {
    margin: 0.25rem;
}

/* 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-price-stock {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    align-self: center;
}

.product-price-stock--in {
    color: #15803d;
    background: rgba(22, 163, 74, 0.12);
}

.product-price-stock--out {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
}

.product-layout__info--tight .product-price-stock {
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
}

.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 detail – interactive action buttons */
.product-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.product-action-btn {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s, border-color 0.2s, color 0.2s;
    min-height: 44px;
}

.product-action-btn i {
    font-size: 0.95rem;
}

.product-action-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.product-action-btn.is-pressed {
    transform: scale(0.95);
}

.product-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.product-action-btn--wishlist {
    background: #fff;
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
    flex: 0 1 auto;
    min-width: 100px;
}

.product-action-btn--wishlist:hover:not(:disabled) {
    background: #fef2f2;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
    transform: translateY(-2px);
}

.product-action-btn--wishlist.is-active {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.product-action-btn--cart {
    background: #f0f9ff;
    border-color: rgba(2, 132, 199, 0.3);
    color: var(--primary, #0284c7);
}

.product-action-btn--cart:hover:not(:disabled) {
    background: #e0f2fe;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
    transform: translateY(-2px);
}

.product-action-btn--cart.is-pressed {
    background: #bae6fd;
}

.product-action-btn--buy {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    flex: 1 1 140px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.product-action-btn--buy:hover:not(:disabled) {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    box-shadow: 0 8px 26px rgba(2, 132, 199, 0.42);
    transform: translateY(-2px);
}

/* Inline quick checkout on product page */
.product-inline-checkout {
    margin-top: 1.5rem;
    scroll-margin-top: 5rem;
}

.product-inline-checkout.is-open {
    animation: product-checkout-in 0.35s ease;
}

@keyframes product-checkout-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-inline-checkout__panel {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 12px 40px rgba(14, 116, 144, 0.12);
}

.product-inline-checkout__header {
    position: relative;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-bottom: 1px solid var(--border);
}

.product-inline-checkout__header h2 {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.product-inline-checkout__header h2 i {
    color: var(--primary);
}

.product-inline-checkout__sub {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.product-inline-checkout__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.product-inline-checkout__close:hover {
    background: #fff;
    color: var(--text-main);
}

.product-inline-checkout__grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.25rem;
    padding: 1.25rem;
}

.product-inline-checkout__form .form-group {
    margin-bottom: 0.85rem;
}

.product-inline-checkout__form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.product-inline-checkout__form .required {
    color: var(--primary);
}

.product-inline-checkout__form input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
}

.product-inline-checkout__form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.product-inline-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.product-inline-payment {
    margin: 0.5rem 0 1rem;
}

.product-inline-payment .payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.product-inline-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.product-inline-checkout__summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border);
    align-self: start;
}

.product-inline-checkout__summary h3 {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-inline-summary-product {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.product-inline-summary-product .limart-image-frame--thumb {
    width: 72px;
    height: 72px;
}

.product-inline-summary-product strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.product-inline-summary-price {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-inline-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.product-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
}

.product-qty-btn:hover {
    background: #e0f2fe;
}

.product-qty-controls input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem;
    -moz-appearance: textfield;
}

.product-qty-controls input::-webkit-outer-spin-button,
.product-qty-controls input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.product-inline-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    padding-top: 0.5rem;
}

.product-inline-summary-total strong {
    font-size: 1.2rem;
    color: var(--primary);
}

.product-inline-summary-note {
    margin: 0.75rem 0 0;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.product-inline-summary-note i {
    color: var(--primary);
    margin-right: 0.25rem;
}

.product-inline-success {
    text-align: center;
    padding: 2rem 1.5rem;
}

.product-inline-success .btn {
    margin: 0.35rem;
}

.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;
}

/* Product detail – breadcrumb, loading skeleton, not found */
.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.65rem;
    padding: 0.1rem 0 0;
    line-height: 1.3;
}

.product-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.45;
    font-weight: 400;
    user-select: none;
}

.product-breadcrumb-current {
    color: var(--text-main);
    font-weight: 600;
}

.product-not-found {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 420px;
    margin: 2rem auto;
}

.product-not-found i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.product-not-found h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.product-not-found p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-loading {
    padding: 1rem 0 2rem;
}

.product-loading-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
    align-items: stretch;
    width: 100%;
    min-height: var(--limart-stage-height);
}

.product-loading-image {
    width: 100%;
    min-height: var(--limart-stage-height);
    border-radius: var(--limart-card-radius);
    max-width: none;
}

.product-loading-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.product-loading-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.product-loading-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-line {
    height: 14px;
}

.skeleton-line--sm { width: 28%; }
.skeleton-line--md { width: 55%; }
.skeleton-line--lg { width: 75%; height: 28px; border-radius: 10px; }
.skeleton-line--price { width: 40%; height: 32px; margin: 0.25rem 0; }
.skeleton-line--full { width: 100%; }

.skeleton-btn {
    width: 140px;
    height: 44px;
    border-radius: 10px;
}

.skeleton-btn--outline {
    width: 120px;
    opacity: 0.7;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-price-block--sale {
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.product-price-block--sale .product-price-main {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.product-gallery-card {
    position: relative;
}

.product-gallery-card .promo-badge.detail {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.product-rating--detail {
    margin-bottom: 0.5rem;
}

.product-stock-hint {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.product-stock-hint i {
    color: var(--primary);
    margin-right: 0.35rem;
}

.product-specs-card,
.product-features-card,
.product-description-card {
    margin-top: 0.75rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 20px rgba(14, 116, 144, 0.06);
    padding: 1.25rem 1.5rem;
}

.product-description-card .product-description {
    margin-bottom: 0;
}

/* Laptop / short viewport – keep product stage fully on screen */
@media (min-width: 901px) and (max-height: 900px) {
    :root {
        --limart-stage-height: min(calc(100dvh - 9rem), 500px);
    }
}

@media (min-width: 901px) and (min-height: 901px) {
    :root {
        --limart-stage-height: min(calc(100dvh - 8.25rem), 580px);
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .product-checkout-cards {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        overflow-y: auto;
    }
    .product-checkout-card {
        min-height: auto;
        max-height: none;
    }
}

/* Mobile checkout: full-screen opaque modal (teleported to body) */
body.product-checkout-open {
    overflow: hidden;
}

body.product-checkout-open .footer-main,
body.product-checkout-open .promo-strip,
body.product-checkout-open .floating-actions {
    visibility: hidden;
    pointer-events: none;
}

.product-checkout-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #e8f4fc;
    pointer-events: none;
}

body.product-checkout-open .product-checkout-backdrop {
    display: block;
}

.product-checkout-rail.is-mobile-portal {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.08);
    overflow: hidden;
}

.product-checkout-rail.is-mobile-portal .product-checkout-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

@media (max-width: 768px) {
    .product-layout.is-checkout-mobile {
        gap: 0;
    }

    .product-layout.is-checkout-mobile .product-layout__gallery {
        display: none;
    }

    .product-layout.is-checkout-mobile .product-layout__right {
        order: 1;
        width: 100%;
        min-height: 0;
        position: static;
    }

    .product-layout.is-checkout-mobile .product-checkout-rail:not(.is-mobile-portal) {
        display: none;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-rail__head {
        padding: 0.65rem 0.85rem;
        flex-shrink: 0;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-rail__back span {
        display: inline;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-rail__steps {
        display: flex;
        padding: 0.45rem 0.65rem;
        flex-shrink: 0;
        background: #f0f9ff;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-step {
        flex: 1;
        justify-content: center;
        font-size: 0.72rem;
        padding: 0.4rem 0.35rem;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-cards {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 0.75rem;
        overflow-x: visible;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0.65rem 0.75rem 1.25rem;
        scroll-snap-type: none;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-card {
        width: 100%;
        min-width: 0;
        min-height: auto;
        max-height: none;
        flex-shrink: 0;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        scroll-margin-top: 4.5rem;
        background: #ffffff;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-card__title {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.6rem;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-card__num {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-card .form-group {
        margin-bottom: 0.65rem;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-card .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-card .form-group input,
    .product-checkout-rail.is-mobile-portal .product-checkout-card .form-group textarea {
        min-height: 46px;
        padding: 0.65rem 0.75rem;
        font-size: 16px;
        border-radius: 10px;
        background: #ffffff;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-card--delivery .form-group textarea {
        min-height: 4.5rem;
    }

    .product-checkout-rail.is-mobile-portal .product-inline-summary-product {
        gap: 0.75rem;
        padding-bottom: 0.65rem;
        margin-bottom: 0.65rem;
    }

    .product-checkout-rail.is-mobile-portal .product-inline-summary-product .limart-image-frame--thumb {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }

    .product-checkout-rail.is-mobile-portal .product-inline-summary-product strong {
        font-size: 1rem;
    }

    .product-checkout-rail.is-mobile-portal .product-inline-qty {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .product-checkout-rail.is-mobile-portal .product-qty-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .product-checkout-rail.is-mobile-portal .product-qty-controls input {
        width: 48px;
        min-height: 44px;
        font-size: 1rem;
    }

    .product-checkout-rail.is-mobile-portal .product-inline-summary-total {
        font-size: 1rem;
        padding-top: 0.65rem;
    }

    .product-checkout-rail.is-mobile-portal .product-inline-summary-total strong {
        font-size: 1.25rem;
    }

    .product-checkout-rail.is-mobile-portal .pd-payment-methods {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.65rem;
    }

    .product-checkout-rail.is-mobile-portal .pd-pay-tile {
        min-height: 56px;
        padding: 0.55rem 0.45rem;
    }

    .product-checkout-rail.is-mobile-portal .pd-pay-tile__label {
        font-size: 0.78rem;
    }

    .product-checkout-rail.is-mobile-portal .pd-payment-upi__row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .product-checkout-rail.is-mobile-portal .pd-payment-upi__row .btn {
        width: 100%;
        min-height: 44px;
    }

    .product-checkout-rail.is-mobile-portal .pd-payment-actions {
        gap: 0.5rem;
        padding-top: 0.35rem;
    }

    .product-checkout-rail.is-mobile-portal .pd-btn-proceed,
    .product-checkout-rail.is-mobile-portal .pd-btn-confirm,
    .product-checkout-rail.is-mobile-portal .pd-btn-back-shop {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }

    .product-checkout-rail.is-mobile-portal.is-success .product-inline-success {
        flex: 1;
        display: flex;
        padding: 1.5rem 1rem;
        overflow-y: auto;
        background: #ffffff;
    }

    .product-layout.is-checkout-mobile.product-layout.is-checkout-active .product-layout__info {
        display: none !important;
    }

    .product-checkout-rail.is-mobile-portal .product-checkout-hint {
        display: block;
        text-align: center;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--muted);
        padding: 0 0.75rem 0.35rem;
        flex-shrink: 0;
        background: #ffffff;
    }
}

.product-checkout-hint {
    display: none;
}

@media (max-width: 900px) {
    .product-page {
        padding: 0.3rem 0 2rem;
    }
    .product-loading-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .product-loading-image {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
    .product-layout,
    .product-layout.is-checkout-active {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }
    .product-thumb {
        width: 48px;
        height: 48px;
        min-height: 48px;
    }
    .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: 0.15rem;
    }
    .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: gallery card on top, full-width image; info below */
@media (max-width: 768px) {
    .product-page {
        padding: 0.15rem 0 1rem;
    }
    .product-page .container {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
    .product-layout {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        height: auto;
        min-height: 0;
        margin-bottom: 0.35rem;
    }
    .product-layout__gallery {
        order: 1;
        width: 100%;
    }
    .product-layout__right {
        order: 2;
        width: 100%;
    }
    .product-layout__info {
        order: 2;
        padding: 0.6rem 0.65rem 0.65rem;
        border-radius: 14px;
    }
    .product-layout__info--tight .product-title-main {
        font-size: 1.05rem;
        margin-bottom: 0.18rem;
    }
    .product-layout__info--tight .product-price-main {
        font-size: 1.2rem;
    }
    .product-layout__info--tight .product-action-bar {
        gap: 0.22rem;
        margin-bottom: 0.28rem;
    }
    .product-layout__info--tight .product-action-btn {
        min-height: 32px;
        padding: 0.32rem 0.25rem;
        font-size: 0.68rem;
    }
    .product-layout__gallery .card,
    .product-gallery-card {
        width: 100%;
        max-width: 100%;
        min-height: min(92vw, 520px);
        height: auto;
        padding: 0.35rem;
        box-sizing: border-box;
    }
    .product-gallery {
        flex-direction: row;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        min-height: min(85vw, 480px);
        height: min(85vw, 480px);
    }
    .product-gallery-thumbs {
        flex-direction: column;
        width: 52px;
        min-width: 52px;
        max-height: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 2px 4px 2px 0;
        gap: 0.35rem;
    }
    .product-gallery-main {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 100%;
        height: 100%;
    }
    .product-gallery-main .limart-image-frame--fill {
        width: 100%;
        height: 100%;
        min-height: 100%;
        max-width: 100%;
        max-height: 100%;
    }
    .product-gallery-main .limart-image-frame--fill img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    .product-thumb {
        width: 48px;
        height: 48px;
        min-height: 48px;
    }
    .product-detail-card {
        grid-template-columns: 1fr;
    }
    .product-detail-card__media {
        max-width: 100%;
        margin: 0 auto;
    }
    .product-breadcrumb {
        margin-bottom: 0.5rem;
        font-size: 0.72rem;
    }
    .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;
    }
    .trust-badge .trust-badge-support-icon {
        width: 1.4rem;
        height: 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 {
        gap: 0.35rem;
    }
    .product-thumb {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    .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;
    }
}

/* 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 – modern, elevated cards */
.trust-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.75rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 1.75rem;
}

.trust-badges .container {
    max-width: 1100px;
}

.trust-badge {
    flex: 1 1 200px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95));
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
    overflow: hidden;
}

.trust-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.trust-badge:hover::before {
    opacity: 1;
}

.trust-badge i,
.trust-badge .trust-badge-support-icon {
    font-size: 1.6rem;
    color: var(--primary);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(219, 234, 254, 0.9);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    margin-bottom: 0.3rem;
}

.trust-badge .trust-badge-support-icon {
    object-fit: contain;
}

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

.trust-badge > div:last-child {
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .trust-badges {
        padding: 1.75rem 0 2.25rem;
        margin-top: 1.5rem;
    }
    .trust-badge {
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .trust-badges {
        flex-wrap: nowrap;
        gap: 1.5rem;
    }
    .trust-badge {
        flex: 0 0 calc(25% - 1.5rem);
        max-width: none;
    }
}

/* ========== Cart page – premium UI ========== */
.cart-page {
    padding: 1.25rem 0 2.5rem;
    min-height: auto;
}

.cart-page .cart-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
    align-items: stretch;
}

.cart-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 20px rgba(14, 116, 144, 0.06);
}

.cart-item:hover {
    border-color: rgba(2, 132, 199, 0.28);
    box-shadow:
        0 4px 12px rgba(2, 132, 199, 0.1),
        0 12px 28px rgba(14, 116, 144, 0.08);
    transform: translateY(-1px);
}

.cart-item-image-wrap {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--border);
}

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

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

.cart-item-info h3 {
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    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;
    transition: color 0.2s;
}

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

.cart-item-price {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.cart-item-price span {
    font-size: 0.8125rem;
    opacity: 0.85;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f0f9ff;
    padding: 0.25rem 0.4rem;
    border-radius: 10px;
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.cart-item-qty button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    background: #fff;
    border: 1px solid rgba(2, 132, 199, 0.2);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

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

.cart-item-total-wrap {
    text-align: right;
    min-width: 88px;
}

.cart-item-total-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.cart-item-total {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #dc2626;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
    transform: scale(1.05);
}

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

/* Order summary – stretches to match cart items column height */
.cart-summary-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 36px rgba(14, 116, 144, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.cart-summary-card__head {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    flex-shrink: 0;
}

.cart-summary-card__head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-summary-card__body {
    padding: 1.15rem 1.25rem 1.25rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
    font-size: var(--text-md);
}

.cart-summary-row span {
    color: var(--text-muted);
    font-weight: 600;
}

.cart-summary-row strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.cart-summary-note {
    margin: 0 0 0.85rem;
    font-size: var(--text-sm);
    color: #0369a1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 10px;
}

.cart-summary-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: auto;
    padding-bottom: 1.1rem;
}

.cart-summary-trust span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    background: #f8fafc;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.cart-summary-trust i {
    color: var(--primary);
    font-size: 0.7rem;
}

.cart-summary-checkout {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: var(--text-md);
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    margin-top: auto;
    flex-shrink: 0;
}

.cart-summary-checkout:hover {
    box-shadow: 0 8px 26px rgba(2, 132, 199, 0.42);
    transform: translateY(-1px);
}

.cart-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(14, 116, 144, 0.08);
}

.cart-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-empty__icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.cart-empty h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin: 0 0 0.5rem;
    color: var(--text-main);
}

.cart-empty p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .cart-page .cart-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 1.5rem;
        align-items: stretch;
    }

    .cart-page .cart-main,
    .cart-page .cart-summary-card {
        align-self: stretch;
    }
}

@media (max-width: 767px) {
    .cart-page {
        padding: 1rem 0 2rem;
    }
    .cart-item {
        grid-template-columns: 72px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
        padding-top: 2.5rem;
        position: relative;
    }
    .cart-item-image-wrap {
        grid-row: 1 / 3;
    }
    .cart-item-image {
        width: 72px;
        height: 72px;
    }
    .cart-item-info {
        grid-column: 2;
    }
    .cart-item-qty {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .cart-item-total-wrap {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
    }
    .cart-item-total-label {
        margin-bottom: 0;
    }
    .cart-item-remove {
        position: absolute;
        top: 0.65rem;
        right: 0.65rem;
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 10px;
    }
}

/* 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;
    }
}

/* ========== Premium footer (compact, copyright inside main block) ========== */
.footer-main {
    position: relative;
    margin: 1.25rem 0 0;
    padding: 0 !important;
    overflow: visible;
    color: var(--text-main);
    background: transparent;
    font-family: inherit;
    display: block;
    align-self: stretch;
}

.footer-main > .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.footer-main::before {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem 1.1rem;
    margin-bottom: 0;
    padding: 0;
    text-align: left;
    align-items: start;
}

.footer-col {
    min-width: 0;
    text-align: left;
}

.footer-col h4 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 0.5rem;
    color: var(--text-muted);
}

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

.footer-col ul li {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.35;
    padding: 0.12rem 0;
}

.footer-col li a {
    display: inline-block;
    padding: 0.22rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col li a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

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

.footer-brand .footer-logo {
    font-size: 1.65rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
    transition: opacity 0.2s ease;
}

.footer-brand .footer-logo span {
    color: var(--primary);
    text-shadow: none;
}

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

.footer-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 220px;
    margin: 0;
}

.footer-grid .footer-bottom {
    grid-column: 1 / -1;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0.2rem 0 0.4rem;
    padding: 0 0 0.35rem;
    text-align: center;
    border: none;
    background: transparent;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    padding: 0;
    font-size: 13.2px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.footer-bottom .footer-copyright-link {
    font-size: 13.2px;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

/* Newsletter (if used) */
.footer-newsletter {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 0 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-newsletter h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.newsletter-form input {
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 1.5rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .footer-main > .container {
        padding: 0.9rem 1.5rem 0.7rem;
    }
    .footer-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.55rem 1.1rem;
    }
    .footer-brand {
        grid-column: auto;
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-bottom {
        margin-top: 0.2rem;
        padding-top: 0;
    }
}

/* Mobile: brand full width, four link columns, improved readability */
@media (max-width: 767px) {
    .footer-main {
        margin-top: 1rem;
    }
    .footer-main > .container {
        padding: 0.7rem 0.5rem 0.55rem;
    }
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.5rem 0.35rem;
        align-items: start;
    }
    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 0.35rem;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid rgba(2, 132, 199, 0.1);
    }
    .footer-brand .footer-logo {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
    }
    .footer-tagline {
        font-size: 0.65rem;
        margin: 0;
        letter-spacing: 0.05em;
        color: #64748b;
    }
    .footer-desc {
        display: none;
    }
    .footer-col h4 {
        font-size: 0.625rem;
        letter-spacing: 0.05em;
        margin: 0 0 0.35rem;
        line-height: 1.25;
        color: #475569;
        word-break: normal;
        hyphens: auto;
    }
    .footer-col ul {
        gap: 0.1rem;
    }
    .footer-col ul li {
        font-size: 0.6875rem;
        line-height: 1.3;
        padding: 0.08rem 0;
        color: #64748b;
        word-break: normal;
        hyphens: auto;
    }
    .footer-col li a {
        font-size: 0.6875rem;
        line-height: 1.3;
        padding: 0.1rem 0;
        color: #64748b;
        word-break: normal;
        hyphens: auto;
    }
    .footer-col li a:hover {
        transform: none;
        color: var(--primary);
    }
    .footer-bottom {
        margin-top: 0.45rem;
        padding-top: 0.35rem;
    }
    .footer-bottom p,
    .footer-bottom .footer-copyright-link {
        font-size: 13.2px;
        line-height: 1.35;
        color: #64748b;
        font-weight: 500;
    }
    .footer-bottom .footer-copyright-link:hover {
        color: var(--primary);
    }
}

@media (max-width: 380px) {
    .footer-main > .container {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    .footer-grid {
        gap: 0.4rem 0.25rem;
    }
    .footer-col h4 {
        font-size: 0.6rem;
    }
    .footer-col ul li,
    .footer-col li a {
        font-size: 0.65rem;
    }
    .footer-bottom p,
    .footer-bottom .footer-copyright-link {
        font-size: 13.2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-energy-orb,
    .footer-energy-wave {
        animation: none;
        opacity: 0.4;
    }
}

/* Tablet / small laptop: show full menu, hide hamburger icon */
@media (min-width: 600px) and (max-width: 768px) {
    .navbar .container {
        flex-wrap: nowrap;
    }
    .nav-links {
        display: flex !important;
        position: static;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border: none;
        max-height: none;
        overflow: visible;
        flex-direction: row;
        align-items: center;
        gap: 0.15rem;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-btn {
        display: none;
    }
}