/* ============================================================
   T-REX Fireworks - Main Stylesheet
   ============================================================ */

:root {
    --primary-color: #d4145a;
    --primary-dark: #b01048;
    --secondary-color: #ffc107;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #777777;
    --success-green: #28a745;
    --star-gold: #ffb400;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --whatsapp-green: #25d366;
    --gradient-festive: linear-gradient(135deg, #d4145a, #ffc107);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: #ffffff;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== TOP BAR ===== */
.top-bar {
    background: #ffffff;
    color: #000000;
    padding: 6px 0;
    font-size: 12px;
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid #e0e0e0;
}
.top-bar-link {
    color: #000000;
    margin-left: 15px;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 600;
}
.top-bar-link:hover { color: var(--primary-color); opacity: 1; }
.top-bar-link i { margin-right: 4px; }

/* Ticker */
.ticker-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 22px;
}
.ticker-label {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 3px;
}
.ticker-content {
    overflow: hidden;
    flex: 1;
}
.ticker-content span {
    display: inline-block;
    white-space: nowrap;
    color: #000000;
    font-weight: 500;
    animation: ticker 30s linear infinite;
    font-size: 12px;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 999;
}
.sticky-header.stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

.sticky-header.stuck .logo-img {
    width: 70px;
    height: 70px;
    transition: width 0.3s ease, height 0.3s ease;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Main Navigation */
.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-nav .nav-item { position: relative; }
.main-nav .nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(212, 20, 90, 0.06);
}
.nav-arrow { font-size: 10px; margin-left: 4px; }

/* Nav Dropdown */
.has-dropdown .dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    min-width: 180px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    overflow: hidden;
}
.has-dropdown .dropdown-menu-custom li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}
.has-dropdown .dropdown-menu-custom li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 24px;
}
.has-dropdown:hover .dropdown-menu-custom { display: block; }

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.header-phone {
    display: flex;
    align-items: center;
}
.phone-numbers a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    text-decoration: none;
}
.phone-numbers a i {
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
}
.phone-numbers a:hover { color: var(--primary-color); }

.header-icon-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}
.header-icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Header Search Bar */
.header-search-bar {
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}
.search-form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.search-input {
    flex: 1;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 14px;
    outline: none;
}
.search-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
}
.search-close {
    background: #ccc;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

/* Hamburger */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.hamburger-btn:hover { background: rgba(212,20,90,0.08); }
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
    border-radius: 2px;
    transform-origin: center;
}
/* Animated X when sidebar is open */
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== CATEGORY BAR ===== */
.category-bar {
    background: var(--gradient-festive);
    padding: 14px 0;
}

