/*
Theme Name: Almacen GT
Theme URI: https://example.com/
Author: n0s1d3
Author URI: https://example.com/
Description: Tema WordPress marketplace profesional — Sincroniza productos, gestiona red de tiendas.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: almacengt
Tags: custom-colors, custom-menu, featured-images, theme-options, translation-ready
*/

/* ════════════════════════════════════════════
   CSS VARIABLES — Design System
   Palette: #000000 · #14213d · #fca311 · #e5e5e5 · #ffffff
════════════════════════════════════════════ */
:root {
  /* Brand */
  --primary: #14213d;
  --primary-light: #1e3a6e;
  --accent: #fca311;
  --accent-light: #fdbb45;

  /* Neutral */
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #f5f5f5;
  --surface-dark: #e5e5e5;
  --text: #000000;
  --text-muted: #555555;
  --text-light: #888888;
  --border: #e5e5e5;

  /* Semantic */
  --success: #10b981;
  --warning: #fca311;
  --error: #ef4444;

  /* Spacing & Design */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.18);
}

/* ════════════════════════════════════════════
   RESET & GLOBAL
════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.1rem; }

p { color: var(--text-muted); margin-bottom: 1rem; }
ul { list-style: none; }

/* ════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-center { text-align: center; }
.section-center .text-lead { margin-left: auto; margin-right: auto; }

.text-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.8;
  margin: 0 auto 2rem;
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.heading { margin-bottom: 16px; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #000000;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(252,163,17,0.05);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 10px;
}

/* ════════════════════════════════════════════
   PAGINATION & WOOCOMMERCE UTILITIES
════════════════════════════════════════════ */
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
}

.woocommerce-pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination ul li { margin: 0; }

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.woocommerce-pagination ul li a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(252,163,17,0.06);
}

.woocommerce-pagination ul li span.current {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
  font-weight: 700;
}

/* ════════════════════════════════════════════
   PRODUCT COUNT & SORTING
════════════════════════════════════════════ */
.woocommerce-result-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.woocommerce-ordering label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(252,163,17,0.12);
}

/* ════════════════════════════════════════════
   HEADER & NAVIGATION
════════════════════════════════════════════ */
.topbar {
  background: #000000;
  width: 100%;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
}
@media (max-width: 768px) {
  .topbar-inner {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 0.65rem;
    flex-direction: column;
    gap: 2px;
  }
  .topbar-inner span { line-height: 1.2; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Offset for WordPress admin bar */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.navbar {
  background: var(--primary);
  border-bottom: none;
  padding: 12px 0;
}

/* Secondary nav */
.subnav {
  background: #0d1a33;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}
.subnav-inner::-webkit-scrollbar { display: none; }

/* Mobile: subnav toggle button */
.subnav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 6px 12px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.subnav-toggle:hover {
  color: var(--accent);
}
@media (max-width: 768px) {
  .subnav-toggle { display: flex; align-items: center; justify-content: center; }
  .subnav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); transition: transform 0.2s; }
}

.subnav-link {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.subnav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.subnav-link--accent {
  color: var(--accent);
  font-weight: 700;
}
.subnav-link--accent:hover { color: var(--accent-light); background: rgba(252,163,17,0.1); }

/* ── Subnav dropdown ── */
.subnav-item {
  position: relative;
  display: inline-flex;
}
.subnav-link--parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.subnav-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.subnav-item.is-hover .subnav-chevron,
.subnav-item.is-open .subnav-chevron { transform: rotate(180deg); }

.subnav-dropdown {
  display: none;
  position: fixed;
  top: var(--drop-top, -9999px);
  left: var(--drop-left, 0px);
  min-width: 200px;
  max-height: calc(100vh - var(--drop-top, 120px) - 16px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
  background: #0d1a33;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 6px 0;
  z-index: 9000;
}
.subnav-dropdown::-webkit-scrollbar { width: 4px; }
.subnav-dropdown::-webkit-scrollbar-track { background: transparent; }
.subnav-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 2px; }
.subnav-item.is-hover .subnav-dropdown,
.subnav-item.is-open .subnav-dropdown { display: block; }

.subnav-drop-link {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.subnav-drop-link:hover { background: rgba(255,255,255,0.08); color: #fff; }

.navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-branding:hover .site-name { color: var(--accent-light); }

.site-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.4px;
  line-height: 1;
  white-space: nowrap;
}

/* Logo wrapper */
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  width: 35px;
  height: 35px;
  transition: all 0.3s ease;
}

.site-branding img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .logo-wrapper { width: 38px; height: 38px; }
}

@media (min-width: 1024px) {
  .logo-wrapper { width: 50px; height: 50px; }
  .site-branding .logo-mark { width: 36px; height: 36px; font-size: 0.9rem; }
}

.site-branding .logo-mark {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: 800;
  font-size: 0.72rem;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav ul li a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 6px 0;
}
.main-nav ul li a:hover {
  color: var(--accent);
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  border-radius: 6px;
  position: relative;        /* anchor for .search-dropdown */
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  transition: border-color 0.2s;
}
.search-bar:focus-within {
  border-color: var(--accent);
}
.search-bar input {
  border: none;
  background: transparent;
  padding: 10px 14px;
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  color: #ffffff;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-bar input::placeholder {
  color: rgba(255,255,255,0.45);
}
.search-bar button {
  border: none;
  background: var(--accent);
  color: #000;
  padding: 0 16px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  border-radius: 0 4px 4px 0; /* replaces the container overflow:hidden rounding */
}
.search-bar button:hover {
  background: var(--accent-light);
}

/* ── Live search dropdown ────────────────────────────────────────────── */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 9999;
  overflow: hidden;
}
.search-dropdown.is-open { display: block; }

