﻿:root {
      --primary: #0a0a0a;
      --accent: #d4a853;
      --accent-hover: #c49a3e;
      --light-bg: #fafafa;
      --white: #ffffff;
      --text-dark: #1a1a1a;
      --text-muted: #6b7280;
      --border-light: #e5e7eb;
      --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06);
      --card-shadow-hover: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.12);
      --radius-sm: 10px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background-color: var(--light-bg);
      color: var(--text-dark);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    /* ========== TOP BAR ========== */
    .top-bar {
      background: var(--primary); color: #ffffff; font-size: 0.78rem;
      padding: 8px 0; letter-spacing: 0.3px; font-weight: 500;
    }
    .top-bar a { color: #ccc; text-decoration: none; transition: var(--transition); }
    .top-bar a:hover { color: var(--accent); }
    .top-bar .divider { color: #555; margin: 0 10px; }

    /* ========== HEADER ========== */
    .main-header {
      background: var(--white); padding: 14px 0; border-bottom: 1px solid var(--border-light);
      position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    }
    .logo {
      font-size: 1.7rem; font-weight: 800; letter-spacing: -0.8px;
      color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 3px;
    }
    .logo .accent-dot { color: var(--accent); }
    .logo:hover { color: var(--primary); }
    .search-wrapper { position: relative; max-width: 480px; width: 100%; }
    .search-wrapper input {
      width: 100%; padding: 11px 44px 11px 18px; border: 2px solid var(--border-light);
      border-radius: 50px; font-size: 0.88rem; font-weight: 500; background: #f9fafb;
      transition: var(--transition); outline: none;
    }
    .search-wrapper input:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.08); }
    .search-wrapper .search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 1.05rem; pointer-events: none; }
    .header-actions { display: flex; align-items: center; gap: 6px; }
    .icon-btn {
      position: relative; background: transparent; border: none; font-size: 1.35rem;
      color: #374151; padding: 8px; border-radius: 50%; transition: var(--transition);
      cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    }
    .icon-btn:hover { background: #f3f4f6; color: var(--accent); }
    .icon-btn .badge-pill {
      position: absolute; top: 2px; right: 2px; background: #ef4444; color: white;
      font-size: 0.6rem; font-weight: 700; min-width: 17px; height: 17px;
      border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white;
      transition: transform 0.3s ease;
    }
    .badge-pill.bump { animation: bump 0.3s ease; }
    @keyframes bump {
      0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); }
    }

    /* ========== CART SLIDE PANEL ========== */
    .cart-overlay {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.5); z-index: 1040; opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .cart-overlay.active { opacity: 1; visibility: visible; }
    .cart-panel {
      position: fixed; top: 0; right: -450px; width: 420px; height: 100vh;
      background: #fff; z-index: 1050; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex; flex-direction: column; box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    }
    .cart-panel.active { right: 0; }
    .cart-header {
      padding: 20px 24px; border-bottom: 1px solid var(--border-light);
      display: flex; justify-content: space-between; align-items: center;
    }
    .cart-header h5 { font-weight: 700; font-size: 1.1rem; margin: 0; }
    .cart-close {
      background: none; border: none; font-size: 1.3rem; cursor: pointer;
      color: #6b7280; transition: var(--transition); padding: 4px 8px; border-radius: 8px;
    }
    .cart-close:hover { background: #f3f4f6; color: #ef4444; }
    .cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
    .cart-empty { text-align: center; padding: 60px 20px; color: #9ca3af; }
    .cart-empty i { font-size: 3rem; display: block; margin-bottom: 12px; }
    .cart-item {
      display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f3f4f6;
      align-items: center;
    }
    .cart-item-img {
      width: 70px; height: 70px; border-radius: var(--radius-sm); overflow: hidden;
      background: #f5f5f5; flex-shrink: 0;
    }
    .cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
    .cart-item-info { flex: 1; }
    .cart-item-info h6 { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
    .cart-item-info .item-meta { font-size: 0.75rem; color: #6b7280; }
    .cart-item-price { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
    .cart-item-qty {
      display: flex; align-items: center; gap: 8px; margin-top: 4px;
    }
    .qty-btn {
      width: 26px; height: 26px; border-radius: 50%; border: 1px solid #d1d5db;
      background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
      font-size: 0.8rem; transition: var(--transition);
    }
    .qty-btn:hover { background: #f3f4f6; }
    .qty-num { font-weight: 600; font-size: 0.85rem; min-width: 20px; text-align: center; }
    .cart-item-remove {
      background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1rem;
      padding: 4px; transition: var(--transition);
    }
    .cart-item-remove:hover { color: #dc2626; }
    .cart-footer {
      padding: 20px 24px; border-top: 1px solid var(--border-light);
    }
    .cart-total {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 14px; font-weight: 700; font-size: 1rem;
    }
    .cart-total .total-price { font-size: 1.2rem; color: var(--primary); }
    .btn-checkout {
      width: 100%; background: var(--accent); color: #000; font-weight: 700;
      padding: 13px; border-radius: 50px; border: none; cursor: pointer;
      transition: var(--transition); font-size: 0.9rem; letter-spacing: 0.3px;
    }
    .btn-checkout:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(212, 168, 83, 0.3); }

    /* ========== SPINNER ON BUTTON ========== */
    .btn-add {
      width: 100%; background: var(--primary); color: white; border: none; padding: 9px;
      border-radius: 50px; font-weight: 700; font-size: 0.78rem; cursor: pointer;
      transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 5px;
      letter-spacing: 0.2px; position: relative; overflow: hidden;
    }
    .btn-add:hover { background: #1f2937; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
    .btn-add.adding { pointer-events: none; opacity: 0.8; }
    .btn-add .spinner-border {
      width: 14px; height: 14px; border-width: 2px; display: none;
    }
    .btn-add.adding .spinner-border { display: inline-block; }
    .btn-add.adding .btn-text { display: none; }
    .btn-add .btn-text { display: inline; }

    /* ========== HERO BANNER ========== */
    .hero-section { padding: 22px 0 20px; }
    .hero-row { display: flex; gap: 16px; border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; }
    .hero-categories-sidebar {
      width: 220px; min-width: 220px; background: #ffffff; border-radius: var(--radius-lg);
      padding: 16px 0; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); border: 1px solid var(--border-light);
      display: flex; flex-direction: column;
    }
    .hero-categories-sidebar .sidebar-title {
      font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.6px;
      color: #9ca3af; padding: 0 18px 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 8px;
    }
    .hero-categories-sidebar .cat-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
    .hero-categories-sidebar .cat-list li a {
      display: flex; align-items: center; justify-content: space-between; padding: 6px 18px;
      font-size: 0.85rem; font-weight: 500; color: #374151; text-decoration: none;
      transition: var(--transition); border-left: 3px solid transparent;
    }
    .hero-categories-sidebar .cat-list li a:hover { background: #f9fafb; color: var(--accent); border-left-color: var(--accent); }
    .hero-categories-sidebar .cat-list li a i { font-size: 0.7rem; color: #d1d5db; }
    .hero-categories-sidebar .view-all-cat {
      padding: 14px 18px 6px; font-weight: 700; font-size: 0.8rem; color: var(--accent);
      text-decoration: none; display: block; border-top: 1px solid var(--border-light); margin-top: 8px; text-align: center;
    }
    .hero-slider-wrapper { flex: 1; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
    .hero-slide {
      background: linear-gradient(105deg, #0f0f0f 0%, #1a1a1a 55%, #2a2a2a 100%);
      display: flex; align-items: center; padding: 30px 40px; height: 100%; position: relative; overflow: hidden;
    }
    .hero-slide.slide-2 { background: linear-gradient(105deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
    .hero-slide.slide-3 { background: linear-gradient(105deg, #1a0a0a 0%, #2d1a1a 50%, #4a2020 100%); }
    .hero-slide::after {
      content: ''; position: absolute; top: -40px; right: -20px; width: 300px; height: 300px;
      background: radial-gradient(circle, rgba(212, 168, 83, 0.15) 0%, transparent 70%); border-radius: 50%;
    }
    .hero-content { position: relative; z-index: 2; max-width: 420px; }
    .hero-badge {
      display: inline-block; background: rgba(212, 168, 83, 0.15); color: var(--accent);
      font-weight: 700; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase;
      padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
    }
    .hero-title { font-size: 2.2rem; font-weight: 800; color: #ffffff; line-height: 1.2; letter-spacing: -0.8px; margin-bottom: 12px; }
    .hero-title .gold { color: var(--accent); }
    .hero-desc { color: #a1a1aa; font-size: 0.9rem; margin-bottom: 20px; font-weight: 400; }
    .btn-gold {
      background: var(--accent); color: #0f0f0f; font-weight: 700; padding: 11px 26px;
      border-radius: 50px; border: none; font-size: 0.88rem; letter-spacing: 0.3px;
      transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
    }
    .btn-gold:hover { background: var(--accent-hover); color: #000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 168, 83, 0.3); }
    .hero-slide .hero-image { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-end; flex: 1; }
    .hero-slide .hero-image img { max-height: 300px; object-fit: contain; border-radius: 16px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5)); }

    /* ========== CATEGORIES CAROUSEL ========== */
    .category-card {
      background: var(--white); border-radius: var(--radius-md); padding: 20px 14px 16px;
      text-align: center; border: 1px solid var(--border-light); transition: var(--transition);
      cursor: pointer; height: 100%; display: flex; flex-direction: column; align-items: center;
      justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    }
    .category-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: #d1d5db; }
    .category-card .cat-icon-wrapper {
      width: 70px; height: 70px; border-radius: 50%; background: #f8fafc; display: flex;
      align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden;
      border: 2px solid #f1f5f9; transition: var(--transition);
    }
    .category-card:hover .cat-icon-wrapper { border-color: var(--accent); background: #fefce8; }
    .category-card .cat-icon-wrapper img { width: 48px; height: 48px; object-fit: contain; }
    .category-card .cat-name { font-weight: 700; font-size: 0.82rem; color: var(--primary); letter-spacing: 0.2px; }

    /* ========== SECTION TITLES ========== */
    .section-header {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 12px; margin-top: 20px;
    }
    .section-title {
      font-size: 1.3rem; font-weight: 800; letter-spacing: -0.4px; color: var(--primary);
      display: flex; align-items: center; gap: 8px;
    }
    .section-title .icon-circle {
      width: 32px; height: 32px; background: #f3f4f6; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
    }
    .view-all {
      font-weight: 700; font-size: 0.82rem; color: var(--text-muted); text-decoration: none;
      transition: var(--transition); display: flex; align-items: center; gap: 4px;
    }
    .view-all:hover { color: var(--accent); }

    /* ========== PRODUCT ROW ========== */
    .product-section-row { display: flex; gap: 16px; align-items: stretch; }
    .ad-banner-card {
      width: 280px; min-width: 280px; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center;
      justify-content: center; text-align: center; padding: 24px 20px; border: 1px solid var(--border-light);
      transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
    }
    .ad-banner-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
    .ad-banner-card .ad-tag {
      position: absolute; top: 16px; left: 16px; background: var(--accent); color: #000;
      font-weight: 700; font-size: 0.65rem; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.5px;
    }
    .ad-banner-card img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 14px; }
    .ad-banner-card h4 { font-weight: 700; font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
    .ad-banner-card p { font-size: 0.78rem; color: #6b7280; margin-bottom: 14px; }
    .ad-banner-card .btn-sm-gold {
      background: var(--accent); color: #000; font-weight: 700; font-size: 0.75rem;
      padding: 8px 18px; border-radius: 50px; text-decoration: none; transition: var(--transition);
    }
    .ad-banner-card .btn-sm-gold:hover { background: var(--accent-hover); }
    .product-carousel-container { flex: 1; overflow: hidden; position: relative; min-width: 0; }

    .product-card {
      background: var(--white); border-radius: var(--radius-md); overflow: hidden;
      border: 1px solid var(--border-light); transition: var(--transition); position: relative;
      display: flex; flex-direction: column; box-shadow: var(--card-shadow); height: 100%;
    }
    .product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: #d1d5db; }
    .product-card .img-wrap {
      position: relative; background: #f5f5f5; height: 200px; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
    }
    .product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
    .product-card:hover .img-wrap img { transform: scale(1.05); }
    .product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 3; }
    .badge-sale { background: #dc2626; color: white; font-size: 0.65rem; font-weight: 700; padding: 4px 9px; border-radius: 5px; letter-spacing: 0.3px; text-transform: uppercase; }
    .badge-new { background: #059669; color: white; font-size: 0.65rem; font-weight: 700; padding: 4px 9px; border-radius: 5px; }
    .wishlist-btn {
      position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.9);
      border: none; width: 30px; height: 30px; border-radius: 50%; display: flex;
      align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
      z-index: 3; color: #6b7280; font-size: 0.9rem; backdrop-filter: blur(4px);
    }
    .wishlist-btn:hover { background: #fff; color: #ef4444; }
    .product-info { padding: 14px 15px 16px; display: flex; flex-direction: column; flex-grow: 1; }
    .product-category { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--accent); margin-bottom: 3px; }
    .product-name { font-weight: 700; font-size: 0.9rem; color: var(--primary); margin-bottom: 2px; line-height: 1.3; }
    .product-desc { font-size: 0.75rem; color: #6b7280; margin-bottom: 8px; flex-grow: 1; }
    .product-rating { display: flex; align-items: center; gap: 3px; margin-bottom: 8px; font-size: 0.7rem; color: #f59e0b; }
    .product-rating span { color: #6b7280; margin-left: 3px; }
    .price-area { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
    .current-price { font-weight: 800; font-size: 1.05rem; color: var(--primary); }
    .old-price { font-size: 0.78rem; color: #9ca3af; text-decoration: line-through; font-weight: 500; }

    /* ========== RECOMMENDED GRID ========== */
    .product-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
    .product-grid-6 .product-card .img-wrap { height: 180px; }

    /* ========== BRAND STRIP ========== */
    .brand-strip {
      background: var(--white); border-radius: var(--radius-md); padding: 24px 16px;
      display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around;
      gap: 16px; border: 1px solid var(--border-light); margin: 28px 0;
    }
    .brand-strip img { height: 28px; opacity: 0.45; transition: var(--transition); filter: grayscale(100%); }
    .brand-strip img:hover { opacity: 1; filter: grayscale(0%); }

    /* ========== FOOTER ========== */
    .site-footer { background: #111111; color: #d1d5db; padding: 44px 0 20px; margin-top: 36px; }
    .site-footer h5 { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 0.9rem; letter-spacing: 0.3px; }
    .site-footer a { color: #9ca3af; text-decoration: none; font-size: 0.82rem; display: block; margin-bottom: 7px; transition: var(--transition); }
    .site-footer a:hover { color: var(--accent); }
    .footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
    .footer-logo .accent-dot { color: var(--accent); }
    .newsletter-input { display: flex; gap: 7px; margin-top: 10px; }
    .newsletter-input input { flex: 1; padding: 9px 14px; border-radius: 50px; border: 1px solid #374151; background: #1f1f1f; color: #fff; outline: none; font-size: 0.82rem; }
    .newsletter-input button { background: var(--accent); border: none; color: #000; font-weight: 700; padding: 9px 18px; border-radius: 50px; cursor: pointer; transition: var(--transition); }
    .newsletter-input button:hover { background: #c99c3b; }

    /* ========== SWIPER NAVIGATION ========== */
    .swiper-button-next, .swiper-button-prev { color: #374151 !important; }
    .swiper-button-next:after, .swiper-button-prev:after { font-size: 0.75rem !important; font-weight: 700; }
    .swiper-pagination-hero .swiper-pagination-bullet { background: #fff; opacity: 0.4; }
    .swiper-pagination-hero .swiper-pagination-bullet-active { opacity: 1; background: var(--accent); }
    .cat-swiper-nav { background: #fff; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; }
    .prod-swiper-nav { background: #fff; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border: 1px solid #e5e7eb; }

    /* ========== TOASTR CUSTOM ========== */
    .toast-success { background-color: #059669 !important; }
    .toast-info { background-color: #2563eb !important; }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 1400px) { .product-grid-6 { grid-template-columns: repeat(4, 1fr); } }
    @media (max-width: 1200px) {
      .hero-categories-sidebar { width: 200px; min-width: 200px; }
      .ad-banner-card { width: 240px; min-width: 240px; }
      .hero-title { font-size: 1.8rem; }
      .cart-panel { width: 380px; }
    }
    @media (max-width: 992px) {
      .hero-row { flex-direction: column; min-height: auto; }
      .hero-categories-sidebar { width: 100%; min-width: 100%; flex-direction: row; flex-wrap: wrap; padding: 10px; border-radius: var(--radius-md); }
      .hero-categories-sidebar .sidebar-title { width: 100%; padding: 6px 14px; margin-bottom: 4px; }
      .hero-categories-sidebar .cat-list { display: flex; flex-wrap: wrap; gap: 4px; }
      .hero-categories-sidebar .cat-list li a { padding: 8px 12px; font-size: 0.75rem; border-left: none; border-radius: 20px; background: #f3f4f6; }
      .hero-categories-sidebar .view-all-cat { width: 100%; text-align: right; border-top: none; margin-top: 4px; }
      .hero-slider-wrapper { min-height: 320px; }
      .product-section-row { flex-direction: column; }
      .ad-banner-card { width: 100%; min-width: 100%; flex-direction: row; gap: 16px; text-align: left; padding: 18px 22px; }
      .ad-banner-card img { width: 80px; height: 80px; margin-bottom: 0; }
      .hero-slide { flex-direction: column; text-align: center; padding: 20px; }
      .hero-slide .hero-image { justify-content: center; }
      .hero-slide .hero-image img { max-height: 180px; margin-top: 14px; }
      .product-grid-6 { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 768px) { .product-grid-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cart-panel { width: 100%; right: -100%; } }
    @media (max-width: 576px) {
      .hero-slide .hero-image img { max-height: 140px; }
      .hero-title { font-size: 1.4rem; }
      .product-card .img-wrap { height: 150px; }
      .product-grid-6 .product-card .img-wrap { height: 140px; }
    }
    @media (max-width: 480px) { .product-grid-6 { grid-template-columns: 1fr 1fr; gap: 10px; } }
