/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
  padding-top: 72px;
}
.hero-content {
  display: flex; flex-direction: column;
  justify-content: center; padding: 6rem 5rem 6rem 4rem;
  position: relative; z-index: 2;
}
.hero-logo {
  font-family: var(--font-brand);
  font-size: 3.5rem; color: var(--burgundy);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.9s ease forwards;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 300; line-height: 1.1;
  color: var(--charcoal); margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.9s 0.15s ease both;
}
.hero-headline em { font-style: italic; color: var(--burgundy); }
.hero-sub {
  font-size: 0.95rem; color: #7a6060; letter-spacing: 0.05em;
  margin-bottom: 2.5rem; max-width: 380px;
  animation: fadeSlideUp 0.9s 0.3s ease both;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeSlideUp 0.9s 0.45s ease both;
}
.hero-scroll {
  position: absolute; bottom: -2rem; left: 50%;
  transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(139,26,46,0.5); animation: fadeSlideUp 1s 0.6s ease both;
}
.hero-scroll-line {
  width: 1px; height: 50px; background: var(--burgundy); opacity: 0.3;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{height:50px;opacity:0.3} 50%{height:30px;opacity:0.6} }

.hero-image {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--cream), #EDD5C8);
}
.hero-image img { width:100%; height:100%; object-fit:cover; }
.hero-image-placeholder {
  width:100%; height:100%; min-height:600px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:1rem; color:rgba(139,26,46,0.3);
  background: linear-gradient(135deg, var(--cream) 0%, #EDD5C8 50%, var(--dusty-rose) 100%);
}
.hero-image-placeholder svg { width:60px; height:60px; }
.hero-image-placeholder span { font-family:var(--font-display); font-style:italic; font-size:1.2rem; }

/* Floating petals */
.petals-container {
  position: absolute; inset:0; pointer-events:none; overflow:hidden; z-index:1;
}
.petal {
  position: absolute; bottom:-20px;
  font-size: 1.2rem; opacity: 0;
  animation: petalFloat linear infinite;
}
@keyframes petalFloat {
  0% { transform: translateY(0) rotate(0deg); opacity:0; }
  10% { opacity:0.6; }
  90% { opacity:0.3; }
  100% { transform: translateY(-105vh) rotate(720deg); opacity:0; }
}

@keyframes fadeSlideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* Marquee Ticker */
.marquee-wrap {
  background: var(--cream); border-top:1px solid rgba(139,26,46,0.1);
  border-bottom:1px solid rgba(139,26,46,0.1);
  overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 35s linear infinite;
}
.marquee-text {
  font-family: var(--font-display); font-style: italic;
  font-size: 0.92rem; color: var(--burgundy);
  white-space: nowrap; padding-right: 3rem;
  letter-spacing: 0.1em;
}
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ====== PRODUCT CARDS ====== */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--white); border-radius: 8px;
  overflow: hidden; box-shadow: 0 4px 24px rgba(139,26,46,0.10);
  transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: 0 12px 40px rgba(139,26,46,0.18); transform: translateY(-4px); }

.product-card-image {
  position: relative; overflow: hidden;
  background: var(--cream); display: block;
}
.product-card-img {
  width: 100%; height: auto; display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img { transform: scale(1.04); }

/* Front / back image swap on hover */
.product-img-front {
  width: 100%; height: auto; display: block;
  opacity: 1; z-index: 1;
  transition: opacity 0.45s ease, transform 0.5s ease;
  transform: scale(1);
}
.product-img-back {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; z-index: 2;
  transition: opacity 0.45s ease, transform 0.5s ease;
  transform: scale(1.04);
}
.product-card:hover .product-img-front { opacity: 0; transform: scale(1.04); }
.product-card:hover .product-img-back  { opacity: 1; transform: scale(1.04); }

.product-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--burgundy); color: white;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px;
}
.product-badge.coming { background: var(--charcoal); }
.product-badge.sale { background: #a04a20; }

.wishlist-btn {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: var(--transition);
  color: var(--charcoal);
}
.wishlist-btn svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.5; }
.wishlist-btn:hover, .wishlist-btn.active { color: var(--burgundy); }
.wishlist-btn.active svg { fill: var(--burgundy); stroke: var(--burgundy); }

