/* ================================================================
   ChillingArt Prestige v3 — Etsy Layout + Logo Header/Footer
   Desktop: [thumb strip] [main image] | [product info]
   Mobile:  full-width slider + sticky order bar
   ================================================================ */

/* ── Google Font import ─────────────────────────────────────── */
/* Amiri (titles) loaded via PHP wp_enqueue_style */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --gold:       #D4AF37;
  --gold-dk:    #B8960C;
  --gold-lt:    #F2E08A;
  --black:      #0D0D0D;
  --dark:       #1C1C1E;
  --white:      #FFFFFF;
  --off-white:  #FAFAFA;
  --cream:      #FAF8F4;
  --border:     #E2DDD6;
  --border-lt:  #EDE9E3;
  --text:       #111111;
  --body:       #3D3D3D;
  --sub:        #767676;
  --muted:      #A8A29E;
  --green:      #1E7E34;
  --red:        #C0392B;

  /* Typography */
  --font-title: 'Amiri', 'Georgia', serif;
  --font-body:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Geometry */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --sh-sm:  0 1px 3px rgba(0,0,0,0.08);
  --sh:     0 2px 12px rgba(0,0,0,0.10);
  --sh-lg:  0 6px 32px rgba(0,0,0,0.12);

  /* Motion */
  --ease: 0.22s ease;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESET — single product page only
═══════════════════════════════════════════════════════════════ */
body.single-product {
  background: var(--white) !important;
  color: var(--text);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
}

/* ── Hide Astra header & footer for luxury landing feel ─────── */
body.single-product #masthead,
body.single-product .ast-header-wrap,
body.single-product header.site-header,
body.single-product #colophon,
body.single-product .ast-footer-wrap,
body.single-product footer.site-footer,
body.single-product .ast-breadcrumbs-wrapper,
body.single-product .woocommerce-breadcrumb,
body.single-product .ast-woocommerce-breadcrumb {
  display: none !important;
}

/* ── Strip Astra's container constraints ────────────────────── */
body.single-product #page,
body.single-product #content,
body.single-product .site-content,
body.single-product .ast-container,
body.single-product .entry-content,
body.single-product .ast-woocommerce-container,
body.single-product .woocommerce {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Hide default WC gallery (we render ours) ───────────────── */
body.single-product .woocommerce-product-gallery { display: none !important; }

/* ── Product wrap ───────────────────────────────────────────── */
.ca-product-wrap {
  background: var(--white);
  padding: 0;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ETSY 2-COLUMN LAYOUT
   [gallery col ≈55%] | [info col ≈45%]
   Uses LTR direction so gallery is always visually on the left
═══════════════════════════════════════════════════════════════ */
.ca-etsy-layout {
  display: grid;
  grid-template-columns: 57fr 43fr;
  align-items: start;
  direction: ltr;          /* gallery LEFT, info RIGHT regardless of RTL */
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════
   LEFT COLUMN — GALLERY
═══════════════════════════════════════════════════════════════ */
.ca-gallery-col {
  position: sticky;
  top: 0;
  padding: 24px 20px 24px 32px;
  align-self: start;
}

/* ── Gallery inner: [thumb strip] + [arrows + main image] ──── */
.ca-gallery-inner {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  direction: ltr;
}

/* ── Thumbnail strip — vertical, far left ───────────────────── */
.ca-thumb-strip {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 70px;
  flex-shrink: 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ca-thumb-strip::-webkit-scrollbar { width: 3px; }
.ca-thumb-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ca-thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid var(--border-lt);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.ca-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ca-thumb:hover { border-color: var(--gold); transform: scale(1.03); }
.ca-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.35);
}

/* ── Main image column: relative container so arrows overlay it  */
.ca-main-img-col {
  flex: 1;
  min-width: 0;
  position: relative;   /* arrows are absolutely positioned over the image */
}

/* Prev / Next arrow buttons — overlaid left/right on the image on all viewports */
.ca-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--dark);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}
.ca-nav-prev { left: 12px; }
.ca-nav-next { right: 12px; }
.ca-nav-btn svg { width: 15px; height: 15px; }
.ca-nav-btn:hover:not(:disabled) { border-color: var(--gold); background: var(--gold); color: var(--black); }
.ca-nav-btn:disabled { opacity: 0.2; cursor: default; }

