/* ═══════════════════════════════════════════════════════════════════
   THEME — Choose ONE theme below.
   Keep the theme you want ACTIVE and comment out the other two.
   ═══════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════
   🔴 RED THEME
   Primary: #9f1d21
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --brand-50: #fdf2f2;
    --brand-100: #f9e3e4;
    --brand-200: #f3c7c9;
    --brand-300: #e99a9e;
    --brand-400: #d96a70;
    --brand-500: #bd3f45;
    --brand-600: #9f1d21;
    --brand-700: #7f171a;

    --accent-100: #f9e3e4;
    --accent-200: #f3c7c9;
    --accent-300: #e99a9e;
    --accent-700: #8f191d;

    --grad-from: #bd3f45;
    --grad-to: #9f1d21;
    --grad-rgb: 159 29 33;

    --dark: #06121f;
    --band: #fdf2f2;
    --thumb: #f9eeee;
    --card-soft: #fdf6f6;
    --card-soft-2: #f8eaea;

    --success: #16a34a;
    --danger: #dc2626;
    --danger-50: #fef2f2;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    --danger-soft: 239 68 68;
    --whatsapp: #25d366;

    --brand-nav: #7f171a;
    --brand-nav-hover: #701318;
    --primary: #9f1d21;
    --primary-dark: #7f171a;
}



/* ═══════════════════════════════════════════════════════════════════
   🟡 YELLOW THEME
   Primary: #fee161
   Brand Guideline Shades:
   #dea94a / #c67b37 / #b1512a
   ═══════════════════════════════════════════════════════════════════ */

/*
:root {
    --brand-50: #fffdf0;
    --brand-100: #fff8d6;
    --brand-200: #fff1ad;
    --brand-300: #ffea85;
    --brand-400: #f8d66a;
    --brand-500: #dea94a;
    --brand-600: #fee161;
    --brand-700: #c67b37;

    --accent-100: #fff8d6;
    --accent-200: #fff1ad;
    --accent-300: #f8d66a;
    --accent-700: #b1512a;

    --grad-from: #c67b37;
    --grad-to: #fee161;
    --grad-rgb: 254 225 97;

    --dark: #06121f;
    --band: #fffdf2;
    --thumb: #fff9df;
    --card-soft: #fffdf2;
    --card-soft-2: #fff7d8;

    --success: #16a34a;
    --danger: #dc2626;
    --danger-50: #fef2f2;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    --danger-soft: 239 68 68;
    --whatsapp: #25d366;

    --brand-nav: #c67b37;
    --brand-nav-hover: #b1512a;
    --primary: #fee161;
    --primary-dark: #dea94a;
}
*/


/* ═══════════════════════════════════════════════════════════════════
   🔵 BLUE THEME
   Primary: #2563eb
   ═══════════════════════════════════════════════════════════════════ */
/*
:root {

    --brand-50: #f0f7ff;
    --brand-100: #e1efff;
    --brand-200: #c7e1ff;
    --brand-300: #a4ccf7;
    --brand-400: #7eb5ed;
    --brand-500: #5a9de0;
    --brand-600: #3f82c7;
    --brand-700: #3169a3;

    --accent-100: #e8f3ff;
    --accent-200: #d3e9fc;
    --accent-300: #b5d8f5;
    --accent-700: #3975ad;


    --grad-from: #5a9de0;
    --grad-to: #3f82c7;
    --grad-rgb: 63 130 199;


    --dark: #10243a;
    --band: #f2f8ff;
    --thumb: #edf6ff;
    --card-soft: #f7fbff;
    --card-soft-2: #edf6ff;


    --success: #16a34a;
    --danger: #dc2626;
    --danger-50: #fef2f2;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    --danger-soft: 239 68 68;
    --whatsapp: #25d366;


    --brand-nav: #3f82c7;
    --brand-nav-hover: #3169a3;
    --primary: #3f82c7;
    --primary-dark: #3169a3;
}

*/
/* ── TYPOGRAPHY: Baloo Da 2 ────────────────────────────────────────
   Weights: 400 (Regular) / 500 (Medium) / 600 (Semibold)
   Line Height = Font Size + 2px
   Letter Spacing / Tracking = -0.3px
   ─────────────────────────────────────────────────────────────── */
body,
button,
input,
select,
textarea {
    font-family: 'Baloo Da 2', system-ui, sans-serif;
    letter-spacing: -0.3px;
}

body {
    line-height: calc(1em + 2px);
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

.ui-glass-button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-top-color: rgba(255, 255, 255, 0.85);
    border-left-color: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    background: var(--danger-50);
    color: var(--danger-800);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
    overflow: hidden;
}

.ui-glass-button::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.ui-glass-button:hover {
    transform: translateY(-1px);
    border-color: rgb(var(--danger-soft) / 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--danger-50) 100%);
    color: var(--danger-800);
}

.ui-glass-button:hover::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), transparent 58%);
}

.ui-glass-button:focus-visible {
    outline: 2px solid rgb(var(--danger-soft) / 0.35);
    outline-offset: 2px;
}

@keyframes brandMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.brand-marquee-track {
    animation: brandMarquee 34s linear infinite;
}

.brand-marquee:hover .brand-marquee-track {
    animation-play-state: paused;
}