/* product list */
.sdrop-list { list-style: none; margin: 0; padding: 0; }
.sdrop-item + .sdrop-item { border-top: 1px solid var(--surface-dark); }
.sdrop-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.sdrop-link:hover { background: var(--surface); }

.sdrop-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sdrop-img--placeholder { display: block; background: var(--surface-dark); }

.sdrop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sdrop-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sdrop-cat { font-size: 0.75rem; color: var(--text-muted); }
.sdrop-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
}

/* footer "see all" link */
.sdrop-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 14px;
  text-align: center;
}
.sdrop-all { font-size: 0.82rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.sdrop-all:hover { text-decoration: underline; }

/* empty state */
.sdrop-empty { padding: 20px 14px; font-size: 0.88rem; color: var(--text-muted); text-align: center; }

/* loading dots */
.sdrop-loading { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 22px 14px; }
.sdrop-loading span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: sdrop-bounce 0.9s infinite ease-in-out both;
}
.sdrop-loading span:nth-child(1) { animation-delay: -0.32s; }
.sdrop-loading span:nth-child(2) { animation-delay: -0.16s; }
@keyframes sdrop-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40%           { transform: scale(1); opacity: 1; }
}

/* Mobile — show max 3 results and tighten spacing */
@media (max-width: 767px) {
  .sdrop-item:nth-child(n+4) { display: none; }
  .sdrop-img { width: 36px; height: 36px; }
  .sdrop-link { gap: 10px; padding: 9px 12px; }
  .sdrop-name {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 160px);
  }
  .sdrop-price { font-size: 0.82rem; }
}

.actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .action-link {
    padding: 3px 6px;
    gap: 2px;
    font-size: 0.6rem;
  }
  .action-link svg { width: 14px; height: 14px; }
}
.action-link:hover {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ════════════════════════════════════════════
   HERO CAROUSEL
════════════════════════════════════════════ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(300px, 50vw, 500px);
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 450px;
  z-index: 5;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.hero-content .btn { margin-right: 12px; }

/* ════════════════════════════════════════════
   SECTIONS — Deals, Categories, Features
════════════════════════════════════════════ */
.deals-section, .categories-section, .featured-products {
  padding: 56px 0;
}

.deals-section h2, .categories-section h2, .featured-products h2 {
  margin-bottom: 2rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.deal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.deal-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.deal-card h3 { margin: 14px; font-size: 1rem; }

.deal-card .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--accent);
}

