/* ══════════════════════════════════════════════════════════════════════
   SHOP PAGE — TRINITY GURUKUL — Matches about.php / index.php theme
   Gold: #D4A017 | Red: #B30012 | Dark: #1a1a1a | White: #fff
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --gold:    #D4A017;
  --gold2:   #B8860B;
  --red:     #B30012;
  --dark:    #1a1a1a;
  --text:    #3d3d3d;
  --muted:   #888888;
  --light:   #fdfaf5;
  --border:  #f0e8d5;
  --white:   #ffffff;
  --serif:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;
  --radius:  14px;
  --shadow:  0 4px 20px rgba(0,0,0,0.07);
  --shadow-h:0 12px 36px rgba(0,0,0,0.12);
}

/* Ensure custom cursor works — no system cursor on any element */
.prod-card,
.filter-btn,
#resetFiltersBtn,
.sort-options select,
.prod-wish,
.prod-cart-btn,
#applyFiltersBtn,
#closeFilterBtn,
.category-group label,
.subcategory-item,
.super-subcategory-group label,
#priceRange,
#searchBar,
a { cursor: none !important; }

.shop {  background: #fff; font-family: var(--sans); padding-bottom: 80px; }

/* ══════════════════════════════════════════════
   SHOP HERO BANNER — dark bg, heading from index.php
/* ══════════════════════════════════════════════
   SHOP HERO BANNER — unique premium design
   ══════════════════════════════════════════════ */
.shop-hero {
  position: relative;
  background: linear-gradient(135deg,
    #1a0005 0%,
    #2d0010 30%,
    #1f0008 60%,
    #0e0003 100%
  );
  padding: 80px 5% 90px;
  text-align: center;
  overflow: hidden;
  margin-top: 85px;
}

/* Subtle dot grid */
.shop-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,160,23,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.7;
}

/* Top-right gold orb */
.shop-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,0.18) 0%, transparent 65%);
  top: -250px; right: -120px;
  pointer-events: none;
}

/* Bottom-left red orb */
.shop-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(179,0,18,0.2) 0%, transparent 65%);
  bottom: 20px; left: -100px;
  pointer-events: none;
}

/* Diagonal gold accent stripe */
.shop-hero-stripe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(179,0,18,0.8) 25%,
    var(--luxury-gold) 50%,
    rgba(179,0,18,0.8) 75%,
    transparent 100%
  );
}

/* Floating spiritual symbols */
.shop-hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shf {
  position: absolute;
  font-size: 18px;
  opacity: 0.12;
  animation: shfFloat 8s ease-in-out infinite;
  color: var(--luxury-gold);
}

.shf-1 { top: 15%; left: 5%;  animation-delay: 0s;    font-size: 14px; }
.shf-2 { top: 25%; left: 10%; animation-delay: 1s;    font-size: 22px; opacity: 0.1; }
.shf-3 { top: 60%; left: 7%;  animation-delay: 2.5s;  font-size: 12px; }
.shf-4 { top: 20%; right: 8%; animation-delay: 0.5s;  font-size: 20px; opacity: 0.1; }
.shf-5 { top: 55%; right: 5%; animation-delay: 1.8s;  font-size: 14px; }
.shf-6 { bottom: 20%; right: 12%; animation-delay: 3s; font-size: 20px; opacity: 0.08; }
.shf-7 { bottom: 25%; left: 15%; animation-delay: 4s;  font-size: 12px; }

@keyframes shfFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(8deg); }
  66%       { transform: translateY(8px) rotate(-5deg); }
}

/* Inner content */
.shop-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

/* Eyebrow label */
.shop-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212,160,23,0.85);
  font-family: "Inter", sans-serif;
  margin-bottom: 20px;
}

.shop-hero-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--luxury-gold);
  opacity: 0.7;
  display: inline-block;
}

/* Heading — white on dark */
.shop-hero .section-title {
  background: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 5vw, 58px);
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
  letter-spacing: 0.04em;
  padding-bottom: 24px;
}

.shop-hero .section-title::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.15), var(--luxury-gold), rgba(255,255,255,0.15));
}