/* Department Dropdown */
.dept-dropdown { position: relative; }
.dept-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 20px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    width: auto;
    height: 52px;
    white-space: nowrap;
    transition: all 0.3s;
}
.dept-btn:hover { background: rgba(0,0,0,0.5); }
.dept-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 260px;
    max-height: 420px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border: 1px solid var(--border-color);
}
.dept-menu.open { display: block; animation: fadeInDown 0.2s ease; }
.dept-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}
.dept-item:hover { background: #fef9f0; color: var(--primary-color); padding-left: 22px; }
.dept-icon { width: 28px; height: 28px; object-fit: contain; }

/* Category Bar Search */
.cat-search-form { display: flex; }
.cat-search-input {
    flex: 1;
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 14px 22px;
    font-size: 15px;
    outline: none;
    height: 52px;
}
.cat-search-btn {
    background: var(--dark-bg);
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    height: 52px;
    transition: background 0.3s;
}
.cat-search-btn:hover { background: #000; }
.cat-cart-link {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.cat-cart-link:hover { color: var(--secondary-color); }
.cat-cart-link i { margin-right: 6px; }

/* ===== MOBILE SIDEBAR ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    backdrop-filter: blur(2px);
}
.mobile-overlay.open { display: block; }
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 290px;
    height: 100vh;
    height: 100dvh; /* dynamic viewport — accounts for mobile browser chrome */
    background: var(--dark-bg);
    z-index: 9999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}
.mobile-sidebar.open { left: 0; }
.mobile-sidebar-header {
    background: var(--darker-bg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.mobile-logo { max-height: 48px; }
.mobile-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mobile-close:hover { background: rgba(255,255,255,0.2); }

/* Sidebar search */
.mobile-sidebar-search {
    background: var(--darker-bg);
    padding: 10px 14px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mob-search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 0 6px 0 14px;
    gap: 8px;
}
.mob-search-icon { color: rgba(255,255,255,0.5); font-size: 13px; flex-shrink: 0; }
.mob-sidebar-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
}
.mob-sidebar-search-input::placeholder { color: rgba(255,255,255,0.4); }
.mob-sidebar-search-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.mob-sidebar-search-btn:hover { background: var(--primary-dark); }

/* Sidebar body */
.mobile-sidebar-body { flex: 1; overflow-y: auto; }
.mobile-user {
    color: var(--secondary-color);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}
.mobile-nav-link:hover { color: var(--secondary-color); padding-left: 22px; background: rgba(255,255,255,0.05); }
.mobile-nav-link i { width: 18px; color: var(--primary-color); font-size: 14px; flex-shrink: 0; }
.mob-link-danger { color: rgba(255, 100, 100, 0.85); }
.mob-link-danger i { color: rgba(255,100,100,0.8); }

/* Categories accordion */
.mobile-acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    transition: background 0.2s;
}
.mobile-acc-toggle:hover { background: rgba(255,255,255,0.1); }
.mobile-acc-toggle span { display: flex; align-items: center; gap: 10px; }
.mobile-acc-toggle span i { width: 18px; color: var(--primary-color); font-size: 14px; }
.mobile-acc-chevron { transition: transform 0.25s ease; font-size: 12px; color: rgba(255,255,255,0.4); }
.mobile-acc-chevron.rotated { transform: rotate(180deg); }
.mobile-cats-content { background: rgba(0,0,0,0.2); }
.mobile-cat-link { padding-left: 36px; font-size: 12px; color: rgba(255,255,255,0.65); }
.mobile-cat-link i { color: rgba(255,255,255,0.3); font-size: 11px; }
.mobile-cat-link:hover { color: var(--secondary-color); padding-left: 42px; }

/* Sidebar footer CTA */
.mobile-sidebar-footer {
    flex-shrink: 0;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: var(--darker-bg);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 10px;
}
.mob-sidebar-phone,
.mob-sidebar-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}
.mob-sidebar-phone {
    background: var(--primary-color);
    color: #fff;
}
.mob-sidebar-phone:hover { background: var(--primary-dark); color: #fff; }
.mob-sidebar-whatsapp {
    background: var(--whatsapp-green);
    color: #fff;
}
.mob-sidebar-whatsapp:hover { background: #1aab54; color: #fff; }

/* ===== MOBILE SEARCH OVERLAY ===== */
.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 10001;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    backdrop-filter: blur(4px);
}
.mobile-search-overlay.open { display: flex; }
.mobile-search-box { width: 100%; padding: 0 20px; }
.mobile-search-row {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 6px 6px 6px 20px;
    gap: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.mobile-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: var(--text-dark);
    min-width: 0;
}
.mobile-search-input::placeholder { color: #aaa; }
.mobile-search-submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.mobile-search-submit-btn:hover { background: var(--primary-dark); }
.mobile-search-close-btn {
    background: #444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.mobile-search-close-btn:hover { background: #666; }
.mobile-search-hint {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-top: 14px;
    padding-left: 20px;
    font-style: italic;
}

/* ===== MOBILE BOTTOM NAV ===== */

/* Step 1 — Bar: fixed at bottom, hidden by default */
.btm-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    background: #1a1a2e;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
}

/* Step 2 — Items: equal-width flex columns, fixed size, never change */
.btm-nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    position: relative;
    transition: color 0.25s;
}

/* Step 3 — Icons */
.btm-nav-item i {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.btm-nav-item span { line-height: 1; }

/* Step 4 — Active indicator: thin top line + color */
.btm-nav-item.btm-active {
    color: var(--primary-color);
}
.btm-nav-item.btm-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 10px 2px rgba(212,20,90,0.7),
                0 0 20px 4px rgba(212,20,90,0.4);
    animation: btm-glow 2s ease-in-out infinite;
}

/* Step 5 — Active icon: scale + glow */
.btm-nav-item.btm-active i {
    color: var(--primary-color);
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px rgba(212,20,90,0.8));
}

/* Step 6 — Hover state */
.btm-nav-item:not(.btm-active):hover {
    color: rgba(255,255,255,0.75);
}
.btm-nav-item:not(.btm-active):hover i { transform: scale(1.1); }

/* Step 7 — Cart badge */
.btm-cart-wrap { position: relative; display: inline-flex; }
.btm-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Step 8 — Glow pulse on the top indicator line */
@keyframes btm-glow {
    0%, 100% { box-shadow: 0 0 10px 2px rgba(212,20,90,0.7), 0 0 20px 4px rgba(212,20,90,0.4); }
    50%       { box-shadow: 0 0 14px 4px rgba(212,20,90,0.9), 0 0 30px 8px rgba(212,20,90,0.5); }
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-festive);
    border-radius: 2px;
}
.section-title p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }

