/* ============================================================
   Honaregharn — Wall Preview
   Hero + gallery cards are DELIBERATELY always-dark (a fixed
   "gallery" mood, independent of the site's light/dark toggle) —
   so they use literal hex, NOT var(--ink-900), which the site's
   dark theme flips to near-white for text-contrast purposes.
   Everything else (panel, buttons, hints) adapts to the site's
   theme using the same variables + [data-theme="dark"] overrides
   the rest of the site already uses for .product-card etc.
   ============================================================ */

.wp-hero, .wp-hero *,
.wp-gallery-grid, .wp-gallery-grid *,
.wp-builder, .wp-builder * {
  box-sizing: border-box;
}

/* ---------- Hero (always dark, by design) ---------- */
.wp-hero {
  background-color: #ee5522;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3CradialGradient id='a' gradientUnits='objectBoundingBox'%3E%3Cstop offset='0' stop-color='%23FB3'/%3E%3Cstop offset='1' stop-color='%23ee5522'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='750' x2='1550' y2='750'%3E%3Cstop offset='0' stop-color='%23f7882b'/%3E%3Cstop offset='1' stop-color='%23ee5522'/%3E%3C/linearGradient%3E%3Cpath id='s' fill='url(%23b)' d='M1549.2 51.6c-5.4 99.1-20.2 197.6-44.2 293.6c-24.1 96-57.4 189.4-99.3 278.6c-41.9 89.2-92.4 174.1-150.3 253.3c-58 79.2-123.4 152.6-195.1 219c-71.7 66.4-149.6 125.8-232.2 177.2c-82.7 51.4-170.1 94.7-260.7 129.1c-90.6 34.4-184.4 60-279.5 76.3C192.6 1495 96.1 1502 0 1500c96.1-2.1 191.8-13.3 285.4-33.6c93.6-20.2 185-49.5 272.5-87.2c87.6-37.7 171.3-83.8 249.6-137.3c78.4-53.5 151.5-114.5 217.9-181.7c66.5-67.2 126.4-140.7 178.6-218.9c52.3-78.3 96.9-161.4 133-247.9c36.1-86.5 63.8-176.2 82.6-267.6c18.8-91.4 28.6-184.4 29.6-277.4c0.3-27.6 23.2-48.7 50.8-48.4s49.5 21.8 49.2 49.5c0 0.7 0 1.3-0.1 2L1549.2 51.6z'/%3E%3Cg id='g'%3E%3Cuse href='%23s' transform='scale(0.12) rotate(60)'/%3E%3Cuse href='%23s' transform='scale(0.2) rotate(10)'/%3E%3Cuse href='%23s' transform='scale(0.25) rotate(40)'/%3E%3Cuse href='%23s' transform='scale(0.3) rotate(-20)'/%3E%3Cuse href='%23s' transform='scale(0.4) rotate(-30)'/%3E%3Cuse href='%23s' transform='scale(0.5) rotate(20)'/%3E%3Cuse href='%23s' transform='scale(0.6) rotate(60)'/%3E%3Cuse href='%23s' transform='scale(0.7) rotate(10)'/%3E%3Cuse href='%23s' transform='scale(0.835) rotate(-40)'/%3E%3Cuse href='%23s' transform='scale(0.9) rotate(40)'/%3E%3Cuse href='%23s' transform='scale(1.05) rotate(25)'/%3E%3Cuse href='%23s' transform='scale(1.2) rotate(8)'/%3E%3Cuse href='%23s' transform='scale(1.333) rotate(-60)'/%3E%3Cuse href='%23s' transform='scale(1.45) rotate(-30)'/%3E%3Cuse href='%23s' transform='scale(1.6) rotate(10)'/%3E%3C/g%3E%3C/defs%3E%3Cg transform='translate(1520 0)'%3E%3Cg transform='translate(0 750)'%3E%3Ccircle fill='url(%23a)' r='3000'/%3E%3Cg opacity='0.5'%3E%3Ccircle fill='url(%23a)' r='2000'/%3E%3Ccircle fill='url(%23a)' r='1800'/%3E%3Ccircle fill='url(%23a)' r='1700'/%3E%3Ccircle fill='url(%23a)' r='1651'/%3E%3Ccircle fill='url(%23a)' r='1450'/%3E%3Ccircle fill='url(%23a)' r='1250'/%3E%3Ccircle fill='url(%23a)' r='1175'/%3E%3Ccircle fill='url(%23a)' r='900'/%3E%3Ccircle fill='url(%23a)' r='750'/%3E%3Ccircle fill='url(%23a)' r='500'/%3E%3Ccircle fill='url(%23a)' r='380'/%3E%3Ccircle fill='url(%23a)' r='250'/%3E%3C/g%3E%3Cg transform='rotate(-360 0 0)'%3E%3Cuse href='%23g' transform='rotate(10)'/%3E%3Cuse href='%23g' transform='rotate(120)'/%3E%3Cuse href='%23g' transform='rotate(240)'/%3E%3C/g%3E%3Ccircle fill-opacity='0.1' fill='url(%23a)' r='3000'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
background-attachment: fixed;
background-size: cover;color: #f5f1e8;
  padding: 72px 24px 56px;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: var(--radius-lg);
}
.wp-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 156, 61, .35);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: 20px;
}
.wp-hero h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  color: #f5f1e8;
}
.wp-hero p {
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.wp-rule {
  width: 56px;
  height: 2px;
  background: var(--brand-500);
  margin: 26px auto 0;
  border-radius: var(--radius-pill);
}

/* ---------- Gallery grid (menu landing page) ---------- */
.wp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--container);
  margin: 48px auto;
  padding: 0 24px;
}
/* Always-dark card, same reasoning as the hero. */
.wp-gallery-card {
  background: #17171c;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wp-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.wp-gallery-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  opacity: .92;
}
.wp-gallery-card .wp-card-body {
  padding: 18px 20px 22px;
}
.wp-gallery-card h3 {
  color: #f5f1e8;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
}
.wp-gallery-card .wp-btn {
  width: 100%;
}

