/* 
  Little Layerz — Premium Modern Redesign
  Custom colors: Alabaster, Warm Mist, Slate, Deep Indigo, WhatsApp Teal
  Primary Accent: Deep Indigo (#4f46e5)
  Header / Body Font: Fredoka (playful geometric rounded headings) / Inter (legible body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  /* Premium twilight/blush design system colors */
  --ink: #1e1b4b;            /* Indigo 950 (Deep dark navy/indigo) */
  --body-text: #374151;      /* Slate 700 */
  --muted: #6b7280;          /* Slate 500 */
  --muted-soft: #9ca3af;     /* Slate 400 */
  --hairline: #e5e7eb;        /* Slate 200 */
  --hairline-soft: #f3f4f6;   /* Slate 100 */
  --canvas: #faf9f6;          /* Alabaster background */
  --surface-soft: #f5f4f0;    /* Warm Mist/Ivory card bg */
  --surface-strong: #eae8e2;  /* Slightly darker mist */
  --primary: #4f46e5;         /* Indigo 600 primary accent */
  --primary-active: #4338ca;  /* Indigo 700 */
  --whatsapp-color: #0d9488;  /* Teal 600 (WhatsApp brand integration) */
  --whatsapp-hover: #0f766e;  /* Teal 700 */
  --font-headings: 'Fredoka', -apple-system, system-ui, sans-serif;
  --font: 'Inter', -apple-system, system-ui, Roboto, 'Helvetica Neue', sans-serif;

  /* Gradient background matching our palette */
  --gradient-primary: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf2f8 100%);
  --gradient-card-hover: linear-gradient(135deg, #ffffff 0%, #faf9f6 100%);

  /* Premium Soft Shadow */
  --card-shadow: rgba(30, 27, 75, 0.02) 0px 0px 0px 1px, rgba(30, 27, 75, 0.04) 0px 2px 8px 0px, rgba(30, 27, 75, 0.06) 0px 4px 16px 0px;
  --card-shadow-hover: rgba(30, 27, 75, 0.04) 0px 0px 0px 1px, rgba(30, 27, 75, 0.08) 0px 8px 24px 0px, rgba(30, 27, 75, 0.12) 0px 16px 32px 0px;

  /* Radii - smoother, larger curves */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Airbnb Spacing */
  --sp-xxs: 2px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-base: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 64px;

  /* Layout */
  --max-width: 1280px;
}

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

h1, h2, h3, h4, h5, h6, .logo h1, .section-heading, .card-title, .single-title, .hero-title, .about-content h2 {
  font-family: var(--font-headings);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas);
  color: var(--body-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  width: 100%;
}

/* =====================
   HEADER / TOP NAV
   ===================== */
header {
  border-bottom: 1px solid var(--hairline);
  padding: 0;
  position: sticky;
  top: 0;
  background: var(--canvas);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: var(--sp-base);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.44px;
  line-height: 1.18;
}

.logo h1 span {
  font-weight: 400;
  color: var(--muted);
}

.tagline {
  display: none; /* Hidden in sticky header — too verbose */
}

/* =====================
   CATEGORY STRIP
   ===================== */
.category-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0 10px;
  border-top: 1px solid var(--hairline-soft);
  -webkit-overflow-scrolling: touch;
}

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

.category-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 8px var(--sp-base);
  border-radius: var(--radius-full);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.29;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--font);
  flex-shrink: 0;
}

.category-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-soft);
}

.category-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.category-pill .pill-emoji {
  font-size: 16px;
  line-height: 1;
}

/* =====================
   MAIN CONTENT
   ===================== */
main {
  padding: var(--sp-xl) 0 var(--sp-section);
}

/* Section heading */
.section-heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.44px;
  line-height: 1.18;
  margin-bottom: var(--sp-xl);
}

/* =====================
   RECENTLY VIEWED
   ===================== */
.recently-viewed {
  margin-bottom: var(--sp-section);
}

.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-base);
}

/* =====================
   PRODUCTS GRID
   ===================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-xl);
  perspective: 1200px;
}

/* =====================
   PRODUCT CARD — Premium Edition
   ===================== */
.product-card {
  background: var(--canvas);
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: visible;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: fadeUpSpring 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* staggered spring entry */
.product-card:nth-child(1)  { animation-delay: 0.04s; }
.product-card:nth-child(2)  { animation-delay: 0.09s; }
.product-card:nth-child(3)  { animation-delay: 0.14s; }
.product-card:nth-child(4)  { animation-delay: 0.19s; }
.product-card:nth-child(5)  { animation-delay: 0.24s; }
.product-card:nth-child(6)  { animation-delay: 0.29s; }
.product-card:nth-child(7)  { animation-delay: 0.34s; }
.product-card:nth-child(8)  { animation-delay: 0.39s; }
.product-card:nth-child(9)  { animation-delay: 0.44s; }
.product-card:nth-child(10) { animation-delay: 0.49s; }
.product-card:nth-child(11) { animation-delay: 0.54s; }
.product-card:nth-child(12) { animation-delay: 0.59s; }

@keyframes fadeUpSpring {
  0%   { opacity: 0; transform: translateY(24px) scale(0.97); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.product-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--card-shadow-hover);
}

/* =====================
   PHOTO AREA
   ===================== */
.card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: var(--surface-soft);
  margin-bottom: 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Shimmer sweep across image on hover */
.card-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255,255,255,0.22) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  transition: background-position 0s;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
}

