/* ============================================
   GadgetHub - Complete Stylesheet
   PHP 7.4 / Bootstrap 5 / Bilingual (BN/EN)
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --gh-primary: #6366f1;
    --gh-primary-dark: #4f46e5;
    --gh-purple: #8b5cf6;
    --gh-accent: #10b981;
    --gh-warning: #f59e0b;
    --gh-danger: #ef4444;
    --gh-dark: #1e293b;
    --gh-gray-100: #f1f5f9;
    --gh-gray-200: #e2e8f0;
    --gh-gray-300: #cbd5e1;
    --gh-gray-500: #64748b;
    --gh-gray-700: #475569;
    --gh-radius: 16px;
    --gh-radius-sm: 10px;
    --gh-radius-lg: 24px;
    --gh-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --gh-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --gh-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --gh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    background: #fafbfc;
    color: var(--gh-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body[lang="bn"], 
body[lang="bn"] * {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}

/* ===== Global Link Style (NO underline anywhere) ===== */
a {
    text-decoration: none !important;
    color: inherit;
    transition: color 0.2s;
}
a:hover {
    color: var(--gh-primary);
}

/* ===== Section Title ===== */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gh-dark);
    margin-bottom: 4px;
}
.section-title i {
    margin-right: 6px;
    color: var(--gh-primary);
}

/* ===== Buttons ===== */
.gh-btn-primary {
    background: linear-gradient(135deg, var(--gh-primary) 0%, var(--gh-purple) 100%);
    color: white !important;
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--gh-transition);
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.gh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    color: white !important;
}
.gh-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.gh-btn-outline {
    background: white;
    color: var(--gh-primary) !important;
    padding: 10px 22px;
    border-radius: 12px;
    border: 2px solid var(--gh-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--gh-transition);
    text-decoration: none !important;
}
.gh-btn-outline:hover {
    background: var(--gh-primary);
    color: white !important;
}

/* ===== Form Controls ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--gh-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

.input-group-icon {
    position: relative;
}
.input-group-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gh-gray-500);
    z-index: 2;
}
.input-group-icon input {
    padding-left: 42px !important;
}

/* ============================================
   NAVBAR
   ============================================ */
.gh-navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: box-shadow 0.3s;
}

.gh-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--gh-dark) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gh-navbar .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.gh-navbar .nav-link {
    color: var(--gh-gray-700) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--gh-transition);
}
.gh-navbar .nav-link:hover,
.gh-navbar .nav-link.active {
    color: var(--gh-primary) !important;
    background: rgba(99, 102, 241, 0.08);
}

/* Search */
.gh-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.gh-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 2px solid var(--gh-gray-200);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--gh-transition);
    background: var(--gh-gray-100);
}
.gh-search input:focus {
    outline: none;
    border-color: var(--gh-primary);
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}
.gh-search > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gh-gray-500);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--gh-radius);
    box-shadow: var(--gh-shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
}
.search-results.active { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gh-gray-100);
    transition: background 0.2s;
}
.search-result-item:hover { background: var(--gh-gray-100); }
.search-result-item:last-child { border-bottom: none; }
.search-result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gh-primary);
    flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-result-price {
    color: var(--gh-primary);
    font-size: 0.85rem;
    font-weight: 700;
}
.search-no-results {
    padding: 30px 20px;
    text-align: center;
    color: var(--gh-gray-500);
}
.search-no-results i { font-size: 2rem; }

/* Cart Badge & Toggle */
.cart-toggle {
    position: relative;
    background: var(--gh-gray-100);
    border: none;
    color: var(--gh-gray-700);
    font-size: 1.15rem;
    width: 42px;
    height: 42px;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--gh-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-toggle:hover {
    color: white;
    background: var(--gh-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gh-danger);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

/* Language Switch */
.lang-switch {
    background: var(--gh-gray-100);
    border: none;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gh-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gh-dark);
    text-decoration: none !important;
    line-height: 1;
    white-space: nowrap;
}
.lang-switch:hover {
    background: var(--gh-primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3);
}
.lang-switch i {
    font-size: 0.95rem;
}

/* Right side actions wrapper */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* User dropdown */
.user-dropdown-toggle {
    background: var(--gh-gray-100);
    border: none;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gh-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gh-dark) !important;
    text-decoration: none !important;
    font-size: 0.88rem;
}
.user-dropdown-toggle:hover {
    background: var(--gh-primary);
    color: white !important;
}
.user-dropdown-toggle i { font-size: 1rem; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 24px 0;
}