.product-card-body { padding: 1.25rem; }
.product-name {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 400;
  margin-bottom: 0.35rem; color: var(--charcoal);
}
.product-card-body a { color: inherit; text-decoration: none; }
.product-card-body a:hover .product-name { color: var(--burgundy); transition: color 0.2s; }
.product-desc { font-size: 0.8rem; color: #9a7070; margin-bottom: 0.75rem; }
.product-price { font-size: 1rem; color: var(--burgundy); font-weight: 500; margin-bottom: 1rem; }
.product-price .original { text-decoration: line-through; color: #bbb; margin-right: 0.5rem; font-weight: 400; }
.product-price .save { font-size: 0.72rem; color: #a04a20; letter-spacing: 0.05em; }

.size-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.size-pill {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(139,26,46,0.2);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--charcoal);
  cursor: pointer;
}
.size-pill:hover, .size-pill.selected { background: var(--burgundy); color: white; border-color: var(--burgundy); }

.colour-swatches { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.colour-swatch {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color 0.2s;
}
.colour-swatch.active { border-color: var(--burgundy); }

/* Placeholder card */
.product-card.placeholder {
  border: 2px dashed rgba(139,26,46,0.2);
  background: linear-gradient(135deg, #F5EDE8, #FAF4F2);
  box-shadow: none;
}
.product-card.placeholder:hover { transform: none; box-shadow: none; }

/* ====== CATEGORY CARDS ====== */
.categories-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.category-card {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer;
  background: linear-gradient(135deg, var(--cream), #E8C9BD);
  box-shadow: var(--shadow); transition: var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card-overlay {
  position: absolute; inset:0;
  background: linear-gradient(to top, rgba(92,15,30,0.7) 0%, transparent 60%);
  transition: background 0.4s;
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(92,15,30,0.85) 0%, rgba(139,26,46,0.15) 100%);
}
.category-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1.25rem;
  color: white; text-align: center;
}
.category-emoji { font-size: 1.5rem; margin-bottom: 0.4rem; }
.category-name {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 400;
  display: block; letter-spacing: 0.05em;
}
.category-card-bg {
  width:100%; height:100%; object-fit:cover; position:absolute; inset:0;
}
.category-card-img-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:3rem;
}

/* ====== SUSTAINABILITY PILLARS ====== */
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.pillar-card {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--white); border-radius: 8px;
  box-shadow: var(--shadow); transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.pillar-card:hover { transform: translateY(-4px); border-bottom-color: var(--burgundy); }
.pillar-icon {
  font-size: 2rem; margin-bottom: 1rem; display: block;
}
.pillar-title {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 500; margin-bottom: 0.75rem; color: var(--burgundy);
}
.pillar-text { font-size: 0.85rem; color: #7a6060; line-height: 1.7; }

/* ====== REVIEWS ====== */
.reviews-strip {
  background: var(--cream); padding: 5rem 0; border-top: 1px solid rgba(139,26,46,0.08);
}
.reviews-carousel { position: relative; overflow: hidden; }
.reviews-track { display: flex; transition: transform 0.5s ease; }
.review-card {
  min-width: 100%; padding: 0 4rem; text-align: center;
}
.review-stars { color: #E8A44A; font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 0.2em; }
.review-text {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.25rem; max-width: 600px; margin: 0 auto 1.5rem;
  color: var(--charcoal); line-height: 1.6;
}
.review-author {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9a7070;
}
.reviews-dots {
  display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem;
}
.review-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(139,26,46,0.25); transition: all 0.3s;
  cursor: pointer;
}
.review-dot.active { background: var(--burgundy); width: 20px; border-radius: 3px; }

/* ====== FOUNDER SECTION ====== */
.founder-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem;
  align-items: center;
}
.founder-image { position: relative; }
.founder-image-wrap {
  aspect-ratio: 3/4; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, var(--cream), #E8C9BD);
}
.founder-quote-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--burgundy); color: white;
  padding: 1.5rem 1.5rem; border-radius: 4px;
  max-width: 220px;
  font-family: var(--font-display); font-style: italic; font-size: 0.95rem; line-height: 1.5;
  box-shadow: 0 8px 30px rgba(139,26,46,0.3);
}
.founder-quote-badge::before { content: '\201C'; font-size: 2rem; opacity: 0.5; display: block; margin-bottom: -0.5rem; }
.founder-eyebrow { color: var(--burgundy); }
.founder-content { padding: 2rem 0; }
.founder-name { font-family: var(--font-brand); font-size: 2.5rem; color: var(--burgundy); margin-bottom: 1rem; }
.founder-bio { font-size: 0.95rem; line-height: 1.8; color: #6a5050; margin-bottom: 2rem; }

/* ====== INSTAGRAM GRID ====== */
.instagram-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem;
}
.instagram-tile {
  aspect-ratio: 1; position: relative; overflow: hidden;
  background: var(--cream); cursor: pointer;
  border-radius: 4px;
}
.instagram-tile img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s ease; }
.instagram-tile:hover img { transform: scale(1.08); }
.instagram-tile-overlay {
  position: absolute; inset:0;
  background: rgba(139,26,46,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.instagram-tile:hover .instagram-tile-overlay { opacity: 1; }
.instagram-tile-overlay svg { width:28px; height:28px; color:white; fill:white; }
.instagram-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; color: rgba(139,26,46,0.2);
}

/* ====== NEWSLETTER ====== */
.newsletter-section {
  background: var(--burgundy); color: white; padding: 5rem 0; text-align: center;
}
.newsletter-section .section-title { color: white; }
.newsletter-sub { font-family: var(--font-display); font-style: italic; color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2.5rem; }
.newsletter-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto 1rem; }
.newsletter-input {
  flex: 1; padding: 14px 20px;
  border: none; border-radius: 4px 0 0 4px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.15); color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-right: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-btn {
  background: white; color: var(--burgundy);
  padding: 14px 24px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 0 4px 4px 0; transition: var(--transition); cursor: pointer;
}
.newsletter-btn:hover { background: var(--cream); }
.newsletter-privacy { font-size: 0.72rem; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; }