.product-card:hover .card-image-container::after {
  background-position: 200% 0;
  transition: background-position 0.7s ease;
}

/* Dark scrim that reveals on hover for action drawer */
.card-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,27,75,0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.product-card:hover .card-image-container::before {
  opacity: 1;
}

/* Quick-Order floating button that appears on hover over the image */
.card-quick-order {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(30,27,75,0.2);
  backdrop-filter: blur(8px);
}

.product-card:hover .card-quick-order {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.card-quick-order:hover {
  background: var(--primary);
  color: #fff;
}

/* =====================
   CAROUSEL CONTROLS
   ===================== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(30,27,75,0.15);
  z-index: 5;
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.product-card:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 5;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.dot.active {
  background: #fff;
  width: 16px;
  border-radius: 3px;
  transform: none;
}

/* =====================
   GLASS CATEGORY BADGE
   ===================== */
.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 6;
  border: 1px solid rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
  line-height: 1.4;
  transition: background 0.2s;
}

/* =====================
   META BLOCK (below image)
   ===================== */
.card-meta {
  padding: var(--sp-md) var(--sp-md) var(--sp-sm);
  background: var(--canvas);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--hairline-soft);
  border-top: none;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-sm);
  margin-bottom: 4px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
  font-family: var(--font-headings);
  letter-spacing: -0.2px;
}

/* Price pill */
.card-price {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.15);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.product-card:hover .card-price {
  background: rgba(79,70,229,0.13);
  border-color: rgba(79,70,229,0.28);
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  margin-top: 4px;
}

/* Card Actions */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--hairline-soft);
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  padding: 12px var(--sp-lg);
  height: 48px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  text-decoration: none;
  border: none;
  line-height: 1.25;
}

.btn-whatsapp-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--whatsapp-color);
  color: #ffffff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-whatsapp-contact:hover {
  background: var(--whatsapp-hover);
}

.btn-whatsapp-contact .icon {
  width: 15px;
  height: 15px;
}

.btn-whatsapp {
  flex-grow: 1;
  background: var(--whatsapp-color);
  color: #ffffff;
}

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

.btn-icon {
  padding: 0;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.btn-instagram {
  background: #E1306C;
  color: white;
}

.btn-youtube {
  background: #FF0000;
  color: white;
}

.btn-instagram:hover, .btn-youtube:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.btn-share {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
  font-size: 14px;
  height: 40px;
  padding: 8px var(--sp-base);
  border-radius: var(--radius-full);
}

.btn-share:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

/* =====================
   SINGLE PRODUCT PAGE
   ===================== */
.single-product-container {
  max-width: 1080px;
  margin: 0 auto;
}

.back-nav {
  margin-bottom: var(--sp-xl);
}

.back-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  border: 1px solid var(--hairline);
  padding: var(--sp-sm) var(--sp-base);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.back-link:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.single-product-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-xxl);
  align-items: start;
  padding: var(--sp-xl) 0;
}

.single-product-media {
  position: relative;
  width: 100%;
}

.single-product-images-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-base);
  width: 100%;
}

.single-view-img-item {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  background: var(--surface-soft);
}

.single-view-img-item:hover {
  transform: scale(1.01);
}

/* Hide controls on desktop */
.single-product-media .carousel-btn,
.single-product-media .carousel-dots {
  display: none !important;
}

.single-product-details {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
}

.single-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-base);
}

.single-price {
  font-size: 24px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--hairline-soft);
}

.single-desc {
  font-size: 15px;
  color: var(--body-text);
  margin-bottom: var(--sp-xxl);
  line-height: 1.7;
}

.single-category-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--sp-xs);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.single-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.single-actions .btn {
  width: 100%;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.single-actions .btn-share {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 14px;
}

/* =====================
   ICON
   ===================== */
.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* =====================
   EMPTY / LOADING STATE
   ===================== */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-section) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-base);
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-section) 0;
  color: var(--muted);
  font-size: 16px;
}

.empty-state strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--hairline-soft);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =====================
   TOAST
   ===================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--card-shadow-hover);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =====================
   MODAL
   ===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 85%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255,255,255,0.6);
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s, background 0.2s;
  z-index: 2100;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  z-index: 2100;
  user-select: none;
}

.modal-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.modal-prev {
  left: 24px;
}

.modal-next {
  right: 24px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  border-top: 1px solid var(--hairline-soft);
  padding: var(--sp-xxl) 0;
  margin-top: var(--sp-section);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-base);
}

.social-links {
  display: flex;
  gap: var(--sp-base);
}

.social-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.social-link:hover { color: var(--ink); }

footer p {
  color: var(--muted);
  font-size: 13px;
}