.hero-main-link, .hero-side-link {
    display: block;
    height: 100%;
}

.hero-main-card {
    border-radius: var(--gh-radius-lg);
    padding: 40px;
    height: 100%;
    min-height: 340px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-main-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25);
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 22px;
    max-width: 460px;
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--gh-dark) !important;
    padding: 11px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.hero-main-card:hover .hero-cta {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-visual {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.hero-visual i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: hero-float 4s ease-in-out infinite;
}
.hero-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.hero-main-card::before, .hero-main-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.hero-main-card::before {
    width: 380px; height: 380px;
    top: -140px; right: -140px;
}
.hero-main-card::after {
    width: 200px; height: 200px;
    bottom: -80px; left: 25%;
}

/* Side Heros */
.hero-side-grid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    height: 100%;
    min-height: 340px;
}

.hero-side-card {
    border-radius: var(--gh-radius);
    padding: 18px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
    height: 100%;
}
.hero-side-card:hover {
    transform: translateY(-3px) scale(1.01);
}

.side-content { flex: 1; z-index: 2; position: relative; }
.side-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.hero-side-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.2;
    color: white;
}
.hero-side-card p {
    font-size: 0.82rem;
    opacity: 0.92;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.side-cta {
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.side-visual {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.side-visual i {
    font-size: 2.6rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.hero-side-card::before {
    content: '';
    position: absolute;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -40px; right: -40px;
    pointer-events: none;
}

/* Gradient Classes */
.hero-gradient-from-indigo-600-to-purple-600,
.hero-gradient-from-indigo-500-to-purple-600 {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.hero-gradient-from-amber-400-to-orange-500 {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}
.hero-gradient-from-emerald-500-to-teal-600 {
    background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
}
.hero-gradient-from-sky-500-to-blue-600 {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}
.hero-gradient-from-pink-500-to-rose-600 {
    background: linear-gradient(135deg, #ec4899 0%, #e11d48 100%);
}
.hero-gradient-from-violet-500-to-fuchsia-600 {
    background: linear-gradient(135deg, #8b5cf6 0%, #c026d3 100%);
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.cat-card {
    background: white;
    border-radius: var(--gh-radius);
    padding: 22px 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: var(--gh-dark) !important;
    box-shadow: var(--gh-shadow);
    display: block;
}
.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gh-primary);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.18);
}

.cat-icon-wrap {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #f0f3ff 0%, #e0e7ff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s;
}
.cat-card:hover .cat-icon-wrap {
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    transform: rotate(5deg) scale(1.05);
}
.cat-icon-wrap i {
    font-size: 1.65rem;
    color: var(--gh-primary);
    transition: color 0.3s;
}
.cat-card:hover .cat-icon-wrap i {
    color: white;
}
.cat-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}
.cat-count {
    font-size: 0.74rem;
    color: var(--gh-gray-500);
}

/* ============================================
   SALE BANNER
   ============================================ */
.sale-banner {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 20px 26px;
    border-radius: var(--gh-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.22);
    position: relative;
    overflow: hidden;
}
.sale-banner::before {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -90px; right: -90px;
}

.sale-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1;
}
.sale-banner-icon {
    width: 56px; height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.sale-banner h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: white;
}
.sale-banner p {
    opacity: 0.95;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   PRODUCT CARDS - Compact, Multi-column
   ============================================ */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--gh-transition);
    box-shadow: var(--gh-shadow);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--gh-shadow-md);
}

/* Image area - SQUARE aspect ratio, smaller padding */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.06);
}
.product-image i {
    font-size: 3rem;
    color: var(--gh-primary);
    opacity: 0.9;
}