/* ── Main image wrap ────────────────────────────────────────── */
.ca-main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--sh);
  cursor: zoom-in;
}
.ca-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show full image without cropping */
  display: block;
  transition: opacity 0.3s ease, transform 0.45s ease;
}
.ca-main-img-wrap:hover .ca-main-img { transform: scale(1.025); }
.ca-main-img.is-loading,
.ca-customize-img.is-loading { opacity: 0 !important; }

/* Name overlay */
.ca-name-overlay {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Amiri', serif;
  font-size: clamp(20px, 4vw, 32px);
  color: var(--gold);
  text-shadow: 0 1px 4px rgba(0,0,0,0.55), 0 0 20px rgba(212,175,55,0.45);
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  width: 82%;
  letter-spacing: 2px;
  z-index: 5;
}

.ca-sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;  /* right = left in ltr context */
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 6;
}

/* Image counter — mobile only */
.ca-img-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 6;
  display: none; /* hidden on desktop */
}

/* ── Dot indicators — mobile only ──────────────────────────── */
.ca-dots {
  display: none; /* shown on mobile via media query */
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.ca-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.18);
  padding: 0;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.ca-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ═══════════════════════════════════════════════════════════════
   RIGHT COLUMN — PRODUCT INFO
═══════════════════════════════════════════════════════════════ */
.ca-info-col {
  direction: rtl;
  padding: 28px 28px 120px 20px;   /* bottom padding for sticky bar space */
  border-right: 1px solid var(--border-lt);
  min-height: 100vh;
  background: var(--white);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.ca-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ca-store-name { color: var(--gold-dk); font-weight: 600; }
.ca-bc-sep { color: var(--muted); }
.ca-bc-cat { color: var(--sub); }

/* ── Product title — Amiri only here ────────────────────────── */
.woocommerce div.product h1.product_title {
  font-family: var(--font-title) !important;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

/* ── Rating ─────────────────────────────────────────────────── */
.woocommerce-product-rating { margin-bottom: 12px; }
.woocommerce-review-link,
.woocommerce-product-rating .rating-count { font-family: var(--font-body); font-size: 13px; color: var(--sub); }

/* ── Price row ──────────────────────────────────────────────── */
.ca-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-body) !important;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--black);
  display: inline;
  margin: 0;
  letter-spacing: -0.02em;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  margin-inline-start: 6px;
  text-decoration: line-through;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
  text-decoration: none;
  color: var(--red);
}

/* Thin divider after price row */
.ca-price-row::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border-lt);
  margin-top: 14px;
}

.ca-free-ship-tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  background: #E8F5E9;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Short description ──────────────────────────────────────── */
.woocommerce-product-details__short-description {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  margin: 14px 0 18px;
}

/* ── Variation form / table ─────────────────────────────────── */
.woocommerce div.product form.cart { margin-bottom: 0; }
.woocommerce div.product form.cart table.variations {
  border: none;
  width: 100%;
  margin-bottom: 0;
}
.woocommerce div.product form.cart table.variations td,
.woocommerce div.product form.cart table.variations th {
  padding: 4px 0;
  border: none;
  vertical-align: top;
}
.woocommerce div.product form.cart table.variations label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  text-transform: none;
  display: block;
  margin-bottom: 10px;
}

/* ── Color swatches ─────────────────────────────────────────── */
.ca-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 22px;
}
.ca-swatch {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: transform var(--ease), outline-color var(--ease), box-shadow var(--ease);
  box-shadow: 0 1px 4px rgba(0,0,0,0.22);
}
.ca-swatch:hover { transform: scale(1.15); box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.ca-swatch.active {
  border-color: rgba(255,255,255,0.6);
  outline-color: var(--gold);
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--gold), 0 3px 10px rgba(212,175,55,0.3);
}
.ca-swatch-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--gold-lt);
  font-family: var(--font-body);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 30;
}
.ca-swatch:hover .ca-swatch-tooltip,
.ca-swatch.active .ca-swatch-tooltip { opacity: 1; }
.chillingart-hidden-select { display: none !important; }