/* ===== HERO BANNER SLIDER ===== */
.hero-slider-section { background: #fff; overflow: hidden; }
.hero-slider-section .hero-slider { line-height: 0; font-size: 0; }

/* Before Slick initializes — show only first slide, no black gap */
.hero-slider:not(.slick-initialized) { overflow: hidden; }
.hero-slider:not(.slick-initialized) .hero-slide { display: none; }
.hero-slider:not(.slick-initialized) .hero-slide:first-child {
    display: block;
    width: 100%;
}
.hero-slider:not(.slick-initialized) .hero-slide:first-child a {
    display: block;
    width: 100%;
}
.hero-slider:not(.slick-initialized) .hero-slide:first-child img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.hero-slider .slick-slide { line-height: 0; font-size: 0; }
.hero-slider .slick-slide a { display: block; line-height: 0; }
.hero-slider .slick-slide img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    vertical-align: bottom;
}
.hero-slider .slick-dots { bottom: 16px; }
.hero-slider .slick-dots li button:before {
    font-size: 10px;
    color: #fff;
    opacity: 0.7;
}
.hero-slider .slick-dots li.slick-active button:before { color: var(--secondary-color); opacity: 1; }
.hero-slider .slick-prev, .hero-slider .slick-next {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    z-index: 10;
}
.hero-slider .slick-prev:before, .hero-slider .slick-next:before {
    font-size: 20px;
    color: #fff;
}
.hero-slider .slick-prev { left: 20px; }
.hero-slider .slick-next { right: 20px; }

/* Hero fallback (shown when no banner images in DB) */
.hero-fallback {
    background: linear-gradient(135deg, #1a1a2e 0%, #d4145a 60%, #ffc107 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}
.hero-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-fallback-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero-fallback-emoji {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}
.hero-fallback-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-fallback-title span {
    font-size: 28px;
    font-weight: 700;
    color: #ffc107;
    display: block;
    margin-top: 8px;
}
.hero-fallback-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}
.hero-fallback-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffc107;
    color: #1a1a2e;
    padding: 16px 42px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255,193,7,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-fallback-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,193,7,0.5);
    color: #1a1a2e;
    text-decoration: none;
}
@media (max-width: 576px) {
    .hero-fallback { min-height: 360px; padding: 40px 16px; }
    .hero-fallback-title { font-size: 28px; }
    .hero-fallback-title span { font-size: 20px; }
    .hero-fallback-emoji { font-size: 48px; }
    .hero-fallback-btn { padding: 13px 30px; font-size: 15px; }
}

/* ===== PROMO BANNERS ===== */
.promo-banners { padding: 20px 0; background: var(--bg-light); }
.promo-banner-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    display: block;
    line-height: 0;
}
.promo-banner-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    transition: transform 0.45s ease;
}
.promo-banner-wrap:hover .promo-banner-img { transform: scale(1.05); }

/* ===== CATEGORIES SECTION ===== */
.categories-section { padding: 60px 0; background: #fff; }
.category-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    height: 100%;
}
.category-card:hover {
    background: #fff6f9;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}
.category-img-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 3px solid #fce4ec;
    overflow: hidden;
}
.category-img-wrap img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}
.category-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
}
.category-card:hover .category-name { color: var(--primary-color); }