/* Tags */
.product-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 0.62rem;
    font-weight: 700;
    z-index: 2;
    color: white;
    letter-spacing: 0.04em;
}
.tag-new { background: linear-gradient(135deg, #10b981, #059669); }
.tag-hot { background: linear-gradient(135deg, #ef4444, #dc2626); }
.tag-sale, .tag-discount { background: linear-gradient(135deg, #f59e0b, #d97706); }

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--gh-gray-500);
    z-index: 2;
    cursor: pointer;
    transition: var(--gh-transition);
    font-size: 0.78rem;
}
.wishlist-btn:hover, .wishlist-btn.active {
    color: #ef4444;
    transform: scale(1.1);
}

/* Compact info */
.product-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-stock {
    font-size: 0.7rem;
    color: var(--gh-accent);
    margin-bottom: 3px;
    display: block;
    font-weight: 600;
}
.product-stock i { font-size: 0.7rem; }
.product-stock.out { color: var(--gh-danger); }

.product-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.3em;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-name a { color: var(--gh-dark); }

.product-rating {
    font-size: 0.7rem;
    color: var(--gh-warning);
    margin-bottom: 4px;
}
.product-rating span {
    color: var(--gh-gray-500);
    margin-left: 3px;
    font-size: 0.7rem;
}

.product-price {
    margin-top: auto;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.price-current {
    color: var(--gh-primary);
    font-weight: 800;
    font-size: 0.95rem;
}
.price-old {
    color: var(--gh-gray-500);
    text-decoration: line-through;
    font-size: 0.75rem;
}
.price-current-lg {
    color: var(--gh-primary);
    font-weight: 800;
    font-size: 1.8rem;
}
.price-old-lg {
    color: var(--gh-gray-500);
    text-decoration: line-through;
    font-size: 1.1rem;
    margin-left: 8px;
}
.discount-badge {
    background: var(--gh-danger);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

.add-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--gh-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.4;
}
.add-cart-btn i { font-size: 0.85rem; }
.add-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(99, 102, 241, 0.3);
}
.add-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gh-gray-300);
    transform: none !important;
}

/* Responsive product cards on small */
@media (max-width: 575px) {
    .product-image i { font-size: 2.5rem; }
    .product-info { padding: 10px; }
    .product-name { font-size: 0.78rem; min-height: 2.2em; }
    .price-current { font-size: 0.88rem; }
    .add-cart-btn { font-size: 0.72rem; padding: 6px; }
}

/* ============================================
   TRUST CARDS
   ============================================ */
.trust-card {
    background: white;
    border-radius: var(--gh-radius);
    padding: 24px 18px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--gh-shadow);
    height: 100%;
}
.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gh-shadow-lg);
}
.trust-card i {
    font-size: 2rem;
    color: var(--gh-primary);
    margin-bottom: 8px;
    display: block;
}
.trust-card h5 {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.trust-card p {
    color: var(--gh-gray-500);
    margin: 0;
    font-size: 0.82rem;
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;             /* Dynamic VH for mobile */
    background: white;
    z-index: 1100;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.active { right: 0; }

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gh-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;              /* Critical for flex shrink */
    -webkit-overflow-scrolling: touch;
}
.cart-header h4 {
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-close {
    background: var(--gh-gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--gh-transition);
}
.cart-close:hover {
    background: var(--gh-danger);
    color: white;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gh-gray-500);
}
.cart-empty i {
    font-size: 4rem;
    opacity: 0.4;
}

/* Cart Item (FIXED size) */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gh-gray-100);
    align-items: flex-start;
    transition: background 0.2s;
}
.cart-item:hover { background: var(--gh-gray-100); }
.cart-item.updating { opacity: 0.5; pointer-events: none; }
.cart-item.removing { 
    opacity: 0; 
    transform: translateX(40px); 
    transition: all 0.3s ease; 
}