/* =====================
   HOMEPAGE HERO CAROUSEL
   ===================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-xl);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.hero-image-wrapper {
  flex: 0 0 260px;
  height: calc(100% - 48px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-carousel:hover .hero-image-wrapper {
  box-shadow: 0 12px 30px rgba(0,0,0,0.09);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel:hover .hero-image {
  transform: scale(1.03);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-slide.active .hero-image-wrapper {
  animation: hero-float 6s ease-in-out infinite;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  align-items: center;
  padding: 0 72px; /* 72px so text clears the 52px absolute arrows */
  gap: var(--sp-lg);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--sp-xs);
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.4;
  max-width: 600px;
}

.hero-cta-btn {
  align-self: flex-start;
  margin-top: var(--sp-sm);
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: var(--font);
}

.hero-cta-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.hero-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.hero-prev { left: var(--sp-base); }
.hero-next { right: var(--sp-base); }

.hero-dots {
  position: absolute;
  bottom: var(--sp-base);
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--ink);
  transform: scale(1.3);
}

/* =====================
   COMPACT RECENTLY VIEWED
   ===================== */
.recently-viewed {
  margin-bottom: var(--sp-xl);
  background: var(--surface-soft);
  padding: var(--sp-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-soft);
}

.recently-viewed .section-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: var(--sp-sm);
  color: var(--muted);
}

.recently-viewed-grid {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recently-viewed-grid::-webkit-scrollbar {
  display: none;
}

.recently-viewed-card {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--canvas);
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  min-width: 220px;
  max-width: 280px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.recently-viewed-card:hover {
  border-color: var(--ink);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.rv-image-container {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-soft);
}

.rv-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex-grow: 1;
}

.rv-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-price {
  font-size: 12px;
  color: var(--muted-soft);
  font-weight: 500;
}

/* =====================
   ABOUT US SECTION
   ===================== */
.about-section {
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  margin-top: var(--sp-xxl);
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.about-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-xs);
}

.about-content p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.6;
  margin-bottom: 0;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 12px var(--sp-lg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.about-btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.about-btn-instagram:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .container { padding: 0 var(--sp-lg); }
}

@media (max-width: 900px) {
  .single-product-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
  .single-product-details {
    position: relative;
    top: 0;
  }
  .single-product-images-grid {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    gap: 0;
  }
  .single-product-images-grid::-webkit-scrollbar {
    display: none;
  }
  .single-view-img-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    border-radius: 0;
    box-shadow: none;
  }
  .single-product-media {
    margin-bottom: var(--sp-md);
  }
  .single-product-media .carousel-btn {
    display: flex !important;
    opacity: 1 !important;
  }
  .single-product-media .carousel-dots {
    display: flex !important;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: var(--sp-lg);
  }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-base); }
  .logo h1 { font-size: 18px; }
  .carousel-btn { opacity: 1; }
  .product-card { opacity: 1; transform: none; animation: none; }
  .card-quick-order { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  
  .hero-carousel {
    height: auto;
    padding: var(--sp-lg) 0;
  }
  .hero-image-wrapper {
    display: none;
  }
  .hero-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 0 56px var(--sp-base); /* 56px to clear arrows on mobile */
  }
  .hero-slide.active {
    display: flex;
    flex-direction: column;
  }
  .hero-title {
    font-size: 20px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
}

@media (max-width: 480px) {
  .single-title { font-size: 20px; }
  .products-grid { gap: var(--sp-base); }
  .cart-drawer { width: 85%; }
}

/* =====================
   SHOPPING BAG (CART) DRAWER
   ===================== */

/* Cart toggle button in header */
.cart-toggle-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}

.cart-toggle-btn:hover {
  background: var(--surface-soft);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Overlay backdrop */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Sliding Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--canvas);
  z-index: 1600;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

/* Cart Header */
.cart-header {
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.5px;
}

.cart-close-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.cart-close-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

/* Cart Items List */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-base);
}

.cart-item {
  display: flex;
  gap: var(--sp-md);
  padding-bottom: var(--sp-base);
  border-bottom: 1px solid var(--hairline-soft);
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-soft);
  border: 1px solid var(--hairline-soft);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-xs);
}

.qty-btn {
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.qty-val {
  font-size: 13px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--muted-soft);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background-color 0.2s;
  margin-left: auto;
}

.cart-item-remove:hover {
  color: var(--primary);
  background: #fff0f1;
}

/* Cart Footer */
.cart-footer {
  padding: var(--sp-lg);
  border-top: 1px solid var(--hairline-soft);
  background: var(--surface-soft);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-base);
}

.cart-subtotal-row span {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.cart-subtotal-row strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.checkout-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-sm);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(17, 94, 53, 0.15);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
  color: var(--muted);
  gap: var(--sp-sm);
  text-align: center;
  padding: var(--sp-xl);
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  color: var(--muted-soft);
}

.cart-empty p {
  font-size: 14px;
}

/* Add to Bag button styles */
.btn-add-bag {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-add-bag:hover {
  background: var(--surface-strong);
  border-color: var(--ink);
}

/* CSS scrollbar fade gradients for horizontal list scrolling */
.category-strip {
  position: relative;
}

/* Horizontal Fade cue style */
.category-strip::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 40px;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--canvas));
  pointer-events: none;
  z-index: 5;
}