/* ===== SERVICES STRIP ===== */
.services-strip { background: var(--gradient-festive); padding: 30px 0; }
.service-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    color: #fff;
    transition: background 0.3s;
}
.service-box:hover { background: rgba(255,255,255,0.25); }
.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.service-text h5 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.service-text p { font-size: 12px; opacity: 0.9; margin: 0; }

/* ===== SEO CONTENT ===== */
.seo-content-section { padding: 50px 0; background: var(--bg-light); }
.seo-content-section h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}
.seo-content-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 60px 0; background: var(--darker-bg); }
.testimonials-section .section-title h2 { color: #fff; }
.testimonials-section .section-title p { color: rgba(255,255,255,0.6); }
.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    margin: 10px 15px;
    color: #fff;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.4;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-stars { color: var(--star-gold); font-size: 14px; margin-bottom: 10px; }
.testimonial-review { font-size: 13px; line-height: 1.7; opacity: 0.85; margin-bottom: 16px; }
.testimonial-customer strong { font-size: 14px; font-weight: 700; color: var(--secondary-color); }
.testimonial-customer span { font-size: 12px; opacity: 0.6; margin-left: 6px; }

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f9f9f9;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.1); }
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
}
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
}
.product-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category-badge {
    font-size: 10px;
    background: rgba(212, 20, 90, 0.08);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    flex: 1;
}
.product-content-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.product-pricing { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.product-actual-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-offer-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
}
.product-actions { display: flex; gap: 8px; align-items: center; }
.qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-btn {
    width: 28px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    transition: background 0.2s;
}
.qty-btn:hover { background: var(--primary-color); color: #fff; }
.qty-input {
    width: 36px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}
.btn-add-cart {
    flex: 1;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-add-cart:hover { background: var(--primary-dark); transform: scale(1.03); }
.btn-add-cart.adding { background: var(--success-green); }
.btn-out-of-stock {
    flex: 1;
    background: #cccccc;
    color: #666666;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
    white-space: nowrap;
}
.out-of-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #888888;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.site-footer { background: var(--dark-bg); color: rgba(255,255,255,0.8); }
.brands-strip { background: #fff; padding: 16px 0; overflow: hidden; }
.brands-img { max-height: 80px; object-fit: contain; width: 100%; }
.footer-main { padding: 50px 0 30px; }
.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}
.footer-links a:hover { color: var(--secondary-color); padding-left: 5px; }
.footer-links i { margin-right: 6px; font-size: 11px; color: var(--primary-color); }
.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s;
}
.social-link.facebook { background: #1877f2; }
.social-link.instagram { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.social-link.whatsapp { background: var(--whatsapp-green); }
.social-link:hover { transform: translateX(4px); color: #fff; }
.footer-contact { font-size: 13px; }
.footer-contact p { margin-bottom: 6px; color: rgba(255,255,255,0.7); }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--secondary-color); }
.footer-contact i { width: 20px; color: var(--primary-color); }
.footer-logo { max-height: 70px; width: auto; }
.footer-about-text { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-address { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 8px; }
.footer-address i { color: var(--primary-color); margin-right: 6px; }
.footer-bottom {
    background: var(--darker-bg);
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.copyright { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; }
.footer-tagline { font-size: 12px; color: var(--secondary-color); margin: 0; font-weight: 600; }

/* ===== FLOATING BUTTONS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    z-index: 9990;
    box-shadow: 0 4px 15px rgba(37,211,102,0.5);
    animation: pulse-green 2s infinite;
    transition: transform 0.3s;
    will-change: transform; /* force GPU layer — prevents iOS scroll jank */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

.quick-purchase-float {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 9990;
}
.quick-purchase-float img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s;
    animation: bounce 2s infinite;
}
.quick-purchase-float:hover img { transform: scale(1.1); animation: none; }

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    box-shadow: var(--shadow-md);
    font-size: 16px;
    transition: all 0.3s;
}
.scroll-top-btn.visible { display: flex; }
.scroll-top-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== MINI CART ===== */
.mini-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9994;
}
.mini-cart-overlay.open { display: block; }
.mini-cart-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100vh;
    background: #fff;
    z-index: 9995;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mini-cart-panel.open { right: 0; }
.mini-cart-header {
    background: var(--dark-bg);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mini-cart-header h6 { margin: 0; font-size: 15px; font-weight: 700; }
.mini-cart-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.mini-cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-cart-item-info { flex: 1; }
.mini-cart-item-name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.mini-cart-item-price { font-size: 13px; color: var(--primary-color); font-weight: 700; }
.mini-cart-item-qty { font-size: 11px; color: var(--text-muted); }
.mini-cart-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}
.mini-cart-remove:hover { color: var(--primary-color); }
.mini-cart-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}
.mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}
.mini-cart-actions { display: flex; gap: 8px; }
.btn-view-cart {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-view-cart:hover { background: var(--primary-color); color: #fff; }
.btn-checkout {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-checkout:hover { background: var(--primary-dark); color: #fff; }

/* ===== CART PAGE ===== */
.cart-page { padding: 40px 0; }
.cart-table th {
    background: var(--dark-bg);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    border: none;
}
.cart-table td { padding: 14px 16px; vertical-align: middle; border-color: var(--border-color); }
.cart-product-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-product-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.cart-totals {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
}
.cart-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.cart-totals-row:last-child { border: none; font-size: 16px; font-weight: 700; color: var(--primary-color); }

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--gradient-festive);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; opacity: 0.9; }
.btn-secondary-custom {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 11px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-secondary-custom:hover { background: var(--primary-color); color: #fff; }

/* ===== PAGINATION ===== */
.pagination-wrap { text-align: center; margin-top: 30px; }
.pagination-wrap .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    font-size: 13px;
    padding: 8px 14px;
}
.pagination-wrap .page-link:hover,
.pagination-wrap .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb { margin: 0; font-size: 13px; }
.breadcrumb-item a { color: var(--primary-color); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ===== FORMS ===== */
.form-label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(212,20,90,0.1); }

/* ===== AUTH PAGES ===== */
.auth-section { min-height: 80vh; display: flex; align-items: center; background: var(--bg-light); padding: 40px 0; }
.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 450px;
    margin: 0 auto;
}
.auth-card h2 { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.auth-card .auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* ===== CHECKOUT ===== */
.checkout-section { padding: 40px 0; }
.checkout-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.checkout-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* ===== BLOG CARDS ===== */
.blog-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 18px; }
.blog-date { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.blog-title { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin-bottom: 8px; }
.blog-title a:hover { color: var(--primary-color); }
.blog-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.blog-read-more { font-size: 13px; color: var(--primary-color); font-weight: 600; margin-top: 12px; display: inline-block; }
.blog-read-more:hover { color: var(--primary-dark); }

/* ===== ADMIN ===== */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--dark-bg);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1045;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
}
.admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    background: var(--dark-bg);
    z-index: 1;
}
.admin-sidebar-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
}
.admin-sidebar-close:hover { background: rgba(255,255,255,0.18); color: #fff; }
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1040;
    backdrop-filter: blur(2px);
}
.admin-sidebar-overlay.open { display: block; }