.cart-item-image {
    flex-shrink: 0;
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cart-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 5px;
}
.cart-item-image i {
    font-size: 1.5rem;
    color: var(--gh-primary);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
    margin-bottom: 4px;
    word-break: break-word;
}
.cart-item-name small {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--gh-gray-500);
}
.cart-item-price {
    color: var(--gh-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gh-gray-300);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--gh-transition);
    font-size: 0.9rem;
}
.qty-btn:hover {
    background: var(--gh-primary);
    color: white;
    border-color: var(--gh-primary);
}
.qty-display {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.remove-item-btn {
    background: none;
    border: none;
    color: var(--gh-gray-500);
    cursor: pointer;
    padding: 4px 6px;
    margin-left: 4px;
    border-radius: 6px;
    transition: var(--gh-transition);
}
.remove-item-btn:hover {
    color: var(--gh-danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Cart Footer */
.cart-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    border-top: 1px solid var(--gh-gray-100);
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}
.cart-footer .gh-btn-primary {
    width: 100%;
    justify-content: center;
}

@media (max-width: 575px) {
    .cart-drawer { width: 100%; }
    .cart-footer { padding: 14px 16px 18px; }
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.cart-subtotal strong {
    color: var(--gh-primary);
    font-weight: 800;
}

/* ============================================
   FOOTER (Updated)
   ============================================ */
.gh-footer {
    background: var(--gh-dark);
    color: var(--gh-gray-300);
    padding: 50px 0 24px;
    margin-top: 60px;
}
.gh-footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.gh-footer a {
    color: var(--gh-gray-300);
    transition: var(--gh-transition);
    display: block;
    padding: 4px 0;
    font-size: 0.88rem;
}
.gh-footer a:hover {
    color: var(--gh-primary);
    transform: translateX(3px);
}
.text-muted-light {
    color: var(--gh-gray-300);
    font-size: 0.88rem;
    line-height: 1.6;
}
.gh-footer .footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gh-footer .footer-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    color: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.gh-footer .social-icons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.gh-footer .social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--gh-transition);
    transform: none;
}
.gh-footer .social-icons a:hover {
    background: var(--gh-primary);
    color: white;
    transform: translateY(-3px);
}

/* Payment icons */
.payment-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pay-icon {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.gh-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 22px;
    margin-top: 36px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gh-gray-300);
}
.gh-footer .footer-bottom strong { color: white; }

/* ============================================
   AUTH PAGES (Login/Register)
   ============================================ */
.auth-section {
    padding: 50px 0;
    min-height: 70vh;
}
.auth-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--gh-radius-lg);
    box-shadow: var(--gh-shadow-lg);
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    color: white;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25);
}
.auth-header h2 {
    font-weight: 800;
    margin-bottom: 4px;
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gh-gray-200);
    color: var(--gh-gray-500);
}

.otp-input {
    font-size: 1.6rem;
    letter-spacing: 0.5rem;
    font-weight: 700;
    padding: 12px;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    padding: 30px 0 40px;
}
.breadcrumb {
    background: none;
    padding: 0;
}
.breadcrumb-item, .breadcrumb-item a {
    color: var(--gh-gray-500);
    font-size: 0.9rem;
}
.breadcrumb-item.active { color: var(--gh-dark); }

/* Product gallery */
.product-gallery .main-image {
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    border-radius: var(--gh-radius);
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}
.main-image-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}
.main-image iframe.main-image-img,
.main-image video.main-image-img {
    padding: 0;
}
.product-gallery .placeholder-icon {
    font-size: 10rem;
    color: var(--gh-primary);
    opacity: 0.85;
}

/* Thumbnail strip */
.thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px;
}
.thumbnail-strip::-webkit-scrollbar { height: 6px; }
.thumbnail-strip::-webkit-scrollbar-thumb { background: var(--gh-gray-300); border-radius: 3px; }

.thumb-item {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--gh-gray-300);
    transition: all 0.2s;
    background: var(--gh-gray-100);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.thumb-item:hover { border-color: var(--gh-primary); transform: translateY(-2px); }
