:root {
    --cm-navy: #003399;
    --cm-blue: #007bff;
    --cm-blue-dark: #0056c9;
    --cm-top: #0a2d6e;
    --cm-text: #212529;
    --cm-muted: #6c757d;
    --cm-border: #dee2e6;
    --cm-light-bg: #f4f7fb;
}

/* Preloader */
body.preloader-active {
    overflow: hidden;
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff 0%, #f0f6ff 45%, #fce8f3 100%);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-preloader-inner {
    text-align: center;
    padding: 1.5rem;
}

.site-preloader-logo {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    animation: preloaderPulse 1.4s ease-in-out infinite;
    background: #fff;
    border-radius: 0.65rem;
    padding: 0.45rem 0.85rem;
    box-shadow: 0 12px 32px rgba(0, 51, 153, 0.12);
}

.site-preloader-bar {
    width: min(240px, 70vw);
    height: 4px;
    margin: 1.25rem auto 0.75rem;
    background: rgba(0, 123, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.site-preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cm-blue), #c2185b);
    animation: preloaderBar 1.1s ease-in-out infinite;
}

.site-preloader-text {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cm-navy);
    letter-spacing: 0.02em;
}

@keyframes preloaderPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.92;
    }
}

@keyframes preloaderBar {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-preloader-logo,
    .site-preloader-bar span {
        animation: none;
    }

    .site-preloader-bar span {
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--cm-text);
    background: #fff;
}

a {
    color: inherit;
}

/* Top bar */
.top-bar {
    background: var(--cm-top);
    color: #fff;
    font-size: 0.85rem;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

.top-bar .bi {
    margin-right: 0.35rem;
}

/* Brand */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.3rem 0.65rem;
    box-shadow: 0 2px 10px rgba(0, 51, 153, 0.08);
}

.brand-logo-img-footer {
    height: 48px;
    filter: brightness(1.05);
}

.footer-brand .brand-logo-img {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.35rem 0.65rem;
}

.brand-icon {
    color: var(--cm-blue);
    font-size: 1.5rem;
}

.brand-accent {
    color: var(--cm-blue);
}

/* Search */
.search-form {
    max-width: 560px;
    margin: 0 auto;
}

.search-input {
    border: 2px solid var(--cm-blue);
    border-right: 0;
    border-radius: 0.375rem 0 0 0.375rem;
    padding: 0.65rem 1rem;
}

.search-input:focus {
    box-shadow: none;
    border-color: var(--cm-blue);
}

.btn-search {
    background: var(--cm-blue);
    color: #fff;
    border: 2px solid var(--cm-blue);
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 0 1.25rem;
}

.btn-search:hover {
    background: var(--cm-blue-dark);
    border-color: var(--cm-blue-dark);
    color: #fff;
}

.header-action {
    position: relative;
    color: var(--cm-navy);
    font-size: 1.5rem;
    text-decoration: none;
}

