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

:root {
  --font-price: 'Futura', 'Futura PT', 'Futura-Medium', 'Futura Std', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ════════════════════════════════════════
       HEADER & LOGO
    ════════════════════════════════════════ */
    .header {
      background: var(--panel-bg);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0; z-index: 500;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    }
    body.dark-theme .header {
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    }
    body.dark-theme .search-suggestions {
      background: #0f172a !important;
      border-color: #334155 !important;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
    }
    body.dark-theme .search-suggestion-item {
      border-bottom-color: #1e293b;
    }
    body.dark-theme .search-suggestion-item:hover,
    body.dark-theme .search-suggestion-item.active {
      background: rgba(251, 191, 36, 0.08);
    }
    body.dark-theme .search-suggestion-name {
      color: #f1f5f9;
    }
    body.dark-theme .search-suggestion-meta {
      color: #94a3b8;
    }
    body.dark-theme .search-suggestion-price {
      color: #fff44f;
    }
    body.dark-theme .search-no-results {
      color: #94a3b8;
    }
    body.dark-theme .search-view-all {
      color: #fff44f;
      border-top-color: #334155;
    }
    body.dark-theme .search-suggestion-item.smart-item {
      background: rgba(251, 191, 36, 0.04);
      border-bottom-color: rgba(251, 191, 36, 0.12);
    }
    body.dark-theme .search-suggestion-item.smart-item:hover,
    body.dark-theme .search-suggestion-item.smart-item.active {
      background: rgba(251, 191, 36, 0.08);
    }
    body.dark-theme .smart-value { color: #fff44f; }
    body.dark-theme .smart-add { background: #fff44f; color: #0f172a; }
    body.dark-theme .smart-add:hover { background: #eab308; box-shadow: 0 0 10px rgba(250,204,21,0.35); }
    body.dark-theme .smart-view { border-color: #334155; color: #94a3b8; }
    body.dark-theme .smart-view:hover { border-color: #fff44f; color: #fff44f; }
    body.dark-theme .search-divider {
      background: rgba(251, 191, 36, 0.06);
      border-top-color: #334155;
      border-bottom-color: #334155;
    }
    .search-suggestions {
      position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1000;
      background: #ffffff !important; border: 1.5px solid rgba(0, 0, 0, 0.1);
      border-radius: 20px; max-height: 440px;
      overflow-y: auto; box-shadow: 0 16px 40px rgba(0,0,0,0.18);
      display: none;
    }
    .search-suggestions.active { display: block; }
    .search-suggestion-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 16px; cursor: pointer;
      border-bottom: 1px solid var(--border); transition: background 0.15s;
    }
    .search-suggestion-item:last-child { border-bottom: none; }
    .search-suggestion-item:hover, .search-suggestion-item.active {
      background: rgba(234, 179, 8,0.08);
    }
    .search-suggestion-img {
      width: 44px; height: 44px; border-radius: 8px;
      object-fit: cover; flex-shrink: 0;
    }
    .search-suggestion-icon {
      width: 44px; height: 44px; border-radius: 8px;
      background: var(--glass-bg); display: flex;
      align-items: center; justify-content: center;
      font-size: 20px; flex-shrink: 0;
    }
    .search-suggestion-body { flex: 1; min-width: 0; }
    .search-suggestion-name {
      font-size: 13.5px; font-weight: 600; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .search-suggestion-name mark {
      background: #fff44f; color: #070a13;
      border-radius: 2px; padding: 0 2px;
    }
    body.dark-theme .search-suggestion-name mark {
      background: #fff44f; color: #0f172a;
    }
    .search-suggestion-meta {
      display: flex; gap: 8px; margin-top: 3px;
      font-size: 11px; color: var(--text-muted);
    }
    .search-suggestion-sku { font-weight: 600; }
    .search-suggestion-cat {
      background: var(--glass-bg); padding: 1px 8px;
      border-radius: 10px; font-size: 10px; font-weight: 600;
    }
    .search-suggestion-price {
      font-size: 13px; font-weight: 700; color: var(--primary);
      white-space: nowrap;
    }
    .search-view-all {
      padding: 10px 16px; text-align: center;
      font-size: 12px; font-weight: 700; color: var(--primary);
      cursor: pointer; border-top: 1px solid var(--border);
      transition: background 0.15s;
    }
    .search-view-all:hover { background: rgba(234, 179, 8,0.06); }
    .search-no-results {
      padding: 20px 16px; text-align: center;
      color: var(--text-muted); font-size: 13px;
    }
    .search-no-results .search-clear-btn {
      margin-top: 8px; padding: 6px 14px;
      border-radius: 6px; border: 1px solid var(--border);
      background: transparent; color: var(--text-muted);
      font-size: 12px; font-weight: 600; cursor: pointer;
    }
    .search-history-header, .search-popular-header {
      padding: 8px 16px; font-size: 11px; font-weight: 700;
      color: var(--text-muted); text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .search-history-chips, .search-popular-chips {
      display: flex; gap: 6px; flex-wrap: wrap;
      padding: 4px 16px 12px;
    }

    /* ════ YouTube-Style Autocomplete Suggestions ════ */
    .yt-suggest-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 9px 16px;
      cursor: pointer;
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
      transition: background 0.12s ease;
      position: relative;
    }
    body.dark-theme .yt-suggest-item {
      border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    .yt-suggest-item:hover,
    .yt-suggest-item.active {
      background: rgba(234, 179, 8, 0.09) !important;
    }
    body.dark-theme .yt-suggest-item:hover,
    body.dark-theme .yt-suggest-item.active {
      background: rgba(251, 191, 36, 0.12) !important;
    }
    .yt-suggest-icon {
      width: 18px;
      height: 18px;
      color: #94a3b8;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: color 0.15s ease;
    }
    .yt-suggest-item:hover .yt-suggest-icon,
    .yt-suggest-item.active .yt-suggest-icon {
      color: var(--primary, #eab308);
    }
    .yt-suggest-text {
      flex: 1;
      font-size: 14px;
      color: var(--text);
      line-height: 1.4;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left;
    }
    .yt-prefix {
      font-weight: 400;
      color: inherit;
    }
    .yt-bold {
      font-weight: 750;
      color: inherit;
    }
    .yt-insert-btn {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #94a3b8;
      background: transparent;
      border: none;
      cursor: pointer;
      opacity: 0.7;
      transition: all 0.15s ease;
      flex-shrink: 0;
    }
    .yt-insert-btn:hover {
      background: rgba(0, 0, 0, 0.08);
      color: var(--text);
      opacity: 1;
      transform: scale(1.1);
    }
    body.dark-theme .yt-insert-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }
    .yt-section-label {
      padding: 8px 16px 4px 16px;
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .search-chip {
      padding: 4px 10px; border-radius: 12px;
      border: 1px solid var(--border); background: var(--glass-bg);
      font-size: 11px; font-weight: 600; color: var(--text-muted);
      cursor: pointer; transition: var(--transition);
    }
    .search-chip:hover { border-color: var(--primary); color: #0f172a; }
    .search-clear-btn {
      background: none; border: none; color: var(--text-muted);
      font-size: 11px; font-weight: 600; cursor: pointer;
      text-decoration: underline;
    }
    .search-clear-btn:hover { color: var(--text); }
    .header-inner {
      width: 100%;
      max-width: var(--wrap);
      margin: auto;
      padding: 10px var(--px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      position: relative;
    }

    .header-inner > .logo,
    .header-inner > a.logo {
      flex: 1 1 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      min-width: 0;
      cursor: pointer;
      text-decoration: none;
    }
    .logo { display:flex; align-items:center; gap:10px; cursor: pointer; text-decoration: none; }
    .logo-mark {
      width:40px; height:40px; border-radius:10px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); color:#070a13;
      display:flex; align-items:center; justify-content:center;
      font-size:22px; font-weight:900;
      box-shadow:0 3px 12px var(--primary-glow);
    }
    .logo-t1 { font-size:18px; font-weight:900; color:var(--text); letter-spacing: -0.5px; }
    .logo-t2 { font-size:10px; color:var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

    /* Centered Search Bar (Google / YouTube Style Pill - Increased Width) */
    .header-inner > .search,
    .search {
      flex: 1 1 760px;
      width: 100%;
      max-width: 820px;
      height: 48px;
      margin: 0 auto; /* Truly centered between equal-flex left and right sides */
      display: flex;
      align-items: center;
      border: 1.5px solid var(--border);
      border-radius: 28px;
      overflow: visible;
      background: rgba(0,0,0,0.03);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      position: relative;
      box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    }
    body.dark-theme .header-inner > .search,
    body.dark-theme .search {
      background: rgba(255,255,255,0.04);
      border-color: rgba(255,255,255,0.12);
    }
    .header-inner > .search:focus-within,
    .search:focus-within {
      border-color: var(--primary);
      box-shadow: 0 4px 22px rgba(234, 179, 8, 0.22), 0 0 0 1.5px var(--primary);
      background: #fff;
    }
    body.dark-theme .header-inner > .search:focus-within,
    body.dark-theme .search:focus-within {
      background: rgba(15, 23, 42, 0.98);
      border-color: var(--primary);
    }
    .search-category-select-wrap {
      display: flex;
      align-items: center;
      background: rgba(0,0,0,0.025);
      border-right: 1px solid var(--border);
      height: 100%;
      border-radius: 28px 0 0 28px;
      padding-left: 12px;
    }
    body.dark-theme .search-category-select-wrap {
      background: rgba(255,255,255,0.03);
    }
    .search-category-select {
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
      padding: 0 10px;
      cursor: pointer;
      font-family: inherit;
      max-width: 130px;
    }
    body.dark-theme .search-category-select option {
      background: #0f172a;
      color: #f8fafc;
    }
    .search input {
      flex: 1; border: none; outline: none; padding: 0 16px;
      font-size: 14.5px; background: transparent; color: var(--text);
      width: 100%; height: 100%;
    }
    .search input::placeholder { color: var(--text-muted); font-size: 13.5px; }
    .search-shortcut {
      position: absolute;
      right: 115px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      gap: 3px;
      pointer-events: none;
      opacity: 0.55;
    }
    .search-shortcut kbd {
      background: var(--border);
      color: var(--text-muted);
      font-size: 9.5px;
      padding: 1px 4px;
      border-radius: 4px;
      font-family: inherit;
      font-weight: 700;
    }
    .search-clear-input-btn {
      position: absolute;
      right: 108px;
      top: 50%;
      transform: translateY(-50%);
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: rgba(148, 163, 184, 0.22);
      border: none;
      color: var(--text-muted);
      font-size: 12px;
      display: none;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
      z-index: 5;
    }
    .search-clear-input-btn:hover {
      background: rgba(239, 68, 68, 0.2);
      color: #ef4444;
    }
    .search-btn {
      background: linear-gradient(135deg, var(--primary) 0%, #ca8a04 100%);
      color: #070a13; padding: 0 22px;
      height: 100%;
      border-radius: 0 28px 28px 0;
      font-size: 13.5px; font-weight: 800;
      display: flex; align-items: center; gap: 6px;
      border: none;
      transition: var(--transition);
      cursor: pointer;
      flex-shrink: 0;
    }
    .search-btn:hover {
      background: linear-gradient(135deg, var(--primary-hover) 0%, #e6c800 100%);
      box-shadow: 0 0 14px var(--primary-glow);
    }

    .header-inner > .hdr-nav,
    .hdr-nav {
      flex: 1 1 0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      min-width: 0;
      gap: 8px;
    }

    @media (max-width: 1024px) {
      .header-inner {
        flex-wrap: wrap;
        gap: 12px;
      }
      .header-inner > .logo,
      .header-inner > a.logo {
        flex: 0 0 auto;
      }
      .header-inner > .hdr-nav,
      .hdr-nav {
        flex: 0 0 auto;
      }
      .header-inner > .search,
      .search {
        flex: 1 1 100%;
        max-width: 100%;
        order: 3;
        margin: 6px 0 0 0;
      }
    }

    /* Google / YouTube Style Suggestions Dropdown */
    .search-wrap { position: relative; flex:1; height: 100%; display: flex; align-items: center; }
    .search-suggestions {
      position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10000;
      background: var(--panel-bg, #ffffff); border: 1.5px solid var(--border);
      border-radius: 16px; max-height: 480px; overflow-y: auto;
      display: none; box-shadow: 0 16px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.06);
      backdrop-filter: blur(16px);
      padding: 6px 0;
      animation: searchFadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }
    @keyframes searchFadeIn {
      from { opacity: 0; transform: translateY(-5px); }
      to { opacity: 1; transform: translateY(0); }
    }
    body.dark-theme .search-suggestions {
      background: rgba(15, 23, 42, 0.98);
      border-color: rgba(255, 255, 255, 0.15);
      box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    }
    .search-suggestions.active { display: block; }
    .search-section-header {
      padding: 8px 16px 4px;
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
      border-top: 1px solid rgba(0,0,0,0.04);
      margin-top: 4px;
    }
    .search-section-header:first-child {
      border-top: none;
      margin-top: 0;
    }
    body.dark-theme .search-section-header {
      border-top-color: rgba(255,255,255,0.05);
    }
    .search-suggestion-item {
      padding: 9px 16px; cursor: pointer; display: flex; align-items: center; gap: 12px;
      transition: background 0.12s ease; border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    body.dark-theme .search-suggestion-item {
      border-bottom-color: rgba(255,255,255,0.04);
    }
    .search-suggestion-item:hover,
    .search-suggestion-item.active { background: rgba(234, 179, 8, 0.12); }
    .search-suggestion-item:last-child { border-bottom: none; }
    .search-cat-item {
      border-left: 3px solid transparent;
    }
    .search-cat-item:hover,
    .search-cat-item.active {
      border-left-color: var(--primary);
    }
    .search-badge-cat {
      display: inline-block;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      padding: 2px 6px;
      border-radius: 4px;
      background: rgba(59, 130, 246, 0.12);
      color: #2563eb;
      letter-spacing: 0.3px;
    }
    body.dark-theme .search-badge-cat {
      background: rgba(59, 130, 246, 0.25);
      color: #60a5fa;
    }
    .search-badge-pill {
      font-size: 10.5px;
      font-weight: 600;
      color: var(--text-muted);
      background: rgba(0,0,0,0.05);
      padding: 1px 6px;
      border-radius: 4px;
    }
    body.dark-theme .search-badge-pill {
      background: rgba(255,255,255,0.08);
      color: #94a3b8;
    }
    .search-item-count {
      font-size: 11px;
      color: var(--text-muted);
    }
    .search-arrow-indicator {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      margin-left: auto;
      transition: transform 0.15s ease, color 0.15s ease;
    }
    .search-cat-item:hover .search-arrow-indicator,
    .search-cat-item.active .search-arrow-indicator {
      color: var(--primary-hover, #ca8a04);
      transform: translateX(3px);
    }
    .search-suggestion-img {
      width: 40px; height: 40px; border-radius: 8px; object-fit: contain; flex-shrink: 0;
      background: rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: center;
      font-size: 18px; border: 1px solid var(--border);
    }
    body.dark-theme .search-suggestion-img {
      background: rgba(255,255,255,0.05);
    }
    .search-suggestion-icon {
      width: 36px; height: 36px; border-radius: 8px;
      background: rgba(234, 179, 8, 0.12);
      color: #ca8a04;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; flex-shrink: 0;
    }
    .search-suggestion-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .search-suggestion-name { font-size: 13.5px; color: var(--text); font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .search-suggestion-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .search-suggestion-sku { font-size: 11px; color: var(--text-muted); }
    .search-suggestion-cat { font-size: 10px; color: #0f172a; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
    .search-suggestion-right {
      display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0;
    }
    .search-suggestion-price {
      font-family: var(--font-price) !important;
      font-size: 15px !important;
      font-weight: 400 !important;
      color: #ef4444 !important;
      white-space: nowrap;
    }
    .search-suggestion-text { flex: 1; font-size: 13px; color: var(--text); }
    .search-suggestion-type { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
    .search-highlight,
    mark.search-highlight {
      background: rgba(234, 179, 8, 0.28) !important;
      color: #0f172a !important;
      font-weight: 850 !important;
      border-radius: 3px;
      padding: 0 2px;
    }
    body.dark-theme .search-highlight,
    body.dark-theme mark.search-highlight {
      background: rgba(234, 179, 8, 0.45) !important;
      color: #ffffff !important;
    }
    .search-view-all {
      padding: 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 13px;
      font-weight: 700;
      color: #0f172a;
      background: rgba(234, 179, 8, 0.08);
      border-top: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.15s ease;
    }
    body.dark-theme .search-view-all {
      color: #f8fafc;
      background: rgba(234, 179, 8, 0.15);
    }
    .search-view-all:hover {
      background: rgba(234, 179, 8, 0.18);
    }
    .search-view-all kbd {
      background: var(--border);
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
    }
    .search-history-header, .search-popular-header {
      padding: 8px 16px; font-size: 11px; font-weight: 700; color: var(--text-muted);
      text-transform: uppercase; letter-spacing: 0.5px; display: flex; justify-content: space-between; align-items: center;
    }
    .search-clear-btn {
      font-size: 11px; color: var(--primary-hover, #ca8a04); cursor: pointer; font-weight: 700;
      background: none; border: none; padding: 2px 6px;
    }
    .search-clear-btn:hover { text-decoration: underline; }
    .search-no-results { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
    .search-history-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 14px; }
    .search-chip {
      padding: 6px 12px; border-radius: 20px; font-size: 12px; cursor: pointer;
      background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text);
      transition: background 0.15s;
    }
    .search-chip:hover { background: rgba(234, 179, 8, 0.12); border-color: var(--primary); }
    .search-popular-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 14px; }

    /* Smart Search Assistant Card */
    .search-divider {
      padding: 6px 16px; font-size: 10px; font-weight: 700; color: var(--text-muted);
      text-transform: uppercase; letter-spacing: 0.6px; background: rgba(250,204,21,0.06);
      border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    }
    .search-suggestion-item.smart-item {
      background: rgba(250,204,21,0.04);
      border-bottom-color: rgba(250,204,21,0.12);
      flex-wrap: wrap;
      gap: 10px;
      padding: 12px 16px;
    }
    .search-suggestion-item.smart-item:hover,
    .search-suggestion-item.smart-item.active {
      background: rgba(250,204,21,0.08);
    }
    .smart-interpretation {
      font-size: 11px; color: var(--text-muted); margin-top: 4px;
      display: flex; align-items: center; gap: 6px;
    }
    .smart-label { font-weight: 700; color: var(--text); text-transform: uppercase; font-size: 10px; letter-spacing: 0.4px; }
    .smart-value { font-weight: 700; color: #facc15; }
    .smart-qty-row {
      display: flex; align-items: center; gap: 6px; margin-top: 6px;
    }
    .smart-qty-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
    .smart-qty-input {
      width: 70px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border);
      background: var(--white); color: var(--text); font-size: 13px; font-weight: 600;
      font-family: inherit; text-align: center;
    }
    body.dark-theme .smart-qty-input { background: #1e293b; color: #f1f5f9; border-color: #334155; }
    .smart-unit-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
    .smart-actions {
      display: flex; flex-direction: column; gap: 6px; min-width: 110px;
    }
    .smart-btn {
      padding: 6px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
      cursor: pointer; border: none; font-family: inherit; transition: all 0.15s;
      text-align: center; white-space: nowrap;
    }
    .smart-view {
      background: transparent; color: var(--text-muted); border: 1px solid var(--border);
    }
    .smart-view:hover { border-color: var(--primary); color: var(--primary); }
    .smart-add {
      background: #facc15; color: #070a13; font-weight: 800;
    }
    .smart-add:hover { background: #eab308; box-shadow: 0 0 10px rgba(250,204,21,0.35); }
    @media (max-width: 768px) {
      .search-suggestions { position: fixed; left: 8px; right: 8px; top: 58px; width: auto; max-height: 70vh; }
      .search-suggestion-img { width: 34px; height: 34px; }
      .search-suggestion-price { font-size: 12px; }
      .search-suggestion-item.smart-item { flex-direction: column; align-items: stretch; }
      .smart-actions { flex-direction: row; width: 100%; }
      .smart-btn { flex: 1; }
      .smart-qty-input { width: 60px; }
    }

    /* Advanced Filter Panel */
    .filter-panel {
      background: var(--panel-bg); border: 1px solid var(--border); border-radius: 12px;
      padding: 20px; margin-bottom: 20px; display: none;
      backdrop-filter: blur(12px);
    }
    .filter-panel.active { display: block; }
    .filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
    .filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
    .filter-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
    .filter-select, .filter-input {
      padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px;
      background: var(--bg); color: var(--text); font-size: 13px; font-family: inherit;
      outline: none; transition: border-color 0.2s;
    }
    .filter-select:focus, .filter-input:focus { border-color: var(--primary); }
    .filter-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
    .filter-btn {
      padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 700;
      cursor: pointer; border: none; font-family: inherit; transition: all 0.2s;
    }
    .filter-btn-primary { background: var(--primary); color: #070a13; }
    .filter-btn-primary:hover { background: var(--primary-hover); }
    .filter-btn-secondary { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
    .filter-btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }
    .filter-results-count { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-left: auto; }
    .filter-toggle-btn {
      display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
      background: transparent; border: 1px solid var(--border); border-radius: 6px;
      color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer;
      font-family: inherit; transition: all 0.2s; margin-bottom: 12px;
    }
    .filter-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
    .filter-toggle-btn.active { background: rgba(234, 179, 8,0.08); border-color: var(--primary); color: var(--primary); }

    /* Quick View Modal */
    .qv-modal {
      display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.6); z-index: 100000; align-items: center; justify-content: center;
      backdrop-filter: blur(4px); padding: 20px;
    }
    .qv-modal.active { display: flex; }
    .qv-container {
      background: var(--panel-bg); border: 1px solid var(--border); border-radius: 16px;
      max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto;
      box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); position: relative;
    }
    .qv-close {
      position: absolute; top: 12px; right: 16px; background: none; border: none;
      color: var(--text-muted); font-size: 24px; cursor: pointer; z-index: 10;
      width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
      border-radius: 50%; transition: all 0.2s;
    }
    .qv-close:hover { background: rgba(0,0,0,0.1); color: var(--text); }
    .qv-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
    .qv-image { display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 12px; padding: 20px; min-height: 300px; }
    .qv-image img { max-width: 100%; max-height: 350px; object-fit: contain; }
    .qv-info { display: flex; flex-direction: column; gap: 12px; }
    .qv-category { font-size: 11px; font-weight: 800; color: #0f172a; text-transform: uppercase; letter-spacing: 0.5px; }
    .qv-title { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.3; }
    .qv-subtitle { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
    .qv-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .qv-price { font-family: var(--font-price) !important; font-size: 28px !important; font-weight: 400 !important; color: #0f172a; }
    .qv-original { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
    .qv-discount { font-size: 13px; font-weight: 700; color: var(--green); }
    .qv-stock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
    .qv-stock.in-stock { background: rgba(234, 179, 8,0.1); color: var(--green); }
    .qv-stock.low-stock { background: rgba(234,179,8,0.18); color: #0f172a; font-weight: 750; }
    .qv-stock.out-stock { background: rgba(239,68,68,0.1); color: var(--red); }
    .qv-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
    .qv-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
    .qv-btn { padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; border: none; font-family: inherit; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
    .qv-btn-primary { background: var(--primary); color: #070a13; }
    .qv-btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
    .qv-btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
    .qv-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
    .qv-btn-danger { background: transparent; color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
    .qv-btn-danger:hover { background: rgba(239,68,68,0.08); }
    @media (max-width: 768px) {
      .qv-body { grid-template-columns: 1fr; gap: 16px; }
      .qv-image { min-height: 200px; }
      .qv-title { font-size: 18px; }
      .filter-row { flex-direction: column; }
      .filter-group { min-width: 100%; }
    }

    /* Quick Order Modal */
    .qo-row {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }
    .qo-row select, .qo-row input {
      padding: 10px 12px;
      border: 1.5px solid var(--border);
      border-radius: 6px;
      font-size: 13px;
      font-family: inherit;
      background: var(--card-bg);
      color: var(--text);
      outline: none;
    }
    .qo-remove-btn {
      width: 32px;
      height: 32px;
      border-radius: 6px;
      background: rgba(239, 68, 68, 0.1);
      color: var(--red);
      font-size: 20px;
      cursor: pointer;
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .qo-remove-btn:hover {
      background: rgba(239, 68, 68, 0.2);
    }
    @media (max-width: 768px) {
      .qo-row {
        grid-template-columns: 1fr;
        gap: 8px;
      }
    }

    /* Calculator Modal */
    .calc-add-btn {
      width: 100%;
      padding: 12px;
      background: var(--primary);
      color: #070a13;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit;
      margin-top: 16px;
      transition: all 0.2s;
    }
    .calc-add-btn:hover {
      background: var(--primary-hover);
      transform: translateY(-1px);
    }

    /* Smart Chat Button */
    .smart-chat-btn {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--blue);
      color: #fff;
      border: none;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s;
    }
    .smart-chat-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    }
    @media (max-width: 768px) {
      .smart-chat-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 20px;
      }
    }

    /* ════════════════════════════════════════
       UNIFIED HEADER & NAVIGATION BAR
    ════════════════════════════════════════ */
    .header-inner {
      width: 100%;
      max-width: var(--wrap);
      margin: auto;
      padding: 10px var(--px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    .header-inner > .logo,
    .header-inner > a.logo {
      flex: 1 1 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      min-width: 0;
    }
    .header-inner > .search {
      flex: 1 1 760px;
      max-width: 820px;
      margin: 0 auto;
    }
    .header-inner > .hdr-nav {
      flex: 1 1 0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      min-width: 0;
    }

    /* ── LOGO ── */
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      cursor: pointer;
    }
    .logo-mark {
      width: 52px;
      height: 52px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
      color: #070a13;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: 900;
      box-shadow: 0 3px 12px var(--primary-glow);
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }
    .logo:hover .logo-mark {
      transform: scale(1.03);
    }
    /* 4.5:1 Banner Logo Mode (All-in-one Logo Image with Integrated Company Name) */
    .logo-mark.banner-45x1 {
      width: 300px;
      height: 68px;
      max-height: 68px;
      aspect-ratio: 4.5 / 1;
      border-radius: 8px;
      background: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      overflow: hidden;
    }
    .logo-mark img,
    .logo-mark svg,
    .logo-mark.banner-45x1 img,
    .logo-mark.banner-45x1 svg {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    /* Only show image logo: hide separate company text and Powered By Buhari Printers */
    .logo > div:not(.logo-mark),
    .logo .logo-t1,
    .logo .logo-t2,
    .logo .logo-powered-by,
    .logo.hide-separate-name > div:not(.logo-mark),
    .logo.hide-separate-name .logo-t1,
    .logo.hide-separate-name .logo-t2,
    .logo.hide-separate-name .logo-powered-by {
      display: none !important;
    }
    /* Footer 4.5:1 Banner Logo Support */
    .footer-logo-mark.banner-45x1 {
      width: 240px !important;
      height: 54px !important;
      aspect-ratio: 4.5 / 1 !important;
      border-radius: 8px;
      background: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      overflow: hidden;
    }
    .footer-logo-mark.banner-45x1 img,
    .footer-logo-mark.banner-45x1 svg {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    .footer-brand.hide-separate-name .footer-logo-title,
    .footer-brand.hide-separate-name .footer-logo-desc,
    .footer-brand.hide-separate-name > div:not(.footer-logo-mark),
    .amazon-footer-brand.hide-separate-name .footer-logo-title,
    .amazon-footer-brand.hide-separate-name .footer-logo-desc,
    .amazon-footer-brand.hide-separate-name > div:not(.footer-logo-mark),
    .footer-logo > div:not(.footer-logo-mark) {
      display: none !important;
    }
    @media (max-width: 600px) {
      .logo-mark {
        width: 44px;
        height: 44px;
      }
      .logo-mark.banner-45x1 {
        width: 216px;
        height: 48px;
        max-height: 48px;
      }
      .footer-logo-mark.banner-45x1 {
        width: 180px !important;
        height: 40px !important;
      }
    }
    .logo-t1 {
      font-size: 19px;
      font-weight: 850;
      color: var(--text);
      letter-spacing: -0.4px;
      line-height: 1.1;
      display: flex;
      align-items: center;
      gap: 3px;
    }
    body.dark-theme .logo-t1 {
      color: #f8fafc;
    }
    .logo-t1 .logo-x {
      color: #ca8a04;
      font-weight: 950;
      font-size: 21px;
      line-height: 1;
      display: inline-block;
      text-shadow: 0 1px 2px rgba(202,138,4,0.25);
    }
    body.dark-theme .logo-t1 .logo-x {
      color: #fde047;
      text-shadow: 0 0 8px rgba(250,204,21,0.5);
    }
    .logo-t2 {
      font-size: 9.5px;
      color: var(--primary);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }
    .logo-powered-by {
      font-size: 10px;
      font-weight: 750;
      color: #000000 !important;
      letter-spacing: 0.2px;
      white-space: nowrap;
      margin-top: 1px;
    }
    body.dark-theme .logo-powered-by {
      color: #e2e8f0 !important;
    }

    /* ── POLISHED SEARCH CAPSULE (Wide Percentage) ── */
    .search {
      flex: 1 1 760px;
      max-width: 820px;
      height: 48px;
      display: flex;
      align-items: stretch;
      border: 1.5px solid var(--border);
      border-radius: 28px;
      background: rgba(0,0,0,0.03);
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
      position: relative;
      overflow: visible;
    }

    body.dark-theme .search {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.12);
    }

    .search:focus-within {
      border-color: var(--primary);
      box-shadow: 0 4px 22px rgba(234, 179, 8, 0.22), 0 0 0 1.5px var(--primary);
      background: #fff;
    }

    body.dark-theme .search:focus-within {
      border-color: var(--primary);
      background: rgba(15, 23, 42, 0.98);
      box-shadow: 0 4px 22px rgba(234, 179, 8, 0.28), 0 0 0 1.5px var(--primary);
    }

    /* Category Dropdown */
    .search-category-select-wrap {
      display: flex;
      align-items: center;
      position: relative;
      flex-shrink: 0;
      border-right: 1px solid var(--border);
      background: rgba(0, 0, 0, 0.02);
      max-width: 108px;
    }

    body.dark-theme .search-category-select-wrap {
      background: rgba(255, 255, 255, 0.04);
      border-right-color: rgba(255, 255, 255, 0.12);
    }

    .search-category-select {
      height: 100%;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background: transparent;
      border: none;
      outline: none;
      color: var(--text);
      font-size: 11.5px;
      font-weight: 600;
      padding: 0 20px 0 10px;
      cursor: pointer;
      font-family: inherit;
      width: 100%;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 6px center;
    }

    body.dark-theme .search-category-select {
      color: #f1f5f9;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 6px center;
      background-size: 12px 12px;
    }

    .search-category-select option {
      background: #0f172a;
      color: #f8fafc;
      padding: 6px;
    }

    /* Search Input Wrap */
    .search-wrap {
      position: static;
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: center;
      height: 100%;
    }

    .search input {
      width: 100%;
      height: 100%;
      border: none;
      outline: none;
      background: transparent;
      padding: 0 10px;
      padding-right: 50px;
      font-size: 13px;
      color: var(--text);
    }

    body.dark-theme .search input {
      color: #f8fafc;
    }

    .search input::placeholder {
      color: var(--text-muted);
      font-size: 12px;
      opacity: 0.85;
    }

    /* Keyboard Shortcut Hint */
    .search-shortcut {
      position: absolute;
      right: 7px;
      top: 50%;
      transform: translateY(-50%);
      display: inline-flex;
      gap: 2px;
      align-items: center;
      pointer-events: none;
    }

    .search-shortcut kbd {
      background: rgba(0, 0, 0, 0.05);
      color: var(--text-muted);
      font-size: 9px;
      padding: 1px 3.5px;
      border-radius: 4px;
      border: 1px solid var(--border);
      font-family: inherit;
      font-weight: 700;
    }

    body.dark-theme .search-shortcut kbd {
      background: rgba(255, 255, 255, 0.08);
      color: #94a3b8;
      border-color: rgba(255, 255, 255, 0.12);
    }

    /* Search Submit Button */
    .search-btn {
      background: linear-gradient(135deg, var(--primary) 0%, #ca8a04 100%);
      color: #070a13;
      height: 100%;
      padding: 0 14px;
      font-size: 12px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      border: none;
      cursor: pointer;
      flex-shrink: 0;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .search-btn:hover {
      background: linear-gradient(135deg, var(--primary-hover) 0%, #e6c800 100%);
      box-shadow: 0 0 12px var(--primary-glow);
    }

    /* ── RIGHT NAV ACTIONS ── */
    .hdr-nav {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-left: auto;
      flex-shrink: 0;
    }

    /* Quick Order Button */
    .quick-order-btn {
      padding: 6.5px 12px;
      background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
      color: #ffffff;
      border: none;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 750;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .quick-order-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(234, 179, 8, 0.4);
    }

    .quick-order-btn kbd {
      display: none !important;
    }

    /* Get a Quote Button */
    .quote-btn {
      background: rgba(234, 179, 8, 0.1);
      color: #e6c800;
      border: 1.5px solid rgba(234, 179, 8, 0.25);
      border-radius: 8px;
      padding: 6px 11px;
      font-size: 12px;
      font-weight: 750;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      flex-shrink: 0;
    }

    body.dark-theme .quote-btn {
      background: rgba(234, 179, 8, 0.12);
      color: #eab308;
      border-color: rgba(234, 179, 8, 0.3);
    }

    .quote-btn:hover {
      background: var(--primary);
      color: #070a13;
      border-color: var(--primary);
      box-shadow: 0 3px 12px var(--primary-glow);
      transform: translateY(-1px);
    }

    /* Circular Icon Buttons */
    .hdr-icon-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border);
      background: rgba(0, 0, 0, 0.02);
      color: var(--text-muted);
      cursor: pointer;
      position: relative;
      transition: all 0.2s ease;
      flex-shrink: 0;
      padding: 0;
    }

    body.dark-theme .hdr-icon-btn {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.1);
      color: #94a3b8;
    }

    .hdr-icon-btn:hover {
      color: var(--primary);
      border-color: var(--primary);
      background: rgba(234, 179, 8, 0.12);
      transform: translateY(-1px);
    }

    .hdr-icon-btn svg {
      width: 15px;
      height: 15px;
    }

    /* Cart Button */
    .cart-wrap {
      position: relative;
      flex-shrink: 0;
    }

    .cart-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 11px;
      background: rgba(234, 179, 8, 0.08);
      border: 1.5px solid rgba(234, 179, 8, 0.25);
      border-radius: 8px;
      color: #e6c800;
      font-weight: 800;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    body.dark-theme .cart-btn {
      background: rgba(234, 179, 8, 0.12);
      border-color: rgba(234, 179, 8, 0.3);
      color: #eab308;
    }

    .cart-btn:hover {
      background: var(--primary);
      color: #070a13;
      border-color: var(--primary);
      box-shadow: 0 4px 14px var(--primary-glow);
      transform: translateY(-1px);
    }

    @keyframes badgePulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.12); }
    }

    .cart-badge {
      background: var(--primary);
      color: #070a13;
      font-size: 10px;
      font-weight: 900;
      min-width: 18px;
      height: 18px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
      box-shadow: 0 2px 8px var(--primary-glow);
      animation: badgePulse 3s infinite ease-in-out;
    }

    /* Account Dropdown Wrapper */
    .account-wrapper {
      position: relative;
      flex-shrink: 0;
      display: flex;
      align-items: center;
    }

    /* Default Top Navbar Sign-In Button */
    .btn-top-signin {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #fef104;
      color: #000000 !important;
      font-weight: 750;
      font-size: 12.5px;
      padding: 6px 14px;
      border-radius: 8px;
      text-decoration: none;
      box-shadow: 0 2px 8px rgba(254, 241, 4, 0.35);
      transition: all 0.2s ease;
      white-space: nowrap;
      border: 1.5px solid rgba(254, 241, 4, 0.9);
      cursor: pointer;
      flex-shrink: 0;
    }

    .btn-top-signin:hover {
      background: #ffe600;
      color: #000000 !important;
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(254, 241, 4, 0.55);
    }

    .account-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 4px 10px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--panel-bg);
      color: var(--text);
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    body.dark-theme .account-btn {
      background: rgba(255, 255, 255, 0.06) !important;
      border-color: rgba(255, 255, 255, 0.12) !important;
      color: #f8fafc !important;
    }

    .account-btn:hover {
      border-color: var(--primary);
      background: rgba(234, 179, 8, 0.08);
      transform: translateY(-1px);
    }

    body.dark-theme .account-btn:hover {
      background: rgba(255, 255, 255, 0.1) !important;
      border-color: var(--primary) !important;
    }

    .account-info {
      display: flex;
      flex-direction: column;
      line-height: 1.15;
      text-align: left;
    }

    .account-info .line-one {
      font-size: 9px;
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    body.dark-theme .account-info .line-one {
      color: #94a3b8 !important;
    }

    .account-info .line-two {
      font-size: 11.5px;
      font-weight: 750;
      color: var(--text);
      white-space: nowrap;
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    body.dark-theme .account-info .line-two {
      color: #f8fafc !important;
    }

    .user-avatar-icon {
      color: var(--primary);
      flex-shrink: 0;
    }

    .account-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
      display: none;
      flex-direction: column;
      min-width: 210px;
      z-index: 1000;
      overflow: hidden;
      animation: fadeIn 0.18s ease;
    }

    body.dark-theme .account-dropdown {
      background: rgba(15, 23, 42, 0.96) !important;
      border-color: rgba(255, 255, 255, 0.1) !important;
      box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
    }

    .account-dropdown.active {
      display: flex;
    }

    .dropdown-item {
      padding: 10px 14px;
      font-size: 12.5px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 10px;
      transition: var(--transition);
      font-weight: 600;
      border-bottom: 1px solid var(--border);
      text-decoration: none;
      cursor: pointer;
    }

    body.dark-theme .dropdown-item {
      color: #f1f5f9;
      border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .dropdown-item:last-child {
      border-bottom: none;
    }

    .dropdown-item:hover {
      background: rgba(234, 179, 8, 0.08);
      color: var(--primary);
      padding-left: 17px;
    }

    /* ── RESPONSIVE ADAPTATIONS FOR COMPACT & CLEAN FIT ── */
    @media (max-width: 1400px) {
      .search-shortcut { display: none !important; }
      .search input { padding-right: 10px !important; }
    }

    @media (max-width: 1280px) {
      .hdr-icon-btn[onclick*="Excel"] { display: none !important; }
      .search-btn span { display: none !important; }
      .search-btn { padding: 0 11px !important; }
    }

    @media (max-width: 1160px) {
      .hdr-icon-btn[onclick*="Tracker"] { display: none !important; }
      .search { max-width: 360px; }
    }

    @media (max-width: 990px) {
      .quick-order-btn span, .quote-btn span { display: none !important; }
      .quick-order-btn, .quote-btn { padding: 6px 9px !important; }
      .account-info { display: none !important; }
    }

    @media (max-width: 768px) {
      .header-inner {
        flex-wrap: wrap;
        padding: 8px var(--px);
        gap: 8px;
      }
      .search {
        order: 3;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 38px;
      }
      .hdr-nav {
        order: 2;
        margin-left: auto;
      }
    }


    /* ════════════════════════════════════════
       CATEGORY BAR
    ════════════════════════════════════════ */
    .cat-bar { background: var(--panel-bg); border-bottom: 1px solid var(--border); overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling: touch; }
    .cat-bar::-webkit-scrollbar { display:none; }
    .cat-bar-inner {
      width: 100%;
      max-width: var(--wrap); margin: auto;
      padding: 0 var(--px);
      display: flex; align-items: center;
    }
    .cbi {
      display:inline-flex; align-items:center; gap:6px;
      padding:14px 16px; color:var(--text-muted);
      font-size:13px; font-weight:600; white-space:nowrap;
      border-bottom:3px solid transparent; cursor:pointer;
      transition: var(--transition);
    }
    .cbi:hover { color:var(--text); }
    body.dark-theme .cbi:hover { color:#fff; }
    .cbi.on { color: #0f172a !important; border-bottom: 3px solid var(--primary) !important; font-weight: 850; text-shadow: none; }
    body.dark-theme .cbi.on { color: #ffffff !important; }
    .cbi.on svg { color: #0f172a !important; }
    body.dark-theme .cbi.on svg { color: #ffffff !important; }
    .cbi svg { width:15px; height:15px; }

    /* ════════════════════════════════════════
       SLIM COVER BANNER (END-TO-END WITH SMOOTH BOTTOM OPACITY FEATHER)
    ════════════════════════════════════════ */
    .slim-cover-wrap {
      width: 100%;
      margin: 0 0 16px 0;
      position: relative;
      overflow: hidden;
      background: var(--bg);
    }
    .slim-cover-card {
      position: relative;
      width: 100%;
      height: 280px;
      overflow: hidden;
      cursor: pointer;
      background: var(--bg);
      display: block;
      user-select: none;
      border: none;
      border-radius: 0;
    }
    .slim-cover-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 30%;
      display: block;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.75) 72%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0) 100%);
      mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.75) 72%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0) 100%);
    }
    .slim-cover-card:hover .slim-cover-img {
      transform: scale(1.018);
    }
    /* Smooth feathering gradient overlay at bottom */
    .slim-cover-feather {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 110px;
      background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.25) 35%, rgba(248, 250, 252, 0.8) 75%, var(--bg) 100%);
      pointer-events: none;
    }
    body.dark-theme .slim-cover-feather {
      background: linear-gradient(to bottom, rgba(7, 10, 19, 0) 0%, rgba(7, 10, 19, 0.25) 35%, rgba(7, 10, 19, 0.8) 75%, var(--bg) 100%);
    }
    /* Discrete customization trigger - zero text on cover pic */
    .cover-banner-edit-btn {
      position: absolute;
      bottom: 24px;
      right: 28px;
      z-index: 5;
      background: rgba(15, 23, 42, 0.78);
      backdrop-filter: blur(8px);
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 20px;
      padding: 6px 14px;
      font-size: 11px;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.25s ease, background-color 0.2s ease, transform 0.2s ease;
      pointer-events: auto;
    }
    .slim-cover-card:hover .cover-banner-edit-btn {
      opacity: 0.9;
    }
    .cover-banner-edit-btn:hover {
      opacity: 1;
      background: var(--primary);
      color: #070a13;
      transform: scale(1.05);
    }
    @media (max-width: 992px) {
      .slim-cover-card {
        height: 220px;
      }
      .slim-cover-feather {
        height: 80px;
      }
    }
    @media (max-width: 768px) {
      .slim-cover-card {
        height: 165px;
      }
      .slim-cover-feather {
        height: 60px;
      }
      .cover-banner-edit-btn {
        right: 14px;
        bottom: 12px;
      }
    }
    @media (max-width: 480px) {
      .slim-cover-card {
        height: 130px;
      }
      .slim-cover-feather {
        height: 45px;
      }
      .cover-banner-edit-btn {
        padding: 4px 8px;
        font-size: 10px;
      }
    }

    /* Animations */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
      50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(234, 179, 8, 0); }
    }
    @keyframes shimmer {
      0% { background-position: -1000px 0; }
      100% { background-position: 1000px 0; }
    }
    @keyframes glow {
      0%, 100% { box-shadow: 0 0 5px var(--primary-glow); }
      50% { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow); }
    }

    /* Flashy Marquee Ticker */
    .marquee-wrap {
      background: linear-gradient(90deg, var(--primary) 0%, #ca8a04 50%, var(--primary) 100%);
      background-size: 200% 100%;
      animation: gradientShift 3s ease infinite;
      color: #000000 !important; font-weight: 850;
      padding: 10px 0;
      overflow: hidden;
      position: relative;
      border-bottom: 1px solid rgba(234, 179, 8, 0.3);
    }
    .marquee-track {
      display: flex;
      animation: marquee 25s linear infinite;
      white-space: nowrap;
    }
    .marquee-item { color: #000000 !important;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 0 40px;
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .marquee-item i { color: #000000 !important;
      font-size: 16px;
      animation: pulse 1.5s ease-in-out infinite;
    }
    @keyframes marquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* Sparkle Effect */
    .sparkle {
      position: absolute;
      width: 4px;
      height: 4px;
      background: #fff;
      border-radius: 50%;
      pointer-events: none;
      animation: sparkle 2s ease-in-out infinite;
    }
    @keyframes sparkle {
      0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
      50% { opacity: 1; transform: scale(1) rotate(180deg); }
    }

    /* ════════════════════════════════════════
       PRODUCT PRICE: FUTURA REGULAR & ENLARGED
    ════════════════════════════════════════ */
    .pc-price,
    .prod-price,
    .product-price,
    .price-main,
    .price-block-center .price-main,
    #prodPrice,
    .bb-price,
    #buyBoxPrice,
    .qv-price,
    .tier-price-label,
    .cart-item-price,
    .search-suggestion-price {
      font-family: var(--font-price) !important;
      font-weight: 400 !important; /* Futura Regular Type */
      font-style: normal !important;
    }

    /* Increased Product Price Font Sizes */
    .pc-price {
      font-size: 22px !important;
      letter-spacing: -0.01em;
      line-height: 1.2;
    }
    .prod-grid.tpl-large .pc-price {
      font-size: 28px !important;
    }
    .prod-grid.tpl-list .pc-price {
      font-size: 26px !important;
    }
    .qv-price {
      font-size: 28px !important;
    }
    .price-block-center .price-main,
    .price-main,
    #prodPrice {
      font-size: 36px !important;
      line-height: 1.15;
    }
    .bb-price,
    #buyBoxPrice {
      font-size: 40px !important;
      line-height: 1.1;
    }
    .tier-price-label {
      font-size: 16px !important;
    }
    .search-suggestion-price {
      font-size: 15px !important;
    }
    body.cat-mode-active .pc-price {
      font-family: var(--font-price) !important;
      font-weight: 400 !important;
    }




/* ══════════════════════════════════════════════════════════════
   GLOBAL BUTTON, FORM & CONTROLS POLISH DESIGN SYSTEM
   Standardized tactile micro-interactions, ergonomic focus rings,
   dark mode contrast, and ultra-high-end visual polish.
   ══════════════════════════════════════════════════════════════ */

/* ─── GLOBAL FORM INPUTS, TEXTAREAS & FIELDS ─── */
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea,
.form-input,
.filter-input,
.pattani-input,
.smart-qty-input,
.qo-qty,
#calcWidth,
#calcHeight,
#calcQuantity,
#calcWastage,
#dealerLoginId,
#dealerLoginPassword {
  font-family: var(--font, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  line-height: 1.5 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) inset;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              color 0.2s ease !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

/* Form Input Focus States */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
.form-input:focus,
.filter-input:focus,
.pattani-input:focus,
.smart-qty-input:focus,
.qo-qty:focus,
#calcWidth:focus,
#calcHeight:focus,
#calcQuantity:focus,
#calcWastage:focus,
#dealerLoginId:focus,
#dealerLoginPassword:focus {
  border-color: #eab308 !important;
  box-shadow: 0 0 0 3.5px rgba(234, 179, 8, 0.22), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  background: #ffffff !important;
}

/* Dark Theme Inputs */
body.dark-theme input[type="text"],
body.dark-theme input[type="number"],
body.dark-theme input[type="tel"],
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme textarea,
body.dark-theme .form-input,
body.dark-theme .filter-input,
body.dark-theme .pattani-input,
body.dark-theme .smart-qty-input,
body.dark-theme .qo-qty,
body.dark-theme #calcWidth,
body.dark-theme #calcHeight,
body.dark-theme #calcQuantity,
body.dark-theme #calcWastage,
body.dark-theme #dealerLoginId,
body.dark-theme #dealerLoginPassword {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder,
body.dark-theme .form-input::placeholder {
  color: #94a3b8 !important;
  opacity: 0.9;
}

body.dark-theme input[type="text"]:focus,
body.dark-theme input[type="number"]:focus,
body.dark-theme input[type="tel"]:focus,
body.dark-theme input[type="email"]:focus,
body.dark-theme input[type="password"]:focus,
body.dark-theme textarea:focus,
body.dark-theme .form-input:focus,
body.dark-theme .filter-input:focus,
body.dark-theme .pattani-input:focus,
body.dark-theme .smart-qty-input:focus,
body.dark-theme .qo-qty:focus,
body.dark-theme #calcWidth:focus,
body.dark-theme #calcHeight:focus,
body.dark-theme #calcQuantity:focus,
body.dark-theme #calcWastage:focus,
body.dark-theme #dealerLoginId:focus,
body.dark-theme #dealerLoginPassword:focus {
  border-color: #eab308 !important;
  box-shadow: 0 0 0 3.5px rgba(234, 179, 8, 0.28), 0 2px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(15, 23, 42, 0.96) !important;
}

/* ─── SELECT DROPDOWNS ─── */
select,
.form-select,
.filter-select,
.search-category-select,
.density-select,
#calcUnit,
#prUnit,
.qo-product-select,
.qo-unit {
  font-family: var(--font, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 10px !important;
  padding: 9px 34px 9px 13px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px !important;
  cursor: pointer !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

select:focus,
.form-select:focus,
.filter-select:focus,
.search-category-select:focus,
.density-select:focus,
#calcUnit:focus,
#prUnit:focus,
.qo-product-select:focus,
.qo-unit:focus {
  border-color: #eab308 !important;
  box-shadow: 0 0 0 3.5px rgba(234, 179, 8, 0.22), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.dark-theme select,
body.dark-theme .form-select,
body.dark-theme .filter-select,
body.dark-theme .search-category-select,
body.dark-theme .density-select,
body.dark-theme #calcUnit,
body.dark-theme #prUnit,
body.dark-theme .qo-product-select,
body.dark-theme .qo-unit {
  background-color: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

body.dark-theme select option,
body.dark-theme .form-select option,
body.dark-theme .filter-select option {
  background: #0f172a !important;
  color: #f8fafc !important;
}

/* ─── FORM LABELS & GROUPS ─── */
.form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.form-row {
  display: flex !important;
  gap: 12px !important;
}
@media (max-width: 640px) {
  .form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

.form-lbl {
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: #334155;
  letter-spacing: 0.01em;
}
body.dark-theme .form-lbl {
  color: #cbd5e1 !important;
}

/* ─── PRIMARY GOLD CTA BUTTONS ─── */
.pc-btn,
.dcta,
.btn-submit,
.calc-add-btn,
.bulk-cta-btn,
.hero-action-primary,
.filter-btn-primary,
.qv-btn-primary,
.smart-add,
.fbt-add-all-btn,
.amz-card-add-btn,
.compare-action-btn,
#excelAddToCartBtn,
#excelBulkEnquiryBtn,
.pattani-send {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
  color: #070a13 !important;
  font-weight: 750 !important;
  font-family: var(--font, 'Plus Jakarta Sans', sans-serif) !important;
  border: 1px solid rgba(202, 138, 4, 0.4) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  cursor: pointer !important;
  outline: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.18s ease !important;
  letter-spacing: -0.01em;
}

.pc-btn:hover,
.dcta:hover,
.btn-submit:hover,
.calc-add-btn:hover,
.bulk-cta-btn:hover,
.hero-action-primary:hover,
.filter-btn-primary:hover,
.qv-btn-primary:hover,
.smart-add:hover,
.fbt-add-all-btn:hover,
.amz-card-add-btn:hover,
.compare-action-btn:hover,
#excelAddToCartBtn:hover,
#excelBulkEnquiryBtn:hover,
.pattani-send:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(234, 179, 8, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  filter: brightness(1.03) !important;
}

.pc-btn:active,
.dcta:active,
.btn-submit:active,
.calc-add-btn:active,
.bulk-cta-btn:active,
.hero-action-primary:active,
.filter-btn-primary:active,
.qv-btn-primary:active,
.smart-add:active,
.fbt-add-all-btn:active,
.amz-card-add-btn:active,
.compare-action-btn:active,
#excelAddToCartBtn:active,
#excelBulkEnquiryBtn:active,
.pattani-send:active {
  transform: translateY(0) scale(0.975) !important;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.28) !important;
}

/* ─── SECONDARY & GHOST BUTTONS ─── */
.pc-btn-bulk,
.hero-action-secondary,
.filter-btn-secondary,
.qv-btn-secondary,
.cart-empty-btn,
.smart-view,
.view-btn,
.auc-mode-btn,
.btn-visit,
#showMoreBtn {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 10px !important;
  font-weight: 650 !important;
  font-family: var(--font, 'Plus Jakarta Sans', sans-serif) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pc-btn-bulk:hover,
.hero-action-secondary:hover,
.filter-btn-secondary:hover,
.qv-btn-secondary:hover,
.cart-empty-btn:hover,
.smart-view:hover,
.view-btn:hover,
.auc-mode-btn:hover,
.btn-visit:hover,
#showMoreBtn:hover {
  border-color: #eab308 !important;
  color: #ca8a04 !important;
  background: rgba(254, 240, 138, 0.12) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.16) !important;
}

.pc-btn-bulk:active,
.hero-action-secondary:active,
.filter-btn-secondary:active,
.qv-btn-secondary:active,
.cart-empty-btn:active,
.smart-view:active,
.view-btn:active,
.auc-mode-btn:active,
.btn-visit:active,
#showMoreBtn:active {
  transform: scale(0.97) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.dark-theme .pc-btn-bulk,
body.dark-theme .hero-action-secondary,
body.dark-theme .filter-btn-secondary,
body.dark-theme .qv-btn-secondary,
body.dark-theme .cart-empty-btn,
body.dark-theme .smart-view,
body.dark-theme .view-btn,
body.dark-theme .auc-mode-btn,
body.dark-theme .btn-visit,
body.dark-theme #showMoreBtn {
  background: rgba(30, 41, 59, 0.65) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

body.dark-theme .pc-btn-bulk:hover,
body.dark-theme .hero-action-secondary:hover,
body.dark-theme .filter-btn-secondary:hover,
body.dark-theme .qv-btn-secondary:hover,
body.dark-theme .cart-empty-btn:hover,
body.dark-theme .smart-view:hover,
body.dark-theme .view-btn:hover,
body.dark-theme .auc-mode-btn:hover,
body.dark-theme .btn-visit:hover,
body.dark-theme #showMoreBtn:hover {
  border-color: #eab308 !important;
  color: #fde047 !important;
  background: rgba(234, 179, 8, 0.12) !important;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.2) !important;
}

/* Active Toggle State */
.view-btn.on,
.auc-mode-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}
body.dark-theme .view-btn.on,
body.dark-theme .auc-mode-btn.active {
  background: #eab308 !important;
  color: #070a13 !important;
  border-color: #eab308 !important;
}

/* ─── QUANTITY STEPPERS & PILL CONTROLS ─── */
.ci-step-btn,
.bb-step-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ci-step-btn:hover,
.bb-step-btn:hover {
  background: #eab308 !important;
  border-color: #ca8a04 !important;
  color: #070a13 !important;
  transform: scale(1.06) !important;
}

.ci-step-btn:active,
.bb-step-btn:active {
  transform: scale(0.92) !important;
}

body.dark-theme .ci-step-btn,
body.dark-theme .bb-step-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

body.dark-theme .ci-step-btn:hover,
body.dark-theme .bb-step-btn:hover {
  background: #eab308 !important;
  border-color: #eab308 !important;
  color: #070a13 !important;
}

/* Quantity input */
.smart-qty-input {
  width: 52px !important;
  height: 32px !important;
  text-align: center !important;
  padding: 4px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

/* ─── MODAL CLOSE & REMOVE BUTTONS ─── */
.dx,
.qv-close,
.pattani-close,
.sample-modal-close {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.05) !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dx:hover,
.qv-close:hover,
.pattani-close:hover,
.sample-modal-close:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  transform: rotate(90deg) scale(1.05) !important;
}

body.dark-theme .dx,
body.dark-theme .qv-close,
body.dark-theme .pattani-close,
body.dark-theme .sample-modal-close {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

body.dark-theme .dx:hover,
body.dark-theme .qv-close:hover,
body.dark-theme .pattani-close:hover,
body.dark-theme .sample-modal-close:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

.ci-remove-btn,
.qo-remove-btn,
.auc-file-remove {
  border-radius: 6px !important;
  transition: all 0.18s ease !important;
}
.ci-remove-btn:hover,
.qo-remove-btn:hover,
.auc-file-remove:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

/* ─── PRODUCT CARD ACTION ICONS (WISHLIST, COMPARE) ─── */
.pc-action-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.18s ease,
              background-color 0.18s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.pc-action-icon:hover {
  transform: scale(1.12) !important;
  color: #eab308 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) !important;
}

.pc-action-icon:active {
  transform: scale(0.95) !important;
}

.pc-action-icon.pc-fav.active,
.pc-action-icon.active {
  color: #ef4444 !important;
  background: #ffffff !important;
}

body.dark-theme .pc-action-icon {
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme .pc-action-icon:hover {
  background: #1e293b !important;
  color: #facc15 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

/* ─── FILTER & SUBCATEGORY CHIPS ─── */
.subcat-chip,
.chip {
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #ffffff !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.subcat-chip:hover,
.chip:hover {
  border-color: #eab308 !important;
  color: #ca8a04 !important;
  transform: translateY(-1px) !important;
}

.subcat-chip.on,
.chip.active,
.chip[class*="on"] {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

body.dark-theme .subcat-chip,
body.dark-theme .chip {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

body.dark-theme .subcat-chip:hover,
body.dark-theme .chip:hover {
  border-color: #eab308 !important;
  color: #fde047 !important;
}

body.dark-theme .subcat-chip.on,
body.dark-theme .chip.active,
body.dark-theme .chip[class*="on"] {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
  border-color: #eab308 !important;
  color: #070a13 !important;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.35) !important;
}

/* ─── SEARCH & HEADER BUTTONS ─── */
.search-btn {
  border-radius: 0 8px 8px 0 !important;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
  color: #070a13 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.search-btn:hover {
  filter: brightness(1.05) !important;
}
.search-btn:active {
  transform: scale(0.96) !important;
}

.search-clear-input-btn {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.search-clear-input-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  transform: scale(1.1) !important;
}
body.dark-theme .search-clear-input-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

.hdr-icon-btn,
.cart-btn,
.account-btn {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.18s ease,
              border-color 0.18s ease !important;
}
.hdr-icon-btn:hover,
.cart-btn:hover,
.account-btn:hover {
  transform: translateY(-1.5px) !important;
}
.hdr-icon-btn:active,
.cart-btn:active,
.account-btn:active {
  transform: scale(0.96) !important;
}


/* Ensure Cart Drawer and Overlay sit cleanly above floating elements */
.overlay { z-index: 9998 !important; }
.drawer { z-index: 9999 !important; }

/* ════════════════════════════════════════
   BRAND X PRODUCT WATERMARK / BADGE (GEMINI STYLE)
════════════════════════════════════════ */
.pc-brand-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  padding: 3px 8px 3px 6px;
  background: rgba(6, 10, 22, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 8px rgba(234, 179, 8, 0.18);
  z-index: 3;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc:hover .pc-brand-tag {
  background: rgba(6, 10, 22, 0.94);
  border-color: #facc15;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45), 0 0 12px rgba(234, 179, 8, 0.3);
  transform: translateY(-1px) scale(1.03);
}

.pc-brand-tag-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.pc-brand-tag-text {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fef08a;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Recently viewed mini tag */
.rv-brand-tag {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(6, 10, 22, 0.85);
  border: 1px solid rgba(234, 179, 8, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.rv-brand-tag img {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

/* Admin thumbnail badge */
.admin-brand-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(6, 10, 22, 0.88);
  border: 1px solid rgba(234, 179, 8, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.admin-brand-tag img {
  width: 11px;
  height: 11px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .pc-brand-tag {
    padding: 2px 6px 2px 4px;
    gap: 3px;
    bottom: 6px;
    left: 6px;
  }
  .pc-brand-tag-icon {
    width: 12px;
    height: 12px;
  }
  .pc-brand-tag-text {
    font-size: 8px;
    letter-spacing: 0.4px;
  }
}
