/* ═══════════════════════════════════════════════════════════════
   landing.css — Meshit ECommerce: Home-page / CMS page styles
   Styles for dynamically rendered CMS sections.
═══════════════════════════════════════════════════════════════ */

/* ── 1. SECTION BASE WRAPPER ─────────────────────────────────── */
.cms-section { width: 100%; }
.cms-section + .cms-section { /* spacing between stacked sections */ }

/* ── 2. ANNOUNCEMENT SECTION ─────────────────────────────────── */
.cms-announcement {
  display: flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 8px 16px; text-align: center;
  font-size: 13px; font-weight: 500; letter-spacing: 0.3px;
  overflow: hidden; position: relative;
}
.announce-slide { white-space: nowrap; }
.announce-slide a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ── 3. HERO SLIDER SECTION ──────────────────────────────────── */
/* (hero-slider base in theme2.css, extensions here) */
.hero-section { position: relative; overflow: hidden; }

/* Full-bleed hero */
.hero-full { height: 100vh; min-height: 560px; max-height: 900px; }
.hero-full .hero-slide { height: 100%; }
.hero-full .hero-slide > picture,
.hero-full .hero-slide > img { height: 100%; object-fit: cover; width: 100%; }

/* Multi-aspect ratios */
.hero-ratio-169 .hero-slide { aspect-ratio: 16/9; }
.hero-ratio-43  .hero-slide { aspect-ratio: 4/3; }
.hero-ratio-32  .hero-slide { aspect-ratio: 3/2; }

/* ── 4. TRUST BAR / FEATURE ICONS SECTION ────────────────────── */
.cms-trust-bar { overflow: hidden; }

/* ── 5. WHATSAPP SECTION ─────────────────────────────────────── */
.cms-whatsapp {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 18px 24px; flex-wrap: wrap;
  text-align: center;
}
.cms-whatsapp-icon  { font-size: 28px; }
.cms-whatsapp-text  { font-size: 14px; font-weight: 500; }
.cms-whatsapp-link  {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: #25D366; color: #fff;
  border-radius: 6px; font-weight: 600; font-size: 13px;
  text-decoration: none; transition: opacity 0.2s;
}
.cms-whatsapp-link:hover { opacity: 0.88; }

