@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #C69430;
    --primary-dark: #a5781e;
    --primary-light: #fdf8ed;
    --secondary-color: #212129;
    --dark-text: #1a1a1a;
    --muted-text: #666666;
    --light-bg: #f8f9fa;
    --border-color: #e5e7eb;
    --discount-badge: #e53935;
    --gold-accent: #fca204;
    --font-main: 'Hind Siliguri', 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

body {
    font-family: var(--font-main);
    background-color: #f5f6f8;
    color: var(--dark-text);
    line-height: 1.5;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container-custom {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================================
   1. TOP BAR
========================================= */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    font-size: 13.5px;
    color: #4b5563;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left ul, .top-bar-right ul {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar-left a, .top-bar-right a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.top-bar-left .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.top-bar-right .btn-signin {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.top-bar-right .btn-signin:hover {
    background: var(--primary-dark);
    color: #fff;
}

.top-bar-right .btn-signup {
    background: var(--secondary-color);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.top-bar-right .btn-signup:hover {
    background: #000;
    color: #fff;
}

/* =========================================
   2. MAIN HEADER
========================================= */
.main-header {
    background: #ffffff;
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-brand-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.site-header-logo-img {
    max-height: 52px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.site-header-logo-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(198, 148, 48, 0.12), rgba(198, 148, 48, 0.24));
    border: 1px solid rgba(198, 148, 48, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 21px;
    flex-shrink: 0;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.15;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 11px;
    color: #64748b;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
}

.search-area {
    flex: 1;
    max-width: 650px;
    position: relative;
}

.search-form {
    display: flex;
    width: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 0 22px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 380px;
    overflow-y: auto;
}

.cart-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 8px 14px;
    background: var(--primary-light);
    border: 1px solid rgba(198, 148, 48, 0.3);
    border-radius: 6px;
    color: var(--secondary-color);
    font-weight: 600;
}

.cart-icon-wrapper {
    position: relative;
    font-size: 22px;
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}

/* =========================================
   3. CATEGORY NAV BAR
========================================= */
.category-nav-bar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-nav-inner {
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: visible;
}

.category-nav-inner > ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.category-nav-inner li {
    position: relative;
}

.category-nav-inner li a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.category-nav-inner li.active > a,
.category-nav-inner li a.active {
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    box-shadow: inset 0 -3px 0 #ffffff;
}

.category-nav-inner li a:hover {
    background: rgba(0, 0, 0, 0.16);
    color: #fff;
}

.nav-dropdown-menu li a.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    background: #f8fafc;
}

/* Subcategory Dropdown */
.category-nav-inner li.has-dropdown:hover > .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid var(--primary-color);
    padding: 6px 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.nav-dropdown-menu li {
    width: 100%;
}

.nav-dropdown-menu li a {
    display: block !important;
    padding: 9px 18px !important;
    color: #1e293b !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-right: none !important;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    background: transparent !important;
    transition: all 0.2s ease;
}

.nav-dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav-dropdown-menu li a:hover {
    background: #fffbeb !important;
    color: var(--primary-color) !important;
    padding-left: 22px !important;
}

/* =========================================
   4. HERO SECTION (Category Sidebar + Slider)
========================================= */
.hero-section {
    padding: 16px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
}

.hero-sidebar {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.sidebar-header {
    background: var(--primary-color);
    color: #fff;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu {
    padding: 6px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8.5px 16px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 20px;
}

.sidebar-menu li a i {
    font-size: 11px;
    color: #9ca3af;
}

.hero-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    min-height: 380px;
    background: #ddd;
}

.slide-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide-item {
    min-width: 100%;
    position: relative;
    height: 380px;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 6px;
}

/* =========================================
   5. PRODUCT SECTION & CARDS
========================================= */
.section-wrapper {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: var(--primary-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 15px;
}

.product-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.badge-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff5722;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.4);
}