.action-badge {
    position: absolute;
    top: -4px;
    right: -10px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Nav */
.btn-categories {
    background: var(--cm-blue);
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-categories:hover {
    background: var(--cm-blue-dark);
    color: #fff;
}

.nav-main .nav-link {
    color: var(--cm-text);
    font-weight: 500;
    padding: 0.5rem 0.85rem;
}

.nav-main .nav-link.active,
.nav-main .nav-link:hover {
    color: var(--cm-blue);
}

.nav-main .nav-link.active {
    border-bottom: 2px solid var(--cm-blue);
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: -24px;
    background-size: cover;
    background-position: center center;
    filter: blur(14px) saturate(1.15);
    transform: scale(1.06);
    animation: heroKenBurns 18s ease-in-out infinite alternate;
    will-change: transform;
}

.carousel-item.active .hero-bg {
    animation-play-state: running;
}

@keyframes heroKenBurns {
    from {
        transform: scale(1.05) translateX(0);
    }
    to {
        transform: scale(1.12) translateX(-1.5%);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            105deg,
            rgba(255, 255, 255, 0.93) 0%,
            rgba(255, 255, 255, 0.78) 42%,
            rgba(255, 255, 255, 0.35) 68%,
            rgba(0, 51, 153, 0.15) 100%
        );
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(0, 123, 255, 0.18) 0%, rgba(0, 123, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-visual {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    max-width: 420px;
}

.hero-sharp-frame {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 51, 153, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.85);
    background: #fff;
}

.hero-sharp-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    object-position: center right;
}

.hero-mobile-showcase {
    margin-top: 1.25rem;
    border-radius: 0.85rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(0, 51, 153, 0.18);
}

.hero-mobile-img {
    display: block;
    width: 100%;
    height: clamp(140px, 38vw, 200px);
    object-fit: cover;
    object-position: center;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3.5rem 0 4rem;
}

.hero-content {
    max-width: 560px;
}

.carousel-item.active .hero-content > * {
    animation: heroFadeUp 0.7s ease both;
}

.carousel-item.active .hero-badge {
    animation-delay: 0.05s;
}

.carousel-item.active .hero-title {
    animation-delay: 0.12s;
}

.carousel-item.active .hero-subtitle {
    animation-delay: 0.2s;
}

.carousel-item.active .hero-chips {
    animation-delay: 0.28s;
}

.carousel-item.active .hero-actions {
    animation-delay: 0.36s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.12), rgba(0, 123, 255, 0.1));
    color: #9c1450;
    border: 1px solid rgba(194, 24, 91, 0.22);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-title {
    color: var(--cm-navy);
    font-size: clamp(2rem, 4.5vw, 3.15rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-accent {
    display: block;
    background: linear-gradient(120deg, var(--cm-navy) 0%, #c2185b 45%, var(--cm-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: #495057;
    font-size: 1.12rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    max-width: 480px;
}

.hero-chip {
    display: inline-block;
    background: #fff;
    border: 1px solid rgba(0, 123, 255, 0.2);
    color: var(--cm-navy);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 51, 153, 0.08);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border-radius: 0.5rem;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--cm-blue) 0%, var(--cm-blue-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.35);
}

.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 123, 255, 0.42);
}

.btn-hero-primary .bi {
    transition: transform 0.2s ease;
}

.btn-hero-primary:hover .bi {
    transform: translateX(4px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--cm-navy);
    border: 2px solid rgba(0, 51, 153, 0.15);
}

.btn-hero-secondary:hover {
    background: #fff;
    color: var(--cm-blue);
    border-color: var(--cm-blue);
    transform: translateY(-2px);
}

.hero-stats {
    display: none;
    flex-direction: column;
    gap: 1rem;
    min-width: 190px;
}

@media (min-width: 992px) {
    .hero-visual {
        display: flex;
    }
}

@media (min-width: 1200px) {
    .hero-stats.d-xl-flex {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%;
    }

    .hero-stat-card-alt {
        margin-left: 0;
    }
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 123, 255, 0.15);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 12px 32px rgba(0, 51, 153, 0.12);
    animation: heroFloat 4s ease-in-out infinite;
}

.hero-stat-card-alt {
    animation-delay: 0.8s;
    margin-left: 1.5rem;
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--cm-blue);
    line-height: 1;
}

.hero-stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--cm-muted);
    font-weight: 600;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: auto;
    opacity: 1;
    padding: 0 1rem;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    background-size: 45%;
    filter: invert(27%) sepia(89%) saturate(2476%) hue-rotate(205deg) brightness(97%) contrast(101%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#heroCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#heroCarousel .carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.25);
}

#heroCarousel .carousel-indicators {
    margin-bottom: 1.25rem;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 2rem;
    height: 0.35rem;
    border-radius: 999px;
    border: none;
    background-color: rgba(255, 255, 255, 0.55);
    opacity: 1;
    transition: width 0.25s ease, background-color 0.25s ease;
}

#heroCarousel .carousel-indicators .active {
    width: 2.75rem;
    background-color: var(--cm-blue);
}

/* Sections */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cm-navy);
}

.section-link {
    color: var(--cm-blue);
    text-decoration: none;
    font-weight: 500;
}

.section-link:hover {
    text-decoration: underline;
}

.bg-light-subtle {
    background: var(--cm-light-bg);
}

/* Section background images */
.section-has-bg {
    --section-bg-image: none;
    --section-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9));
    background-color: #fff;
    background-image: var(--section-overlay), var(--section-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-bg-light {
    --section-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 247, 251, 0.92) 100%);
}