/* Mobile topbar */
.admin-mobile-bar {
    display: none;
    background: var(--dark-bg);
    padding: 10px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.admin-burger {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.admin-burger:hover { background: rgba(255,255,255,0.1); }
.admin-mobile-title {
    flex: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-mobile-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    flex-shrink: 0;
}
.admin-mobile-user i { font-size: 20px; color: var(--secondary-color); }

.admin-main { margin-left: 260px; padding: 30px; background: var(--bg-light); min-height: 100vh; overflow-x: hidden; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
    text-decoration: none;
}
.admin-nav-link:hover, .admin-nav-link.active {
    color: var(--secondary-color);
    background: rgba(255,255,255,0.06);
    padding-left: 28px;
}
.admin-nav-link i { width: 20px; color: var(--primary-color); }
.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}
.stat-card h3 { font-size: 28px; font-weight: 800; color: var(--primary-color); }
.stat-card p { font-size: 13px; color: var(--text-muted); margin: 0; }
.admin-table th {
    background: var(--dark-bg);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border: none;
}
.admin-table td { padding: 12px 16px; font-size: 13px; vertical-align: middle; }

/* ===== QUICK PURCHASE PAGE ===== */
.quick-purchase-section { padding: 40px 0; }
.qp-table th {
    background: var(--gradient-festive);
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    border: none;
}
.qp-table td { padding: 12px 16px; vertical-align: middle; font-size: 13px; }
.qp-product-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }
.qp-qty { width: 70px; text-align: center; }
.qp-total-bar {
    background: var(--dark-bg);
    color: #fff;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}
.qp-total-amount { font-size: 22px; font-weight: 800; color: var(--secondary-color); }

/* ===== VIEW ALL BUTTON ===== */
.view-all-wrap { text-align: center; margin-top: 30px; }

/* ===== SHOP SIDEBAR ===== */
.shop-sidebar { padding: 0 0 40px; }
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}
.sidebar-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-dark);
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}
.sidebar-cat-link:hover { color: var(--primary-color); padding-left: 6px; }
.sidebar-cat-link span {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 11px;
}
.sidebar-cat-link.active { color: var(--primary-color); font-weight: 700; }