.thumb-item.active {
    border-color: var(--gh-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.thumb-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.thumb-item.thumb-video, .thumb-item.thumb-youtube {
    color: var(--gh-primary);
    text-align: center;
    padding: 6px;
}
.thumb-item.thumb-video i, .thumb-item.thumb-youtube i {
    font-size: 1.5rem;
    line-height: 1;
}
.thumb-item.thumb-video small, .thumb-item.thumb-youtube small {
    font-size: 0.62rem;
    margin-top: 2px;
    font-weight: 600;
}
.thumb-item.thumb-youtube { background: #fff0f0; }
.thumb-item.thumb-youtube i { color: #ff0000; }

/* Product info */
.product-detail-info { padding-left: 20px; }
.badge-category {
    display: inline-block;
    background: var(--gh-gray-100);
    color: var(--gh-gray-700);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.product-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}
.price-block {
    margin: 18px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc, #f0f3ff);
    border-radius: var(--gh-radius);
}

/* Variants */
.variants-block {
    margin: 20px 0;
    padding: 16px 20px;
    background: #fafbfc;
    border-radius: var(--gh-radius);
    border: 1px solid var(--gh-gray-200);
}
.variants-label {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 12px;
    color: var(--gh-gray-700);
}
.variants-label i { color: var(--gh-primary); margin-right: 4px; }
.variants-label strong { color: var(--gh-dark); }
.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.color-option {
    background: white;
    border: 2px solid var(--gh-gray-300);
    border-radius: 50px;
    padding: 5px 14px 5px 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.color-option:hover {
    border-color: var(--gh-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.color-option.selected {
    border-color: var(--gh-primary);
    background: linear-gradient(135deg, #f0f3ff, #e0e7ff);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    display: inline-block;
}
.color-label {
    font-weight: 600;
    color: var(--gh-dark);
}
.color-option.selected .color-label { color: var(--gh-primary); }

/* Meta */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.meta-item {
    padding: 8px 12px;
    background: var(--gh-gray-100);
    border-radius: 10px;
}
.meta-label {
    display: block;
    font-size: 0.72rem;
    color: var(--gh-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

/* Qty selector */
.qty-cart-row {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    align-items: stretch;
    flex-wrap: wrap;
}
.qty-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 2px solid var(--gh-gray-300);
    border-radius: 12px;
    padding: 4px;
    flex-shrink: 0;
}
.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    background: transparent;
    -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-selector .qty-btn {
    width: 36px;
    height: 36px;
    background: var(--gh-gray-100);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--gh-gray-200);
    border-bottom: 1px solid var(--gh-gray-200);
}
.trust-item {
    font-size: 0.82rem;
    color: var(--gh-gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}
.trust-item i { color: var(--gh-accent); font-size: 1rem; }

/* Tabs */
.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--gh-gray-200);
}
.product-tabs .nav-link {
    border: none;
    color: var(--gh-gray-500);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
}
.product-tabs .nav-link.active {
    background: white;
    color: var(--gh-primary);
    border-bottom: 3px solid var(--gh-primary);
}
.product-tabs .table th {
    font-weight: 600;
    color: var(--gh-gray-700);
    width: 30%;
    background: var(--gh-gray-100);
}

/* ============================================
   SHOP PAGE
   ============================================ */
.shop-section { 
    padding: 24px 0 50px; 
}

.shop-header {
    background: white;
    padding: 20px 24px;
    border-radius: var(--gh-radius);
    box-shadow: var(--gh-shadow);
}
.shop-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--gh-dark);
}
.shop-meta {
    color: var(--gh-gray-500);
    margin: 0;
    font-size: 0.9rem;
}

.shop-toolbar {
    background: white;
    padding: 14px 18px;
    border-radius: var(--gh-radius-sm);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--gh-shadow);
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    border-radius: var(--gh-radius);
    padding: 20px;
    box-shadow: var(--gh-shadow);
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--gh-gray-300); border-radius: 2px; }

.filter-block {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gh-gray-200);
}
.filter-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-heading {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gh-gray-700);
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-heading i {
    color: var(--gh-primary);
    font-size: 0.95rem;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-list li { 
    margin: 0; 
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--gh-gray-700) !important;
    font-size: 0.88rem;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.filter-link:hover {
    background: var(--gh-gray-100);
    color: var(--gh-dark) !important;
}
.filter-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--gh-primary) !important;
    font-weight: 600;
}
.filter-link span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.filter-link i {
    color: var(--gh-gray-500);
    font-size: 0.9rem;
}
.filter-link.active i {
    color: var(--gh-primary);
}
.filter-count {
    background: var(--gh-gray-100);
    color: var(--gh-gray-700);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}
.filter-link.active .filter-count {
    background: var(--gh-primary);
    color: white;
}

/* Empty state */
.empty-state {
    background: white;
    border-radius: var(--gh-radius);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--gh-shadow);
}