.section-bg-soft {
    --section-overlay: linear-gradient(180deg, rgba(244, 247, 251, 0.94) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.section-bg-deal {
    --section-overlay: linear-gradient(120deg, rgba(255, 255, 255, 0.93) 0%, rgba(235, 245, 255, 0.9) 55%, rgba(255, 255, 255, 0.88) 100%);
}

.section-bg-eco {
    --section-overlay: linear-gradient(180deg, rgba(244, 247, 251, 0.94) 0%, rgba(232, 245, 233, 0.88) 100%);
}

.section-bg-brands {
    --section-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.94) 100%);
}

.section-bg-features {
    --section-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(244, 247, 251, 0.9) 100%);
}

.section-bg-app {
    --section-overlay: linear-gradient(135deg, rgba(0, 51, 153, 0.9) 0%, rgba(0, 86, 201, 0.86) 50%, rgba(0, 123, 255, 0.84) 100%);
}

.newsletter-section.section-has-bg {
    background-color: var(--cm-navy);
    --section-overlay: linear-gradient(135deg, rgba(0, 51, 153, 0.93) 0%, rgba(8, 26, 69, 0.95) 100%);
}

.section-has-bg > .container,
.section-has-bg .container {
    position: relative;
    z-index: 1;
}

/* Categories */
.category-grid {
    --cm-cols: 2;
}

@media (min-width: 768px) {
    .category-grid {
        --cm-cols: 4;
    }
}

@media (min-width: 992px) {
    .category-grid {
        --cm-cols: 8;
    }
}

.category-grid-item {
    flex: 0 0 calc(100% / var(--cm-cols));
    max-width: calc(100% / var(--cm-cols));
}

.category-card {
    display: block;
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.12);
    transform: translateY(-2px);
}

.category-img-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.category-img-wrap img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.category-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cm-text);
    line-height: 1.3;
}

.category-card-detailed {
    text-align: left;
    padding: 1rem;
}

.category-card-detailed .category-img-wrap {
    height: 86px;
    margin-bottom: 0.65rem;
}

.category-count {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cm-blue);
    margin-top: 0.35rem;
}

.category-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--cm-muted);
    line-height: 1.35;
    margin-top: 0.25rem;
    min-height: 2.5em;
}

.category-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cm-navy);
}

.category-card-detailed:hover .category-shop-link {
    color: var(--cm-blue);
}

/* Products */
.product-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.product-img-wrap {
    position: relative;
    padding: 1.25rem;
    background: #fff;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: #fff;
    text-transform: uppercase;
}

.badge-hot {
    background: #dc3545;
}

.badge-best {
    background: #198754;
}

.badge-new {
    background: #198754;
}

.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--cm-muted);
}

.btn-wishlist:hover {
    color: #dc3545;
}

