@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --primary: #0f172a;          /* Rich slate navy/charcoal */
  --primary-light: #1e293b;    /* Charcoal tone for high contrast elements */
  --accent: #167aff;           /* Premium CaseKing blue */
  --gold: #167aff;             /* Backwards compatibility gold color */
  --accent-light: #e8f1ff;     /* Light blue backdrop */
  --accent-hover: #0062dd;     /* Darker blue for hovers */
  --accent-glow: rgba(22, 122, 255, 0.15);
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.03);
  
  --font-serif: 'Space Grotesk', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 20px rgba(22, 122, 255, 0.2);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

/* --- RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 0.9rem !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--accent) !important;
  box-shadow: 0 4px 12px rgba(22, 122, 255, 0.2) !important;
  cursor: pointer !important;
  transition: var(--transition-smooth) !important;
  text-align: center;
}

.btn-premium:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  box-shadow: 0 6px 16px rgba(22, 122, 255, 0.35) !important;
  transform: translateY(-1px);
}

.btn-premium:active {
  transform: translateY(1px);
}

input, textarea, select {
  font-family: var(--font-sans);
  outline: none;
}

ul {
  list-style: none;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  text-align: center;
  margin-bottom: 3.5rem;
  font-weight: 700;
}

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: center;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.announcement-bar a {
  color: #e6c262;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed #e6c262;
}

.announcement-bar a:hover {
  color: #ffffff;
  border-bottom-style: solid;
}

/* --- PREMIUM HEADER --- */
header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.logo-img:hover {
  transform: scale(1.03);
}

