/* Custom Stitching Designs — page-scoped tokens, same values as
   product-page.css/shop-page.css/stitching-form.css (this theme's
   convention: each page-scoped stylesheet carries its own copy rather
   than a shared central file). Hero design deliberately mirrors
   occasion-page.css's two-column gradient hero (see template-occasion.php)
   for sitewide visual consistency, capped at this theme's usual 1600px
   container width rather than true 100vw bleed. */
:root {
  --plm-deep: #1C0A00;
  --plm-maroon: #6B1E1E;
  --plm-maroon-hover: #551616;
  --plm-gold: #C49A3C;
  --plm-gold-light: #E7C878;
  --plm-cream: #FAF6F0;
  --plm-warm-white: #FFFDF9;
  --plm-text: #1C0A00;
  --plm-text-muted: #6B5E55;
  --plm-border: rgba(196,154,60,0.2);
  --plm-r: 6px;
  --plm-r-lg: 12px;
  --plm-max-w: 1600px;
  --plm-font-body: 'DM Sans', sans-serif;
  --plm-font-display: 'Cormorant Garamond', Georgia, serif;
  --plm-font-punjabi: 'Noto Sans Gurmukhi', sans-serif;
}

/* This custom page template has no #primary/#secondary markup — same
   centering bug/fix already documented for the New Arrivals and
   Stitching Price List pages (see their memories): Astra's
   @media(min-width:922px){.site-content .ast-container{display:flex}}
   rule leaves .pl-cs-page as the ONLY flex child with no flex-grow,
   shrinking it to content width at the flex-start edge. Scoped to this
   page's own body class only. */