.product-body {
    padding: 0 1rem 1.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.product-stars .star {
    color: #ffc107;
    font-size: 0.9rem;
}

.product-stars .star-empty {
    color: #dee2e6;
}

.product-reviews {
    color: var(--cm-muted);
}

.price-current {
    color: var(--cm-blue);
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.price-old {
    color: var(--cm-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.product-actions .btn-add-cart {
    margin-top: 0;
}

.btn-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #0d6e3f 0%, #12a05b 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-buy-now:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(18, 160, 91, 0.35);
    background: linear-gradient(135deg, #0a5a33 0%, #0f8f4d 100%);
}

.checkout-item-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--cm-border);
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.25rem;
}

.checkout-summary .price-current {
    font-size: 1rem;
}

.btn-add-cart {
    margin-top: 0.75rem;
    background: var(--cm-blue);
    color: #fff;
    font-weight: 600;
    border: none;
}

.btn-add-cart:hover {
    background: var(--cm-blue-dark);
    color: #fff;
}

/* Promos */
.promo-banner {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.promo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-deal {
    background: linear-gradient(135deg, #0066cc, #004c99);
}

.promo-eco {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.promo-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    color: #fff;
    max-width: 65%;
}

.promo-kicker {
    font-size: 0.85rem;
    opacity: 0.95;
    display: block;
    margin-bottom: 0.35rem;
}

.promo-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.btn-promo-light {
    background: #fff;
    color: var(--cm-navy);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.btn-promo-light:hover {
    background: #f0f0f0;
    color: var(--cm-navy);
}

/* Features */
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    color: var(--cm-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.feature-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cm-navy);
}

.feature-item p {
    color: var(--cm-muted);
    font-size: 0.9rem;
    margin: 0;
}

.section-subtitle {
    color: var(--cm-muted);
    margin: 0.35rem 0 0;
}

/* Flash deals bar */
.flash-deals-bar {
    background: linear-gradient(90deg, #6a1b5a, var(--cm-navy), var(--cm-blue-dark));
    color: #fff;
    padding: 0.65rem 0;
}

.flash-deals-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.flash-deals-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.flash-deals-marquee {
    flex: 1;
    overflow: hidden;
    min-width: 200px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.flash-deals-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: flashMarquee 28s linear infinite;
    font-size: 0.9rem;
}

.flash-deals-track span strong {
    color: #ffe082;
}

@keyframes flashMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.flash-deals-cta {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.flash-deals-cta:hover {
    color: #ffe082;
}

/* Brands */
.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border: 1px solid var(--cm-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cm-navy);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.brand-pill:hover {
    border-color: var(--cm-blue);
    color: var(--cm-blue);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.12);
}

.brand-pill-active {
    background: var(--cm-blue);
    border-color: var(--cm-blue);
    color: #fff;
}

.brand-pill-active:hover {
    color: #fff;
    background: var(--cm-blue-dark);
    border-color: var(--cm-blue-dark);
}

.catalog-intro-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 32px rgba(0, 51, 153, 0.08);
}

.shop-breadcrumb a {
    color: var(--cm-blue);
    text-decoration: none;
}

.shop-filter-scroll {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.section-catalog:nth-child(even) {
    background-color: transparent;
}

.product-category-tag {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--cm-muted);
    margin-bottom: 0.25rem;
}

/* Deal of the day */
.deal-day-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(0, 51, 153, 0.08);
}

.deal-day-media {
    position: relative;
    background: var(--cm-light-bg);
    border-radius: 0.85rem;
    padding: 1.5rem;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-day-media img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
}

.deal-day-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.deal-day-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--cm-navy);
    margin-bottom: 0.75rem;
}

.deal-day-text {
    color: var(--cm-muted);
    margin-bottom: 1rem;
}

.deal-countdown {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.deal-countdown > div {
    background: var(--cm-light-bg);
    border: 1px solid rgba(0, 123, 255, 0.15);
    border-radius: 0.65rem;
    min-width: 72px;
    text-align: center;
    padding: 0.5rem 0.35rem;
}

.cd-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cm-blue);
    line-height: 1.1;
}

.cd-label {
    display: block;
    font-size: 0.7rem;
    color: var(--cm-muted);
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.deal-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 999px;
    overflow: hidden;
}

.deal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cm-blue), #20c997);
    border-radius: 999px;
}

.deal-day-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* New arrivals horizontal scroll */
.new-arrivals-scroll {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.new-arrivals-track {
    display: flex;
    gap: 1rem;
    min-width: min-content;
}

.new-arrivals-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (min-width: 992px) {
    .new-arrivals-item {
        flex-basis: calc(25% - 0.75rem);
    }

    .new-arrivals-scroll {
        overflow: visible;
    }

    .new-arrivals-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-width: 0;
    }
}

/* How it works */
.how-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 0.85rem;
    padding: 1.75rem 1.25rem;
}

.how-step {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cm-blue);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.how-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    color: var(--cm-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.how-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cm-navy);
}

.how-card p {
    color: var(--cm-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* Testimonials */
.testimonial-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 0.85rem;
    padding: 1.5rem;
}

.testimonial-card p {
    color: #495057;
    line-height: 1.6;
    margin: 0.75rem 0 1rem;
}

.testimonial-card footer {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.testimonial-card footer span {
    color: var(--cm-muted);
    font-size: 0.85rem;
}

/* App CTA */
.app-cta-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(6px);
}

.app-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.app-cta-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.app-cta-text {
    opacity: 0.9;
    max-width: 520px;
}

.app-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    color: var(--cm-navy);
    text-decoration: none;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
}

.store-btn:hover {
    background: #f1f5ff;
    color: var(--cm-navy);
}

.app-cta-visual img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.25));
}

/* Blog */
.blog-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 0.85rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.blog-thumb {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
    background: var(--cm-light-bg);
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--cm-blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 0.25rem;
}

