﻿: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);
    }
    .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;
    }

    /* ========== 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); }

    /* ========== BREADCRUMB ========== */
    .breadcrumb-section {
      background: var(--white); padding: 14px 0; border-bottom: 1px solid var(--border-light);
    }
    .breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #6b7280; }
    .breadcrumb-nav a { color: #6b7280; text-decoration: none; transition: var(--transition); }
    .breadcrumb-nav a:hover { color: var(--accent); }
    .breadcrumb-nav .separator { color: #d1d5db; }
    .breadcrumb-nav .current { color: var(--primary); font-weight: 600; }

    /* ========== SHOP CONTENT ========== */
    .shop-section { padding: 30px 0; }
    .shop-layout { display: flex; gap: 24px; }

    /* Sidebar */
    .sidebar {
      width: 280px; min-width: 280px; flex-shrink: 0;
    }
    .filter-block {
      background: var(--white); border-radius: var(--radius-md); padding: 20px;
      border: 1px solid var(--border-light); margin-bottom: 16px;
    }
    .filter-title {
      font-weight: 700; font-size: 0.9rem; color: var(--primary); margin-bottom: 14px;
      display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    }
    .filter-title i { font-size: 0.7rem; transition: var(--transition); }
    .filter-title.collapsed i { transform: rotate(-90deg); }
    .filter-body.collapsed { display: none; }

    /* Category Filter */
    .cat-filter-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 0; cursor: pointer; font-size: 0.82rem; color: #4b5563;
      transition: var(--transition);
    }
    .cat-filter-item:hover { color: var(--accent); }
    .cat-filter-item input { margin-right: 8px; accent-color: var(--accent); }
    .cat-filter-item .count { font-size: 0.75rem; color: #9ca3af; }

    /* Brand Filter */
    .brand-filter-item {
      display: flex; align-items: center; padding: 6px 0; cursor: pointer;
      font-size: 0.82rem; color: #4b5563; transition: var(--transition);
    }
    .brand-filter-item:hover { color: var(--accent); }
    .brand-filter-item input { margin-right: 8px; accent-color: var(--accent); }

    /* Price Range */
    .price-inputs { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }
    .price-inputs input {
      width: 100%; padding: 8px 10px; border: 1px solid var(--border-light);
      border-radius: 8px; font-size: 0.8rem; outline: none; font-weight: 500;
    }
    .price-inputs input:focus { border-color: var(--accent); }
    .price-inputs span { color: #9ca3af; }
    .price-slider { margin: 8px 0 14px; }
    .noUi-target { background: #e5e7eb; border: none; border-radius: 10px; height: 6px; }
    .noUi-connect { background: var(--accent); }
    .noUi-handle {
      width: 20px; height: 20px; border-radius: 50%; background: #fff;
      border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      cursor: pointer; right: -10px; top: -8px;
    }
    .noUi-handle:before, .noUi-handle:after { display: none; }
    .btn-apply-price {
      width: 100%; background: var(--primary); color: #fff; border: none;
      padding: 8px; border-radius: 8px; font-weight: 600; font-size: 0.78rem;
      cursor: pointer; transition: var(--transition);
    }
    .btn-apply-price:hover { background: #1f2937; }

    /* Rating Filter */
    .rating-filter-item {
      display: flex; align-items: center; padding: 6px 0; cursor: pointer;
      font-size: 0.82rem; color: #4b5563; transition: var(--transition);
    }
    .rating-filter-item:hover { color: var(--accent); }
    .rating-filter-item input { margin-right: 8px; accent-color: var(--accent); }
    .rating-stars { color: #f59e0b; margin-left: 4px; }

    /* Color Filter */
    .color-filter-grid { display: flex; flex-wrap: wrap; gap: 8px; }
    .color-filter-item {
      width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
      border: 2px solid transparent; transition: var(--transition);
    }
    .color-filter-item:hover { border-color: #d1d5db; }
    .color-filter-item.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(212,168,83,0.2); }

    /* Filter Buttons */
    .filter-actions { display: flex; gap: 8px; margin-top: 12px; }
    .btn-filter-action {
      flex: 1; padding: 8px; border-radius: 8px; font-weight: 600; font-size: 0.78rem;
      cursor: pointer; transition: var(--transition); border: none;
    }
    .btn-clear { background: #f3f4f6; color: #4b5563; }
    .btn-clear:hover { background: #e5e7eb; }
    .btn-apply { background: var(--accent); color: #000; }
    .btn-apply:hover { background: var(--accent-hover); }

    /* Products Area */
    .products-area { flex: 1; min-width: 0; }
    .shop-header-bar {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
    }
    .shop-header-bar .results-count { font-size: 0.85rem; color: #6b7280; }
    .sort-select {
      padding: 8px 14px; border: 1px solid var(--border-light); border-radius: 8px;
      font-size: 0.82rem; outline: none; cursor: pointer; font-weight: 500;
    }
    .sort-select:focus { border-color: var(--accent); }
    .active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
    .active-filter-tag {
      background: #f3f4f6; padding: 5px 12px; border-radius: 20px;
      font-size: 0.75rem; font-weight: 500; cursor: pointer; display: flex;
      align-items: center; gap: 6px; transition: var(--transition);
    }
    .active-filter-tag:hover { background: #e5e7eb; }
    .active-filter-tag i { font-size: 0.65rem; }

    /* Product Grid - 4 Columns */
    .product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .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; }
    .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-sm { width: 14px; height: 14px; border-width: 2px; display: none; }
    .btn-add.adding .spinner-border-sm { display: inline-block; }
    .btn-add.adding .btn-text { display: none; }

    .no-products { text-align: center; padding: 60px 20px; color: #9ca3af; }
    .no-products i { font-size: 3rem; display: block; margin-bottom: 12px; }

    /* Mobile Filter Toggle */
    .btn-filter-toggle {
      display: none; background: var(--primary); color: #fff; border: none;
      padding: 10px 18px; border-radius: 50px; font-weight: 600; font-size: 0.85rem;
      cursor: pointer; align-items: center; gap: 6px;
    }

    /* ========== 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); }
    .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; }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 1400px) {
      .product-grid { grid-template-columns: repeat(4, 1fr); }
    }
    @media (max-width: 1200px) {
      .sidebar { width: 250px; min-width: 250px; }
      .product-grid { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 992px) {
      .shop-layout { flex-direction: column; }
      .sidebar { display: none; width: 100%; min-width: 100%; }
      .sidebar.active { display: block; }
      .btn-filter-toggle { display: inline-flex; }
      .product-grid { grid-template-columns: repeat(3, 1fr); }
      .cart-panel { width: 100%; right: -100%; }
    }
    @media (max-width: 768px) {
      .product-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 576px) {
      .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
      .product-card .img-wrap { height: 150px; }
      .shop-header-bar { flex-direction: column; align-items: flex-start; }
    }
    @media (max-width: 400px) {
      .product-grid { grid-template-columns: 1fr; }
    }