/* ── Custom name input ──────────────────────────────────────── */
.ca-custom-name-wrap {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.ca-field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dk);
  margin-bottom: 8px;
}
.ca-text-input {
  width: 100%;
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  outline: none;
  direction: rtl;
  box-sizing: border-box;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.ca-text-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.ca-hint { display: block; font-family: var(--font-body); font-size: 11.5px; color: var(--muted); margin-top: 5px; font-style: italic; }

/* ── Quantity input ─────────────────────────────────────────── */
.woocommerce div.product form.cart .quantity { margin-bottom: 10px; }
.woocommerce div.product form.cart .quantity input.qty {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  width: 68px;
  text-align: center;
  color: var(--text);
  background: var(--white);
  outline: none;
}
.woocommerce div.product form.cart .quantity input.qty:focus { border-color: var(--gold); }

/* ── Add to Cart button ─────────────────────────────────────── */
.woocommerce div.product form.cart .single_add_to_cart_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid var(--dark);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  text-transform: none;
  margin: 4px 0 12px;
  transition: all var(--ease);
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--black);
  border-color: var(--black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}
.woocommerce div.product form.cart .single_add_to_cart_button:active { transform: translateY(0); }

/* ── Trust strip ────────────────────────────────────────────── */
.ca-trust-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0 20px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--border-lt);
  border-radius: var(--r);
}
.ca-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--sub);
}
.ca-trust-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold-dk); }

/* ── Info block (delivery / returns) ────────────────────────── */
.ca-info-block {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
}
.ca-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  font-family: var(--font-body);
  background: var(--white);
  direction: rtl;
}
.ca-info-row + .ca-info-row { border-top: 1px solid var(--border-lt); }
.ca-info-icon { font-size: 16px; flex-shrink: 0; }
.ca-info-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ca-info-text strong { font-size: 13px; color: var(--text); font-weight: 600; }
.ca-info-text span   { font-size: 12px; color: var(--sub); }
.ca-badge-green {
  background: #E8F5E9;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* ── Seller card ────────────────────────────────────────────── */
.ca-seller-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 20px;
  background: var(--cream);
  direction: rtl;
}
.ca-seller-ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-family: 'Georgia', serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  letter-spacing: 1px;
}
.ca-seller-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ca-seller-info strong { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--text); }
.ca-stars { color: var(--gold); font-size: 12px; }
.ca-stars small { color: var(--sub); font-size: 11px; }
.ca-seller-sub { font-family: var(--font-body); font-size: 11.5px; color: var(--sub); font-style: italic; }

/* ── WC meta ────────────────────────────────────────────────── */
.product_meta { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.product_meta a { color: var(--sub); text-decoration: none; }
.product_meta a:hover { color: var(--gold-dk); }

/* ── Fast order form ────────────────────────────────────────── */
.ca-fast-order {
  margin: 6px 0 0;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 18px 18px;
}
.ca-divider { text-align: center; margin-bottom: 12px; color: var(--muted); font-family: var(--font-body); font-size: 12px; }
.ca-fast-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  margin: 0 0 14px;
}
.ca-order-form { display: flex; flex-direction: column; gap: 9px; }
.ca-form-row { width: 100%; }
.ca-input {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  direction: rtl;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  box-sizing: border-box;
}
.ca-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.14); }
.ca-input::placeholder { color: #C0B8B0; }

/* ── Order button ───────────────────────────────────────────── */
.ca-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--dark);
  color: var(--gold-lt);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--ease);
  margin-top: 2px;
  box-shadow: 0 3px 12px rgba(212,175,55,0.18);
}
.ca-order-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold-dk);
  box-shadow: 0 5px 20px rgba(212,175,55,0.40);
  transform: translateY(-1px);
}
.ca-order-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ca-secure-note { text-align: center; font-family: var(--font-body); font-size: 11.5px; color: var(--muted); margin: 7px 0 0; }

/* ── Success message ────────────────────────────────────────── */
.ca-success-msg { text-align: center; padding: 28px 16px; }
.ca-check { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--black); font-size: 1.5rem; margin-bottom: 10px; }
.ca-success-inner h4 { font-family: var(--font-title); font-size: 1.2rem; color: var(--black); margin: 6px 0 4px; }
.ca-success-inner p { font-family: var(--font-body); color: var(--sub); font-size: 13px; }