/* Mobile filter sidebar */
@media (max-width: 991px) {
    .filter-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 16px;
    }
}

/* ============================================
   TOAST
   ============================================ */
.gh-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--gh-dark);
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: var(--gh-shadow-lg);
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
}
.gh-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.gh-toast.error { background: var(--gh-danger); }
.gh-toast i { font-size: 1.2rem; }

/* ============================================
   CART PAGE
   ============================================ */
.cart-line-total {
    color: var(--gh-primary);
    font-size: 1.05rem;
}

/* ============================================
   ORDER & TRACK PAGES
   ============================================ */
.success-card {
    background: white;
    border-radius: var(--gh-radius);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--gh-shadow-lg);
}
.success-icon {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}
.success-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.order-info-box {
    background: linear-gradient(135deg, #f0f3ff, #e0e7ff);
    padding: 22px;
    border-radius: var(--gh-radius);
    margin: 26px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    text-align: left;
}
.info-item { padding: 6px 0; }
.info-label {
    display: block;
    font-size: 0.72rem;
    color: var(--gh-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.info-value { font-size: 1.1rem; }
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.sms-info {
    margin-top: 26px;
    padding: 14px;
    background: var(--gh-gray-100);
    border-radius: var(--gh-radius-sm);
    color: var(--gh-gray-700);
}
.sms-info i { font-size: 1.4rem; color: var(--gh-primary); margin-right: 6px; }
.sms-info p { margin: 0; display: inline; }

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}
.status-pending    { background: #fef3c7; color: #92400e; }
.status-confirmed  { background: #dbeafe; color: #1e40af; }
.status-processing { background: #e0e7ff; color: #4338ca; }
.status-shipped    { background: #ddd6fe; color: #5b21b6; }
.status-delivered  { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-returned   { background: #fed7aa; color: #9a3412; }

/* Status timeline */
.status-timeline {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    position: relative;
    margin-bottom: 24px;
}
.status-timeline::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: var(--gh-gray-300);
    z-index: 0;
}
.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-icon {
    width: 44px; height: 44px;
    background: var(--gh-gray-100);
    border: 3px solid var(--gh-gray-300);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gh-gray-500);
    margin-bottom: 6px;
    transition: all 0.3s;
}
.timeline-step.active .step-icon {
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    border-color: var(--gh-primary);
    color: white;
    transform: scale(1.1);
}
.timeline-step.current .step-icon {
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2);
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0.05); }
}
.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gh-gray-500);
}
.timeline-step.active .step-label { color: var(--gh-dark); }

.cancelled-notice {
    background: #fee2e2;
    color: #991b1b;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gh-gray-100);
    border-radius: 10px;
    margin-bottom: 8px;
}
.ti-thumb {
    width: 44px; height: 44px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gh-primary);
}
.ti-info { flex: 1; min-width: 0; }

.history-list, .history-timeline { max-height: 380px; overflow-y: auto; }
.history-item {
    padding: 10px 0 10px 16px;
    border-left: 2px solid var(--gh-primary);
    margin-bottom: 4px;
}