/* ====== FOOTER ====== */
footer {
  background: var(--charcoal); color: rgba(255,255,255,0.8);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .brand-name { font-size: 2.2rem; color: var(--dusty-rose); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.55); max-width: 280px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: var(--transition);
}
.footer-social a:hover { border-color: var(--dusty-rose); color: var(--dusty-rose); background: rgba(212,165,160,0.1); }
.footer-social a svg { width:16px; height:16px; fill:currentColor; }

.footer-col h4 {
  font-family: var(--font-body); font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: white; margin-bottom: 1.25rem;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: rgba(255,255,255,0.55);
  margin-bottom: 0.6rem; transition: color 0.3s;
}
.footer-col a:hover { color: var(--dusty-rose); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.footer-payment { display: flex; gap: 0.75rem; align-items: center; }
.payment-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; padding: 4px 10px;
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); font-weight: 500;
}

/* ====== CART DRAWER ====== */
.cart-overlay {
  position: fixed; inset:0; background: rgba(0,0,0,0.4);
  z-index: 1100; opacity:0; pointer-events:none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity:1; pointer-events:all; }
.cart-drawer {
  position: fixed; top:0; right:0; bottom:0;
  width: 420px; max-width: 100%;
  background: var(--blush); z-index: 1200;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -10px 0 50px rgba(0,0,0,0.1);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 1.5rem 2rem; border-bottom: 1px solid rgba(139,26,46,0.1);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 { font-family: var(--font-display); font-size: 1.4rem; }
.cart-close {
  width:36px; height:36px; border-radius:50%; position:relative;
  display:flex; align-items:center; justify-content:center;
  color:var(--charcoal); transition:background 0.3s;
}
/* Expands the tappable/clickable area to ~44px without changing the
   visible 36px circle — WCAG 2.5.8 target size without a visual redesign. */
.cart-close::after { content:''; position:absolute; inset:-4px; }
.cart-close:hover { background:var(--cream); }
.cart-close svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.5; }
.cart-items { flex:1; overflow-y:auto; padding:1.5rem 2rem; }
.cart-item { display:flex; gap:1rem; margin-bottom:1.5rem; padding-bottom:1.5rem; border-bottom:1px solid rgba(139,26,46,0.08); }
.cart-item-image { width:80px; height:100px; border-radius:4px; background:var(--cream); overflow:hidden; flex-shrink:0; }
.cart-item-image img { width:100%; height:100%; object-fit:cover; }
.cart-item-info { flex:1; }
.cart-item-name { font-family:var(--font-display); font-size:0.95rem; margin-bottom:0.25rem; }
.cart-item-meta { font-size:0.75rem; color:#9a7070; margin-bottom:0.5rem; }
.cart-item-price { font-size:0.9rem; color:var(--burgundy); font-weight:500; }
.cart-item-qty { display:flex; align-items:center; gap:0.75rem; margin-top:0.5rem; }
.qty-btn { width:26px; height:26px; border-radius:50%; border:1px solid rgba(139,26,46,0.2); display:flex; align-items:center; justify-content:center; font-size:0.9rem; transition:var(--transition); position:relative; }
/* Expanded invisible hit area to ~44px — visual size unchanged. */
.qty-btn::after { content:''; position:absolute; inset:-9px; }
.qty-btn:hover { background:var(--burgundy); color:white; border-color:var(--burgundy); }
.qty-num { font-size:0.85rem; min-width:20px; text-align:center; }
.remove-item { margin-left:auto; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.1em; color:#c08080; }
.cart-empty { text-align:center; padding:4rem 2rem; color:#9a7070; }
.cart-empty svg { width:48px; height:48px; stroke:rgba(139,26,46,0.25); fill:none; stroke-width:1; margin:0 auto 1.5rem; }
.cart-footer { padding:1.5rem 2rem; border-top:1px solid rgba(139,26,46,0.1); }
.cart-subtotal { display:flex; justify-content:space-between; align-items:center; margin-bottom:0.5rem; }
.cart-subtotal span { font-size:0.85rem; color:#9a7070; }
.cart-subtotal strong { font-family:var(--font-display); font-size:1.2rem; color:var(--charcoal); }
.cart-delivery-note { font-size:0.72rem; color:#9a7070; text-align:center; margin-bottom:1.25rem; }
.cart-checkout-btn { width:100%; padding:16px; text-align:center; }
.cart-checkout-btn.disabled { opacity:0.45; pointer-events:none; cursor:not-allowed; }
.cart-continue { display:block; text-align:center; font-size:0.72rem; letter-spacing:0.15em; text-transform:uppercase; color:#9a7070; margin-top:1rem; }
.cart-continue:hover { color:var(--burgundy); }

/* ====== STATS / COUNTER ====== */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; text-align:center; }
.stat-number { font-family:var(--font-display); font-size:clamp(2.5rem,5vw,4rem); color:var(--burgundy); display:block; line-height:1; margin-bottom:0.5rem; }
.stat-label { font-size:0.78rem; letter-spacing:0.15em; text-transform:uppercase; color:#9a7070; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-section { grid-template-columns: 1fr 1fr; gap: 3rem; }  /* keep side by side on tablet */
  .founder-quote-badge { right: 1rem; }
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 4rem 2rem 3rem; }
  .hero-image { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .review-card { padding: 0 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-radius: 4px; border-right: 1px solid rgba(255,255,255,0.3); border-bottom: none; border-radius: 4px 4px 0 0; }
  .newsletter-btn { border-radius: 0 0 4px 4px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   MINIMA — IMAGE & LAYOUT OVERHAUL
   ═══════════════════════════════════════════════════════════════════ */

/* ── Category card image ───────────────────────────────────────────── */
.category-card { position: relative; overflow: hidden; }
.category-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ── Product detail page — gallery image fits properly ─────────────── */
.gallery-slider { background: #FAF4F2; }
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;   /* never crop the garment */
  object-position: center top;
  background: #FAF4F2;
}

/* ── Thumbnail strip images ─────────────────────────────────────────── */
.slider-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #FAF4F2;
}

/* ═══════════════════════════════════════════════════════════════════
   FULL RESPONSIVE GRID SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

/* ── Products grid — fluid columns ──────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ── Categories grid ─────────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.nav-inner {
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ── Product detail grid ──────────────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-image {
  overflow: hidden;
  position: relative;
}

/* ── Shop layout ──────────────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
}

/* ── Footer grid ──────────────────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

/* ── Stats grid ───────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ── Pillars grid ─────────────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   TABLET — 768px to 1024px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .categories-grid    { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid{ grid-template-columns: 1fr; gap: 2rem; }
  .shop-layout        { grid-template-columns: 200px 1fr; gap: 1.5rem; }
  .hero               { grid-template-columns: 1fr; }
  .hero-image         { display: none; }
  .hero-content       { padding: 6rem 2rem 4rem; }
  .founder-section    { grid-template-columns: 1fr; gap: 2rem; }  /* stacks on mobile only */
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — up to 768px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Container */
  .container { padding: 0 1rem; }
  section    { padding: 3rem 0; }

  /* Hero */
  .hero-content       { padding: 5rem 1rem 3rem; }
  .hero-headline      { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-logo img      { height: 52px !important; }
  .hero-ctas          { flex-direction: column; gap: 0.75rem; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; text-align: center; }

  /* Products grid */
  .products-grid      { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Categories */
  .categories-grid    { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .category-card      { aspect-ratio: 1 / 1; }

  /* Shop page */
  .shop-layout        { grid-template-columns: 1fr; }
  .shop-sidebar       { position: static; }
  .filter-section     { display: none; }  /* collapsed on mobile — shown via toggle */

  /* Product detail */
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery     { position: static; }
  .thumb-strip         { gap: 0.4rem; }
  .slider-thumb        { width: 56px; height: 70px; }
  .payment-methods    { grid-template-columns: repeat(2, 1fr); }

  /* Pillars */
  .pillars-grid       { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .pillar-card        { padding: 1.5rem 1rem; }

  /* Stats */
  .stats-grid         { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Reviews */
  .reviews-grid       { grid-template-columns: 1fr; }
  .review-card        { padding: 0 0.5rem; }

  /* Contact */
  .contact-grid       { grid-template-columns: 1fr; gap: 2rem; }

  /* Checkout */
  .checkout-grid      { grid-template-columns: 1fr; }
  .checkout-steps     { gap: 0.5rem; flex-wrap: wrap; }
  .checkout-step span { display: none; } /* show only numbers on mobile */
  .form-grid          { grid-template-columns: 1fr; }

  /* Mission cards */
  .mission-cards      { grid-template-columns: 1fr; }

  /* Charity / supply chain */
  .charity-cards      { grid-template-columns: 1fr; }
  .chain-steps        { flex-direction: column; gap: 1.5rem; }
  .chain-steps::before{ display: none; }

  /* Footer */
  .footer-grid        { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom      { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-payment     { justify-content: center; flex-wrap: wrap; }

  /* Newsletter */
  .newsletter-form    { flex-direction: column; }
  .newsletter-input   { border-radius: 4px; border-right: 1px solid rgba(255,255,255,0.3) !important; border-radius: 4px 4px 0 0 !important; }
  .newsletter-btn     { border-radius: 0 0 4px 4px !important; }

  /* Cart drawer */
  .cart-drawer        { width: 100%; }

  /* Auth modals */
  .auth-modal         { padding: 1.75rem 1.25rem; }
  .code-inputs        { gap: 0.4rem; }
  .code-digit         { width: 44px; height: 54px; font-size: 1.3rem; }

  /* Navbar */
  .nav-links          { display: none; }
  .hamburger          { display: flex; }

  /* Founder section */
  .founder-quote-badge { right: 0.5rem; bottom: -1rem; max-width: 180px; }

  /* Sustainability */
  .sus-section-content { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .sus-section-content.reverse { direction: ltr; }
}

/* ═══════════════════════════════════════════════════════════════════
   SMALL MOBILE — up to 480px
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .products-grid      { grid-template-columns: 1fr; }
  .categories-grid    { grid-template-columns: 1fr 1fr; }
  .pillars-grid       { grid-template-columns: 1fr; }
  .hero-content       { padding: 4.5rem 1rem 2.5rem; }
  .product-card-body  { padding: 1rem; }
  .size-pills         { flex-wrap: wrap; gap: 0.3rem; }
  .size-pill          { width: 30px; height: 30px; font-size: 0.62rem; }
  .installer-section  { padding: 2rem 0; }
  .instagram-grid     { grid-template-columns: repeat(3, 1fr); }
  .payment-methods    { grid-template-columns: 1fr 1fr; }
}

/* ── Touch-friendly tap targets — disable zoom on touch devices ───── */
@media (hover: none) {
  .product-card:hover .product-card-img { transform: none; }
}

/* ── Scrollbar styling ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,26,46,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,26,46,0.4); }

/* ── Safe area insets for notched phones ─────────────────────────── */
.navbar { padding-top: env(safe-area-inset-top, 0); }
.mobile-nav { padding-top: env(safe-area-inset-top, 0); }
footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0)); }

/* ── Improved image rendering ─────────────────────────────────────── */
img { image-rendering: auto; }