.product-image-box {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-box img {
    transform: scale(1.05);
}

.product-details {
    padding: 12px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.35;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.product-pricing {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.price-current {
    font-size: 17px;
    font-weight: 700;
    color: #ea580c;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Animations for Order Button */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(198, 148, 48, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(198, 148, 48, 0);
    }
}

.btn-order-now {
    width: 100%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: pulseGlow 2.5s infinite;
}

.btn-order-now:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-add-cart {
    width: 100%;
    background: #ffffff;
    color: #212129;
    border: 1.5px solid #212129;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: #212129;
    color: #ffffff;
}

/* =========================================
   6. SINGLE PRODUCT DETAIL PAGE
========================================= */
.product-single-container {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.product-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-display {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

.thumb-item.active {
    border-color: var(--primary-color);
}

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

.product-info-box h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-meta-row {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.stock-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.stock-badge.out {
    background: #ffebee;
    color: #c62828;
}

.price-box-single {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.price-box-single .current {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-box-single .original {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-box-single .save-amount {
    background: #ff5722;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.qty-stepper {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: #e2e8f0;
}

.qty-input {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.product-direct-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.product-direct-actions .btn-order-now {
    padding: 12px;
    font-size: 18px;
}

.product-direct-actions .btn-add-cart {
    padding: 10px;
    font-size: 16px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e2e8f0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.trust-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Single Product Quick Order Form */
.quick-order-box {
    margin-top: 24px;
    background: #fff9e6;
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 20px;
}

.quick-order-title {
    font-size: 18px;
    font-weight: 700;
    color: #855f0d;
    margin-bottom: 12px;
    text-align: center;
}

.quick-form .form-group {
    margin-bottom: 12px;
}

.quick-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-form input, .quick-form select, .quick-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.quick-form input:focus, .quick-form select:focus, .quick-form textarea:focus {
    border-color: var(--primary-color);
}

/* =========================================
   7. CHECKOUT & CART PAGES
========================================= */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-bottom: 40px;
}

.card-checkout {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.card-checkout-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.card-checkout-header h2 {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.radio-card {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.radio-card:hover, .radio-card.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.order-items-table th, .order-items-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.order-items-table th {
    text-align: left;
    color: #64748b;
    font-weight: 600;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0 0;
    border-top: 2px solid var(--border-color);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color);
}

/* =========================================
   8. FOOTER
========================================= */
.site-footer {
    background: #1e1e24;
    color: #d1d5db;
    padding: 45px 0 20px;
    margin-top: 40px;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-color);
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #9ca3af;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact-item i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #9ca3af;
}

.footer-bottom a {
    color: var(--primary-color);
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}

.fab-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.fab-whatsapp {
    background: #25d366;
}

.fab-call {
    background: var(--primary-color);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-sidebar {
        display: none; /* Hide on tablets/mobile, accessed via category menu */
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .product-single-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MOBILE FIRST HEADER & NAVIGATION STYLES
========================================= */

/* Mobile elements default hidden on desktop */
@media (min-width: 769px) {
    .mobile-search-dropdown,
    .mobile-search-toggle,
    .mobile-bottom-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 7px;
        padding: 7px 12px;
        border-radius: var(--btn-radius, 6px);
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #1e293b;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .mobile-menu-toggle:hover {
        background: #f1f5f9;
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    .desktop-menu-text {
        display: inline !important;
        font-size: 13.5px;
    }
}

/* Nav Drawer Trigger in Category Bar */
.nav-drawer-toggle-item {
    margin-right: 4px;
}
.nav-drawer-trigger-btn {
    background: rgba(0, 0, 0, 0.16) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 4px;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 10px 14px !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nav-drawer-trigger-btn:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
}

/* Mobile Specific Styles (<= 768px) */
@media (max-width: 768px) {
    .desktop-menu-text {
        display: none !important;
    }
    /* 1. Hide Top-bar banner & Homepage Announcement ticker on mobile */
    .top-bar,
    .home-announcement-bar,
    .announcement-bar {
        display: none !important;
    }

    /* 2. Hide horizontal Category nav on mobile (replaced by left drawer) */
    .category-nav-bar {
        display: none !important;
    }

    /* 3. Hide site footer on mobile for order tracking & account pages */
    .site-footer.mobile-hidden-footer,
    body.page-track-order .site-footer,
    body.page-my-account .site-footer,
    body.page-login .site-footer,
    body.page-register .site-footer {
        display: none !important;
    }

    /* 4. Hide desktop-only text (Site name text when logo image exists & Cart label) */
    .desktop-only-text {
        display: none !important;
    }

    /* 4. Add bottom padding to body so bottom nav doesn't cover content */
    body {
        padding-bottom: 65px;
    }

    /* 5. Reposition floating action buttons above bottom nav */
    .floating-actions {
        bottom: 70px !important;
        right: 12px !important;
        gap: 8px !important;
    }

    .floating-actions .fab-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    /* 6. Sticky Fixed Header */
    .main-header {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 995;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        padding: 7px 0;
    }

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 12px;
    }

    .desktop-search-area {
        display: none !important;
    }

    /* Left Menu Button */
    .mobile-header-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #1e293b;
        font-size: 17px;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-header-btn:active {
        background: #f1f5f9;
        transform: scale(0.96);
    }

    /* Center Brand / Logo */
    .logo-area {
        flex: 1;
        display: flex;
        justify-content: center;
        text-align: center;
        overflow: hidden;
    }

    .logo-brand-link {
        justify-content: center;
        max-width: 100%;
        gap: 8px;
    }

    .site-header-logo-img {
        max-height: 38px;
        max-width: 130px;
        width: auto;
        object-fit: contain;
    }

    .site-header-logo-icon-box {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .logo-title {
        font-size: 17px;
        letter-spacing: -0.3px;
        white-space: nowrap;
    }

    .logo-subtitle {
        display: none !important;
    }

    /* Right Actions (Search + Cart) */
    .header-right-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .cart-area .cart-btn-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        padding: 0;
    }

    .cart-area .cart-icon-wrapper {
        font-size: 17px;
        color: #1e293b;
    }

    .cart-area .cart-badge {
        top: -6px;
        right: -6px;
        font-size: 10px;
        padding: 1px 5px;
        min-width: 17px;
        height: 17px;
    }

    /* Products Grid on Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Mobile Dropdown Search Bar */
.mobile-search-dropdown {
    display: none;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 996;
    animation: slideDownSearch 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-search-dropdown.active {
    display: block;
}

@keyframes slideDownSearch {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-search-form {
    display: flex;
    align-items: center;
    position: relative;
    background: #f8fafc;
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    padding: 0 10px;
}

.mobile-search-input-icon {
    color: var(--primary-color);
    font-size: 15px;
    margin-right: 8px;
}

.mobile-search-input {
    flex: 1;
    height: 40px;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 14px;
    color: #1e293b;
    padding: 0;
}

.mobile-search-close-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
}

.mobile-search-suggestions {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    margin-top: 6px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 999;
}

/* Off-Canvas Drawer Backdrop */
.mobile-drawer-overlay,
.app-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99998 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active,
.app-drawer-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Off-Canvas Drawer (Left Slide-out) */
.mobile-drawer,
.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 330px;
    height: 100vh;
    background: #ffffff;
    z-index: 99999 !important;
    box-shadow: 6px 0 35px rgba(0,0,0,0.25);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-drawer.active,
.app-drawer.active {
    transform: translateX(0) !important;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mobile-drawer-header .drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-drawer-close {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
}

.drawer-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.drawer-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.drawer-action-btn.hotline-btn {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.drawer-action-btn.wa-btn {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.drawer-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 14px 0 8px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-drawer-nav li {
    margin-bottom: 3px;
}

.drawer-cat-item {
    border-radius: 6px;
    transition: background 0.15s ease;
}

.drawer-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.drawer-cat-row .drawer-cat-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.drawer-cat-row .drawer-cat-link:hover,
.drawer-cat-item.active > .drawer-cat-row > .drawer-cat-link,
.drawer-cat-item.open > .drawer-cat-row > .drawer-cat-link {
    background: #fff7ed;
    color: var(--primary-color);
}

.drawer-sub-count-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
    margin-left: auto;
}

.mobile-drawer-nav .nav-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.drawer-sub-toggle {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.15s ease;
}

.drawer-sub-toggle:hover {
    color: var(--primary-color);
}

.drawer-cat-item.open > .drawer-cat-row .drawer-sub-toggle {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.drawer-sub-menu {
    list-style: none;
    padding: 4px 0 6px 14px;
    margin: 4px 0 6px 14px;
    display: none;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 2px solid var(--primary-color);
    animation: fadeInSub 0.2s ease forwards;
}

@keyframes fadeInSub {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.drawer-cat-item.open > .drawer-sub-menu {
    display: block;
}

.drawer-sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 7px 10px;
    font-weight: 500;
    color: #475569;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.drawer-sub-menu li a:hover,
.drawer-sub-menu li a.active {
    color: var(--primary-color);
    background: #fdf8ed;
    font-weight: 600;
    padding-left: 14px;
}

/* Mobile Fixed Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 58px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -3px 14px rgba(0,0,0,0.07);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 0;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bottom-nav-item .bottom-nav-icon {
    font-size: 19px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-nav-item .bottom-nav-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.2px;
}

.bottom-nav-item:hover,
.bottom-nav-item:active,
.bottom-nav-item.active {
    color: var(--primary-color) !important;
}

.bottom-nav-item.active .bottom-nav-icon,
.bottom-nav-item.active .bottom-nav-icon i {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.bottom-nav-item.active .bottom-nav-label {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* Checkout Order Policy Tick & Cooldown Box */
.checkout-policy-section {
    margin-top: 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.checkout-policy-tick {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
}
.checkout-policy-tick input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color, #c28829);
    flex-shrink: 0;
}
.policy-tick-text {
    flex: 1;
}
.checkout-cooldown-box {
    margin-top: 14px;
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}
.cooldown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
}
.cooldown-timer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 12px 0;
}
.cooldown-timer-wrap .timer-box {
    background: #0f172a;
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 52px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.1);
}
.cooldown-timer-wrap .timer-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fbbf24;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.1;
    letter-spacing: 1px;
}
.cooldown-timer-wrap .timer-unit {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
    font-weight: 600;
}
.cooldown-timer-wrap .timer-sep {
    font-size: 20px;
    font-weight: 800;
    color: #d97706;
    margin-top: -10px;
}
.cooldown-notice-text {
    font-size: 13px;
    color: #92400e;
    text-align: center;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.65);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px dashed #f59e0b;
}
.btn-order-disabled {
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
    transform: none !important;
    box-shadow: none !important;
}