/* ── After-summary content (tabs, related) ──────────────────── */
.woocommerce-tabs,
.woocommerce-tabs ul.tabs,
.up-sells,
.related {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 32px;
  direction: rtl;
  font-family: var(--font-body);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL CTA BUTTON (in info col)
═══════════════════════════════════════════════════════════════ */
.ca-scroll-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(212,175,55,0.35);
  text-decoration: none;
  margin-top: 12px;
  transition: all var(--ease);
  direction: rtl;
}
.ca-scroll-cta:hover {
  background: var(--gold-dk);
  box-shadow: 0 5px 22px rgba(212,175,55,0.50);
  transform: translateY(-1px);
  color: var(--black);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   MIDDLE SECTION — Full Product Description
═══════════════════════════════════════════════════════════════ */
.ca-description-section {
  background: var(--white);
  padding: 60px 32px;
  border-top: 1px solid var(--border-lt);
}
.ca-desc-inner {
  max-width: 860px;
  margin: 0 auto;
  direction: rtl;
}
.ca-desc-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.ca-desc-content {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--body);
}
.ca-desc-content p        { margin: 0 0 14px; }
.ca-desc-content ul,
.ca-desc-content ol       { padding-right: 24px; margin: 0 0 14px; }
.ca-desc-content li       { margin-bottom: 6px; }
.ca-desc-content h3       { font-family: var(--font-title); font-size: 1.2rem; color: var(--black); margin: 22px 0 10px; }
.ca-desc-content strong,
.ca-desc-content b        { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   BOTTOM SECTION — Customize & Order
═══════════════════════════════════════════════════════════════ */
.ca-customize-section {
  background: #F4F4F4;
  padding: 64px 32px 72px;
  border-top: 1px solid var(--border-lt);
}
.ca-customize-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.ca-customize-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  margin: 0 0 8px;
  direction: rtl;
}
.ca-customize-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--sub);
  text-align: center;
  margin: 0 0 44px;
  direction: rtl;
}
.ca-customize-body {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 52px;
  align-items: start;
  direction: rtl;
}

/* ── Preview column ─────────────────────────────────────────── */
.ca-customize-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ca-preview-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  margin: 0 0 12px;
  text-align: center;
}
.ca-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--sh-lg);
}
.ca-customize-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
.ca-name-overlay--large {
  font-size: clamp(22px, 5vw, 38px);
  top: 40%;
  letter-spacing: 3px;
}
.ca-preview-hint {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--muted);
  margin: 10px 0 0;
  text-align: center;
  font-style: italic;
}

/* ── Controls column ────────────────────────────────────────── */
.ca-customize-controls-col {
  direction: rtl;
}
/* Give the WC form inside controls a white card feel */
.ca-customize-controls-col form.cart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  margin-bottom: 0;
}

/* Fast order form: remove inner background when inside customize section */
.ca-customize-section .ca-fast-order {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  margin-top: 18px;
}

/* ── Mobile: stack columns ──────────────────────────────────── */
@media (max-width: 860px) {
  .ca-customize-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ca-customize-section { padding: 40px 16px 56px; }
  .ca-customize-title   { font-size: 1.5rem; }
  .ca-preview-frame     { max-width: 360px; width: 100%; }
  .ca-description-section { padding: 40px 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE STICKY ORDER BAR
═══════════════════════════════════════════════════════════════ */
.ca-sticky-bar {
  display: none;            /* shown via mobile media query */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  direction: rtl;
}
.ca-sticky-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto;
}
.ca-sticky-price {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}
.ca-sticky-btn {
  flex: 1;
  padding: 13px 20px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--ease);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
}
.ca-sticky-btn:hover { background: var(--black); }
.ca-sticky-bar.is-hidden { transform: translateY(110%); transition: transform 0.3s ease; }
.ca-sticky-bar.is-visible { transform: translateY(0); transition: transform 0.3s ease; }

