/* ========================================
   MAGNETICAAA — Vibrant Art E-Commerce
   ======================================== */

:root {
  --black: #1a1a1a;
  --white: #fefefe;
  --cream: #faf8f5;
  --pink: #ff2d6b;
  --neon-green: #aaff00;
  --electric-blue: #00c9ff;
  --warm-orange: #ff6b3d;
  --soft-lavender: #c4b5fd;
  --deep-teal: #008080;
  --hot-pink: #ff69b4;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--pink);
}
.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}
.btn-small {
  padding: 10px 20px;
  font-size: 0.75rem;
}
.btn-full { width: 100%; text-align: center; }

.label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ---- Announcement Bar ---- */
.announcement-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ---- Navigation ---- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  background: rgba(254,254,254,0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-left { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--pink);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--pink), var(--warm-orange), var(--neon-green), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-icon {
  background: none; border: none;
  cursor: pointer; color: var(--black);
  position: relative;
  padding: 4px;
}
.cart-count {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--pink);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: var(--black);
  display: block;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  top: 0; left: -100%;
  width: 320px; height: 100vh;
  background: var(--white);
  z-index: 200;
  transition: left 0.4s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.open { left: 0; }
.mobile-menu-content { padding: 60px 40px; }
.mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  font-size: 2rem;
  cursor: pointer;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mobile-menu a:hover { color: var(--pink); }

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-art-img,
.split-art-img,
.about-art-img,
.gallery-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-image .product-art-img {
  border-radius: 12px;
}
.hero-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 2px 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--neon-green), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.3);
}
.hero .btn-primary {
  background: var(--white);
  color: var(--black);
}
.hero .btn-primary:hover {
  background: var(--neon-green);
  color: var(--black);
}

/* ---- Categories Strip ---- */
.categories-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 40px;
  background: var(--cream);
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s;
}
.cat-item:hover { transform: translateY(-4px); }
.cat-swatch {
  width: 100px; height: 100px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.cat-item span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Sections ---- */
.section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
}
.section-sub {
  font-size: 1rem;
  color: #666;
  margin-top: -28px;
  margin-bottom: 40px;
}
.view-all {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: color 0.3s;
}
.view-all:hover { color: var(--pink); border-color: var(--pink); }

/* ---- Product Grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.product-grid.four-col { grid-template-columns: repeat(4, 1fr); }

.product-card { cursor: pointer; }
.product-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee;
}
.product-art {
  width: 100%; height: 100%;
  transition: transform 0.6s ease;
}
.product-card:hover .product-art { transform: scale(1.05); }
.product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  opacity: 0;
}
.product-card:hover .product-overlay {
  opacity: 1;
  background: rgba(0,0,0,0.15);
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.product-badge.sale { background: var(--pink); }
.product-info { padding: 14px 4px; }
.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-type {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
}
.product-price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}
.price-compare {
  text-decoration: line-through;
  color: #aaa;
  font-weight: 400;
  margin-right: 6px;
}

/* ---- Marquee ---- */
.marquee {
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: 16px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 25s linear infinite;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Split Feature ---- */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.split-image { position: relative; overflow: hidden; }
.split-art { width: 100%; height: 100%; }
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  background: var(--cream);
}
.split-text h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 12px 0 24px;
}
.split-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
  max-width: 440px;
}
.split-text .btn { margin-top: 12px; align-self: flex-start; }

/* ---- Testimonials ---- */
.testimonials {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  padding: 80px 40px;
  text-align: center;
  color: var(--white);
}
.testimonial-container { max-width: 700px; margin: 0 auto; position: relative; min-height: 200px; }
.testimonial {
  display: none;
  animation: fadeIn 0.5s ease;
}
.testimonial.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.stars {
  color: #fdcb6e;
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 4px;
}
blockquote {
  font-size: 1.3rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
  font-weight: 300;
}
cite {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--white); border-color: var(--white); }