/* ── 6. COLLECTION STRIP SECTION ─────────────────────────────── */
.cms-collection-strip { padding: 48px 0; }
.collection-strip-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 12px;
}
.collection-strip-header h2 {
  font-family: var(--nc-font-serif, Georgia, serif);
  font-size: clamp(20px, 3vw, 28px); font-weight: 500;
  color: var(--nc-dark2, #2d1200);
}
.collection-strip-link {
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--brand-primary, #d4a855); white-space: nowrap;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.collection-strip-link:hover { opacity: 0.75; }

/* Product card inside collection strip */
.collection-card {
  flex-shrink: 0; width: 175px; scroll-snap-align: start;
  border: 1px solid var(--nc-border, rgba(180,140,100,0.18));
  border-radius: 10px; overflow: hidden; background: #fff;
  transition: box-shadow 0.22s, transform 0.22s;
  text-decoration: none; display: block;
}
.collection-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-3px); }
.collection-card-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.collection-card-body { padding: 12px; }
.collection-card-name {
  font-size: 12px; font-weight: 600; color: var(--nc-dark2, #2d1200);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.collection-card-price { font-size: 14px; font-weight: 700; color: var(--nc-dark, #1a0a00); }
.collection-card-mrp   { font-size: 11px; color: var(--nc-muted, #8a7260); text-decoration: line-through; margin-left: 5px; }

/* ── 7. PROMO BANNER SECTION ─────────────────────────────────── */
.cms-promo-banner {
  position: relative; overflow: hidden; display: block;
  border-radius: 12px;
}
.cms-promo-banner img {
  width: 100%; display: block;
  transition: transform 0.4s ease;
}
.cms-promo-banner:hover img { transform: scale(1.03); }

/* Text overlay on promo */
.promo-text-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 40px 52px;
  background: linear-gradient(to right, rgba(26,10,0,0.7) 0%, transparent 70%);
  color: #fff;
}
.promo-overlay-title {
  font-family: var(--nc-font-serif, Georgia, serif);
  font-size: clamp(20px, 3.5vw, 36px); font-weight: 700; margin-bottom: 8px;
}
.promo-overlay-sub  { font-size: clamp(12px, 1.5vw, 16px); opacity: 0.88; margin-bottom: 18px; }

/* ── 8. CATEGORY GRID SECTION ────────────────────────────────── */
.cms-category-grid-section { padding: 48px 0; }
.cms-category-grid-section .nc-section-header { margin-bottom: 32px; }

/* The grid itself is in theme2.css (.nc-cat-grid / .category-grid-home) */

/* ── 9. PRICE RANGE SECTION ──────────────────────────────────── */
.cms-price-range-section { padding: 48px 0; }
/* .price-grid in theme2.css */

/* ── 10. PRODUCT GRID SECTION ────────────────────────────────── */
.cms-product-grid-section { padding: 48px 0; }
/* .nc-product-grid in theme2.css */

/* ── 11. HTML BLOCK SECTION ──────────────────────────────────── */
.cms-html-block { padding: 40px 0; }
.cms-html-block > .nc-container { /* allow custom max-width per block */ }

/* HTML block: rich text body reset */
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 {
  font-family: var(--nc-font-serif, Georgia, serif);
  color: var(--nc-dark2, #2d1200); margin-bottom: 0.6em;
}
.rich-text p       { font-size: 14px; line-height: 1.75; margin-bottom: 1em; color: var(--nc-text, #2d1200); }
.rich-text a       { color: var(--brand-primary, #d4a855); text-decoration: underline; }
.rich-text ul, .rich-text ol { padding-left: 1.4em; margin-bottom: 1em; }
.rich-text li      { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.rich-text img     { max-width: 100%; border-radius: 8px; }
.rich-text blockquote {
  border-left: 3px solid var(--brand-primary, #d4a855);
  padding: 12px 20px; background: var(--nc-cream, #faf7f2);
  font-style: italic; margin: 1.5em 0; border-radius: 0 6px 6px 0;
}
.rich-text hr { border: none; border-top: 1px solid var(--nc-border, rgba(180,140,100,0.2)); margin: 1.5em 0; }
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: 14px; }
.rich-text th, .rich-text td { padding: 10px 14px; border: 1px solid var(--nc-border, rgba(180,140,100,0.2)); }
.rich-text th { background: var(--nc-cream, #faf7f2); font-weight: 600; }

/* ── 12. SALE / FULL-WIDTH BANNER ────────────────────────────── */
.cms-sale-section {
  background: var(--nc-dark2, #2d1200); padding: 80px 0; text-align: center;
}
.cms-sale-title {
  font-family: var(--nc-font-serif, Georgia, serif);
  font-size: clamp(26px, 5vw, 48px); color: var(--nc-gold-light, #f5e6c8);
  margin-bottom: 8px;
}
.cms-sale-title em { color: var(--nc-gold, #d4a855); font-style: normal; }
.cms-sale-sub  { font-size: clamp(15px, 2.5vw, 22px); color: var(--nc-gold, #d4a855); margin-bottom: 10px; }
.cms-sale-desc { color: rgba(255,255,255,0.55); font-size: 14px; margin-bottom: 28px; }

/* ── 13. COUNTDOWN TIMER (sale sections) ────────────────────── */
.nc-countdown {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.nc-countdown-block {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(212,168,85,0.3);
  border-radius: 8px; min-width: 58px; padding: 10px;
}
.nc-countdown-num  { font-size: 26px; font-weight: 700; color: var(--nc-gold, #d4a855); line-height: 1; }
.nc-countdown-unit { font-size: 9px; letter-spacing: 1.5px; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-top: 4px; }
.nc-countdown-sep  { font-size: 24px; font-weight: 700; color: var(--nc-gold, #d4a855); margin-bottom: 14px; }

/* ── 14. TESTIMONIALS / REVIEWS SECTION ─────────────────────── */
.cms-testimonials { padding: 60px 0; background: var(--nc-cream, #faf7f2); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testimonial-card {
  background: #fff; border: 1px solid var(--nc-border, rgba(180,140,100,0.18));
  border-radius: 12px; padding: 24px;
}
.testimonial-text {
  font-size: 14px; line-height: 1.7; font-style: italic;
  color: var(--nc-text, #2d1200); margin-bottom: 16px;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: var(--nc-cream, #faf7f2);
}
.testimonial-name { font-size: 13px; font-weight: 600; color: var(--nc-dark2, #2d1200); }
.testimonial-role { font-size: 11px; color: var(--nc-muted, #8a7260); }

@media (max-width: 992px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ── 15. BRAND LOGO STRIP ────────────────────────────────────── */
.cms-brands { padding: 36px 0; }
.brand-strip {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center;
}
.brand-strip-item { opacity: 0.5; transition: opacity 0.2s; filter: grayscale(1); }
.brand-strip-item:hover { opacity: 1; filter: none; }
.brand-strip-item img { max-height: 40px; width: auto; }

/* ── 16. RESPONSIVE OVERRIDES ────────────────────────────────── */
@media (max-width: 768px) {
  .cms-promo-banner { border-radius: 8px; }
  .promo-text-overlay { padding: 20px 20px; }
  .promo-overlay-title { font-size: clamp(16px, 5vw, 26px); }
  .promo-overlay-sub { font-size: 12px; margin-bottom: 12px; }
  .cms-collection-strip { padding: 28px 0; }
  .collection-card { width: 150px; }
  .collection-card-img { height: 165px; }
  .cms-sale-section { padding: 44px 16px; }
  .nc-countdown-num { font-size: 22px; }
  .nc-countdown-block { min-width: 50px; padding: 8px; }
}

@media (max-width: 480px) {
  .collection-strip-header { flex-direction: row; align-items: center; }
  .collection-strip-header h2 { font-size: clamp(17px, 5vw, 22px); }
  .collection-card { width: 140px; }
  .collection-card-img { height: 148px; }
  .cms-whatsapp { padding: 14px 16px; gap: 10px; }
  .cms-whatsapp-text { font-size: 13px; }
}