/* ═══════════════════════════════════════════════════════════════
   TABLET  (769px – 1024px)
═══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .ca-etsy-layout { grid-template-columns: 52fr 48fr; }
  .ca-gallery-col { padding: 20px 16px 20px 20px; }
  .ca-info-col    { padding: 20px 20px 20px 14px; }
  .ca-thumb { width: 60px; height: 60px; }
  .ca-thumb-strip { width: 60px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE  (≤768px)  — stacked layout + horizontal slider
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Full-width stacked layout */
  .ca-etsy-layout {
    grid-template-columns: 1fr;
    direction: rtl;
    min-height: unset;
  }

  /* Gallery: full width at top */
  .ca-gallery-col {
    position: relative;
    top: unset;
    padding: 0;
  }

  /* Horizontal snap scroll container */
  .ca-gallery-inner {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-direction: row;
    gap: 0;
  }
  .ca-gallery-inner::-webkit-scrollbar { display: none; }

  /* Hide vertical thumb strip on mobile */
  .ca-thumb-strip { display: none; }

  /* Each "slide" = full viewport width, snaps into place */
  .ca-main-img-col {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  /* Slightly larger touch target on mobile */
  .ca-nav-btn { width: 38px; height: 38px; }

  /* Full-width square image */
  .ca-main-img-wrap {
    border-radius: 0;
    box-shadow: none;
    width: 100%;
  }

  /* Image counter badge visible on mobile */
  .ca-img-counter { display: block; }

  /* Dots visible on mobile */
  .ca-dots { display: flex; }

  /* Info column: full width below */
  .ca-info-col {
    padding: 20px 16px 100px; /* bottom padding for sticky bar */
    border-right: none;
    border-top: 1px solid var(--border-lt);
    min-height: unset;
  }

  /* Show sticky bar on mobile */
  .ca-sticky-bar { display: flex; }

  /* Trust strip: 2 columns */
  .ca-trust-strip { grid-template-columns: 1fr 1fr; }

  /* Form: single column on mobile */
  .ca-order-form { display: flex; flex-direction: column; gap: 9px; }

  /* After-summary */
  .woocommerce-tabs, .up-sells, .related { padding: 0 16px; margin-top: 20px; }
}

/* ── Tiny phones ────────────────────────────────────────────── */
@media (max-width: 420px) {
  .woocommerce div.product h1.product_title { font-size: 1.35rem; }
  .woocommerce div.product p.price          { font-size: 1.45rem; }
  .ca-trust-strip { grid-template-columns: 1fr; gap: 7px; }
}

/* ── Large desktop: 2-column order form ────────────────────── */
@media (min-width: 1025px) {
  .ca-order-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .ca-form-row:last-of-type,
  .ca-order-btn,
  .ca-secure-note { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════════
   PRESTIGE SITE HEADER
   Root problem: the page is Arabic / RTL, so flex-start becomes
   the visual RIGHT side.  Fix: force direction:ltr on the header
   so "start" always means the physical LEFT, then restore
   direction:rtl only on the Arabic text span itself.

   Layout:
     • .ca-site-header-inner  → direction:ltr, position:relative
     • .ca-logo-link           → stays in normal flow → physical LEFT
     • .ca-header-tagline-wrap → position:absolute; left:50%;
                                 transform:translateX(-50%)
                                 → mathematical centre of the bar
═══════════════════════════════════════════════════════════════ */

/* ── Outer bar ──────────────────────────────────────────────── */
.ca-site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #E8E3DC;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08), 0 1px 0 rgba(212,175,55,0.15);
  padding: 15px 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Override any RTL the page body might push in */
  direction: ltr !important;
}

/* ── Inner row ───────────────────────────────────────────────── */
.ca-site-header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: ltr !important;   /* FORCE left-to-right so logo = LEFT */
}