.blog-body {
    padding: 1rem 1.1rem 1.25rem;
}

.blog-body time {
    color: var(--cm-muted);
    font-size: 0.8rem;
}

.blog-body h3 {
    font-size: 1.05rem;
    margin: 0.4rem 0;
    line-height: 1.35;
}

.blog-body h3 a {
    color: var(--cm-navy);
    text-decoration: none;
}

.blog-body h3 a:hover {
    color: var(--cm-blue);
}

.blog-body p {
    color: var(--cm-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.blog-read-more {
    color: var(--cm-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Newsletter */
.newsletter-section {
    color: #fff;
    padding: 2.5rem 0;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newsletter-text > .bi {
    font-size: 2.5rem;
    opacity: 0.9;
}

.newsletter-text h3 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
}

.newsletter-text p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.newsletter-form .form-control {
    min-width: 260px;
    border: none;
    padding: 0.65rem 1rem;
}

.btn-subscribe {
    background: var(--cm-blue);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border: none;
}

.btn-subscribe:hover {
    background: var(--cm-blue-dark);
    color: #fff;
}

/* Footer */
.site-footer {
    background: #0c2461;
    color: rgba(255, 255, 255, 0.85);
}

.footer-brand .brand-text {
    color: #fff;
}

.footer-tagline {
    opacity: 0.85;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact li {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact .bi {
    margin-right: 0.5rem;
    color: var(--cm-blue);
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--cm-blue);
}

.footer-bottom {
    background: #081a45;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991.98px) {
    .hero-bg {
        filter: blur(10px) saturate(1.25);
        background-position: center 35%;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.72) 0%,
                rgba(255, 255, 255, 0.35) 38%,
                rgba(255, 255, 255, 0.08) 58%,
                rgba(0, 51, 153, 0.12) 100%
            );
    }

    .hero-content {
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.95);
        border-radius: 1rem;
        padding: 1.15rem 1.1rem 1rem;
        box-shadow: 0 8px 28px rgba(0, 51, 153, 0.1);
    }

    .hero-slide {
        min-height: auto;
        align-items: stretch;
    }

    .hero-layout {
        padding: 2.5rem 0 3rem;
    }

    .hero-glow {
        width: 280px;
        height: 280px;
        right: -5%;
        opacity: 0.6;
    }

    .promo-content {
        max-width: 100%;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-form .form-control {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.65) 0%,
                rgba(255, 255, 255, 0.28) 45%,
                rgba(255, 255, 255, 0.05) 70%,
                rgba(0, 123, 255, 0.1) 100%
            );
    }

    .hero-content {
        padding: 1rem 0.95rem 0.85rem;
    }

    .hero-mobile-showcase {
        margin-top: 1rem;
    }

    .hero-title {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }
}

.product-name-link {
    color: inherit;
    text-decoration: none;
}

.product-name-link:hover {
    color: var(--cm-blue);
}

.product-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Inner pages */
.text-navy {
    color: var(--cm-navy);
}

.max-w-search {
    max-width: 640px;
}

.content-prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cm-navy);
    margin: 2rem 0 0.75rem;
}

.content-prose h2:first-child {
    margin-top: 0;
}

.content-prose p {
    color: #495057;
    line-height: 1.7;
}

.contact-info-card,
.contact-form-card,
.empty-state-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 0.85rem;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.06);
}

.empty-state-card {
    max-width: 420px;
    padding: 2.5rem 1.5rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    color: var(--cm-blue);
    margin-bottom: 1rem;
}

