/* QTRUST Premium Furniture Styles */
:root {
  --purple-deep: #5700A8;
  --purple: #7600C9;
  --purple-light: #9B30E8;
  --orange: #FF6500;
  --orange-hover: #E55A00;
  --charcoal: #29252D;
  --charcoal-light: #4A4550;
  --ivory: #FAF8F5;
  --ivory-dark: #F0EDE8;
  --white: #FFFFFF;
  --gray-100: #F7F5F2;
  --gray-200: #E8E4DF;
  --gray-300: #D1CBC3;
  --success: #2E7D32;
  --error: #C62828;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(41, 37, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(41, 37, 45, 0.08);
  --shadow-lg: 0 12px 40px rgba(41, 37, 45, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

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

/* Typography */
.font-display { font-family: var(--font-display); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
}

/* Announcement bar */
.announcement-bar {
  background: var(--purple-deep);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.announcement-bar a { color: var(--orange); text-decoration: underline; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .logo img {
    height: 44px;
    max-width: 150px;
  }
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after { width: 100%; }

.nav-desktop a:hover { color: var(--purple); }

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

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--charcoal);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover { color: var(--purple); }

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(41, 37, 45, 0.5);
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-nav.open .mobile-nav-overlay { opacity: 1; }

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-links a {
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-links a:hover { color: var(--purple); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 550;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.3;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}

.btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}

.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--purple);
}

.btn-white:hover {
  background: var(--ivory);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #2a0a3d 0%, #4a1580 50%, #1a0a28 100%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--charcoal-light);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  group: true;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img { transform: scale(1.05); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(41,37,45,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.category-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: #F5F2ED;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

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

.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--purple);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card-badge.out-of-stock {
  background: var(--charcoal);
  left: auto;
  right: 0.75rem;
}

.product-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.product-card-price {
  font-weight: 600;
  color: var(--purple);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
}

.product-card-actions .btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
}

/* Why QTRUST */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem;
  color: white;
  font-size: 1.4rem;
}

.why-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--charcoal-light);
  font-size: 0.95rem;
}

/* Interior design CTA */
.interior-cta {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: white;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
}

.interior-cta h2 {
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.interior-cta p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #c8c4be;
  padding: 4rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  /* Keep original brand colours — do not invert */
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.15rem;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  color: #c8c4be;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Product detail */
.product-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-gallery {
  position: sticky;
  top: 90px;
  align-self: start;
}

.gallery-main {
  aspect-ratio: 1;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.gallery-thumbs button {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--gray-100);
}

.gallery-thumbs button.active {
  border-color: var(--purple);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.25rem;
}

.product-description {
  color: var(--charcoal-light);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.variation-selector {
  margin-bottom: 1.5rem;
}

.variation-selector label {
  display: block;
  font-weight: 550;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variation-options button {
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.variation-options button:hover,
.variation-options button.active {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quantity-selector button {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.4rem;
}

.stock-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.stock-label.in-stock {
  background: #e8f5e9;
  color: var(--success);
}

.stock-label.out-of-stock {
  background: #ffebee;
  color: var(--error);
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(41,37,45,0.45);
  opacity: 0;
  transition: opacity var(--transition);
}

.cart-drawer.open .cart-overlay { opacity: 1; }

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--white);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.2rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gray-100);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.cart-item-variation {
  font-size: 0.8rem;
  color: var(--charcoal-light);
}

.cart-item-price {
  font-weight: 600;
  color: var(--purple);
  font-size: 0.9rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.cart-item-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 550;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Checkout steps */
.checkout-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.step-dot.active { background: var(--purple); }

/* Admin */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--charcoal);
  color: white;
  padding: 1.5rem 0;
  flex-shrink: 0;
}

.admin-sidebar a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #c8c4be;
  font-size: 0.9rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.admin-main {
  flex: 1;
  padding: 2rem;
  background: var(--gray-100);
  overflow-x: auto;
}

.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card .number {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--purple);
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--charcoal-light);
  margin-top: 0.25rem;
}