body.page-template-page-custom-stitching .ast-container {
  display: block !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pl-cs-page {
  background: var(--plm-warm-white);
}

.pl-cs-wrap {
  max-width: var(--plm-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO (two-column: text + video-thumbnail visual) ──────────── */
.pl-cs-hero {
  background: linear-gradient(135deg, var(--plm-deep) 0%, var(--plm-maroon) 100%);
  color: var(--plm-warm-white);
  padding: 56px 0 76px;
  position: relative;
  overflow: hidden;
}

.pl-cs-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.pl-cs-hero-badge {
  display: inline-block;
  font-family: var(--plm-font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plm-gold-light);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 18px;
}

.pl-cs-hero-h1 {
  font-family: var(--plm-font-display) !important;
  font-weight: 500 !important;
  color: var(--plm-warm-white) !important;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.2;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.pl-cs-hero-h1 em {
  font-style: italic;
  color: var(--plm-gold-light);
}

.pl-cs-hero-desc {
  max-width: 460px;
  font-family: var(--plm-font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin: 0 0 30px;
}

.pl-cs-hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.pl-cs-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--plm-r-lg);
  font-family: var(--plm-font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pl-cs-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
  color: #fff;
}

.pl-cs-btn-text {
  color: #fff;
  font-family: var(--plm-font-body);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 3px;
}

.pl-cs-btn-text:hover {
  border-color: #fff;
  color: #fff;
}

.pl-cs-hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.22);
}

.pl-cs-hero-stat strong {
  display: block;
  font-family: var(--plm-font-display);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.pl-cs-hero-stat span {
  display: block;
  font-family: var(--plm-font-body);
  font-size: 11.5px;
  color: rgba(255,255,255,0.68);
  margin-top: 3px;
}

.pl-cs-hero-col-visual {
  position: relative;
}

.pl-cs-hero-frame {
  background: #fff;
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-cs-hero-frame a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.pl-cs-hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.pl-cs-hero-frame-empty {
  background: linear-gradient(135deg, var(--plm-maroon) 0%, var(--plm-deep) 100%);
  flex-direction: column;
  gap: 14px;
}

.pl-cs-hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(20,10,10,0.55);
  border: 2px solid rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-cs-hero-frame-empty .pl-cs-hero-play {
  position: static;
  transform: none;
}

.pl-cs-hero-empty-label {
  font-family: var(--plm-font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.pl-cs-hero-floatcard {
  position: absolute;
  left: -16px;
  bottom: -20px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  text-align: left;
}

.pl-cs-hero-floatcard strong {
  display: block;
  font-family: var(--plm-font-display) !important;
  font-weight: 600 !important;
  font-size: 20px;
  color: var(--plm-maroon) !important;
}

.pl-cs-hero-floatcard span {
  display: block;
  font-family: var(--plm-font-body);
  font-size: 11.5px;
  color: var(--plm-text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.pl-cs-hero-corner {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(20,10,10,0.5);
  color: #fff;
  font-family: var(--plm-font-punjabi);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .pl-cs-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .pl-cs-hero-col-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .pl-cs-hero-desc { max-width: 100%; }
}

/* ── DESIGN GRID / REEL SECTIONS ─────────────────────────────── */
.pl-cs-grid-wrap {
  padding: 44px 0 64px;
}

.pl-cs-grid-wrap + .pl-cs-grid-wrap {
  padding-top: 8px;
  border-top: 1px solid var(--plm-border);
}

.pl-cs-section-testimonial {
  background: var(--plm-cream);
  border-radius: var(--plm-r-lg);
  padding: 44px 24px;
}

.pl-cs-section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
}

.pl-cs-section-head h2 {
  font-family: var(--plm-font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--plm-deep);
  margin: 0 0 6px;
}

.pl-cs-section-head p {
  font-family: var(--plm-font-body);
  color: var(--plm-text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* Reel cards (Design Inspiration / Customer / Packing sections) —
   reuse .pl-cs-card's shell but the media height is whatever
   Instagram's own embed.js renders (its blockquote sets its own
   height once processed), not the fixed 9:16 box used for the
   product+video cards above. */
.pl-cs-reel-card .pl-cs-media {
  min-height: 200px;
}

.pl-cs-reel-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pl-cs-reel-caption {
  font-family: var(--plm-font-display);
  font-size: 16px;
  color: var(--plm-deep);
}

.pl-cs-reel-card .pl-cs-wa-btn {
  align-self: flex-start;
  padding: 8px 16px;
}

/* Self-hosted video (real file, uploaded via the reel's admin fields)
   — plays natively, no Instagram/embed.js dependency at all. Inherits
   the base .pl-cs-video's 9:16 aspect ratio + dark background, same as
   every other video card, so the grid stays visually consistent. */
.pl-cs-video-selfhosted video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--plm-deep);
}

.pl-cs-reel-original-link {
  font-family: var(--plm-font-body);
  font-size: 12.5px;
  color: var(--plm-text-muted);
  text-decoration: underline;
  align-self: flex-start;
}

.pl-cs-reel-original-link:hover {
  color: var(--plm-maroon);
}

/* Grid: cards sized around a vertical (9:16) video, not a landscape
   product photo — narrower columns than the shop's .pcard grid. */
.pl-cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.pl-cs-card {
  background: #fff;
  border: 1px solid var(--plm-border);
  border-radius: var(--plm-r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pl-cs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(107,30,30,0.14);
}

.pl-cs-media {
  position: relative;
}

.pl-cs-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--plm-deep);
  overflow: hidden;
}

.pl-cs-video-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* No aspect-ratio/background override here anymore — Instagram cards
   now inherit the same dark 9:16 box as YouTube cards (base .pl-cs-video
   rule) so the white fallback content below reads correctly, and the
   grid stays visually consistent whether a card is YouTube, Instagram,
   or the pending-fallback state. blockquote itself still needs its
   max/min-width reset so Instagram's own inline sizing (if embed.js
   successfully replaces the content) can't overflow the card. */
.pl-cs-video-instagram blockquote.instagram-media {
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100%;
  display: block;
}

.pl-cs-video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-cs-video-fallback a {
  color: #fff;
  font-family: var(--plm-font-body);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--plm-r);
}

/* Always-visible fallback INSIDE the Instagram blockquote (see
   pl_render_design_video_embed() in functions.php) — embed.js replaces
   this with the real embed on success; when it doesn't (confirmed live
   2026-08-10 that this happens even in a plain, unblocked browser — a
   real Instagram Graph API embed would need Meta App Review, days-to-
   weeks, deliberately not pursued for now), this card is the permanent
   experience, not a rare edge case — designed to look intentional, not
   like a broken placeholder. Ring uses Instagram's own recognizable
   gradient so it reads as "this opens Instagram" at a glance. */
.pl-cs-ig-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  color: #fff;
  font-family: var(--plm-font-body);
  text-decoration: none;
  background: radial-gradient(120% 90% at 50% 15%, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.pl-cs-ig-fallback-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.pl-cs-ig-fallback-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--plm-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-cs-ig-fallback-label {
  font-weight: 700;
  font-size: 14px;
}

.pl-cs-ig-fallback-sub {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.pl-cs-ig-fallback:hover {
  color: #fff;
}

.pl-cs-ig-fallback:hover .pl-cs-ig-fallback-ring {
  transform: scale(1.08);
}

.pl-cs-video-photo {
  aspect-ratio: 3 / 4;
}

.pl-cs-photo-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pl-cs-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.6);
  font-family: var(--plm-font-body);
  font-size: 13px;
}

/* Small identity pills over the media — video vs photo, and a
   Made-to-Order badge on every card (this whole page IS the
   made-to-order category, but a visible reminder still earns its
   place on the card itself, not just the hero). */
.pl-cs-pill {
  position: absolute;
  top: 10px;
  z-index: 1;
  font-family: var(--plm-font-body);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.pl-cs-pill-video {
  left: 10px;
  background: rgba(20,10,10,0.6);
  color: #fff;
}

.pl-cs-pill-made {
  right: 10px;
  background: var(--plm-gold);
  color: var(--plm-deep);
}

.pl-cs-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.pl-cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pl-cs-meta span {
  font-family: var(--plm-font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--plm-maroon);
  background: var(--plm-cream);
  padding: 3px 9px;
  border-radius: 20px;
}

.pl-cs-name {
  font-family: var(--plm-font-display);
  font-size: 19px;
  margin: 0;
  line-height: 1.3;
}

.pl-cs-name a {
  color: var(--plm-deep);
  text-decoration: none;
}

.pl-cs-name a:hover {
  color: var(--plm-maroon);
}

.pl-cs-price {
  font-family: var(--plm-font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--plm-maroon);
}

.pl-cs-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.pl-cs-buynow {
  text-align: center;
  padding: 11px;
  border-radius: var(--plm-r);
  font-family: var(--plm-font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.pl-cs-view-btn {
  text-align: center;
  padding: 10px;
  border-radius: var(--plm-r);
  border: 1px solid var(--plm-border);
  color: var(--plm-maroon);
  font-family: var(--plm-font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.pl-cs-view-btn:hover {
  background: var(--plm-cream);
}

.pl-cs-wa-btn {
  text-align: center;
  padding: 10px;
  border-radius: var(--plm-r);
  background: #EAFBF1;
  border: 1px solid rgba(37,211,102,0.35);
  color: #128C7E;
  font-family: var(--plm-font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.pl-cs-wa-btn:hover {
  background: #D9F7E6;
}

.pl-cs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: var(--plm-cream);
  border-radius: var(--plm-r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pl-cs-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--plm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(107,30,30,0.1);
}

.pl-cs-empty h3 {
  font-family: var(--plm-font-display);
  color: var(--plm-deep);
  font-size: 24px;
  margin: 0 0 8px;
}

.pl-cs-empty p {
  font-family: var(--plm-font-body);
  color: var(--plm-text-muted);
  max-width: 420px;
  margin: 0 0 20px;
}

@media (max-width: 600px) {
  .pl-cs-wrap { padding: 0 16px; }
  .pl-cs-hero { padding: 40px 0 60px; }
  .pl-cs-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .pl-cs-body {
    padding: 12px;
  }
  .pl-cs-hero-ctas { gap: 16px; }
  .pl-cs-hero-stats { gap: 20px; }
}

/* ── 2026-08-10 rebuild: process / fabric / recent-work / FAQ / final
   CTA — added once the Instagram reel approach was dropped entirely,
   built around real site data + owner-editable text (see
   pl_cs_get_content() in functions.php) instead. ─────────────────── */

.pl-cs-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pl-cs-process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--plm-border);
  border-radius: var(--plm-r-lg);
  padding: 28px 20px 22px;
  text-align: center;
}

.pl-cs-process-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--plm-font-display);
  font-size: 13px;
  color: var(--plm-border);
  font-weight: 600;
}

.pl-cs-process-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--plm-cream);
  color: var(--plm-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-cs-process-step h3 {
  font-family: var(--plm-font-display);
  font-size: 17px;
  color: var(--plm-deep);
  margin: 0 0 8px;
}

.pl-cs-process-step p {
  font-family: var(--plm-font-body);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--plm-text-muted);
  margin: 0;
}

.pl-cs-fabric-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pl-cs-fabric-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--plm-border);
  border-radius: var(--plm-r-lg);
  padding: 16px 24px;
  min-width: 140px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.pl-cs-fabric-chip:hover {
  border-color: var(--plm-gold);
  transform: translateY(-2px);
}

.pl-cs-fabric-chip-name {
  font-family: var(--plm-font-display);
  font-size: 17px;
  color: var(--plm-deep);
}

.pl-cs-fabric-chip-count {
  font-family: var(--plm-font-body);
  font-size: 11.5px;
  color: var(--plm-text-muted);
}

.pl-cs-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pl-cs-work-cta {
  text-align: center;
  margin-top: 28px;
}

.pl-cs-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pl-cs-faq-item {
  background: #fff;
  border: 1px solid var(--plm-border);
  border-radius: var(--plm-r);
  padding: 14px 18px;
}

.pl-cs-faq-item summary {
  font-family: var(--plm-font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--plm-deep);
  cursor: pointer;
}

.pl-cs-faq-item[open] summary {
  margin-bottom: 8px;
}

.pl-cs-faq-item p {
  font-family: var(--plm-font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--plm-text-muted);
  margin: 0;
}

.pl-cs-final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--plm-deep) 0%, var(--plm-maroon) 100%);
  border-radius: var(--plm-r-lg);
  padding: 48px 24px;
  color: #fff;
}

.pl-cs-final-cta h2 {
  font-family: var(--plm-font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  margin: 0 0 8px;
}

.pl-cs-final-cta p {
  font-family: var(--plm-font-body);
  color: rgba(255,255,255,0.8);
  margin: 0 0 24px;
}

@media (max-width: 900px) {
  .pl-cs-process-grid { grid-template-columns: repeat(2, 1fr); }
  .pl-cs-work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .pl-cs-process-grid { grid-template-columns: 1fr; }
  .pl-cs-work-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pl-cs-fabric-chip { min-width: 120px; padding: 12px 18px; }
}