/* ── Logo: physically LEFT in LTR flex ──────────────────────── */
.ca-logo-link {
  order: -1 !important;        /* first child regardless of DOM order  */
  margin-left: 0 !important;   /* flush to the physical left edge       */
  margin-right: 0 !important;
  padding-right: 20px;         /* gap between logo and text zone        */

  position: relative;
  z-index: 10;                 /* sits above the tagline text           */
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Logo image ──────────────────────────────────────────────── */
.ca-site-logo {
  display: block;
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: transparent;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}
.ca-logo-link:hover .ca-site-logo { opacity: 0.78; }

/* ── Tagline wrapper — flex child, fills space right of logo ── */
.ca-header-tagline-wrap {
  flex: 1;                     /* fills all remaining width after the logo  */
  min-width: 0;                /* allows flex child to shrink/clip properly */
  overflow: hidden;
  white-space: nowrap;
  padding-left: 30px;          /* 30px gap so text never touches the logo   */

  display: flex;
  align-items: center;
  justify-content: flex-start;

  pointer-events: none;
}

/* ── Tagline text ────────────────────────────────────────────── */
.ca-header-tagline {
  font-family: 'Amiri', 'Georgia', serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: var(--gold-dk);
  letter-spacing: 0.03em;
  white-space: nowrap;
  direction: rtl;              /* Arabic reads right-to-left */
  display: inline-block;
  /* Desktop: static, no animation */
}

/* ── Fallback text logo ──────────────────────────────────────── */
.ca-logo-text {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.04em;
  text-decoration: none;
  direction: ltr;
}

/* ── Astra non-product pages: cap WP custom-logo ────────────── */
.custom-logo-link img.custom-logo,
.site-logo-img img.custom-logo {
  max-height: 60px !important;
  height: auto !important;
  width: auto !important;
  max-width: 200px !important;
  background: transparent !important;
}

/* ── Scrolled state ──────────────────────────────────────────── */
.ca-site-header.is-scrolled {
  padding: 10px 32px;
  box-shadow: 0 3px 22px rgba(0,0,0,0.10), 0 1px 0 rgba(212,175,55,0.12);
}
.ca-site-header.is-scrolled .ca-site-logo      { max-height: 44px; max-width: 160px; }
.ca-site-header.is-scrolled .ca-header-tagline { font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════
   MARQUEE KEYFRAMES (mobile)
   translateX(100vw)  → text starts fully off-screen right
   translateX(-100%)  → text ends fully off-screen left
═══════════════════════════════════════════════════════════════ */
@keyframes ca-ticker {
  0%   { transform: translateX(-100%); } /* starts off-screen left (near logo side)   */
  100% { transform: translateX(100%); }  /* exits off the right edge of the wrapper   */
}

/* ── Tablet (769–1024 px) ────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .ca-site-header       { padding: 13px 24px; }
  .ca-site-logo         { max-height: 52px; max-width: 180px; }
  .ca-header-tagline    { font-size: 15px; }
  /* flex: 1 handles sizing — no max-width cap needed */
  .ca-site-header.is-scrolled .ca-site-logo { max-height: 40px; }
}

/* ── Mobile (≤ 768 px) ───────────────────────────────────────── */
@media (max-width: 768px) {
  .ca-site-header { padding: 12px 16px; }
  .ca-site-logo   { max-height: 45px; max-width: 140px; }

  /* Logo stays left; tagline fills the rest and scrolls within it */
  .ca-header-tagline-wrap {
    overflow: hidden;
    justify-content: flex-start; /* marquee animates from right → left inside wrapper */
  }

  .ca-header-tagline {
    font-size: 16px;
    animation: ca-ticker 22s linear infinite;
  }

  .ca-site-header.is-scrolled { padding: 8px 16px; }
  .ca-site-header.is-scrolled .ca-site-logo      { max-height: 36px; }
  .ca-site-header.is-scrolled .ca-header-tagline { font-size: 14px; }
}


/* ═══════════════════════════════════════════════════════════════
   PRESTIGE FOOTER
═══════════════════════════════════════════════════════════════ */
.ca-site-footer {
  background: var(--dark);
  padding: 52px 32px 40px;
  text-align: center;
  direction: rtl;
  border-top: 3px solid var(--gold);
}

.ca-site-footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ── Footer logo — inverted to white on dark background ──────── */
.ca-footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.ca-footer-logo-link:hover { opacity: 0.75; }

.ca-footer-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  background: transparent;

  /* White-on-dark: invert the transparent PNG so it reads on dark bg.
     If the logo already has light-coloured art this makes it visible. */
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}
.ca-footer-logo-link:hover .ca-footer-logo {
  filter: brightness(0) invert(0.85) sepia(1) saturate(2) hue-rotate(5deg);
}

.ca-logo-text--footer {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-lt);
  letter-spacing: 0.04em;
}

.ca-footer-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.ca-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.ca-footer-links a {
  color: var(--sub);
  text-decoration: none;
  transition: color var(--ease);
}
.ca-footer-links a:hover { color: var(--gold-lt); }
.ca-footer-dot { color: var(--muted); }

.ca-footer-copy {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: #5A5A5A;
  margin: 0;
}

.ca-footer-gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  margin-top: 4px;
}

/* ── Mobile footer ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .ca-site-footer { padding: 40px 16px 32px; }
  .ca-footer-logo { height: 44px; max-width: 150px; }
}