/* ---- About ---- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 550px;
}
.about-image { position: relative; overflow: hidden; }
.about-art { width: 100%; height: 100%; }
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  margin: 12px 0 24px;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 16px;
  max-width: 440px;
}
.about-text .btn { margin-top: 12px; align-self: flex-start; }

/* ---- Gallery Strip ---- */
.gallery-strip {
  padding: 60px 0 0;
  text-align: center;
}
.gallery-strip h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.gallery-item { aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.gallery-art {
  width: 100%; height: 100%;
  transition: transform 0.5s;
}
.gallery-item:hover .gallery-art { transform: scale(1.08); }

/* ---- Newsletter ---- */
.newsletter {
  background: var(--cream);
  padding: 80px 40px;
  text-align: center;
}
.newsletter-inner { max-width: 540px; margin: 0 auto; }
.newsletter h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter p {
  color: #666;
  margin-bottom: 28px;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 450px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--black);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  background: var(--white);
}
.newsletter-form input:focus { border-color: var(--pink); }
.newsletter-form .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 60px 40px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---- Cart Drawer ---- */
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px; height: 100vh;
  background: var(--white);
  z-index: 300;
  transition: right 0.4s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer-content { display: flex; flex-direction: column; height: 100%; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #eee;
}
.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cart-close {
  background: none; border: none;
  font-size: 1.8rem; cursor: pointer;
  line-height: 1;
}
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { text-align: center; padding-top: 60px; }
.cart-empty p { color: #888; margin-bottom: 20px; }
.cart-item {
  display: flex; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.cart-item-art {
  width: 70px; height: 70px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.cart-item-details { flex: 1; }
.cart-item-details h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.cart-item-details .cart-item-price {
  font-size: 0.85rem;
  color: #666;
}
.cart-item-remove {
  background: none; border: none;
  color: #aaa; cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
  margin-top: 6px;
}
.cart-item-remove:hover { color: var(--pink); }
.cart-footer { padding: 24px; border-top: 1px solid #eee; }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.cart-note {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  margin-top: 10px;
}

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

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links { display: none; }
  .main-nav { padding: 14px 20px; }
  .logo { font-size: 1.2rem; }
  .hero { height: 70vh; }
  .hero h1 { font-size: 2.8rem; }
  .categories-strip {
    gap: 20px;
    padding: 40px 20px;
    flex-wrap: wrap;
  }
  .cat-swatch { width: 70px; height: 70px; }
  .section { padding: 50px 20px; }
  .split-feature, .about-section {
    grid-template-columns: 1fr;
  }
  .split-text, .about-text { padding: 50px 24px; }
  .split-text h2, .about-text h2 { font-size: 2rem; }
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
  .newsletter { padding: 50px 20px; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input {
    border-right: 2px solid var(--black);
    border-radius: var(--radius);
  }
  .newsletter-form .btn { border-radius: var(--radius); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cart-drawer { width: 100%; right: -100%; }
  .product-modal .modal-body { flex-direction: column; }
  .product-modal .modal-image { max-height: 50vh; }
  .product-modal { width: 95%; max-height: 95vh; }
}

/* ---- Product Detail Modal ---- */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.product-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 960px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 12px;
  z-index: 2001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.product-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.08); }
.modal-body {
  display: flex;
  gap: 0;
  min-height: 400px;
}
.modal-image {
  flex: 1;
  min-width: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}
.modal-main-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 80vh;
}
.modal-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: #f5f5f5;
}
.modal-thumbnails:empty {
  display: none;
}
.modal-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.modal-thumb:hover {
  opacity: 0.9;
}
.modal-thumb.active {
  border-color: #ff2d6b;
  opacity: 1;
}
.modal-details {
  flex: 1;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-details .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  font-weight: 600;
}
.modal-details h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 4px 0 0;
}
.modal-type {
  font-size: 0.9rem;
  color: #888;
  margin-top: 2px;
}
.modal-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 8px;
}
.modal-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-top: 8px;
}
.modal-meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.meta-item strong {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.meta-item p {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}
.modal-add-cart {
  margin-top: auto;
  padding-top: 16px;
}

/* ---- Category Page ---- */
.category-hero {
  padding: 60px 40px 50px;
  text-align: center;
  color: var(--white);
  position: relative;
}
.category-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}
.category-hero > * {
  position: relative;
  z-index: 1;
}
.category-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  opacity: 0.85;
}
.category-breadcrumb a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}
.category-breadcrumb a:hover {
  opacity: 0.7;
  text-decoration: underline;
}
.category-breadcrumb span {
  color: rgba(255,255,255,0.6);
}
.category-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 1px 2px 10px rgba(0,0,0,0.2);
}
.category-hero p {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.category-filters {
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 40px;
}
.category-filter-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.category-filter-inner span {
  font-size: 0.85rem;
  color: #888;
}
.category-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-sort label {
  font-size: 0.85rem;
  color: #888;
}
.category-sort select {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--white);
  cursor: pointer;
}

.category-products {
  padding-top: 50px;
  padding-bottom: 60px;
}
.category-products .product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.category-empty {
  text-align: center;
  padding: 80px 20px;
}
.category-empty h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.category-empty p {
  color: #888;
  margin-bottom: 24px;
}

.other-categories {
  background: var(--cream);
  padding: 60px 40px;
  text-align: center;
}
.other-categories h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 30px;
}
.other-categories .categories-strip {
  padding: 0;
  background: none;
}

/* Category section on homepage */
.category-section {
  padding: 60px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.category-section .section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 30px;
}
.category-section .section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}
.category-section .section-header .section-sub {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .category-products .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .category-hero {
    padding: 40px 20px 36px;
  }
  .category-filters {
    padding: 12px 20px;
  }
  .category-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .other-categories {
    padding: 40px 20px;
  }
}