/* Responsive */
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
}

@media (max-width: 899px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .product-gallery { position: static; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 65vh; }
  .section { padding: 3rem 1.25rem; }
}

/* Utility */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== FIXES & IMPROVEMENTS ========== */

/* Page hero with photographic background */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(41,37,45,0.55), rgba(41,37,45,0.7));
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 3rem 1.5rem;
}
.page-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 0;
}

/* Interior CTA with photo background */
.interior-cta {
  position: relative;
  background: none !important;
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem !important;
}
.interior-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(87,0,168,0.85), rgba(41,37,45,0.75));
  z-index: 1;
}
.interior-cta > * {
  position: relative;
  z-index: 2;
}

/* Shop sidebar – spacious filters + independent scrolling */
.shop-layout {
  display: grid;
  grid-template-columns: minmax(270px, 290px) minmax(0, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  align-items: start;
}

.shop-layout > div {
  min-width: 0;
}

.filters {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.filters::-webkit-scrollbar {
  width: 6px;
}

.filters::-webkit-scrollbar-track {
  background: transparent;
}

.filters::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.filters::-webkit-scrollbar-thumb:hover {
  background: var(--purple-light);
}

.filters > h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 1.6rem 0 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--gray-200);
}

.filters > h3:first-of-type {
  margin-top: 0;
}

.filters .filter-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}

.filters .filter-group label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.6rem 0.45rem;
  margin: 0;
  border-radius: 6px;
  color: var(--charcoal-light);
  font-size: 0.86rem;
  line-height: 1.45;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.filters .filter-group label:hover {
  background: var(--gray-100);
  color: var(--purple);
}

.filters .filter-group input[type="radio"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--purple);
  cursor: pointer;
}

.filters .price-inputs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.filters .price-inputs input {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.82rem;
}

.filters .price-inputs input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(118, 0, 201, 0.08);
}

.filters .price-inputs span {
  flex-shrink: 0;
  color: var(--charcoal-light);
}

.filters > button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
}

.filters > button + button {
  margin-top: 0.5rem;
}

/* Mobile filter drawer */
.filter-toggle {
  display: none;
  width: 100%;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    z-index: 250;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-radius: 0;
    padding: 4rem 1.4rem 2rem;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .filters.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .filters > h3 {
    margin-top: 1.4rem;
  }

  .filters > h3:first-of-type {
    margin-top: 0;
  }

  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 240;
  }

  .filter-overlay.open { display: block; }
}

/* Gallery main – contain product fully */
.gallery-main {
  background: #F5F2ED;
}
.gallery-main img {
  object-fit: contain !important;
}

/* Category cards with images */
.category-card img {
  object-fit: cover;
}