/* ---------- Shared luxurious button (brand-colored, theme-stable) ---------- */
.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-400);
  border: 1px solid var(--brand-500);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s ease, color .2s ease;
  text-decoration: none;
}
.wp-btn:hover {
  background: var(--brand-500);
  color: #fff;
}

/* ---------- Builder page (theme-aware — adapts to light/dark) ---------- */
.wp-builder {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 72px;
  display: flex;
  gap: 141px;
    align-items: flex-start;
  flex-wrap: wrap;
}
.wp-stage-col {
  flex: 1 1 560px;
  position: relative; /* anchors the "in cart" badge */
}
.wp-stage-frame {
  background: repeating-conic-gradient(var(--ink-100) 0% 25%, var(--ink-50) 0% 50%) 50% / 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow);
}
.wp-stage-frame canvas { width: 100%; height: auto; display: block; }

.wp-panel {
  flex: 0 0 300px;
  background: var(--ink-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
}
.wp-panel .wp-product-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.wp-panel .wp-product-price {
  color: var(--brand-600);
  font-weight: 600;
  margin: 0 0 24px;
}
.wp-field { margin-bottom: 22px; }
.wp-field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-400);
  margin-bottom: 10px;
}
.wp-upload-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 12px;
  background: var(--ink-100);
  border: 1px dashed var(--ink-400);
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease;
}
.wp-upload-btn:hover { background: var(--ink-200); }
.wp-builder input[type=file] { display: none; }

.wp-size-options {
  display: flex;
  gap: 8px;
}
.wp-size-btn {
  flex: 1;
  position: relative;
  padding: 10px 6px;
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
}
.wp-size-btn .wp-size-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-900);
}
.wp-size-btn .wp-size-dims {
  display: block;
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 3px;
}
.wp-size-btn.active {
  border-color: var(--brand-500);
  background: var(--brand-50);
}
.wp-size-btn.active .wp-size-label { color: var(--brand-700); }