.category-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.category-card h3 { margin: 14px; font-size: 1rem; }

.view-all { text-align: center; margin-top: 32px; }

/* ════════════════════════════════════════════
   PRODUCTS GRID (Shop)
════════════════════════════════════════════ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.shop-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.shop-sidebar h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  color: var(--text);
}

.shop-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-sidebar ul li {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(229,229,229,0.6);
}

.shop-sidebar ul li:last-child { border-bottom: none; }

.shop-sidebar ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.shop-sidebar ul li a:hover { color: var(--accent); }

.shop-sidebar ul li small {
  color: var(--text-light);
  font-weight: normal;
  margin-left: 6px;
}

/* Price filter & widgets */
.shop-sidebar .woocommerce-widget-layered-nav,
.shop-sidebar .widget_price_filter {
  margin-top: 0;
  padding-top: 12px;
}

.shop-sidebar .woocommerce-widget-layered-nav ul,
.shop-sidebar .woocommerce-widget-layered-nav-list ul {
  padding: 0;
  margin: 0;
}

.shop-sidebar .woocommerce-widget-layered-nav li,
.shop-sidebar .woocommerce-widget-layered-nav-list li {
  margin: 6px 0;
  padding: 4px 0;
  border: none;
}

.shop-sidebar .price_slider { margin-top: 12px; }

.shop-sidebar .price_slider_amount {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: normal;
}

.shop-content { min-height: 600px; }

.shop-header { margin-bottom: 28px; }