.shop-hero .section-title em {
  font-style: normal;
  color: var(--luxury-gold);
  -webkit-text-fill-color: var(--luxury-gold);
  text-shadow: 0 0 30px rgba(212,160,23,0.4);
}

/* Subtitle */
.shop-hero .section-subtitle {
  color: rgba(255,255,255,0.6);
  -webkit-text-fill-color: rgba(255,255,255,0.6);
  margin-top: 14px;
  font-size: clamp(0.85rem, 1.4vw, 0.98rem);
  line-height: 1.75;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Bottom wave */
.shop-hero-wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 60px;
  pointer-events: none;
  line-height: 0;
}

.shop-hero-wave svg {
  width: 100%; height: 100%;
  display: block;
}

/* section-header centered */
.shop-hero .section-header {
  text-align: center;
  margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .shop-hero { padding: 70px 5% 80px; }
}

@media (max-width: 992px) {
  .shop-hero {
    margin-top: 70px;
    padding: 60px 5% 70px;
  }
  .shop-hero .section-title { padding-bottom: 18px; }
  .shop-hero-eyebrow { margin-bottom: 16px; font-size: 10px; }
}

@media (max-width: 768px) {
  .shop-hero {
    margin-top: 70px;
    padding: 50px 5% 65px;
  }
  .shop-hero .section-subtitle { font-size: 0.85rem; line-height: 1.65; max-width: 100%; }
  .shop-hero .section-title { padding-bottom: 14px; }
  .shf { display: none; }
}

@media (max-width: 480px) {
  .shop-hero {
    margin-top: 60px;
    padding: 44px 5% 58px;
  }
  .shop-hero-eyebrow { font-size: 9px; letter-spacing: 0.15em; gap: 8px; margin-bottom: 12px; }
  .shop-hero .section-subtitle { font-size: 0.8rem; }
}

/* ══════════════════════════════════════════════
   SHOP TOOLBAR
   ══════════════════════════════════════════════ */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.shop-toolbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn2 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #D4A017, #B8860B);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(212,160,23,0.25);
}
.filter-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(212,160,23,0.38); }

#resetFiltersBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
#resetFiltersBtn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(179,0,18,0.04);
}

#searchBar {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  padding: 9px 16px 9px 38px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--dark);
  background: var(--light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px center;
  transition: all 0.25s ease;
  outline: none;
}
#searchBar::placeholder { color: #bbb; }
#searchBar:focus { border-color: #D4A017; box-shadow: 0 0 0 3px rgba(212,160,23,0.12); background-color: #fff; }

.sort-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.sort-options label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.sort-options select {
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--dark);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4A017' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  cursor: pointer;
  min-width: 160px;
  outline: none;
  transition: border-color 0.25s;
}
.sort-options select:focus { border-color: #D4A017; box-shadow: 0 0 0 3px rgba(212,160,23,0.1); }

/* ══════════════════════════════════════════════
   SHOP BODY
   ══════════════════════════════════════════════ */
.shop-body {
  max-width: 1300px;
  margin: 0 auto;
  padding: 36px 5% 0;
}

/* ══════════════════════════════════════════════
   PRODUCT GRID — Aesthetic minimal layout
   ══════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

/* ══════════════════════════════════════════════
   PRODUCT CARD — Image-first, no border, clean
   ══════════════════════════════════════════════ */
.prod-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  position: relative;
}

/* Image container — tall, full width */
.prod-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f0e8;
}

.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.prod-card:hover .prod-img-wrap img {
  transform: scale(1.06);
}

/* No-image placeholder */
.prod-no-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: linear-gradient(135deg, #fdfaf5, #f0ebe0);
}

/* Discount badge */
.prod-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  z-index: 3;
}