/* Shared footer consistency */
.site-footer {
  margin-top: auto;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main, .shop-layout, .product-detail, .checkout-container, .section:last-of-type {
  flex: 1 0 auto;
}

/* Product card clickable */
.product-card {
  cursor: pointer;
}
.product-card a {
  text-decoration: none;
}


/* QTRUST visual corrections */
.hero {
  background-image: linear-gradient(
    90deg,
    rgba(15, 5, 25, 0.78) 0%,
    rgba(15, 5, 25, 0.58) 55%,
    rgba(15, 5, 25, 0.30) 100%
  ), url('/images/heroes/living-room.webp') !important;
  background-position: center center !important;
  background-size: cover !important;
}
.hero-bg-pattern {
  background-color: transparent !important;
}
.page-hero {
  background-size: cover !important;
  background-position: center center !important;
}
.announcement-bar[hidden] { display: none !important; }

/* Keep independent sidebar scroll behaviour consistent across browsers. */
.filters {
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

.product-card-image img,
.gallery-main img {
  object-fit: contain !important;
}

@media (max-width: 800px) {
  .hero { min-height: 68vh; background-position: 58% center !important; }
}

/* QTRUST HOMEPAGE HERO — LEFT ALIGNED */
body:has(.hero) .hero {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

body:has(.hero) .hero-content {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 4rem clamp(1.5rem, 7vw, 7rem) !important;
  text-align: left !important;
}

body:has(.hero) .hero-content h1,
body:has(.hero) .hero-content p {
  text-align: left !important;
}

body:has(.hero) .hero-actions {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

/* Mobile */
@media (max-width: 600px) {
  body:has(.hero) .hero-content {
    padding: 3rem 1.5rem !important;
  }
}

/* Final polish: responsive browsing, image integrity and keyboard access. */
html { scroll-padding-top: 90px; }
body { overflow-x: clip; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(118, 0, 201, 0.45);
  outline-offset: 3px;
}
.product-card { min-width: 0; }
.product-card-body h3 { overflow-wrap: anywhere; }
.cart-item img { object-fit: contain; padding: 4px; }
.variation-options button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  background: var(--gray-100);
  color: var(--charcoal-light);
  border-style: dashed;
}
.product-description { white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .category-card { border-radius: 12px; }
  .category-card-overlay { padding: 0.8rem; }
  .category-card h3 { font-size: 1rem; }
  .product-card { border-radius: 12px; }
  .product-card-body { padding: 0.8rem 0.8rem 0.95rem; }
  .product-card-body h3 { font-size: 0.92rem; line-height: 1.3; }
  .product-card-price { font-size: 0.95rem; margin-bottom: 0.7rem; }
  .product-card-actions .btn { min-height: 40px; padding: 0.55rem 0.45rem; font-size: 0.74rem; }
  .product-card-badge { top: 0.5rem; left: 0.5rem; font-size: 0.62rem; padding: 0.22rem 0.45rem; }
  .product-card-badge.out-of-stock { left: auto; right: 0.5rem; }
  .product-detail { padding: 1.25rem 1rem 2.5rem; gap: 1.25rem; }
  .product-info h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  .product-price { font-size: 1.35rem; }
  .cart-panel { width: min(420px, 100vw); }
  .cart-items { padding: 0.85rem 1rem; }
  .cart-item { gap: 0.75rem; }
  .cart-item img { width: 68px; height: 68px; }
  .hero p br { display: none; }
  .hero-actions .btn { min-height: 46px; }
}

@media (max-width: 360px) {
  .category-grid,
  .product-grid { gap: 0.65rem; }
  .product-card-body { padding: 0.7rem; }
  .product-card-body h3 { font-size: 0.86rem; }
  .product-card-price { font-size: 0.88rem; }
  .header-inner { padding-inline: 1rem; gap: 0.75rem; }
  .header-actions { gap: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.shop-search {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
}
.shop-search:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(118, 0, 201, 0.1);
}
.shop-toolbar select {
  min-height: 44px;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
}
@media (max-width: 800px) {
  .shop-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .shop-search { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 420px) {
  .shop-toolbar { grid-template-columns: 1fr; }
  .shop-toolbar select { width: 100%; }
}


.qtrust-reassurance { background: var(--white); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.reassurance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.reassurance-item { padding: 1.25rem 1rem; text-align: center; }
.reassurance-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 0.8rem; border-radius: 50%; background: rgba(118,0,201,0.08); color: var(--purple); font-size: 1.25rem; }
.reassurance-item h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.reassurance-item p { max-width: 330px; margin: 0 auto 0.75rem; color: var(--charcoal-light); font-size: 0.92rem; }
.reassurance-item a { color: var(--purple); font-weight: 600; font-size: 0.88rem; }
.reassurance-item a:hover { color: var(--orange); }
.product-purchase-notes { margin: 1.5rem 0; padding: 1rem 1.1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); }
.product-purchase-notes p { color: var(--charcoal-light); font-size: 0.86rem; line-height: 1.65; margin-bottom: 0.55rem; }
.product-purchase-notes strong { color: var(--charcoal); }
.product-purchase-notes .btn { margin-top: 0.35rem; }
@media (max-width: 800px) { .reassurance-grid { grid-template-columns: 1fr; gap: 0.5rem; } .reassurance-item { padding: 1rem 0.5rem; } }
