/* ===== STORE PAGE STYLES ===== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --st-dark: #1E1E1E;
  --st-text: #3A3A3A;
  --st-text-light: #6B6B6B;
  --st-cream: #FDFCF9;
  --st-warm: #F7F3ED;
  --st-wash: #F4F7F3;
  --st-primary: #4A6741;
  --st-primary-light: #5C7D52;
  --st-gold: #C4A265;
  --st-star: #F4A940;
  --st-serif: 'Cormorant Garamond', Georgia, serif;
  --st-sans: 'DM Sans', -apple-system, sans-serif;
}

.store-page {
  font-family: var(--st-sans);
  color: var(--st-text);
  -webkit-font-smoothing: antialiased;
  background: var(--st-cream);
}

/* ── HERO ── */
.store-hero {
  padding: 120px 24px 80px;
  text-align: center;
  background: linear-gradient(175deg, var(--st-warm) 0%, var(--st-cream) 50%, var(--st-wash) 100%);
  position: relative;
}

.store-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(74,103,65,0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(196,162,101,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.store-hero > * {
  position: relative;
  z-index: 1;
}

.store-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--st-primary);
  border: 1px solid var(--st-primary);
  border-radius: 100px;
  padding: 8px 24px;
  margin-bottom: 32px;
  opacity: 0;
  animation: stFadeUp 0.8s ease 0.2s forwards;
}

.store-hero h1 {
  font-family: var(--st-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.15;
  color: var(--st-dark);
  margin: 0 0 20px;
  opacity: 0;
  animation: stFadeUp 0.8s ease 0.4s forwards;
}

.store-hero h1 em {
  font-style: italic;
  color: var(--st-primary);
}

.store-hero-sub {
  font-family: var(--st-serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--st-text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
  animation: stFadeUp 0.8s ease 0.6s forwards;
}

/* ── PRODUCT GRID ── */
.store-grid-section {
  padding: 60px 24px 100px;
  background: var(--st-cream);
}

.store-grid-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.store-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  text-decoration: none;
  color: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.store-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.store-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: #E05252;
  padding: 5px 14px;
  border-radius: 100px;
}

.store-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
}

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

.store-card-body {
  position: relative;
  z-index: 2;
  padding: 28px 24px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.store-card-title {
  font-family: var(--st-serif);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.store-card-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 14px;
}

.store-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.store-card-stars {
  color: var(--st-star);
  font-size: 14px;
  letter-spacing: 1px;
}

.store-card-rating-num {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.store-card-rating-count {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.store-card-price {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-card-price-text {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.store-card-price-text s {
  color: rgba(255,255,255,0.5);
}

.store-card-price-text strong {
  font-size: 22px;
  color: #fff;
  margin-left: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.store-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.store-card:hover .store-card-cta {
  color: #fff;
}

.store-card-cta::after {
  content: "\2192";
  transition: transform 0.25s ease;
}

.store-card:hover .store-card-cta::after {
  transform: translateX(4px);
}

/* ── BUNDLES SECTION ── */
.store-bundles-section {
  padding: 0 24px 60px;
  background: var(--st-cream);
}

.store-bundles-header,
.store-individual-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.store-bundles-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--st-gold);
  margin-bottom: 12px;
}

.store-bundles-header h2,
.store-individual-header h2 {
  font-family: var(--st-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--st-dark);
  margin: 0 0 12px;
}

.store-bundles-header p,
.store-individual-header p {
  font-size: 15px;
  color: var(--st-text-light);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.store-bundles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Make the Complete Collection span full width */
.store-bundles-grid .store-bundle-card.featured {
  grid-column: 1 / -1;
  min-height: 480px;
}

.store-bundle-card {
  min-height: 400px;
}

.store-bundle-card.featured .store-card-title {
  font-size: 28px;
}

.store-bundle-card.featured .store-card-tagline {
  font-size: 15px;
  max-width: 500px;
}

/* ── FREE GUIDES SECTION ── */
.store-free-section {
  padding: 80px 24px;
  background: var(--st-wash);
  text-align: center;
}

.store-free-inner {
  max-width: 560px;
  margin: 0 auto;
}

.store-free-inner h2 {
  font-family: var(--st-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--st-dark);
  margin: 0 0 12px;
}

.store-free-sub {
  font-size: 15px;
  color: var(--st-text-light);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 32px;
}

.store-free-note {
  font-size: 12px;
  color: var(--st-text-light);
  margin-top: 16px;
}

/* ── ANIMATIONS ── */
@keyframes stFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.st-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.st-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-bundles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .store-hero {
    padding: 100px 20px 60px;
  }

  .store-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .store-card {
    min-height: 380px;
  }

  .store-bundles-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .store-bundles-grid .store-bundle-card.featured {
    grid-column: 1;
    min-height: 400px;
  }

  .store-bundle-card.featured .store-card-title {
    font-size: 22px;
  }
}

/* ===== RTL SUPPORT FOR STORE ===== */

[dir="rtl"] .store-card-body {
  text-align: right;
}

[dir="rtl"] .store-card-cta::after {
  content: "\2190";
}

[dir="rtl"] .store-card:hover .store-card-cta::after {
  transform: translateX(-4px);
}

[dir="rtl"] .store-card-price-text strong {
  margin-left: 0;
  margin-right: 6px;
}
