:root {
  /* Warm Neutrals */
  --bg-primary: #FAFAF8;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F5F2EE;
  --border-color: #E8E2D9;
  --text-primary: #1C1A17;
  --text-secondary: #6B6560;
  --text-muted: #9E9890;

  /* Strong Accent Color: Terracotta */
  --accent: #C4622D;
  --accent-hover: #A84F22;
  --accent-light: #FAEEE7;

  /* Utility Colors */
  --success: #2E7D5E;
  --success-bg: #E8F5E9;
  --warning: #B45309;
  --warning-bg: #FFF3E0;
  --error: #C0392B;
  --error-bg: #FDEDEC;

  /* Spacing & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50px;

  --shadow-sm: 0 2px 4px rgba(28, 26, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 26, 23, 0.08);
  --shadow-lg: 0 12px 24px rgba(28, 26, 23, 0.12);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: normal;
  overflow-wrap: break-word;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout & Containers */
.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #2b3038;
  /* Dark background matching reference */
  border-bottom: none;
  box-shadow: none;
}

.site-header .logo {
  color: #ffffff;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.site-header .nav-link:hover {
  color: #ffffff;
}

.site-header .search-bar input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: #ffffff;
}

.site-header .search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.site-header .search-bar input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.site-header .search-bar:focus-within i {
  color: #ffffff;
}

.site-header .search-bar i {
  color: rgba(255, 255, 255, 0.5);
}

.site-header .action-btn {
  color: #ffffff;
}

.site-header .action-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.search-bar {
  flex: 0 1 400px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-round);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--accent);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search-bar i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1e293b; /* Dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  list-style: none;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother animation */
  z-index: 10;
  padding: 8px 0;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #f1f5f9; /* Visible text on dark bg */
  font-size: 14px;
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background-color: rgba(255,255,255,0.05); /* subtle highlight */
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  position: relative;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.action-btn:hover {
  background-color: var(--bg-surface-alt);
  color: var(--accent);
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

.menu-toggle {
  display: none;
}

/* Footer styling */
.site-footer {
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 24px;
  margin-top: 80px;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-about p {
  margin-bottom: 24px;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.social-links a:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 16px !important;
}

.contact-info i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-subscribe p {
  font-size: 14px;
  margin-bottom: 16px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
}

.subscribe-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
}

.subscribe-form input:focus {
  border-color: var(--accent);
}

.btn {
  background-color: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-alt);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Home Page Specifics */
/* Home Page Specifics */
.categories-strip {
  background-color: #2b3038;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* Separator from navbar */
  border-bottom: none;
  overflow: visible;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .categories-strip {
    overflow-x: auto;
  }
}

.categories-strip::-webkit-scrollbar {
  height: 6px;
}

.categories-strip::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.categories-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  min-width: max-content;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  width: 72px;
  position: relative;
}

.cat-item:hover .cat-img img {
  transform: scale(1.1);
}

.cat-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: #1e293b; /* Dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  list-style: none;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 110;
  padding: 8px 0;
  margin-top: 10px;
}

.cat-item:hover .cat-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cat-dropdown li a {
  display: block;
  padding: 8px 12px;
  color: #f1f5f9;
  font-size: 13px;
  text-align: left;
  white-space: normal;
  text-decoration: none;
  transition: var(--transition);
}

.cat-dropdown li a:hover {
  background-color: rgba(255,255,255,0.05);
  color: #ffffff;
}


.cat-item .cat-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #fff;
}

.cat-item .cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cat-item span {
  font-size: 11px;
  font-weight: 500;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.hero {
  height: 620px;
  background-color: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.feature-strip-dark {
  background-color: #2b3038;
  padding: 24px 0;
  margin-bottom: 80px;
}

.feature-strip-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.f-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}

.f-item i {
  font-size: 28px;
  color: #c49c71;
  /* Accent color matching reference (e.g. golden/bronze) */
}

.f-text {
  display: flex;
  flex-direction: column;
}

.f-text strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.f-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
}



.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.product-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.see-all-card {
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 15px rgba(0,0,0,0.05), -5px -5px 15px rgba(255,255,255,0.8);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 280px;
}

.see-all-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
}

.see-all-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.see-all-card:hover .see-all-collage img {
  transform: scale(1.1);
}

.see-all-content {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(3px);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  gap: 16px;
  transition: all 0.4s ease;
}

.see-all-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 3;
}