.order-card {
    background: white;
    border-radius: var(--gh-radius);
    margin-bottom: 14px;
    box-shadow: var(--gh-shadow);
    overflow: hidden;
}
.order-card-header {
    padding: 14px 22px;
    background: var(--gh-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-card-body { padding: 18px 22px; }

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-card {
    background: white;
    border-radius: var(--gh-radius);
    box-shadow: var(--gh-shadow);
    overflow: hidden;
}
.checkout-card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--gh-gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkout-card-header h4 { margin: 0; font-weight: 700; font-size: 1.1rem; }
.step-num {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.checkout-card-body { padding: 22px; }

.zone-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.zone-option { cursor: pointer; }
.zone-option input { display: none; }
.zone-card {
    padding: 14px;
    border: 2px solid var(--gh-gray-300);
    border-radius: 12px;
    transition: all 0.2s;
}
.zone-option input:checked + .zone-card,
.zone-card.selected {
    border-color: var(--gh-primary);
    background: rgba(99, 102, 241, 0.05);
}
.zone-name { font-weight: 600; margin-bottom: 6px; }
.zone-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}
.zone-days { color: var(--gh-gray-500); }
.zone-cost { color: var(--gh-primary); font-weight: 700; }

.payment-options { display: grid; gap: 10px; }
.payment-option { cursor: pointer; }
.payment-option input { display: none; }
.payment-option.disabled { cursor: not-allowed; opacity: 0.55; }
.payment-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 2px solid var(--gh-gray-300);
    border-radius: 12px;
    transition: all 0.2s;
}
.payment-option.active .payment-card {
    border-color: var(--gh-primary);
    background: rgba(99, 102, 241, 0.05);
}
.payment-icon {
    width: 48px; height: 48px;
    background: var(--gh-gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gh-primary);
}
.payment-info { flex: 1; }
.payment-name { font-weight: 600; }
.payment-desc { font-size: 0.82rem; color: var(--gh-gray-500); }
.payment-check {
    color: var(--gh-primary);
    font-size: 1.4rem;
    display: none;
}
.payment-option.active .payment-check { display: inline; }

.order-items { max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gh-gray-100);
}
.order-item-row:last-child { border-bottom: none; }
.oi-thumb {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #f8fafc, #e0e7ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gh-primary);
}
.oi-info { flex: 1; min-width: 0; }
.oi-name {
    font-size: 0.88rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oi-meta { font-size: 0.78rem; color: var(--gh-gray-500); }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}
.summary-row.total { padding-top: 12px; }

/* ============================================
   TRACK PAGE
   ============================================ */
.track-section { padding: 30px 0 50px; }
.track-card {
    background: white;
    border-radius: var(--gh-radius);
    padding: 30px;
    box-shadow: var(--gh-shadow);
}
.track-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    color: white;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

/* ============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================ */