.product-detail-media {
    position: relative;
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.product-detail-media img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.product-detail-info {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    padding: 1.75rem;
}

.product-detail-desc {
    color: #495057;
    line-height: 1.7;
}

.product-detail-list li {
    margin-bottom: 0.5rem;
    color: var(--cm-muted);
}

.product-detail-list .bi {
    color: var(--cm-blue);
    margin-right: 0.45rem;
}

.qty-input {
    width: 80px;
}

.product-gallery-main {
    margin-bottom: 0.75rem;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-gallery-thumb {
    border: 2px solid var(--cm-border);
    border-radius: 0.5rem;
    padding: 0.25rem;
    background: #fff;
    width: 84px;
    height: 84px;
    overflow: hidden;
    cursor: pointer;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--cm-blue);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(0, 123, 255, 0.08);
    color: var(--cm-navy);
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 123, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .hero-stat-card,
    .carousel-item.active .hero-content > *,
    .flash-deals-track {
        animation: none !important;
    }
}

/* ========== Mobile & touch-friendly ========== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.has-mobile-nav {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

body {
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

button,
.btn,
.header-action,
.mobile-bottom-link,
.mobile-nav-link,
.product-gallery-thumb,
.nav-link {
    -webkit-tap-highlight-color: transparent;
}

.form-control,
.form-select,
.search-input {
    font-size: 16px;
}

.btn-mobile-menu {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--cm-border);
    background: #fff;
    color: var(--cm-navy);
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.header-action-sm {
    font-size: 1.25rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-form-mobile {
    max-width: none;
}

.mobile-offcanvas {
    width: min(320px, 88vw);
}

.mobile-nav-list li {
    margin-bottom: 0.35rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--cm-text);
    font-weight: 600;
    min-height: 48px;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--cm-blue);
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--cm-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 56px;
    text-decoration: none;
    color: var(--cm-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.mobile-bottom-link i {
    font-size: 1.25rem;
}

.mobile-bottom-link.active {
    color: var(--cm-blue);
}

@media (max-width: 991.98px) {
    .brand-logo-img {
        height: 44px;
        max-width: 160px;
        padding: 0.2rem 0.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .section-link.align-self-start {
        align-self: flex-start !important;
    }

    .flash-deals-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .flash-deals-marquee {
        width: 100%;
        min-width: 0;
    }

    .flash-deals-cta {
        display: inline-flex;
        justify-content: center;
        min-height: 44px;
        align-items: center;
    }

    .category-grid {
        --cm-cols: 2;
    }

    .category-card-detailed {
        min-height: 100%;
    }

    .category-desc {
        min-height: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .promo-content {
        padding: 1.25rem;
        max-width: 100%;
    }

    .promo-title {
        font-size: 1.1rem;
    }

    .promo-banner {
        min-height: 180px;
    }

    .deal-day-card {
        padding: 1rem;
    }

    .deal-day-actions {
        flex-direction: column;
    }

    .deal-day-actions .btn,
    .deal-day-actions a {
        width: 100%;
        justify-content: center;
    }

    .deal-countdown {
        flex-wrap: wrap;
    }

    .newsletter-inner {
        flex-direction: column;
        align-items: stretch !important;
    }

    .newsletter-text {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .form-control,
    .newsletter-form .btn-subscribe {
        width: 100%;
    }

    .app-cta-card {
        padding: 1.25rem;
    }

    .app-store-buttons {
        flex-direction: column;
    }

    .store-btn {
        justify-content: center;
        min-height: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 12%;
    }

    #heroCarousel .carousel-control-prev-icon,
    #heroCarousel .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }

    .product-detail-info,
    .product-detail-media {
        padding: 1rem;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .product-detail-actions .btn,
    .product-detail-actions a {
        width: 100%;
    }

    .product-actions {
        grid-template-columns: 1fr 1fr;
    }

    .product-actions .btn-buy-now,
    .product-actions .btn-add-cart {
        font-size: 0.82rem;
        padding: 0.55rem 0.4rem;
        min-height: 44px;
    }

    .shop-filter-scroll {
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .brand-pill {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .site-footer {
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.75rem;
    }

    .top-bar-left span:first-child {
        display: none;
    }

    .top-bar-right {
        gap: 0.65rem !important;
    }

    .top-bar-right a {
        font-size: 0.72rem;
    }

    .top-social {
        display: none !important;
    }

    .hero-slide {
        min-height: auto;
    }

    .hero-layout {
        padding: 1.75rem 0 2.25rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .container {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
}

@media (max-width: 575.98px) {
    .product-actions {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        min-height: auto;
    }

    .site-preloader-logo {
        height: 52px;
    }

    .site-preloader-text {
        font-size: 0.78rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .catalog-intro-card {
        padding: 1.25rem 1rem;
    }

    .product-gallery-thumb {
        width: 72px;
        height: 72px;
    }

    .checkout-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .category-grid {
        --cm-cols: 3;
    }
}

@media (min-width: 992px) {
    body.has-mobile-nav {
        padding-bottom: 0;
    }
}