.logo-img-footer {
  height: 55px;
  width: auto;
  display: block;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  color: var(--primary);
  font-size: 1.25rem;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.header-btn:hover {
  background-color: var(--accent-light);
  color: var(--accent);
  border-color: rgba(22, 122, 255, 0.1);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.mobile-menu-toggle {
  display: none;
}

/* --- STEP-BY-STEP STYLING --- */
.step-section {
  padding: 3rem 0 0 0;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.step-title.text-center {
  text-align: center;
}

.brands-list-container, .models-list-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background-color: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.brand-pill-btn, .model-pill-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
  aspect-ratio: 5/2;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.brand-pill-btn:hover, .model-pill-btn:hover {
  border-color: var(--accent);
  background-color: var(--bg-white);
  color: var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.brand-pill-btn.active, .model-pill-btn.active {
  background-color: var(--bg-white);
  border: 3px solid var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.brand-card-img {
  max-width: 45%;
  max-height: 70%;
  object-fit: contain;
  margin-bottom: 0;
  transition: var(--transition-smooth);
}

.brand-placeholder-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  box-shadow: 0 4px 10px rgba(22, 122, 255, 0.2);
  flex-shrink: 0;
}

.brand-card-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.model-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.model-pill-btn:hover .model-icon-box {
  background-color: var(--accent);
  color: #ffffff;
  transform: rotate(15deg);
}

.model-pill-btn.active .model-icon-box {
  background-color: var(--accent);
  color: #ffffff;
}

.model-card-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

/* --- CATEGORIES SECTION & GRID --- */
.categories-section {
  padding: 4rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.category-card.active {
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-glow);
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: var(--transition-smooth);
}

.category-card:hover .category-card-img {
  filter: none;
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.category-card:hover .category-card-overlay {
  background-color: rgba(15, 23, 42, 0.15);
}

.category-card-title {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

/* --- PRODUCT CATALOG SECTION --- */
.catalog {
  padding: 4rem 0 8rem 0;
  background-color: var(--bg-light);
}

/* --- DYNAMIC FILTER TABS --- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.15);
}

/* --- PRODUCT GRID --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  border-color: rgba(0, 102, 204, 0.2);
}

.badge-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  z-index: 10;
}

.badge-tag.sale {
  background-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-overlay-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.5) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.product-card:hover .product-overlay-actions {
  opacity: 1;
  transform: translateY(0);
}

.action-icon-btn {
  width: 44px;
  height: 44px;
  background-color: var(--bg-white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.action-icon-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.product-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.product-category {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.product-rating {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  color: #facc15;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.product-price-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price.old-price {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.btn-card-buy {
  margin-top: 1.2rem;
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

.btn-card-buy:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --- QUICK VIEW MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-wrapper {
  background-color: var(--bg-white);
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(40px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-wrapper {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.modal-close-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: rotate(90deg);
  border-color: var(--primary);
}

.modal-image-panel {
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
}

.modal-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details-panel {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-product-cat {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.modal-product-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

.modal-product-rating {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.modal-stars {
  display: flex;
  gap: 0.2rem;
  color: #facc15;
}

.modal-rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-specs-list {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
  margin-bottom: 2rem;
}

.modal-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.modal-spec-row:last-child {
  margin-bottom: 0;
}

.modal-spec-label {
  font-weight: 700;
  color: var(--primary);
}

.modal-spec-val {
  color: var(--text-muted);
}

.modal-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.qty-stepper {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  align-items: center;
  height: 52px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.qty-btn:hover {
  background-color: var(--bg-light);
}

.qty-val {
  font-size: 0.95rem;
  font-weight: 700;
  width: 36px;
  text-align: center;
}

.btn-modal-add {
  height: 52px;
  border-radius: var(--radius-md) !important;
}

/* --- SLIDING CART SIDEBAR --- */
.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-white);
  z-index: 260;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar-overlay.active .cart-sidebar {
  transform: translateX(0);
}

.cart-header {
  padding: 1.8rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.cart-close-btn:hover {
  background-color: var(--bg-light);
  transform: rotate(90deg);
}

.cart-items-container {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  min-height: 0;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
}

.cart-item-details {
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.cart-qty-btn:hover {
  background-color: var(--bg-light);
  color: var(--accent);
}

.cart-qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-item-remove-btn {
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0.5rem;
}

.cart-item-remove-btn:hover {
  color: #ef4444;
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  background-color: var(--bg-light);
  flex-shrink: 0;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.cart-summary-label {
  font-weight: 600;
  color: var(--text-dark);
}

.cart-summary-total {
  font-weight: 800;
  color: var(--accent);
}

/* --- QUICK CHECKOUT FORM --- */
.cart-checkout-form-container {
  display: none;
  margin-top: 1rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 1.5rem;
}

.cart-checkout-form-container.active {
  display: block;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  background-color: var(--bg-white);
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkout-btn-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.btn-checkout-submit {
  width: 100%;
  border-radius: var(--radius-md);
}

.btn-phone-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(0, 102, 204, 0.2);
  padding: 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
}

.btn-phone-order:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

/* --- ABOUT SECTION --- */
.about {
  padding: 8rem 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-box {
  position: relative;
}

.about-img-box::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: -1.5rem;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.about-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-text {
  padding-right: 2rem;
}

.about-badge {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: block;
}

.about-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
}

.about-paragraph {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* --- BRAND FOOTER --- */
footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 6rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-column-logo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.footer-logo-text span {
  font-size: 1.1rem;
  color: var(--accent);
  vertical-align: super;
  font-weight: 700;
}

.footer-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 1.8rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-link {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.footer-contact-row a {
  color: var(--accent);
  font-weight: 600;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  fill: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: #64748b;
}

.footer-developer {
  display: flex;
  align-items: center;
}

.footer-dev-link {
  color: #64748b;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-dev-link:hover {
  color: var(--gold);
}

.footer-dev-logo {
  height: 18px;
  vertical-align: middle;
  filter: brightness(0) invert(1) opacity(0.5);
  transition: filter 0.2s;
}

.footer-dev-link:hover .footer-dev-logo {
  filter: none;
}

.footer-trust-logos {
  display: flex;
  gap: 1.5rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* --- SUCCESS CONFETTI OVERLAY --- */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.success-card {
  text-align: center;
  padding: 3.5rem;
  max-width: 500px;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-overlay.active .success-card {
  transform: translateY(0) scale(1);
}

.success-icon-box {
  width: 80px;
  height: 80px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--accent);
}

.success-icon {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.success-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.order-number {
  display: inline-block;
  background-color: var(--accent-light);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1.2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .header-container {
    height: 70px;
  }
  
  .nav-menu {
    display: none; /* Hide default menu for mobile simplicity */
  }
  
  .mobile-menu-toggle {
    display: block;
    font-size: 1.4rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .hero-tagline {
    justify-content: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }
  
  .hero-cta-group {
    justify-content: center;
    gap: 1rem;
  }
  
  .btn-premium, .btn-outline {
    padding: 0.9rem 1.8rem;
    font-size: 0.8rem;
  }
  
  .pillars {
    padding: 3.5rem 0;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pillar-card {
    padding: 1.5rem 1rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .modal-wrapper {
    grid-template-columns: 1fr;
  }
  
  .modal-image-panel {
    aspect-ratio: 4/3;
  }
  
  .modal-details-panel {
    padding: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .about-text {
    padding-right: 0;
    text-align: center;
  }
  
  .about-title, .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .product-details {
    padding: 0.9rem;
  }
  
  .product-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  
  .product-category {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
  
  .product-price.old-price {
    font-size: 0.85rem;
  }
  
  .btn-card-buy {
    padding: 0.75rem 0.6rem;
    font-size: 0.65rem;
    margin-top: 0.8rem;
    border-radius: var(--radius-sm);
  }
  
  .badge-tag {
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
  }
  
  .cart-sidebar {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .announcement-bar {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
  }
  
  .cart-items-container {
    padding: 1.2rem;
  }
  
  .cart-footer {
    padding: 1.2rem;
  }
}

/* --- RESPONSIVE STEPS & CATEGORIES GRID --- */
@media (max-width: 992px) {
  .brands-list-container, .models-list-container, .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .brands-list-container, .models-list-container, .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .brand-pill-btn, .model-pill-btn {
    padding: 1rem;
  }
  .brand-card-text, .model-card-text {
    font-size: 0.85rem;
  }
  .brand-placeholder-icon, .model-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .brand-card-img {
    margin-bottom: 0.5rem;
  }
  .step-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .brands-list-container, .models-list-container, .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .category-card-title {
    font-size: 0.95rem;
  }
}

/* --- MOBILE MENU SIDEBAR STYLING --- */
.mobile-menu-sidebar {
  background-color: var(--bg-white);
  display: flex;
  flex-direction: column;
}

.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.menu-section {
  margin-bottom: 2rem;
}

.menu-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.menu-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.menu-brand-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition-fast);
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.menu-brand-item:hover, .menu-brand-item.active {
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--accent);
}

.menu-brand-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.menu-brand-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-models-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.menu-model-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition-fast);
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.menu-model-item i {
  color: var(--accent);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.menu-model-item:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
  color: var(--accent);
}

.menu-model-item:hover i {
  transform: scale(1.15);
}

/* --- STOREFRONT PRODUCT PAGE --- */
.product-page-section {
  background-color: var(--bg-light);
}

.product-page-grid {
  margin-top: 1rem;
}

.product-page-price-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- STOREFRONT CHECKOUT PAGE --- */
.checkout-page-section {
  background-color: var(--bg-light);
}

.checkout-grid {
  align-items: start;
}

.checkout-form-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.checkout-summary-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.checkout-type-selectors {
  display: flex;
  background: var(--bg-light);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.checkout-type-selectors .btn-secondary {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  transition: var(--transition-fast);
}

.checkout-type-selectors .btn-secondary.active {
  background-color: var(--accent);
  color: #000;
  box-shadow: var(--shadow-sm);
}

/* --- AUTH MODAL OVERLAY --- */
#auth-modal .modal-wrapper {
  display: block !important; /* Override two-column grid layout */
  background: var(--bg-white) !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15) !important;
  border-radius: var(--radius-lg) !important;
  padding: 2.5rem !important;
  width: 100% !important;
  max-width: 450px !important;
}

#auth-modal label {
  color: var(--text-dark) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

#auth-modal input:not([type="checkbox"]) {
  width: 100% !important;
  background: var(--bg-light) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: var(--text-dark) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  transition: var(--transition-fast) !important;
}

#auth-modal input:not([type="checkbox"]):focus {
  border-color: var(--accent) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(22, 122, 255, 0.1) !important;
}

#auth-modal .btn-secondary {
  color: var(--text-dark) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
}

#auth-modal .btn-secondary.active {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
}

#auth-profile-panel h3 {
  color: var(--primary) !important;
}

#profile-display-name, #profile-display-email, #profile-display-comp-name, #profile-display-comp-bulstat {
  color: var(--primary) !important;
}

/* --- BANNER IN THE CART --- */
.cart-promo-banner {
  font-family: var(--font-sans);
  font-weight: 600;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.9; }
  50% { opacity: 1; transform: scale(1.01); }
  100% { opacity: 0.9; }
}

/* --- MOBILE NAVIGATION OVERLAY FIX --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: none;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
}

.mobile-menu-sidebar {
  width: 320px;
  height: 100%;
  background-color: var(--bg-white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-sidebar {
  transform: translateX(0);
}

/* --- ADMIN PANEL MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  /* Admin Sidebar Drawer on Mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    z-index: 2000;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
    background-color: var(--panel) !important;
  }

  .sidebar.active {
    left: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
  }

  .main-content {
    padding: 1rem !important;
  }

  /* Premium top bar adjustments */
  header {
    padding: 0.75rem 1.25rem !important;
    gap: 0.5rem;
  }

  .logo-img {
    height: 32px !important;
  }

  .admin-badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.4rem !important;
  }

  .header-actions {
    gap: 0.75rem !important;
  }

  /* Table responsiveness */
  .table-container {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 1rem !important;
  }

  .header-actions #header-user-name {
    display: none !important;
  }
  
  #homepage-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  .cart-footer {
    padding: 1.25rem !important;
  }

  .cart-items-container {
    padding: 1.25rem !important;
  }
}

/* --- DRAG HANDLE FOR IMAGE PREVIEW --- */
.drag-handle-rect {
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: background 0.2s;
}

.image-preview-card:hover .drag-handle-rect {
  background: var(--gold) !important;
  color: #000 !important;
}

.meta-item.selected {
  border-color: var(--gold) !important;
  background: rgba(22, 122, 255, 0.1) !important;
}

/* --- PRODUCT DETAILS PAGE LAYOUT --- */
.product-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}

.product-page-image-panel {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.product-page-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-page-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

/* Image Navigation Arrows */
.gallery-nav-btn {
  display: none; /* Managed by JS - only shown when there are multiple images */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 10px rgba(22, 122, 255, 0.5);
}

.gallery-nav-btn i {
  font-size: 1.1rem;
}

#product-page-prev-btn {
  left: 1rem;
}

#product-page-next-btn {
  right: 1rem;
}

/* Responsive Overrides for Product Details Page */
@media (max-width: 768px) {
  .product-page-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .product-page-left-column {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .product-page-image-panel {
    width: 100%;
    margin: 0 auto;
  }
  
  .product-page-details-panel {
    text-align: left;
  }
  
  .gallery-nav-btn {
    width: 36px;
    height: 36px;
  }
}

/* --- SHIPPING UPSELL MODAL --- */
#shipping-upsell-modal .modal-wrapper {
  background-color: var(--bg-white) !important;
  display: block;
}

#shipping-upsell-modal .btn-secondary {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  cursor: pointer;
  width: 100%;
}