/* Tablet (≤991px) */
@media (max-width: 991px) {
    .hero-main-card {
        min-height: 280px;
        padding: 28px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-visual { width: 130px; height: 130px; margin-top: 10px; }
    .hero-visual i { font-size: 4.5rem; }
    .hero-side-grid {
        grid-template-rows: none;
        grid-template-columns: 1fr 1fr 1fr;
        min-height: auto;
    }
    .hero-side-card { padding: 14px 12px; }
    .hero-side-card p { display: none; }
    .hero-side-card h4 { font-size: 0.95rem; }
    .side-visual { width: 50px; height: 50px; }
    .side-visual i { font-size: 1.8rem; }
    .product-detail-info { padding-left: 0; padding-top: 16px; }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .section-title { font-size: 1.3rem; }
    .product-detail-title { font-size: 1.4rem; }
    .price-current-lg { font-size: 1.4rem; }
    .product-gallery .main-image { height: 320px; }

    /* Mobile qty + button stack */
    .qty-cart-row {
        flex-direction: column;
        gap: 10px;
    }
    .qty-selector {
        width: 100%;
        justify-content: space-between;
    }
    .qty-selector input { width: 100%; }
    .qty-cart-row .gh-btn-primary { width: 100%; justify-content: center; }
}

/* Small Mobile (≤575px) */
@media (max-width: 575px) {
    .hero-title { font-size: 1.4rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .hero-side-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .hero-side-card p { display: block; }
    .side-visual { width: 60px; height: 60px; }
    .side-visual i { font-size: 2.2rem; }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .cat-card { padding: 18px 10px; }
    .cat-icon-wrap { width: 50px; height: 50px; }
    .cat-icon-wrap i { font-size: 1.4rem; }
    .product-image i { font-size: 3rem; }
    .product-info { padding: 12px; }
    .product-name { font-size: 0.85rem; min-height: 2.4em; }
    .price-current { font-size: 0.95rem; }
    .add-cart-btn { font-size: 0.78rem; padding: 7px; }
    .cart-drawer {
        width: 100% !important;
        max-width: 100vw;
    }
    .cart-item-image {
        width: 56px !important;
        height: 56px !important;
    }
    .sale-banner {
        padding: 16px;
    }
    .sale-banner h2 { font-size: 1.15rem; }

    /* Status timeline mobile */
    .status-timeline {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px 0;
    }
    .status-timeline::before { display: none; }
    .timeline-step { flex: 1 1 30%; }
    .step-icon { width: 36px; height: 36px; font-size: 1rem; }
}

/* ============================================
   FLOATING ACTION BUTTONS (WhatsApp, Messenger, BackTop)
   ============================================ */
.float-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    position: relative;
}
.float-btn:hover {
    transform: translateY(-4px) scale(1.06);
    color: white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.float-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: float-pulse 2.5s infinite;
}
.float-messenger {
    background: linear-gradient(135deg, #0084FF 0%, #006AFF 100%);
}
.float-back-top {
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-purple));
    opacity: 0;
    pointer-events: none;
}
.float-back-top.show {
    opacity: 1;
    pointer-events: auto;
}

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* Tooltip */
.float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--gh-dark);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.float-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--gh-dark);
}
.float-btn:hover .float-tooltip {
    opacity: 1;
}

/* Quick inquiry on product page */
.quick-inquiry {
    margin-top: 14px;
    padding: 14px 18px;
    background: var(--gh-gray-100);
    border-radius: var(--gh-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.inquiry-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gh-gray-700);
    margin-right: auto;
}
.inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white !important;
    transition: all 0.2s;
    text-decoration: none !important;
}
.inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    color: white !important;
}
.whatsapp-btn { background: #25D366; }
.whatsapp-btn:hover { background: #128C7E; }
.messenger-btn { background: #0084FF; }
.messenger-btn:hover { background: #006AFF; }

/* Mobile */
@media (max-width: 575px) {
    .float-buttons {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    .float-btn {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
    .quick-inquiry {
        padding: 10px 14px;
        gap: 8px;
    }
    .inquiry-label { width: 100%; margin-bottom: 4px; }
    .inquiry-btn { font-size: 0.8rem; padding: 6px 12px; flex: 1; justify-content: center; }
}

/* ============================================
   DEALS PAGE
   ============================================ */
.deals-hero {
    padding: 30px 0 0;
}

.deals-banner {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    border-radius: var(--gh-radius-lg);
    padding: 40px 36px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.25);
}
.deals-banner-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.deals-banner-content { position: relative; z-index: 1; }
.deals-banner .hero-badge {
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: 14px;
}
.deals-banner h1 {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}
.text-white-75 { color: rgba(255, 255, 255, 0.88); }

/* Deal stats */
.deal-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}
.deal-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}
.deal-stat-label {
    font-size: 0.78rem;
    opacity: 0.9;
}

/* Savings badge */
.savings-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

/* Mobile */
@media (max-width: 575px) {
    .deals-banner { padding: 28px 22px; }
    .deals-banner h1 { font-size: 1.4rem; }
    .deal-stat { padding: 12px 8px; }
    .deal-stat-value { font-size: 1.2rem; }
    .deal-stat-label { font-size: 0.72rem; }
}