@font-face {
    font-family: 'Inter';
    src: url('../font/inter.woff2') format('woff2'), url('../font/inter.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/poppins.woff2') format('woff2'), url('../font/poppins.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-600: #0284c7;
    --brand-700: #0369a1;
    --brand-800: #075985;
    --sand-50: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --radius-card: 1rem;
    --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

::-webkit-scrollbar-button {
    display: none;
}

body.site-body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f1f6fa 0%, #eff4fa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 72px;
}

@media (min-width: 992px) {
    body.site-body {
        padding-bottom: 0;
    }
}

.text-primary-brand {
    color: var(--brand-700) !important;
}

.btn-primary-brand {
    --bs-btn-bg: var(--brand-600);
    --bs-btn-border-color: var(--brand-600);
    --bs-btn-hover-bg: var(--brand-700);
    --bs-btn-hover-border-color: var(--brand-700);
    --bs-btn-active-bg: var(--brand-800);
    --bs-btn-active-border-color: var(--brand-800);
    --bs-btn-color: #fff;
    border-radius: 999px;
    font-weight: 600;
    padding-inline: 1.25rem;
}

.btn-outline-primary-brand {
    color: var(--brand-700);
    border-color: rgba(3, 105, 161, 0.35);
    border-radius: 999px;
    font-weight: 600;
}

.btn-outline-primary-brand:hover {
    background: rgba(14, 165, 233, 0.12);
    color: var(--brand-800);
}

.navbar-brand {
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.search-pill {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 2px 2px 10px;
    gap: 4px;
}

.search-pill .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.badge-cart {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    min-width: 1.1rem;
    height: 1.1rem;
    line-height: 1.1rem;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-pills .btn {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.25s ease;
}

.filter-pills .btn-outline-secondary {
    border-color: rgba(100, 116, 139, 0.2);
    color: var(--muted);
    background: #fff;
}

.filter-pills .btn-outline-secondary:hover {
    background: #f1f5f9;
    border-color: rgba(100, 116, 139, 0.4);
    color: var(--ink);
}

.filter-pills .btn-primary-brand {
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: radial-gradient(1200px 400px at 10% -10%, rgba(14, 165, 233, 0.35), transparent),
        linear-gradient(135deg, #0369a1 0%, #0ea5e9 45%, #38bdf8 100%);
    color: #fff;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-soft);
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-blob {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -120px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    filter: blur(2px);
}

.banner-slider .carousel-item {
    height: 180px;
    padding: 0;
    background: transparent;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .banner-slider .carousel-item {
        height: 320px;
        padding: 0;
    }
}

#carouselBanners {
    border-radius: var(--radius-card);
    overflow: hidden;
}

.banner-slider .carousel-item a {
    display: block;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.banner-slider .carousel-control-prev,
.banner-slider .carousel-control-next {
    z-index: 5;
    width: 12%;
    opacity: 0.8;
}

.banner-slider .carousel-control-prev-icon,
.banner-slider .carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.banner-slider .carousel-indicators {
    z-index: 10;
    bottom: 0.5rem;
}

.banner-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    border: 1.5px solid #fff;
    background-color: transparent;
    opacity: 0.5;
}

.banner-slider .carousel-indicators .active {
    opacity: 1;
    background-color: #fff;
    transform: scale(1.15);
}

.banner-premium-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0f172a;
    overflow: hidden;
}

.banner-premium-fallback::before,
.banner-premium-fallback::after,
.banner-premium-fallback-texture {
    content: '';
    position: absolute;
    inset: -100%;
    opacity: 0.8;
}

.banner-premium-fallback::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 40%);
    filter: blur(80px);
    animation: xperiaFlow 25s infinite alternate ease-in-out;
}

.banner-premium-fallback::after {
    background:
        radial-gradient(circle at 50% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(244, 63, 94, 0.1) 0%, transparent 30%);
    filter: blur(80px);
    animation: xperiaFlow 35s infinite alternate-reverse ease-in-out;
    opacity: 0.5;
}

.banner-premium-fallback-texture {
    z-index: 2;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 15px);
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    pointer-events: none;
    animation: textureFloat 20s infinite linear;
}

.banner-premium-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.35);
    color: #fff;
    pointer-events: none;
}

.banner-premium-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.banner-premium-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    max-width: 85%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .banner-premium-content {
        padding: 3rem;
    }

    .banner-premium-title {
        font-size: 2.75rem;
    }

    .banner-premium-subtitle {
        font-size: 1.25rem;
    }
}

@keyframes xperiaFlow {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(5%, 10%) rotate(5deg) scale(1.1);
    }

    66% {
        transform: translate(-5%, 5%) rotate(-5deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.category-card {
    border: none;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-soft);
    background: #fff;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.12);
}

.category-card img {
    height: 120px;
    object-fit: cover;
    width: 100%;
}

.category-card .icon-wrap {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .icon-wrap i {
    transform: scale(1.1) rotate(-5deg);
}

.product-card {
    border: 1px solid rgba(93, 109, 131, 0.25);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #fff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(32, 118, 158, 0.45);
}

.product-card .thumb-wrap {
    position: relative;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.product-card img {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
}

.flash-ribbon {
    position: absolute;
    top: 12px;
    left: -36px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 40px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.featured-ribbon {
    position: absolute;
    top: 22px;
    left: -35px;
    width: 140px;
    text-align: center;
    background: linear-gradient(90deg, #758293, #98a2ae);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.35);
}

.price-old {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer {
    background: #020617;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

.footer-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 3rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
}

.mobile-bottom-nav a span {
    font-size: 1.15rem;
    line-height: 1;
}

.mobile-bottom-nav a.active {
    color: var(--brand-700);
    font-weight: 600;
}

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
    border-radius: 0.5rem;
}

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

    100% {
        background-position: 0 0;
    }
}

.breadcrumb-modern {
    --bs-breadcrumb-divider: '›';
    font-size: 0.9rem;
}

/* Gallery & Lightbox */
.product-gallery-container {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.main-display {
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.main-display:hover .gallery-overlay {
    background: rgba(15, 23, 42, 0.3);
    opacity: 1;
}

.thumb-strip {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-600) transparent;
}

.gallery-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.gallery-thumb.active {
    border-color: var(--brand-600);
}

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

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    font-size: 1.5rem;
}

/* Lightbox */
.product-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

.lightbox-content {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.lightbox-nav .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-nav .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.lightbox-nav .nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.lightbox-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-dots .dot.active {
    width: 24px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.lightbox-media-item {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.img-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f6f7fb;
    color: #4b548c;
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    font-size: 2rem;
    border-radius: inherit;
}

.img-fallback i {
    margin-bottom: 8px;
    opacity: 0.5;
}

.img-fallback span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-milestone {
    position: relative;
    margin: 2rem 0;
}

.milestone-track {
    position: absolute;
    top: 25px;
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.milestone-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--brand-600);
    transition: width 0.5s ease-in-out;
}

.milestone-steps {
    z-index: 2;
}

.milestone-step {
    width: 25%;
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.milestone-step.active .step-icon {
    border-color: var(--brand-600);
    color: var(--brand-600);
    background: #f0f9ff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.milestone-step.active .step-label {
    color: var(--brand-700);
}

.step-label {
    color: #64748b;
    transition: color 0.3s ease;
}

@media (max-width: 576px) {
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .milestone-track {
        top: 20px;
    }
}

.ls-1 {
    letter-spacing: 1px;
}

.border-bottom-subtle {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}