:root {
    --secondary: #6C9EBF;
    --cta: var(--primary);
    --white: #ffffff;
    --dark: #1E2B3A;
    --header-bg: #FFFFFF;
    --container-width: 1280px
}

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

body {
    background-color: #f8fafc;
    color: var(--dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

[x-cloak] {
    display: none !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f1f1f1;
    transition: height 0.3s ease;
}

@media (max-width:768px) {
    .navbar {
        height: 65px;
    }
}

.logo-text span {
    color: var(--primary) !important;
}

.category-circle-item.active .circle-icon-box {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.hero-wrapper {
    margin-top: 20px;
}

@media (max-width:768px) {
    .hero-wrapper {
        margin-top: 12px;
    }

    #main-content {
        padding-top: 5px;
    }
}

.hero {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
    z-index: 1
}

.hero-slide.active {
    transform: translateX(0);
    z-index: 2
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px
}

.skip-link {
    position: absolute;
    transform: translateY(-100%);
    z-index: 10001;
    transition: transform .3s ease
}

.header-search-nexus {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    margin: 0 30px;
}

.btn-header-category {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn-header-category:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-soft);
}

.btn-header-category i {
    font-size: 14px;
}

@media (max-width:1024px) {
    .header-search-nexus {
        margin: 0 15px;
    }

    .btn-header-category span {
        display: none;
    }

    .btn-header-category {
        padding: 10px 12px;
    }
}

@media (max-width:768px) {
    .btn-header-category {
        display: none;
    }
}

.mega-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

@media (max-width:768px) {
    .mega-menu-overlay {
        top: 65px;
    }
}

.mega-menu-content {
    padding: 40px 0;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.mega-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.mega-title:hover {
    color: var(--primary);
}

.mega-list {
    list-style: none;
    padding: 0;
}

.mega-list li {
    margin-bottom: 8px;
}

.mega-list a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.mega-list a:hover {
    color: #1e293b;
    padding-left: 4px;
}

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
}

.bottom-sheet-content {
    background: #ffffff;
    width: 100%;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 12px auto;
}

.sheet-header {
    padding: 10px 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.sheet-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.btn-close-sheet {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
}

.sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.sheet-category-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sheet-parent {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

.sheet-parent span {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.sheet-parent i {
    font-size: 18px;
}

.sheet-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 30px;
}

.sheet-sub-pill {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[x-cloak] {
    display: none !important;
}

.empty-branch {
    opacity: 0.6;
}

.coming-soon {
    font-size: 9px;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.htmx-indicator {
    display: none;
    pointer-events: none;
}

.htmx-request .htmx-indicator {
    display: flex;
    pointer-events: auto;
}

.htmx-request.htmx-indicator {
    display: flex;
    pointer-events: auto;
}

.catalog-wrapper-nexus {
    min-height: 800px;
}

.hero-wrapper {
    min-height: auto;
    margin-bottom: 0;
}

@media (max-width:768px) {
    .hero-wrapper {
        min-height: auto;
        margin-bottom: 0;
    }
}

@media (max-width:1023px) {

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

    .catalog-layout-full {
        margin-top: 0 !important;
    }
}

@media (max-width:767px) {

    .product-grid,
    .skeleton-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .f-badge {
        font-size: 12px;
    }

    .f-timer-pill {
        padding: 4px 10px;
    }

    .f-countdown-mono {
        font-size: 14px;
    }

    .info-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

.toast-safe-zone {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.catalog-wrapper-nexus {
    padding-bottom: 60px !important;
}

.hero-wrapper {
    margin-bottom: 0 !important;
}

.catalog-layout-full {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-top: 30px !important;
    padding-top: 5px !important;
}

.catalog-main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#main-content {
    padding-top: 0 !important;
}

.catalog-layout-full.container {
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

.section-header-lite {
    margin-bottom: 12px;
}

.section-header-lite h3 {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header-lite i {
    color: #6366f1;
}

.voucher-discovery-nexus {
    margin: 5px 0 20px 0;
}

.voucher-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 5px 0;
}

.voucher-scroll-container::-webkit-scrollbar {
    display: none;
}

.voucher-card-premium {
    min-width: 240px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: transform 0.2s;
}

.voucher-card-premium:active {
    transform: scale(0.96);
}

.voucher-left {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    width: 80px;
}

.voucher-left .v-type {
    font-size: 18px;
    font-weight: 900;
}

.voucher-left .v-label {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
}

.voucher-dashed {
    width: 1px;
    border-left: 2px dashed rgba(255, 255, 255, 0.3);
    height: 100%;
}

.voucher-right {
    padding: 12px 15px;
    flex: 1;
    position: relative;
}

.voucher-right::before,
.voucher-right::after {
    content: '';
    position: absolute;
    left: -8px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
}

.voucher-right::before {
    top: -8px;
}

.voucher-right::after {
    bottom: -8px;
}

.v-name {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 2px;
}

.v-info {
    font-size: 10px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.v-code-badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.flash-sale-integrated {
    margin-top: 40px !important;
    margin-bottom: 30px !important;
    padding-bottom: 10px !important;
}

.flash-header-pilled {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.f-info-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.f-badge {
    background: #ef4444;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.f-timer-pill {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 5px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.f-label {
    font-size: 11px;
    font-weight: 700;
    color: #b91c1c;
    text-transform: uppercase;
}

.f-countdown-mono {
    font-family: monospace;
    font-weight: 800;
    font-size: 16px;
    color: #ef4444;
    display: flex;
    gap: 2px;
}

.f-link a {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.f-link a:hover {
    color: #ef4444;
}

.product-card.flash-mode {
    border-color: #fecaca;
}

.product-card.flash-mode:hover {
    box-shadow: 0 12px 25px -5px rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.f-tag-discount {
    position: absolute;
    top: 0;
    left: 0;
    background: #fbbf24;
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}

.price-old {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}

.f-stock-wrapper,
.catalog-stock-wrapper {
    margin-top: 10px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.f-progress {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.f-progress-bar {
    height: 100%;
    background: #fbbf24;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.f-progress-bar.critical {
    background: #ef4444;
}

.f-stock-text {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

@media (max-width:767px) {
    .f-info-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .f-badge {
        font-size: 12px;
    }

    .f-timer-pill {
        padding: 4px 10px;
    }

    .f-countdown-mono {
        font-size: 14px;
    }

    .flash-sale-integrated {
        margin-top: 15px !important;
        margin-bottom: 0 !important;
    }

    .catalog-layout-full {
        margin-top: 0 !important;
        gap: 0 !important;
    }

    .catalog-main-content {
        margin-top: 0 !important;
    }
}

.discovery-bar-lite {
    border-bottom: 1px solid #f1f5f9;
    padding: 15px 0;
    background: #ffffff;
    margin-top: 10px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.discovery-bar-lite.is-sticky {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(241, 245, 249, 0.5);
    padding: 8px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.lite-pills-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lite-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.lite-pills-list {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    padding: 2px 0;
}

.lite-pills-list::-webkit-scrollbar {
    display: none;
}

.lite-category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.lite-category-pill:hover {
    border-color: #6366f1;
    color: #1e293b;
    transform: translateY(-1px);
}

.lite-category-pill.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lite-pill-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.lite-category-pill.active .lite-pill-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.lite-category-pill.active .lite-pill-icon i {
    color: #ffffff !important;
}

.search-info-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.info-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.info-text {
    font-size: 14px;
    color: #475569;
}

.result-count {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 8px;
}

.btn-clear-search {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.skeleton-card {
    background: #f1f5f9;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

@media (max-width:1199px) {

    .product-grid,
    .skeleton-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-slider-nexus {
    position: relative;
    height: 480px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #f1f5f9;
}

.hero-slides-container {
    height: 100%;
    width: 100%;
}

.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-slide-content {
    color: #ffffff;
    padding: 0 40px;
    max-width: 700px;
}

.hero-title-premium {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle-premium {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.btn-hero-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #1e293b;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-hero-premium:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width:768px) {
    .hero-slider-nexus {
        height: 350px;
        border-radius: 12px;
    }

    .hero-title-premium {
        font-size: 32px;
    }

    .hero-subtitle-premium {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn-hero-premium {
        padding: 12px 24px;
        font-size: 14px;
    }
}

.animate-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-up-delay {
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-up-delay-2 {
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.hero-nav-btn:hover {
    background: #fff;
    color: #1e293b;
}

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

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

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator-dot {
    width: 25px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    background: #ffffff;
    width: 40px;
}