/* ===== NO IMAGE PLACEHOLDER ===== */
.no-image {
    background: linear-gradient(135deg, #f5f5f5, #e9e9e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ccc;
}

/* ===== SINGLE PRODUCT ===== */
.product-single-section { padding: 40px 0; }
.product-gallery-main { border-radius: var(--radius-md); overflow: hidden; }
.product-gallery-main img { width: 100%; border-radius: var(--radius-md); }
.product-gallery-thumbs { margin-top: 10px; display: flex; gap: 8px; }
.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumb-img.active, .thumb-img:hover { border-color: var(--primary-color); }
.product-single-title { font-size: 24px; font-weight: 800; color: var(--text-dark); }
.product-single-prices { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.price-actual { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.price-offer { font-size: 28px; font-weight: 900; color: var(--primary-color); }
.price-badge { background: var(--primary-color); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.product-single-meta { font-size: 13px; color: var(--text-muted); }
.product-single-meta span { color: var(--text-dark); font-weight: 600; }

/* ===== ADMIN RESPONSIVE ===== */

/* Tablet & Mobile: sidebar slides off-screen, mobile topbar visible */
@media (max-width: 991.98px) {
    .admin-mobile-bar { display: flex; }
    .admin-sidebar { transform: translateX(-260px); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; padding: 75px 16px 24px; }
    .admin-desktop-topbar { display: none !important; }
    .stat-card { padding: 18px; }
    .stat-card h3 { font-size: 22px; }
}

/* Desktop (≥992px): sidebar always visible */
@media (min-width: 992px) {
    .admin-sidebar { transform: translateX(0) !important; }
    .admin-sidebar-overlay { display: none !important; }
    .admin-mobile-bar { display: none !important; }
}

/* ── Admin Card-View Tables (mobile) ── */
@media (max-width: 767.98px) {

    /* Page header: wrap title + button on small screens */
    .admin-main .admin-page-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Stat cards: 2 per row */
    .admin-main { padding: 72px 12px 20px; }
    .stat-card { padding: 14px 16px; }
    .stat-card h3 { font-size: 20px; }
    .admin-mobile-title { font-size: 13px; }
    .card-header.d-flex { flex-wrap: wrap; gap: 8px; }

    /* Remove horizontal scroll — switch to card rows */
    .table-responsive { overflow-x: visible !important; }
    .admin-table { border: none; }
    .admin-table thead { display: none; }

    .admin-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e8e8e8;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        background: #fff;
    }
    .admin-table tbody td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px !important;
        border-bottom: 1px solid #f4f4f4 !important;
        font-size: 13px !important;
        min-height: 42px;
    }
    .admin-table tbody td:last-child { border-bottom: none !important; }

    /* Column label via data-label (injected by JS) */
    .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #888;
        margin-right: 10px;
        flex-shrink: 0;
        min-width: 80px;
    }
    /* Action cells (empty header) — right-align, no label */
    .admin-table tbody td[data-label=""]::before { display: none; }
    .admin-table tbody td[data-label=""] { justify-content: flex-end; }

    /* Order detail status form: stack vertically */
    .admin-status-form { flex-direction: column; align-items: stretch !important; }
    .admin-status-form > div { width: 100%; }
    .admin-status-form .btn { align-self: flex-start; }
}