.filter-chip {
    border: 1px solid rgb(226 232 240);
    border-radius: 9999px;
    background: #fff;
    color: rgb(51 65 85);
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.65rem 1rem;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: rgb(254 202 202);
    background: rgb(254 242 242);
    color: rgb(185 28 28);
}

.filter-chip[data-active="true"] {
    border-color: rgb(220 38 38);
    background: rgb(220 38 38);
    color: #fff;
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.18);
}

@media (max-width: 640px) {
    .filter-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
}

.category-tab {
    transition: all 0.2s ease;
}

.category-tab[data-active="true"] {
    border-color: rgb(220 38 38);
    background: rgb(220 38 38);
    color: #fff;
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.18);
}

.variant-chip[data-active="true"] {
    background: linear-gradient(180deg, var(--grad-from), var(--grad-to)) !important;
    color: #fff !important;
    border-color: var(--grad-to) !important;
}
.variant-chip[data-active="true"] span { color: inherit !important; }

.gallery-thumb {
    transition: all 0.2s ease;
}

.gallery-thumb[data-active="true"] {
    border-color: var(--grad-to);
    opacity: 1;
}

.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.zoom-container img {
    transition: transform 0.05s linear;
    transform-origin: 0 0;
}

.zoom-lens {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}



@media (max-width: 640px) {
    .zoom-container {
        cursor: default;
    }
    .zoom-lens {
        display: none !important;
    }
    .gallery-scroll {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .gallery-scroll > * {
        scroll-snap-align: start;
    }
}

.lightbox-open {
    overflow: hidden;
}

#bannerSection .swiper-pagination {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(0,0,0,0.4);
}
#bannerSection .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.45);
    opacity: 1;
    border-radius: 9999px;
    transition: all 0.3s;
    margin: 0 !important;
}
#bannerSection .swiper-pagination-bullet-active {
    width: 16px;
    background: #fff;
    border-radius: 9999px;
}
#bannerSection .swiper-slide {
    height: auto;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 80px;
    }
}

.stat-card .stat-icon.blue {
    background: var(--danger-50);
    color: var(--primary);
}

.badge-primary {
    background: var(--danger-50);
    color: var(--danger-700);
}

.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

table.data-table .order-id {
    color: var(--primary);
}

.dash-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
}

.dash-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.dash-card .card-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-card .card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card .card-body {
    padding: 16px 20px 20px;
}

.chart-box {
    position: relative;
    height: 280px;
}

.chart-box-sm {
    position: relative;
    height: 220px;
}

.greeting {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    margin-top: 2px;
}

.stat-mini {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-mini .sm-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-mini .sm-icon i {
    width: 18px;
    height: 18px;
}

.stat-mini .sm-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-mini .sm-value {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1px;
}

.product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.badge-emerald {
    background: #ecfdf5;
    color: #065f46;
}

.badge-amber {
    background: #fffbeb;
    color: #92400e;
}

.badge-slate {
    background: #f1f5f9;
    color: #475569;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-ghost:hover {
    background: #fef2f2;
    border-color: var(--primary);
}

.cat-row {
    cursor: pointer;
}

.cat-row:hover {
    background: #fef2f2;
}

#categorySidebar .cat-row:last-child {
    border-bottom: 0;
}

.category-bar::-webkit-scrollbar { display: none; }
.category-bar { -ms-overflow-style: none; scrollbar-width: none; }

.nav-link {
    position: relative;
    display: inline-flex;
    font-weight: 600;
    align-items: center;
    height: 38px;
    padding: 0 1.1rem;
    font-size: 0.9375rem;
    color: #334155;
    border-radius: 9999px;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-600);
    background: #ffffff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-600) 12%, transparent);
}

#categorySidebar {
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

#categorySidebar::-webkit-scrollbar { width: 4px; }

#categorySidebar::-webkit-scrollbar-track { background: transparent; }

#categorySidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.pagination-info {
    font-size: 13px;
    color: #94a3b8;
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
}

.whatsapp-pulse {
    animation: whatsappWave 2s ease-in-out infinite;
}

.whatsapp-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: whatsappRing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsappWave {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

@keyframes whatsappRing {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.product-brand img {
    max-height: 40px;
    object-fit: contain;
    padding: 4px 12px;
}

.toast-enter {
    transform: translateX(120%);
    opacity: 0;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease;
}
.toast-enter.toast-show {
    transform: translateX(0);
    opacity: 1;
}
.toast-enter.toast-leave {
    transform: translateX(80%) scale(0.95);
    opacity: 0;
    transition: transform 250ms ease-in, opacity 200ms ease;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.cart-bump {
    animation: cartBump 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* SweetAlert2 Toast Customization */
.swal2-container.swal2-top-end .swal2-popup.swal2-toast,
.swal2-popup.swal2-toast {
    padding: 1.1rem 1.35rem !important;
    min-height: 72px !important;
    width: min(360px, calc(100vw - 2rem)) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.15) !important;
    align-items: center !important;
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}

.swal2-popup.swal2-toast .swal2-html-container {
    font-size: 0.875rem !important;
    margin: 0.25rem 0 0 0 !important;
    padding: 0 !important;
    color: #475569 !important;
    line-height: 1.3 !important;
}

.swal2-popup.swal2-toast .swal2-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
    margin: 0 0.85rem 0 0 !important;
    min-width: 2.25rem !important;
}

.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content {
    font-size: 1.25rem !important;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    height: 3px !important;
    background-color: var(--brand-500) !important;
}
