/* =========================================
   CRAFTY MAMMIES — Single Product Page
   ========================================= */

.breadcrumb { background: #f9f4f7; padding: 13px 32px; font-size: 12.5px; color: #6b6b6b; border-bottom: 1px solid #ede0e8; }
.breadcrumb a { color: var(--pink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 7px; color: #ccc; }

.product-page { max-width: 1200px; margin: 0 auto; padding: 36px 24px 80px; }

/* ── 3-COLUMN LAYOUT ── */
.product-layout { display: grid; grid-template-columns: 76px 1fr 420px; gap: 20px; align-items: start; }

/* Thumbnail column */
.thumb-col { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 24px; }
.thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: border-color 0.18s, box-shadow 0.18s; background: #f9f4f7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: var(--pink); }
.thumb.active { border-color: var(--pink); box-shadow: 0 0 0 2px #fce8f3; }

/* Main image */
.main-img-col { position: sticky; top: 24px; }
.main-img-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #f9f4f7; aspect-ratio: 1; }
.main-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Live preview overlay */
.preview-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8%;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 40%);
}

.preview-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(20px, 3vw, 32px);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 0 30px rgba(234,114,164,0.4);
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease;
  opacity: 0;
  user-select: none;
  text-align: center;
  max-width: 90%;
  word-break: break-word;
}
.preview-name.visible { opacity: 1; }
.preview-name.font-script { font-family: 'Dancing Script', cursive; }
.preview-name.font-serif  { font-family: 'Cormorant Garamond', serif; font-style: italic; }
.preview-name.font-sans   { font-family: 'DM Sans', sans-serif; font-weight: 500; letter-spacing: 0.12em; }
.preview-name.font-block  { font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

.main-img-badge { position: absolute; top: 14px; left: 14px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.zoom-hint { position: absolute; bottom: 14px; right: 14px; background: rgba(255,255,255,0.85); color: #6b6b6b; font-size: 11px; padding: 5px 10px; border-radius: 20px; backdrop-filter: blur(4px); }

/* ── PREVIEW MODE TOGGLE ── */
.preview-mode-toggle {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.preview-mode-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #ede0e8;
  border-radius: 8px;
  background: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: #6b6b6b;
}

.preview-mode-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.preview-mode-btn:hover:not(.active) {
  border-color: var(--pink);
  color: var(--pink);
}

/* ── SHIRT PREVIEW ── */
.shirt-preview-container {
  display: none;
  position: absolute;
  inset: 0;
  background: #f5ede4;
  align-items: center;
  justify-content: center;
}

.shirt-preview-container.active {
  display: flex;
}

.shirt-svg-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.shirt-svg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.shirt-name-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  max-width: 60%;
  word-break: break-word;
  transition: top 0.2s, bottom 0.2s;
  line-height: 1.2;
  white-space: nowrap;
}

/* ── INFO COLUMN ── */
.info-col { min-width: 0; }
.info-eyebrow { font-size: 11.5px; font-weight: 500; color: var(--pink); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.info-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.15; margin-bottom: 10px; }
.info-title .script { font-family: var(--script); color: var(--pink); font-weight: 400; font-size: 1.1em; }

.rating-strip { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.stars { color: #f5a623; letter-spacing: 1px; font-size: 14px; }
.rating-count { color: #6b6b6b; }
.rating-sep { color: #ede0e8; }
.reviews-link { color: var(--pink); text-decoration: none; font-size: 12px; }
.reviews-link:hover { text-decoration: underline; }

.info-desc { color: #6b6b6b; font-size: 13.5px; line-height: 1.7; margin-bottom: 20px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.trust-pill { background: #fce8f3; color: #c45589; font-size: 11.5px; font-weight: 500; padding: 5px 12px; border-radius: 20px; }

.divider { border: none; border-top: 1px solid #ede0e8; margin: 18px 0; }

/* Options */
.opt-section { margin-bottom: 18px; }
.opt-label { font-size: 12.5px; font-weight: 500; margin-bottom: 9px; display: flex; align-items: center; gap: 6px; color: var(--black); }
.opt-label em { font-style: normal; font-weight: 400; color: var(--pink); background: #fce8f3; padding: 1px 8px; border-radius: 10px; font-size: 11px; }

.size-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.size-btn { padding: 7px 15px; border: 1.5px solid #ede0e8; border-radius: 8px; background: #fff; font-family: var(--sans); font-size: 12.5px; cursor: pointer; transition: all 0.15s; color: var(--black); }
.size-btn:hover, .size-btn.selected { border-color: var(--pink); background: #fce8f3; color: #c45589; font-weight: 500; }

.colour-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.swatch { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2.5px solid transparent; transition: transform 0.15s, border-color 0.15s; position: relative; }
.swatch:hover { transform: scale(1.15); }
.swatch.selected { border-color: var(--pink); transform: scale(1.1); box-shadow: 0 0 0 2px #fce8f3; }

.qty-row { display: flex; align-items: center; gap: 14px; }
.qty-wrap { display: flex; align-items: center; border: 1.5px solid #ede0e8; border-radius: 8px; overflow: hidden; }
.qty-btn { width: 34px; height: 34px; border: none; background: #f9f4f7; font-size: 17px; cursor: pointer; color: #6b6b6b; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.qty-btn:hover { background: #fce8f3; color: var(--pink); }
.qty-input { width: 44px; text-align: center; border: none; outline: none; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--black); }

/* Personalisation panel */
.personal-panel { border: 1.5px solid #ede0e8; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.personal-header { background: #fdf4f9; padding: 13px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #ede0e8; cursor: pointer; user-select: none; }
.personal-header-icon { width: 32px; height: 32px; background: var(--pink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.personal-header-text h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.personal-header-text p { font-size: 11.5px; color: #6b6b6b; }
.personal-header-arrow { margin-left: auto; color: #6b6b6b; font-size: 18px; transition: transform 0.25s; }
.personal-header.open .personal-header-arrow { transform: rotate(180deg); }
.personal-body { padding: 18px; display: none; }
.personal-body.open { display: block; }

.name-input-wrap { position: relative; margin-bottom: 14px; }
.name-input { width: 100%; padding: 12px 42px 12px 14px; border: 1.5px solid #ede0e8; border-radius: 8px; font-family: var(--sans); font-size: 14px; color: var(--black); transition: border-color 0.2s; background: #fff; }
.name-input:focus { outline: none; border-color: var(--pink); }
.name-input-char { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #6b6b6b; }

.preview-indicator { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--pink); margin-bottom: 14px; opacity: 0; transition: opacity 0.3s; }
.preview-indicator.visible { opacity: 1; }
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }

.font-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.font-btn { padding: 10px 8px; border: 1.5px solid #ede0e8; border-radius: 8px; background: #fff; cursor: pointer; text-align: center; transition: all 0.15s; line-height: 1.3; }
.font-btn:hover, .font-btn.selected { border-color: var(--pink); background: #fce8f3; }
.font-btn-preview { display: block; font-size: 17px; color: var(--black); margin-bottom: 2px; }
.font-btn-label { font-size: 10px; color: #6b6b6b; text-transform: uppercase; letter-spacing: 0.05em; }

.text-colour-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.text-colour-btn { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid transparent; cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.text-colour-btn:hover { transform: scale(1.15); }
.text-colour-btn.selected { border-color: var(--black); transform: scale(1.1); }

.extra-notes { width: 100%; padding: 10px 14px; border: 1.5px solid #ede0e8; border-radius: 8px; font-family: var(--sans); font-size: 13px; color: var(--black); resize: vertical; min-height: 70px; transition: border-color 0.2s; }
.extra-notes:focus { outline: none; border-color: var(--pink); }

.position-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.position-btn { padding: 9px 6px; border: 1.5px solid #ede0e8; border-radius: 8px; background: #fff; font-family: var(--sans); font-size: 11.5px; cursor: pointer; text-align: center; transition: all 0.15s; color: var(--black); display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.3; }
.position-btn:hover, .position-btn.selected { border-color: var(--pink); background: #fce8f3; color: #c45589; font-weight: 500; }
.position-icon { font-size: 16px; }
.position-note { font-size: 11px; color: #6b6b6b; font-style: italic; margin-top: 4px; }

.upload-wrap { border: 2px dashed #ede0e8; border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: #fff; }
.upload-wrap:hover { border-color: var(--pink); background: #fdf4f9; }
.upload-wrap.has-file { border-color: var(--pink); border-style: solid; background: #fce8f3; }
.upload-inner { display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; }
.upload-icon { font-size: 22px; }
.upload-text { font-size: 13px; font-weight: 500; color: var(--black); }
.upload-sub { font-size: 11px; color: #6b6b6b; }

.field-label { font-size: 12px; font-weight: 500; color: #6b6b6b; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }

/* CTAs */
.cta-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-order { width: 100%; padding: 15px; background: var(--pink); color: #fff; border: none; border-radius: 10px; font-family: var(--sans); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.btn-order:hover { background: var(--pink-dark); transform: translateY(-1px); }
.btn-enquire { width: 100%; padding: 13px; background: transparent; border: 1.5px solid #ede0e8; color: #6b6b6b; border-radius: 10px; font-family: var(--sans); font-size: 13.5px; cursor: pointer; transition: all 0.18s; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 7px; }
.btn-enquire:hover { border-color: var(--pink); color: var(--pink); background: #fce8f3; }
.btn-order--outline { background: transparent; color: var(--pink); border: 2px solid var(--pink); text-align: center; padding: 14px; border-radius: 10px; font-family: var(--sans); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; text-decoration: none; display: block; }
.btn-order--outline:hover { background: var(--pink); color: #fff; }

/* Delivery info */
.delivery-info { background: #f9f4f7; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; margin-bottom: 20px; }
.delivery-row { display: flex; align-items: center; gap: 10px; color: #6b6b6b; }
.delivery-row strong { color: var(--black); }
.delivery-icon { width: 28px; height: 28px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* Process strip */
.process-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #ede0e8; }
.process-step { text-align: center; padding: 16px 12px; background: #f9f4f7; border-radius: 10px; }
.process-step-icon { font-size: 20px; margin-bottom: 7px; }
.process-step h4 { font-family: var(--serif); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.process-step p { font-size: 11.5px; color: #6b6b6b; line-height: 1.5; }

/* Reviews */
.reviews-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid #ede0e8; }
.reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.reviews-title { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.reviews-title .script { font-family: var(--script); color: var(--pink); font-weight: 400; }
.reviews-summary { display: flex; align-items: center; gap: 16px; }
.reviews-big-score { font-family: var(--serif); font-size: 48px; font-weight: 600; line-height: 1; }
.reviews-meta { display: flex; flex-direction: column; gap: 2px; }
.reviews-stars-lg { color: #f5a623; font-size: 18px; }
.reviews-count { font-size: 12px; color: #6b6b6b; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #f9f4f7; border-radius: 16px; padding: 20px; }
.review-card-stars { color: #f5a623; font-size: 13px; margin-bottom: 10px; }
.review-card-text { font-size: 13.5px; color: var(--black); line-height: 1.6; margin-bottom: 14px; font-style: italic; }
.review-card-author { display: flex; align-items: center; gap: 10px; }
.review-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: #fff; flex-shrink: 0; }
.review-author-name { font-size: 13px; font-weight: 500; }
.review-author-date { font-size: 11px; color: #6b6b6b; }

/* Hide default WC add to cart button */
.woocommerce-variation-add-to-cart { display: none !important; }

/* Responsive */
@media (max-width: 960px) {
  .product-layout { grid-template-columns: 60px 1fr; }
  .info-col { grid-column: 1 / -1; }
  .thumb-col { flex-direction: row; overflow-x: auto; }
}
@media (max-width: 640px) {
  .product-layout { grid-template-columns: 1fr; }
  .thumb-col { flex-direction: row; overflow-x: auto; order: 2; }
  .main-img-col { order: 1; }
  .info-col { order: 3; }
  .reviews-grid { grid-template-columns: 1fr; }
  .process-strip { grid-template-columns: 1fr; gap: 10px; }
  .mform-row { grid-template-columns: 1fr; }
  .font-picker { grid-template-columns: repeat(2, 1fr); }
}