/* Wishlist button */
.prod-wish {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.prod-wish i { font-size: 12px; color: #ccc; transition: color 0.25s; }
.prod-wish:hover i,
.prod-wish.active i { color: #B30012; }
.prod-wish:hover { transform: scale(1.1); }

/* Hover overlay — "Add to Cart" slides up */
.prod-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
  z-index: 2;
}
.prod-card:hover .prod-overlay {
  opacity: 1;
  transform: translateY(0);
}

.prod-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: var(--sans);
}
.prod-cart-btn:hover {
  background: #D4A017;
  color: #fff;
  box-shadow: 0 4px 14px rgba(212,160,23,0.4);
}
.prod-cart-btn i { font-size: 11px; }

/* ── Minimal info below image ── */
.prod-info {
  padding: 12px 2px 0;
}

.prod-name {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-price-now {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.2px;
}

.prod-price-old {
  font-size: 12px;
  color: #ccc;
  text-decoration: line-through;
}

/* ══════════════════════════════════════════════
   NO PRODUCTS
   ══════════════════════════════════════════════ */
#noProductsMessage {
  text-align: center;
  padding: 60px 20px;
  background: #fdfaf5;
  border-radius: 12px;
  border: 1px solid var(--border);
  grid-column: 1 / -1;
}
#noProductsMessage h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--dark);
  margin: 12px 0 6px;
}
#noProductsMessage p { color: var(--muted); font-size: 14px; }

/* ══════════════════════════════════════════════
   FILTER DRAWER — matches about.php card style
   ══════════════════════════════════════════════ */
#filterDrawer {
  position: fixed;
  top: 0; left: -340px;
  width: 320px; height: 100%;
  background: #fff;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 30px rgba(0,0,0,0.1);
  padding: 24px 20px 40px;
  overflow-y: auto;
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
  font-family: var(--sans);
}
#filterDrawer.open { left: 0; }

#closeFilterBtn {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: #fdfaf5;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.3s ease;
}
#closeFilterBtn:hover { background: var(--red); color: #fff; border-color: transparent; transform: rotate(90deg); }

#filterDrawer h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
#filterDrawer h3:first-of-type { margin-top: 50px; }

.category-group { margin-bottom: 3px; }
.category-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}
.category-group label:hover { background: #fdfaf5; color: #D4A017; }
.category-group input[type="checkbox"] { accent-color: #D4A017; width: 14px; height: 14px; flex-shrink: 0; }

.subcategory-group {
  margin-left: 22px;
  border-left: 2px solid var(--border);
  padding-left: 10px;
}
.subcategory-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.subcategory-item:hover { background: #fdfaf5; color: #D4A017; }

.super-subcategory-group {
  margin-left: 14px;
  border-left: 2px solid rgba(212,160,23,0.15);
  padding-left: 8px;
}
.super-subcategory-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}
.super-subcategory-group label:hover { background: #fdfaf5; }

/* Price range */
#priceRange {
  width: 100%;
  accent-color: #D4A017;
  margin: 10px 0 4px;
  cursor: pointer;
  height: 4px;
}
.max-price { font-size: 12px; color: var(--muted); font-weight: 500; }
#priceRangeValue { font-size: 16px; font-weight: 700; color: #D4A017; }

#applyFiltersBtn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #D4A017, #B8860B);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(212,160,23,0.25);
}
#applyFiltersBtn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212,160,23,0.38); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .shop-body { padding: 30px 4% 0; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px 16px; }
}

@media (max-width: 1024px) {
  .shop-toolbar-inner { padding: 10px 4%; flex-wrap: wrap; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 14px; }
  #searchBar { max-width: 100%; }
}

@media (max-width: 768px) {
  .shop-toolbar-inner { gap: 8px; }
  .filter-btn2 { width: 100%; }
  .filter-btn, #resetFiltersBtn { flex: 1; justify-content: center; }
  #searchBar { width: 100%; max-width: 100%; }
  .sort-options { width: 100%; justify-content: flex-end; }
  .sort-options select { min-width: 0; flex: 1; }
  .shop-body { padding: 20px 4% 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}

@media (max-width: 480px) {
  .shop-body { padding: 14px 4% 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .prod-name { font-size: 12.5px; }
  .prod-price-now { font-size: 12px; }
}

@media (max-width: 360px) {
  .product-grid { gap: 12px 8px; }
  .prod-name { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