.shop-title {
  font-size: 2rem;
  margin: 0 0 8px;
  color: var(--text);
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.shop-controls .woocommerce-result-count,
.shop-controls .woocommerce-ordering {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-controls select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.shop-controls select:hover,
.shop-controls select:focus {
  border-color: var(--accent);
  outline: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  display: block;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1 / 1;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-body {
  padding: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 4px 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Shop page: sidebar layout needs 3-col grid, not 4 */
.shop-content .products-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-title a {
  color: var(--text);
  text-decoration: none;
}

.card-title a:hover { color: var(--accent); }

.card-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  margin-top: auto;
}

.btn-primary {
  width: 100%;
  padding: 10px;
  text-align: center;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.page-footer {
  background: var(--primary);
  padding: 48px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-section ul li a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

/* Footer columns (.footer-col) — new BestBuy-style layout */
.footer-col-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 16px;
  color: #ffffff;
}
.footer-col-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col-list li { margin-bottom: 10px; }
.footer-col-list a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col-list a:hover { color: var(--accent); }

/* Service links bar above footer */
.footer-services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-services-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: color 0.2s;
  flex: 1;
  min-width: 80px;
}
.footer-service-item svg { color: var(--primary); transition: color 0.2s; }
.footer-service-item:hover { color: var(--accent); }
.footer-service-item:hover svg { color: var(--accent); }

/* ════════════════════════════════════════════
   WHITE TEXT ON DARK BACKGROUNDS
   Overrides the global h1-h4 { color: var(--text) } and
   p { color: var(--text-muted) } rules for every dark-bg section.
════════════════════════════════════════════ */

/* Topbar — pure black bar */
.topbar h1, .topbar h2, .topbar h3, .topbar h4 { color: #fff; }
.topbar p, .topbar span { color: rgba(255,255,255,0.75); }

/* Navbar — dark navy */
.navbar h1, .navbar h2, .navbar h3, .navbar h4 { color: #fff; }
.navbar p { color: rgba(255,255,255,0.85); }

/* Subnav — darker navy */
.subnav h1, .subnav h2, .subnav h3, .subnav h4 { color: #fff; }
.subnav p { color: rgba(255,255,255,0.72); }

/* Hero slide info bar — black */
.agt-slide-info h1, .agt-slide-info h2,
.agt-slide-info h3, .agt-slide-info h4 { color: #fff; }
.agt-slide-info p { color: rgba(255,255,255,0.72); }

/* Page footer — dark navy */
.page-footer h1, .page-footer h2,
.page-footer h3, .page-footer h4 { color: #fff; }
.page-footer p { color: rgba(255,255,255,0.55); }

/* hp-* index.php dark sections */
.hp-slide-info h1, .hp-slide-info h2,
.hp-slide-info h3, .hp-slide-info h4 { color: #fff; }
.hp-slide-info p { color: rgba(255,255,255,0.72); }
.hp-spotlight h1, .hp-spotlight h2,
.hp-spotlight h3, .hp-spotlight h4 { color: #fff !important; }
.hp-spotlight p { color: rgba(255,255,255,0.72); }
.hp-deals h1, .hp-deals h2,
.hp-deals h3, .hp-deals h4 { color: #fff; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }

  .logo-wrapper { width: 30px; height: 30px; }
  .site-branding .logo-mark { width: 20px; height: 20px; font-size: 0.55rem; }

  /* ── Navbar: grid layout so logo+actions share row 1, search takes row 2 ── */
  .navbar { padding: 6px 0; }
  .navbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 8px;
    padding: 0 16px;
    /* override desktop justify-content:space-between */
    justify-content: unset;
  }
  .site-branding { grid-column: 1; grid-row: 1; }
  .actions        { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 4px; width: auto; justify-content: flex-end; }
  .search-bar     { grid-column: 1 / -1; grid-row: 2; width: 100%; flex: none; max-width: none; margin-top: 0; }
  .search-bar input { padding: 6px 8px; font-size: 0.85rem; }
  .search-bar button { padding: 0 10px; }
  .main-nav       { display: none; }

  /* ── Subnav: collapsible on mobile ── */
  .subnav { display: none; }
  .subnav.is-open { display: block; }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .shop-sidebar {
    position: static;
    order: 2;
  }

  .shop-content { order: 1; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-carousel { height: 300px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 480px) {
  .logo-wrapper { width: 30px; height: 30px; }
  .site-branding .logo-mark { width: 22px; height: 22px; font-size: 0.55rem; }
  .site-branding { font-size: 1rem; }

  .heading { font-size: 1.5rem; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .hero-carousel { height: 240px; }

  .hero-content {
    left: 3%;
    right: 3%;
    max-width: none;
  }

  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.9rem; }

  .shop-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .card img { height: 180px; }
}

/* ════════════════════════════════════════════
   HOMEPAGE — shared utilities
════════════════════════════════════════════ */

/* Section header with optional "See All" link */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.section-header h2 { margin: 0; font-size: 1.4rem; color: var(--text); }
.see-all {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.see-all:hover { text-decoration: underline; color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — BestBuy-inspired layout  (hp-* namespace)
═══════════════════════════════════════════════════════════ */

/* ── Shared buttons ── */
.hp-btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.hp-btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }

.hp-btn-outline {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border: 2px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  white-space: nowrap;
}
.hp-btn-outline:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-1px);
}

/* ── Dark section heading/text overrides ── */
.hp-slide-headline, .hp-slide-sub, .hp-slide-terms,
.hp-slide-brand { color: #fff; }
.hp-spotlight-panel h1, .hp-spotlight-panel h2,
.hp-spotlight-panel h3, .hp-spotlight-panel h4 { color: #fff !important; }
.hp-navcats-promo h1, .hp-navcats-promo h2,
.hp-navcats-promo h3, .hp-navcats-promo h4 { color: var(--primary); }
.hp-deals-panel h1, .hp-deals-panel h2,
.hp-deals-panel h3, .hp-deals-panel h4 { color: #fff; }

/* ── 1. Hero — promotional slide banner ── */
.hp-hero-banner {
  position: relative;
  overflow: hidden;
  user-select: none;
}
.hp-hero-slider {
  position: relative;
}
.hp-slide {
  display: none;
  width: 100%;
}
.hp-slide.is-active {
  display: block;
}

/* Image area — top portion of the slide */
.hp-slide-img {
  height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px;
  position: relative;
}
/* Overlay gradient so text is readable over any image */
.hp-slide-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.hp-slide-brand {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  z-index: 1;
}

/* Info bar — bottom black strip */
.hp-slide-info {
  background: #000;
  padding: 28px 0;
}
.hp-slide-info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hp-slide-copy { flex: 1; min-width: 0; }
.hp-slide-headline {
  color: #fff;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}
.hp-slide-sub {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  margin: 0 0 4px;
  line-height: 1.5;
}
.hp-slide-terms {
  color: rgba(255,255,255,0.38);
  font-size: 0.75rem;
  margin: 0;
}
.hp-slide-cta {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.1s;
}
.hp-slide-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

/* Prev / Next arrows */
.hp-slider-arrow {
  position: absolute;
  top: 190px; /* vertical center of 380px image area */
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.hp-slider-arrow:hover { background: rgba(0,0,0,0.75); border-color: #fff; }
.hp-slider-prev { left: 16px; }
.hp-slider-next { right: 16px; }

/* Dots */
.hp-slider-dots {
  position: absolute;
  bottom: 148px; /* sits just above the info bar (28px padding + ~120px bar) */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.hp-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hp-slider-dot.is-active {
  background: #fff;
  transform: scale(1.4);
}

/* ── 2. Category circles strip ── */
.hp-cats {
  background: #fff;
  padding: 36px 0 28px;
  border-bottom: 2px solid var(--border);
}
.hp-cats-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}
.hp-cats-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.hp-cats-track::-webkit-scrollbar { display: none; }
.hp-cat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.hp-cat-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hp-cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.hp-cat-initial {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}
.hp-cat-item:hover .hp-cat-circle {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(252,163,17,0.2);
}
.hp-cat-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 80px;
  line-height: 1.2;
}
.hp-cat-item:hover .hp-cat-name { color: var(--accent); }

/* ── 3. Promo tiles ── */
.hp-promos {
  background: #fff;
  padding: 36px 0;
}
.hp-promos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hp-promo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 24px;
  border-radius: 6px;
  text-decoration: none;
  overflow: hidden;
  min-height: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid var(--accent);
}
.hp-promo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.hp-promo-headline {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.hp-promo-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 auto;
  line-height: 1.15;
  max-width: 160px;
}
.hp-promo-img {
  position: absolute;
  right: -10px;
  bottom: 10px;
  width: 110px;
  height: 110px;
  object-fit: contain;
  opacity: 0.85;
}
.hp-promo-btn {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 4px;
  align-self: flex-start;
  z-index: 1;
}

/* ── 4. Account banner ── */
.hp-account-banner {
  background: var(--primary);
  padding: 16px 0;
}
.hp-account-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hp-account-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
}
.hp-account-text svg { flex-shrink: 0; color: var(--accent); }
.hp-account-text small { color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.hp-account-actions { display: flex; gap: 10px; }
.hp-account-btn-outline {
  display: inline-block;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s;
}
.hp-account-btn-outline:hover { border-color: #fff; }
.hp-account-btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.hp-account-btn-primary:hover { background: var(--accent-light); }

/* ── 5. Brand spotlight carousel ── */
.hp-spotlight {
  background: #0a0a0a;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}
.hp-spotlight-wrap {
  display: flex;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}
.hp-spotlight-panel {
  flex: 0 0 240px;
  background: #111;
  padding: 40px 28px;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hp-spotlight-panel h2 {
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.2;
}
.hp-spotlight-panel p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin: 0 0 20px;
}
.hp-spotlight-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.hp-spotlight-link:hover { text-decoration: underline; }
.hp-spotlight-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.hp-spotlight-scroll::-webkit-scrollbar { display: none; }
.hp-spotlight-card {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  background: #1a1a1a;
  border-left: 1px solid #2a2a2a;
  text-decoration: none;
  position: relative;
  transition: background 0.2s;
}
.hp-spotlight-card:hover { background: #222; }
.hp-save-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.hp-spotlight-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.hp-spotlight-img img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.hp-spotlight-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-spotlight-prices { display: flex; align-items: baseline; gap: 6px; }
.hp-price-sale {
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
}
.hp-price-sale .woocommerce-Price-currencySymbol { font-size: 0.78rem; }
.hp-price-reg {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  text-decoration: line-through;
}

/* ── 6. Category circles — light gray section ── */
.hp-navcats {
  background: var(--surface);
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hp-navcats-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hp-navcats-promo { flex: 0 0 220px; }
.hp-navcats-promo h2 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.hp-navcats-promo p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 16px;
}
.hp-navcats-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.hp-navcats-link:hover { text-decoration: underline; color: var(--accent); }
.hp-navcats-circles {
  flex: 1;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hp-navcat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.hp-navcat-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hp-navcat-circle img { width: 100%; height: 100%; object-fit: cover; }
.hp-navcat-circle span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.hp-navcat-item:hover .hp-navcat-circle {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(252,163,17,0.2);
}
.hp-navcat-label {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  max-width: 88px;
  line-height: 1.2;
}
.hp-navcat-item:hover .hp-navcat-label { color: var(--accent); }

/* ── 7. Deal of the day ── */
.hp-deals {
  background: #fff;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}
.hp-deals-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.hp-deals-panel {
  flex: 0 0 180px;
  background: linear-gradient(180deg, #14213d 0%, #0d1729 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  gap: 20px;
}
.hp-deals-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hp-deals-badge span {
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hp-deals-badge strong {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0 16px rgba(252,163,17,0.35);
}
.hp-deals-cta {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.hp-deals-cta:hover { background: var(--accent-light); }
.hp-deals-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hp-deals-scroll::-webkit-scrollbar { height: 4px; }
.hp-deals-scroll::-webkit-scrollbar-track { background: transparent; }
.hp-deals-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.hp-deal-card {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  border-left: 1px solid var(--border);
  text-decoration: none;
  position: relative;
  transition: background 0.15s;
}
.hp-deal-card:hover { background: var(--surface); }
.hp-deal-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.hp-deal-img img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}
.hp-deal-title {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-deal-prices { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }

/* ── 8. Featured products grid ── */
.hp-featured {
  background: #fff;
  padding: 56px 0;
  border-top: 3px solid var(--accent);
}
.hp-featured .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.hp-featured .section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.hp-featured .see-all {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.hp-featured .see-all:hover { text-decoration: underline; }

/* ── Homepage responsive ── */
@media (max-width: 1023px) {
  .hp-promos-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-navcats-inner { flex-direction: column; align-items: flex-start; }
  .hp-navcats-promo { flex: 0 0 auto; }
  .hp-spotlight-panel { flex: 0 0 180px; }
}

@media (max-width: 767px) {
  .hp-slide-img { height: 260px; }
  .hp-slider-arrow { top: 130px; width: 40px; height: 40px; font-size: 1.3rem; }
  .hp-slider-dots { bottom: 108px; }
  .hp-slide-info { padding: 20px 0; }
  .hp-slide-info-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hp-slide-headline { font-size: 1.2rem; }
  .hp-slide-cta { align-self: flex-start; }
  .hp-promos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hp-spotlight-wrap { flex-direction: column; }
  .hp-spotlight-panel { flex: 0 0 auto; padding: 24px 20px; }
  .hp-deals-wrap { flex-direction: column; }
  .hp-deals-panel { flex: 0 0 auto; flex-direction: row; padding: 16px 20px; }
  .hp-account-inner { flex-direction: column; align-items: flex-start; }
  .hp-navcats-circles { gap: 16px; }
}

@media (max-width: 479px) {
  .hp-slide-img { height: 200px; }
  .hp-slider-arrow { display: none; }
  .hp-slider-dots { bottom: 90px; }
  .hp-promos-grid { grid-template-columns: 1fr; }
  .hp-navcats-circles { gap: 12px; }
  .hp-navcat-circle { width: 68px; height: 68px; }
  .footer-services-inner { gap: 10px; }
  .footer-service-item { font-size: 0.72rem; min-width: 60px; }
  .footer-service-item svg { width: 22px; height: 22px; }
}