#shipping-upsell-modal .btn-secondary:hover {
  background-color: var(--border-light);
  color: var(--primary);
}

.cart-item-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --- STOREFRONT CHECKOUT PAGE GRID --- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  .checkout-summary-panel {
    position: static !important;
    width: 100% !important;
  }
}

/* --- PREMIUM BLOG STYLING --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-filter-pill {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 0.6rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--bg-light);
}

.blog-filter-pill.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 4px 10px var(--gold-glow);
}

#blog-search-input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Blog Content Typography Layout */
.blog-post-content {
  font-family: var(--font-sans);
  color: var(--text-dark);
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-post-content p {
  margin-bottom: 1.75rem;
}

.blog-post-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.blog-post-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
  font-style: italic;
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--text-muted);
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.blog-post-content strong {
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  #blog-post-view h1 {
    font-size: 2.25rem !important;
  }
}

/* --- PREMIUM CATEGORIES PAGE STYLING --- */
.categories-page-section, .category-detail-section {
  background-color: var(--bg-light);
}

.categories-hero-banner, .category-detail-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%);
  padding: 5rem 0 4rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}

.categories-hero-banner::before, .category-detail-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(22, 122, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.categories-hero-banner h1, .category-detail-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  font-family: var(--font-serif);
  color: #fff;
}