/* small checkmark dot shown on a size already sitting in the cart */
.wp-size-btn .wp-in-cart-dot {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success-fg, #137a3d);
  color: #fff;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.wp-size-btn.in-cart .wp-in-cart-dot { display: flex; }

.wp-hint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-400);
  margin: 14px 0 0;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--brand-500);
  font-style: italic;
}

.wp-add-to-cart {
  margin-top: 24px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--brand-500);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.wp-add-to-cart:hover { background: var(--brand-600); }
.wp-add-to-cart:disabled {
  background: var(--ink-200);
  color: var(--ink-400);
  cursor: not-allowed;
}
.wp-add-to-cart.already-added {
  background: var(--success-fg, #137a3d);
}

/* ---------- CTA button on the product page (brand-colored, theme-stable) ---------- */
.wp-product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 20px;
  border: 1px solid var(--brand-500);
  border-radius: var(--radius-pill);
  color: var(--brand-600);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.wp-product-cta:hover {
  background: var(--brand-500);
  color: #fff;
}

/* ---------- Floating "already in your cart" pill ----------
   Stays visible while scrolling the builder page — position:fixed,
   not absolute, so it tracks the viewport regardless of scroll depth. */
.wp-cart-pill {
  position: fixed;
  top: 96px;
  inset-inline-end: 24px;
  z-index: 250;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--success-bg, #e7f8ee);
  color: var(--success-fg, #137a3d);
  border: 1px solid var(--success-fg, #137a3d);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
.wp-cart-pill.visible { display: flex; }
.wp-cart-pill a { color: inherit; text-decoration: underline; }

/* ---------------- Dark theme adjustments ----------------
   Mirrors the pattern the rest of the site already uses for
   .product-card / .auth-card / .toast etc. Hero and gallery cards
   need NO override here — they're intentionally always-dark. */
[data-theme="dark"] .wp-panel {
  background: var(--ink-100);
  border-color: var(--ink-200);
}
[data-theme="dark"] .wp-upload-btn {
  background: var(--ink-50);
}
[data-theme="dark"] .wp-upload-btn:hover {
  background: var(--ink-100);
}
[data-theme="dark"] .wp-size-btn {
  background: var(--ink-50);
}
[data-theme="dark"] .wp-stage-frame {
  border-color: var(--ink-200);
}

/* ---------------- Responsive ---------------- */

/* Tablet */
@media (max-width: 900px) {
  .wp-hero { padding: 56px 20px 44px; }
  .wp-hero h1 { font-size: 28px; }
  .wp-builder { gap: 24px; padding: 32px 20px 56px; }
  .wp-panel { flex: 1 1 100%; order: 2; }
  .wp-stage-col { flex: 1 1 100%; order: 1; }
  .wp-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
  .wp-cart-pill { top: auto; bottom: 20px; inset-inline-end: 16px; inset-inline-start: 16px; justify-content: center; }
}

/* Mobile */
@media (max-width: 560px) {
  .wp-hero { padding: 40px 16px 32px; }
  .wp-eyebrow { font-size: 11px; padding: 5px 14px; }
  .wp-hero h1 { font-size: 22px; }
  .wp-hero p { font-size: 14px; }
  .wp-builder { padding: 24px 16px 48px; gap: 20px; }
  .wp-panel { padding: 20px 16px; }
  .wp-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; margin: 32px auto; }
  .wp-gallery-card h3 { font-size: 14px; margin-bottom: 10px; }
  .wp-size-options { flex-wrap: wrap; }
  .wp-size-btn { flex: 1 1 30%; }
  .wp-product-cta { width: 100%; justify-content: center; margin-top: 12px; }
}

@media (max-width: 380px) {
  .wp-gallery-grid { grid-template-columns: 1fr; }
}