.see-all-content i {
  font-size: 32px;
  color: var(--accent);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: white;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.see-all-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.see-all-card:hover .see-all-content {
  background: rgba(217, 119, 67, 0.85); /* Accent color with opacity */
  color: white;
}

.see-all-card:hover::before {
  transform: translateX(100%);
}

.see-all-card:hover .see-all-content i {
  color: var(--accent);
  background: white;
  transform: translateX(8px) scale(1.1);
}

.card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-wishlist:hover,
.card-wishlist.active {
  color: var(--accent);
  background-color: var(--accent-light);
  border-color: var(--accent);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  /* 4:3 Aspect Ratio for shorter cards */
  overflow: hidden;
  background-color: var(--bg-surface-alt);
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.badge-stock {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-in {
  background-color: var(--success-bg);
  color: var(--success);
}

.badge-low {
  background-color: var(--warning-bg);
  color: var(--warning);
}

.badge-out {
  background-color: var(--error-bg);
  color: var(--error);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.price-actual {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.price-original {
  font-size: 14px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.card-action {
  width: 100%;
}

/* Why Choose Us & Brands Strip */
.brands-strip {
  padding: 40px 0;
  margin-bottom: 80px;
  background: linear-gradient(90deg, #1C1A17, #2D2A26);
  overflow: hidden;
}

.brands-flex {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.brand-logo {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  opacity: 0.7;
  letter-spacing: 2px;
  transition: var(--transition);
}

.brand-logo:hover {
  opacity: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.feature-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Product Listing Grid & Filter Sidebar Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 40px;
}

.filter-sidebar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  align-self: start;
}

.filter-section {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--accent);
}

.range-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.range-input {
  width: 100%;
  accent-color: var(--accent);
}

.shop-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 24px;
}

.shop-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  background-color: var(--bg-surface);
  font-size: 14px;
}

/* Product detail specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.specs-table th,
.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.specs-table th {
  font-weight: 600;
  color: var(--text-secondary);
  width: 40%;
}

.specs-table td {
  color: var(--text-primary);
}

/* Skeleton Loading State */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-alt) 25%, #EAE7E2 50%, var(--bg-surface-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr 90px;
    grid-template-areas:
      'main thumbs'
      'info info';
  }

  .main-image-viewport {
    grid-area: main;
  }

  .thumbnails-stack {
    grid-area: thumbs;
  }

  .product-detail-info {
    grid-area: info;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    display: none;
    /* Can toggle with JS drawer class */
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }

  .nav-links,
  .search-bar {
    display: none;
    /* Collapse under hamburger on mobile */
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-about,
  .footer-subscribe {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-bottom div {
    justify-content: center;
    flex-wrap: wrap;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'main'
      'thumbs'
      'info';
  }

  /* Typography & Spacing */
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content p {
    font-size: 16px;
  }

  .section-header h2 {
    font-size: 28px;
  }
  
  .container {
    padding: 0 16px;
  }

  /* Grids */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cart-grid, 
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .auth-container {
    width: 95%;
    padding: 24px 20px;
  }
  
  /* Tables */
  .table-responsive {
    overflow-x: auto;
    display: block;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .main-image-viewport {
    grid-area: main;
  }

  .thumbnails-stack {
    grid-area: thumbs;
    flex-direction: row;
    overflow-x: auto;
  }

  .thumbnail-item {
    flex: 0 0 80px;
    aspect-ratio: 1 / 1;
  }

  .product-detail-info {
    grid-area: info;
  }
}

/* 3D Carousel Styles */
.inspiration-carousel-container {
  margin-top: 50px;
  perspective: 1200px;
  position: relative;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-3d {
  position: relative;
  width: 320px;
  height: 400px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
  overflow: hidden;
  cursor: pointer;
  backface-visibility: hidden;
  opacity: 0; /* JS will set initial opacity based on index */
}

.carousel-item .item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
  color: #fff;
  text-align: left;
}

.carousel-item .item-overlay h3 {
  font-size: 22px;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-item .btn {
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
}
.carousel-item .btn:hover {
  background-color: var(--accent);
  color: #fff;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
  padding: 0 20px;
}

.carousel-controls button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.carousel-controls button:hover {
  background: #fff;
  transform: scale(1.1);
}

/* Before & After Slider Styles */
.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 550px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  background: #ccc;
}

.ba-before, .ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  clip-path: inset(0 50% 0 0); /* Display left 50% initially */
}

.ba-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  margin: 0;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-size: 18px;
}

/* ==========================================================================
   STOREFRONT RESPONSIVE MEDIA QUERIES (TABLET & MOBILE OPTIMIZATIONS)
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  .cart-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shop-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .filter-sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .ba-slider-container {
    height: 400px;
  }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
  }

  .nav-links {
    display: none; /* Accessible via mobile drawer */
  }

  .search-bar {
    max-width: 200px;
    font-size: 13px;
  }

  .menu-toggle {
    display: block !important;
  }

  .categories-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 12px 0;
  }

  .categories-strip::-webkit-scrollbar {
    display: none;
  }

  .categories-flex {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0 16px;
    min-width: max-content;
  }

  .cat-item {
    flex: 0 0 auto;
    text-align: center;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 16px !important;
  }

  .product-card {
    padding: 12px;
  }

  .see-all-card {
    min-height: 220px !important;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px !important;
  }

  .footer-about,
  .footer-subscribe {
    grid-column: 1 / -1 !important;
  }

  .footer-col h4 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }

  .footer-bottom div {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .hero-section {
    padding: 40px 16px !important;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 28px !important;
  }

  .hero-section p {
    font-size: 14px !important;
  }

  .ba-slider-container {
    height: 300px;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .search-bar {
    display: none; /* Keep header clean on small phones */
  }

  .product-grid {
    grid-template-columns: 1fr !important;
  }

  .navbar h2 {
    font-size: 18px !important;
  }

  .ba-slider-container {
    height: 220px;
  }

  .ba-handle-button {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* ==========================================================================
   CART ITEM ROW RESPONSIVE STYLES
   ========================================================================== */
.cart-item-row {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cart-item-row {
    display: grid !important;
    grid-template-columns: 70px 1fr !important;
    gap: 12px !important;
    align-items: start !important;
    padding: 14px 0 !important;
  }
  .cart-item-img {
    width: 70px !important;
    height: 70px !important;
  }
  .cart-item-info h3 {
    font-size: 14px !important;
  }
  .cart-item-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;
    border-top: 1px dashed var(--border-color) !important;
    margin-left: 0 !important;
  }
}