.categories-hero-banner p, .category-detail-hero p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Specific Category Detail Hero Overrides */
.category-detail-hero {
  text-align: left;
  padding: 4rem 0 3rem 0;
}

.category-detail-hero .container {
  position: relative;
  z-index: 2;
}

/* Category Card Overlay Refinement for a Luxury bottom gradient look */
.categories-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  scroll-margin-top: 140px;
}

/* Overlay refinement */
.categories-list-grid .category-card-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 50%, transparent 100%);
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem;
  text-align: left;
}

.categories-list-grid .category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.15) 100%);
}

.categories-list-grid .category-card {
  aspect-ratio: 4/3;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.categories-list-grid .category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--gold);
  border-color: var(--gold);
}

.categories-list-grid .category-card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.categories-list-grid .category-card-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.categories-list-grid .category-card:hover .category-card-img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  #homepage-hero-title {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }
  .categories-hero-banner h1 {
    font-size: 2rem !important;
  }
  .category-detail-hero h1 {
    font-size: 1.75rem !important;
  }
  .categories-hero-banner p {
    font-size: 0.95rem !important;
    padding: 0 1rem;
  }
  .categories-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    padding: 0 1rem;
  }
}

/* --- SMART SEARCH BAR STYLES --- */
.search-bar-section {
  transition: box-shadow 0.3s ease;
}

#smart-search-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(22, 122, 255, 0.15);
}

.search-suggestion-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-suggestion-item:hover {
  background-color: rgba(22, 122, 255, 0.08) !important;
}

/* Custom scrollbar for search suggestions */
#search-suggestions::-webkit-scrollbar {
  width: 6px;
}

#search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

#search-suggestions::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 3px;
}

#search-suggestions::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 90%;
  max-width: 800px;
  background-color: var(--primary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 2rem;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    padding: 1.25rem;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: center;
  }
  .cookie-banner-content button {
    width: 100%;
  }
}

/* --- LEGAL TEXT PAGES STYLES --- */
.legal-page-section {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-content h2 {
  font-family: var(--font-sans);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
}

.legal-content p, .legal-content li {
  line-height: 1.75;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

/* --- SCROLL REVEAL HEADER & CART PULSE --- */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.cart-pulse {
  animation: cartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.search-bar-section {
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
