@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Cormorant+Garamond:wght@300;400;600&family=Frank+Ruhl+Libre:wght@300;400;700&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #f5f0e8;
    --surface: #faf7f2;
    --border: #d8d0c0;
    --accent: #2c2416;
    --gold: #9a7c3f;
    --gold-light: #c9a85c;
    --text: #1a1510;
    --muted: #8a8070;
    --error: #8b3a3a;
    --bit: transparent;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 80px;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
  }

  [dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] button,
  [dir="rtl"] .field label, [dir="rtl"] .step-label,
  [dir="rtl"] .p-desc, [dir="rtl"] .p-name, [dir="rtl"] .hero-sub,
  [dir="rtl"] .price-pill .label, [dir="rtl"] .done-sub,
  [dir="rtl"] .summary-line, [dir="rtl"] .slot-header,
  [dir="rtl"] .crop-hint, [dir="rtl"] .progress-text,
  [dir="rtl"] #reset-btn, [dir="rtl"] .add-photo-btn,
  [dir="rtl"] #submit-btn, [dir="rtl"] .lang-toggle,
  [dir="rtl"] .payment-note, [dir="rtl"] .order-ref-label,
  [dir="rtl"] .paid-confirm-btn, [dir="rtl"] .payment-title,
  [dir="rtl"] .payment-sub {
    font-family: 'Frank Ruhl Libre', serif;
  }

  [dir="ltr"] body, [dir="ltr"] input, [dir="ltr"] button,
  [dir="ltr"] .field label, [dir="ltr"] .step-label {
    font-family: 'DM Mono', monospace;
  }

  /* ── Accessibility: focus & motion ── */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  [tabindex]:focus-visible,
  .product-card:focus-visible,
  .about-tab-btn:focus-visible,
  .slot-action-btn:focus-visible,
  .ori-btn:focus-visible,
  .add-photo-btn:focus-visible,
  .preview-btn:focus-visible,
  .preview-close:focus-visible,
  .lang-toggle:focus-visible,
  .masonry-item:focus-visible,
  .lb-prev:focus-visible,
  .lb-next:focus-visible,
  .lb-close:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* ── Lang bar ── */
  .lang-bar {
    width: 100%;
    background: var(--accent);
    display: flex;
    justify-content: flex-end;
    padding: 8px 20px;
  }
  [dir="rtl"] .lang-bar { justify-content: flex-start; }

  .lang-toggle {
    background: transparent;
    border: 1px solid rgba(240,232,208,0.3);
    color: rgba(240,232,208,0.7);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .lang-toggle:hover { border-color: rgba(240,232,208,0.7); color: #f0e8d0; }

  /* ── Hero ── */
  .hero {
    width: 100%;
    background:
      radial-gradient(circle at top left, rgba(201,168,92,0.14), transparent 34%),
      radial-gradient(circle at bottom right, rgba(201,168,92,0.10), transparent 38%),
      linear-gradient(135deg, #2b2317 0%, #3a2f1f 48%, #221b12 100%);
    text-align: center;
    padding: 72px 24px 60px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(245,240,232,0.03), transparent 28%, transparent 72%, rgba(245,240,232,0.03));
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.22) 100%);
    pointer-events: none;
  }
  .hero h1 {

    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    color: #f0e8d0;
    line-height: 1;
    position: relative;
    z-index: 1;
  }
  .hero h1 span { color: var(--gold-light); }
  .hero-sub {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(240,232,208,0.6);
    margin-top: 14px;
    position: relative;
    z-index: 1;
  }
  .hero-desc {
    max-width: 860px;
    margin: 18px auto 0;
    font-size: 0.98rem;
    line-height: 1.9;
    color: rgba(240,232,208,0.92);
    position: relative;
    z-index: 1;
  }
  [dir="rtl"] .hero-desc { text-align: right; }
  [dir="ltr"] .hero-desc { text-align: left; }
  .hero-layout {
    width: min(1080px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 400px) minmax(320px, 520px);
    gap: 54px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  [dir="rtl"] .hero-layout { grid-template-columns: minmax(320px, 520px) minmax(300px, 400px); }
  .hero-copy {
    max-width: 520px;
    margin: 0 auto;
  }
  [dir="rtl"] .hero-copy { text-align: right; }
  [dir="ltr"] .hero-copy { text-align: left; }
  [dir="rtl"] .hero-copy { margin-right: 0; }
  [dir="ltr"] .hero-copy { margin-left: 0; }
  .hero-short {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(240,232,208,0.92);
    position: relative;
    z-index: 1;
  }
  .hero-product-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    justify-self: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    box-shadow: none;
  }
  .hero-product-card img {
    width: 100%;
    aspect-ratio: auto;
    max-height: 520px;
    display: block;
    object-fit: cover;
    border-radius: 22px;
    background: transparent;
    box-shadow: 0 18px 36px rgba(0,0,0,0.18);
  }
  .hero-product-caption {
    display: none;
  }
  .about-strip {

    width: 100%;
    max-width: 1000px;
    margin: 28px auto 0;
    padding: 0 20px;
  }
  .about-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  [dir="rtl"] .about-tabs { flex-direction: row-reverse; }
  .about-tab-btn {
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
  }
  .about-tab-btn.active,
  .about-tab-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
  .about-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 22px 24px;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text);
    display: none;
  }
  .about-panel.active { display: block; }
  [dir="rtl"] .about-panel { text-align: right; }
  [dir="ltr"] .about-panel { text-align: left; }

  /* ── Pricing banner ── */
  .pricing-banner {
    width: 100%;
    background: var(--gold);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .price-pill {
    padding: 14px 32px;
    text-align: center;
    border-left: 1px solid rgba(255,255,255,0.15);
  }
  [dir="rtl"] .price-pill { border-left: none; border-right: 1px solid rgba(255,255,255,0.15); }
  .price-pill:last-child { border-left: none; }
  [dir="rtl"] .price-pill:last-child { border-right: none; }
  .price-pill .amount { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: #fff; }
  .price-pill .label  { font-size: 0.65rem; color: rgba(255,255,255,0.75); margin-top: 3px; }

  /* ── Page body ── */
  .page-body { width: 100%; max-width: 760px; padding: 0 20px; margin-top: 48px; }
  .order-section-title {
    font-family: 'Frank Ruhl Libre','Cormorant Garamond',serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin: 0 0 22px;
    line-height: 1.15;
  }

  .card { background: var(--surface); border: 1px solid var(--border); padding: 36px; margin-bottom: 28px; }

  .step-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  [dir="rtl"] .step-label { letter-spacing: 0; }
  .step-num {
    width: 22px; height: 22px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.62rem; color: var(--gold); flex-shrink: 0;
    font-family: 'DM Mono', monospace !important;
  }
  .step-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  /* ── Fields ── */
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .field-row.single { grid-template-columns: 1fr; }
  .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
  .field:last-child { margin-bottom: 0; }
  .field label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  [dir="rtl"] .field label { text-transform: none; letter-spacing: 0; font-size: 0.82rem; }
  .field input {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    font-family: 'DM Mono', monospace; font-size: 0.85rem;
    padding: 11px 14px; outline: none; transition: border-color 0.2s; width: 100%;
  }
  .field input:focus { border-color: var(--gold); }
  .field input.invalid { border-color: var(--error); }

  /* ── Product cards ── */
  .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
  .product-card {
    border: 1px solid var(--border); padding: 20px;
    cursor: pointer; transition: all 0.2s; position: relative; background: var(--bg);
  }
  .product-card:hover { border-color: var(--gold-light); }
  .product-card.selected { border-color: var(--gold); background: rgba(154,124,63,0.06); }
  .product-card .p-name { font-family: 'Frank Ruhl Libre','Cormorant Garamond',serif; font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
  .product-card .p-desc { font-size: 0.72rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
  .product-card .p-price { font-size: 1.2rem; color: var(--gold); font-family: 'Cormorant Garamond',serif; font-weight: 600; }
  .product-card .check {
    position: absolute; top: 12px;
    width: 18px; height: 18px; border: 1px solid var(--border);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; color: transparent; transition: all 0.2s;
  }
  [dir="ltr"] .product-card .check { right: 12px; }
  [dir="rtl"] .product-card .check { left: 12px; }
  .product-card.selected .check { background: var(--gold); border-color: var(--gold); color: white; }

  /* ── Photo slots ── */
  #photos-section { display: none; }
  #details-section { display: none; }
  .photo-slots { display: flex; flex-direction: column; gap: 24px; }
  .photo-slot { border: 1px solid var(--border); background: var(--bg); overflow: hidden; }
  .slot-header {
    padding: 12px 16px; background: var(--accent); color: #f0e8d0;
    font-size: 0.72rem; letter-spacing: 0.1em;
    display: flex; align-items: center; justify-content: space-between;
  }
  [dir="rtl"] .slot-header { letter-spacing: 0; font-size: 0.85rem; }
  .slot-remove { background: none; border: none; color: rgba(240,232,208,0.45); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0; transition: color 0.2s; }
  .slot-remove:hover { color: #f0e8d0; }
  .slot-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:12px; }
  .slot-action-btn { background: rgba(240,232,208,0.08); color: var(--text); border: 1px solid rgba(240,232,208,0.18); border-radius: 999px; padding: 10px 14px; font-size: 0.82rem; cursor: pointer; }
  .slot-action-btn:hover { background: rgba(240,232,208,0.14); }
  .slot-action-btn.danger { color: #ffd7d7; border-color: rgba(255,120,120,0.28); }
  .slot-body { padding: 20px; }
  .upload-zone {
    border: 1px dashed var(--border); padding: 40px 20px;
    text-align: center; cursor: pointer; position: relative; transition: all 0.2s;
  }
  .upload-zone:hover, .upload-zone.drag-over { border-color: var(--gold); background: rgba(154,124,63,0.04); }
  .upload-zone input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
  .upload-zone .uz-icon { font-size: 1.8rem; opacity: 0.3; margin-bottom: 8px; }
  .upload-zone .uz-text { font-size: 0.75rem; color: var(--muted); }
  .crop-wrap { display: none; }
  .ori-toggle { display: flex; gap: 10px; margin-bottom: 14px; }
  .ori-btn { flex:1; padding:8px; background:var(--bg); border:1px solid var(--border); color:var(--muted); font-size:0.72rem; cursor:pointer; transition:all 0.2s; }
  .ori-btn.active { border-color:var(--gold); color:var(--gold); background:rgba(154,124,63,0.06); }
  .crop-container { touch-action:none; position:relative; overflow:hidden; cursor:grab; user-select:none; background:#1a1510; display:block; width:100%; aspect-ratio:2 / 3; min-height:280px; max-height:none; touch-action:none; -webkit-user-select:none; }
  .crop-container.landscape { aspect-ratio:3 / 2; min-height:0; }
  .crop-container.portrait { aspect-ratio:2 / 3; }
  .crop-container.dragging { cursor:grabbing; }
  .crop-container img { position:absolute; top:0; left:0; display:block; max-width:none; max-height:none; pointer-events:none; transform-origin:0 0; will-change:transform; }
  .crop-box{
    position:absolute;
    border:1.5px solid var(--gold-light);
    box-shadow:0 0 0 9999px rgba(0,0,0,0.6);
    pointer-events:none;
    touch-action:none;
  }
  .cc{ display:none; }
  .crop-hint { font-size:0.68rem; color:var(--muted); margin-top:8px; text-align:center; }
  .zoom-row { display:flex; align-items:center; gap:10px; margin-top:12px; }
  .zoom-row label { font-size:0.74rem; color:var(--muted); min-width:44px; }
  .zoom-row input[type="range"] { flex:1; accent-color: var(--gold); }
  .zoom-val { font-size:0.72rem; color:var(--gold-light); min-width:40px; text-align:end; }
  .copies-note { font-size:0.72rem; color:var(--muted); margin-top:8px; }
  .add-photo-btn { width:100%; padding:14px; background:transparent; border:1px dashed var(--gold); color:var(--gold); font-size:0.75rem; cursor:pointer; transition:all 0.2s; margin-top:4px; }
  .add-photo-btn:hover { background:rgba(154,124,63,0.08); }


  /* ── Shipping options ── */
  .shipping-options {
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:10px;
    align-items:flex-end;
    width:100%;
  }
  .shipping-option {
    display:inline-flex;
    align-items:center;
    gap:12px;
    width:100%;
    max-width:100%;
    font-size:0.9rem;
    color:var(--text);
    line-height:1.4;
    cursor:pointer;
  }
  .shipping-option input[type="radio"] {
    margin:0;
    width:20px;
    height:20px;
    flex:0 0 auto;
  }
  .shipping-option span {
    display:inline-block;
    color:var(--text);
    white-space:normal;
    text-transform:none;
    letter-spacing:0;
  }
  [dir="rtl"] .shipping-options {
    align-items:flex-end;
  }
  [dir="rtl"] .shipping-option {
    flex-direction:row-reverse;
    justify-content:flex-end;
    text-align:right;
  }
  [dir="ltr"] .shipping-options {
    align-items:flex-start;
  }
  [dir="ltr"] .shipping-option {
    flex-direction:row;
    justify-content:flex-start;
    text-align:left;
  }

  /* ── Light temperature ── */
  .light-options {
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:10px;
    width:100%;
  }
  .light-option {
    display:inline-flex;
    align-items:center;
    gap:12px;
    width:100%;
    max-width:100%;
    font-size:0.9rem;
    color:var(--text);
    line-height:1.4;
    cursor:pointer;
  }
  .light-option input[type="radio"] {
    margin:0;
    width:20px;
    height:20px;
    flex:0 0 auto;
  }
  .light-option span { display:inline-block; color:var(--text); }
  [dir="rtl"] .light-options { align-items:flex-end; }
  [dir="rtl"] .light-option { flex-direction:row-reverse; justify-content:flex-end; text-align:right; }
  [dir="ltr"] .light-options { align-items:flex-start; }
  [dir="ltr"] .light-option { flex-direction:row; justify-content:flex-start; text-align:left; }
  .slot-light-controls { margin: 10px 0 4px; padding-top: 10px; border-top: 1px solid rgba(154,124,63,0.15); }
  .slot-light-title { display:block; font-size:0.74rem; color:var(--muted); margin-bottom:8px; }
  .slot-light-options { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
  .slot-light-option { display:flex; align-items:center; gap:8px; cursor:pointer; color:var(--text); font-size:0.78rem; }
  [dir="rtl"] .slot-light-option { flex-direction:row-reverse; }

  /* ── Summary ── */
    .summary-line { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border); font-size:0.8rem; }
  .summary-line:last-child { border-bottom:none; }
  .summary-line.total { font-weight:500; padding-top:14px; }
  .summary-line.total .sum-val { color:var(--gold); font-family:'Cormorant Garamond',serif; font-size:1.3rem; }
  .sum-label { color:var(--muted); }

  /* ── Submit button ── */
  #submit-btn {
    width:100%; max-width:760px; padding:20px;
    background:var(--accent); color:#f0e8d0; border:none;
    font-size:0.85rem; font-weight:500; letter-spacing:0.15em;
    cursor:pointer; transition:all 0.25s; display:none; margin-bottom:24px;
  }
  #submit-btn:hover:not(:disabled) { background:#3d3420; }
  #submit-btn:disabled { opacity:0.4; cursor:not-allowed; }

  /* ── Progress ── */
  #progress-section { display:none; }
  .progress-bar-wrap { height:1px; background:var(--border); margin:16px 0; overflow:hidden; }
  .progress-bar-fill { height:100%; background:var(--gold); width:0%; transition:width 0.15s; }
  .progress-text { font-size:0.72rem; color:var(--muted); text-align:center; }
  .error-msg { font-size:0.75rem; color:var(--error); margin-top:14px; padding:12px 16px; border:1px solid var(--error); background:rgba(139,58,58,0.05); display:none; }


  /* ── Cart ── */
  #cart-section { display:none; }
  .cart-list { display:flex; flex-direction:column; gap:14px; margin-top:14px; }
  .cart-item { border:1px solid var(--border); padding:14px; border-radius:4px; display:grid; grid-template-columns:72px 1fr auto; gap:12px; align-items:center; }
  .cart-thumb { width:72px; height:72px; object-fit:cover; border-radius:3px; border:1px solid var(--border); background:#111; }
  .cart-title { font-size:0.9rem; color:var(--accent); margin-bottom:4px; }
  .cart-meta { font-size:0.72rem; color:var(--muted); line-height:1.5; }
  .cart-actions { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
  .cart-price { font-size:0.9rem; color:var(--gold); white-space:nowrap; }
  .cart-qty-wrap { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
  .cart-qty-label { font-size:0.68rem; color:var(--muted); }
  .cart-qty-controls { display:flex; align-items:center; gap:6px; }
  .cart-qty-btn { width:30px; height:30px; border:1px solid var(--border); background:var(--surface); color:var(--accent); cursor:pointer; border-radius:2px; font-size:1rem; line-height:1; }
  .cart-qty-input { width:52px; height:30px; border:1px solid var(--border); background:#fff; color:var(--accent); text-align:center; border-radius:2px; padding:4px; font-size:0.82rem; }
  .cart-btns { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
  .cart-mini-btn { padding:8px 10px; border:1px solid var(--border); background:transparent; color:var(--accent); font-size:0.7rem; cursor:pointer; border-radius:2px; }
  .cart-mini-btn.danger { color:var(--error); border-color:rgba(139,58,58,0.35); }
  .cart-empty { font-size:0.76rem; color:var(--muted); text-align:center; padding:10px 0 0; }
  .cart-total-box { margin-top:16px; border-top:1px solid var(--border); padding-top:12px; }
  .cart-total-line { display:flex; justify-content:space-between; gap:16px; font-size:0.76rem; color:var(--muted); margin:6px 0; }
  .cart-total-line strong { color:var(--accent); }
  .cart-total-line.grand-total { margin-top:12px; padding-top:12px; border-top:1px solid var(--border); font-size:0.92rem; font-weight:700; color:var(--accent); }
  .cart-total-line.grand-total strong { font-size:1.16rem; font-weight:700; }
  .coupon-box { margin-top:14px; }
  .coupon-label { display:block; font-size:0.74rem; color:var(--muted); margin-bottom:8px; }
  .coupon-input-row { display:flex; gap:10px; align-items:center; }
  .coupon-input-row input { flex:1; min-width:0; }
  .coupon-apply-btn { flex:0 0 auto; border:1px solid var(--accent); background:transparent; color:var(--accent); padding:11px 16px; border-radius:0; font:inherit; cursor:pointer; }
  .coupon-message { margin-top:8px; font-size:0.72rem; color:var(--muted); }
  .coupon-message.error { color:#9a4b4b; }
  [dir="rtl"] .coupon-input-row { flex-direction:row-reverse; }
  @media (max-width:640px) { .coupon-input-row { flex-direction:column; align-items:stretch; } .coupon-apply-btn { width:100%; } }
  #add-to-cart-btn { display:none; width:100%; margin-bottom:14px; }
  @media (max-width: 640px) {
    .cart-item { grid-template-columns:56px 1fr; }
    .cart-actions { grid-column:1 / -1; align-items:stretch; }
    .cart-qty-wrap { align-items:flex-start; }
    .cart-btns { justify-content:flex-start; }
    .cart-thumb { width:56px; height:56px; }
  }

  /* ── Payment screen ── */
  #payment-section { display:none; }

  .payment-title {
    font-family: 'Frank Ruhl Libre','Cormorant Garamond',serif;
    font-size: 1.5rem; font-weight: 400; color: var(--accent);
    margin-bottom: 6px; text-align: center;
  }
  .payment-sub { font-size: 0.75rem; color: var(--muted); text-align: center; margin-bottom: 24px; line-height: 1.6; }

  .payment-amount {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem; font-weight: 600;
    color: var(--gold);
    margin-bottom: 28px;
    line-height: 1;
  }
  .payment-amount small { font-size: 1.2rem; color: var(--muted); display: block; margin-top: 4px; font-family: 'DM Mono', monospace; font-weight: 300; }

  .order-ref-label { font-size: 0.65rem; color: var(--muted); text-align: center; margin-bottom: 20px; }
  .order-ref-label strong { color: var(--accent); font-family: 'DM Mono', monospace; letter-spacing: 0.1em; }

  .pay-methods { display: flex; flex-direction: column; gap: 14px; }

  .bit-btn {
    width: 100%;
    padding: 18px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    border-radius: 2px;
  }
  .bit-btn:hover,
  .bit-btn:focus,
  .bit-btn:active {
    background: transparent;
    color: #3d3420;
    border-color: var(--gold);
    box-shadow: none;
  }
  .bit-btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
  }
  .bit-btn .bit-logo { display:inline-flex; align-items:center; justify-content:center; }
  .bit-btn .bit-logo img { width: 36px; height: 36px; display:block; border-radius: 8px; }
  .bit-btn #lbl-bit { color: #3d3420; }

  .payment-note {
    font-size: 0.68rem; color: var(--muted);
    text-align: center; margin-top: 20px;
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }

  /* ── Done ── */
  #done-section { display:none; text-align:center; padding:10px 0; }
  .done-ornament { font-family:'Cormorant Garamond',serif; font-size:3rem; color:var(--gold); margin-bottom:8px; }
  .done-title { font-family:'Frank Ruhl Libre','Cormorant Garamond',serif; font-size:2rem; font-weight:300; color:var(--accent); margin-bottom:10px; }
  .done-sub { font-size:0.8rem; color:var(--muted); line-height:1.9; }

  #reset-btn { background:none; border:none; color:var(--muted); font-size:0.72rem; cursor:pointer; text-decoration:underline; margin-top:16px; display:none; }
  #reset-btn:hover { color:var(--text); }

  canvas { display:none; }

  /* ══════════════════════════════════════
     MOBILE — full responsive overhaul
     ══════════════════════════════════════ */

  /* Tablet and below */
  @media (max-width: 640px) {
    /* General */
    .card { padding: 22px 16px; margin-bottom: 20px; }
    .page-body { padding: 0 14px; margin-top: 32px; }
    .gallery-section { padding: 0 14px; margin-bottom: 28px; }
    .order-section-title { font-size: clamp(1.6rem, 7vw, 2.1rem); margin-bottom: 18px; }

    /* Hero */
    .hero {
    width: 100%;
    background:
      radial-gradient(circle at top left, rgba(201,168,92,0.14), transparent 34%),
      radial-gradient(circle at bottom right, rgba(201,168,92,0.10), transparent 38%),
      linear-gradient(135deg, #2b2317 0%, #3a2f1f 48%, #221b12 100%);
    text-align: center;
    padding: 72px 24px 60px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(245,240,232,0.03), transparent 28%, transparent 72%, rgba(245,240,232,0.03));
    pointer-events: none;
  }
  .hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.22) 100%);
    pointer-events: none;
  }
  .hero h1 {
 letter-spacing: 0.1em; }
    .pricing-banner { flex-direction: column; }
    .price-pill { border-left: none !important; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 10px; }
    .price-pill:last-child { border-bottom: none; }
    .card { padding: 18px 14px; }
  }

  /* ── Preview modal ── */
  .preview-btn {
    width:100%; margin-top:14px; padding:11px;
    background:transparent; border:1px solid var(--gold);
    color:var(--gold); font-size:0.75rem; cursor:pointer;
    transition:all 0.2s; display:flex; align-items:center; justify-content:center; gap:8px;
  }
  .preview-btn:hover { background:rgba(154,124,63,0.08); }
  .preview-btn .spinner { display:none; width:12px; height:12px; border:2px solid var(--gold);
    border-top-color:transparent; border-radius:50%; animation:spin 0.7s linear infinite; }
  .preview-btn.loading .spinner { display:inline-block; }
  .preview-btn.loading .btn-label { opacity:0.5; }
  @keyframes spin { to { transform:rotate(360deg); } }

  .preview-modal {
    display:none; position:fixed; inset:0; z-index:1000;
    background:rgba(20,16,10,0.92); align-items:center; justify-content:center; padding:20px;
  }
  .preview-modal.open { display:flex; }

  .preview-inner {
    background:var(--surface); max-width:700px; width:100%;
    border:1px solid var(--border); position:relative; overflow:hidden;
  }

  .preview-header {
    background:var(--accent); color:#f0e8d0;
    padding:14px 20px; display:flex; align-items:center; justify-content:space-between;
    font-size:0.72rem; letter-spacing:0.1em;
  }
  [dir="rtl"] .preview-header { letter-spacing:0; font-size:0.85rem; }

  .preview-head-main { display:flex; align-items:center; gap:12px; }
  .preview-light-controls {
    display:flex; align-items:center; gap:10px;
    padding:10px 20px; border-bottom:1px solid var(--border);
    background:rgba(255,255,255,0.02);
  }
  .preview-light-title { font-size:0.68rem; color:var(--muted); letter-spacing:0.08em; }
  [dir="rtl"] .preview-light-title { font-size:0.8rem; letter-spacing:0; }
  .preview-light-options { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .preview-light-option { display:flex; align-items:center; gap:8px; cursor:pointer; color:var(--text); font-size:0.78rem; }
  [dir="rtl"] .preview-light-option { flex-direction:row-reverse; }

  .preview-close {
    background:none; border:none; color:#f0e8d0; font-size:1.4rem;
    cursor:pointer; line-height:1; padding:0; opacity:0.7; transition:opacity 0.2s;
  }
  .preview-close:hover { opacity:1; }

  .preview-panels {
    display:grid; grid-template-columns:1fr 1fr; gap:0;
  }

  .preview-panel { position:relative; }

  .preview-panel canvas { display:block; width:100%; height:auto; }

  .preview-panel-label {
    position:absolute; bottom:0; left:0; right:0;
    padding:8px 12px; text-align:center;
    font-size:0.65rem; letter-spacing:0.15em; text-transform:uppercase;
    background:rgba(20,16,10,0.6); color:rgba(240,232,208,0.85);
  }
  [dir="rtl"] .preview-panel-label { text-transform:none; letter-spacing:0; font-size:0.78rem; }

  .preview-disclaimer {
    padding:14px 20px; font-size:0.65rem; color:var(--muted);
    text-align:center; border-top:1px solid var(--border); line-height:1.6;
  }
  [dir="rtl"] .preview-disclaimer { font-size:0.78rem; }


  /* ── Gallery ── */
  .gallery-section {
    width: 100%;
    max-width: 760px;
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .gallery-title {
    font-family: 'Cormorant Garamond', 'Frank Ruhl Libre', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--accent);
    text-align: center;
    margin-bottom: 6px;
  }

  .gallery-sub {
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
  }
  [dir="rtl"] .gallery-sub { letter-spacing: 0; font-size: 0.82rem; }

  /* Masonry via CSS columns */
  .masonry-grid {
    columns: 2;
    column-gap: 10px;
    margin-bottom: 12px;
  }

  @media(min-width: 560px) { .masonry-grid { columns: 3; } }

  .masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    background: var(--accent);
    cursor: pointer;
  }

  .masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s;
    opacity: 0.9;
  }

  .masonry-item:hover img { transform: scale(1.04); opacity: 1; }

  .masonry-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(transparent, rgba(20,16,10,0.7));
    color: rgba(240,232,208,0.9);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .masonry-item:hover .masonry-caption { opacity: 1; }
  [dir="rtl"] .masonry-caption { text-transform: none; letter-spacing: 0; font-size: 0.75rem; }

  /* Lightbox viewer */
  .lb-viewer {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(10,8,5,0.95);
    align-items: center; justify-content: center;
    padding: 20px;
  }
  .lb-viewer.open { display: flex; }
  .lb-viewer img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
  }
  .lb-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; color: rgba(240,232,208,0.6);
    font-size: 2rem; cursor: pointer; line-height: 1;
    transition: color 0.2s;
  }
  .lb-close:hover { color: #f0e8d0; }
  .lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(44,36,22,0.5); border: 1px solid rgba(240,232,208,0.15);
    color: rgba(240,232,208,0.7); font-size: 1.4rem;
    width: 44px; height: 44px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .lb-prev:hover, .lb-next:hover { background: rgba(44,36,22,0.9); color: #f0e8d0; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }

  .instagram-strip {
    margin-top: 4px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s;
  }
  .instagram-strip:hover { border-color: var(--gold); }
  .instagram-strip img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
  .insta-text { flex: 1; }
  .insta-handle { font-size: 0.85rem; color: var(--accent); font-weight: 500; }
  .insta-sub { font-size: 0.65rem; color: var(--muted); margin-top: 3px; }
  [dir="rtl"] .insta-sub { font-size: 0.78rem; }
  .insta-arrow { color: var(--gold); font-size: 1.2rem; }
  [dir="rtl"] .insta-arrow { transform: scaleX(-1); }


  .site-nav{
    position: sticky;
    top: 0;
    z-index: 20;
    display:flex;
    justify-content:center;
    gap:10px;
    padding:12px 20px;
    background:rgba(245,240,232,0.92);
    backdrop-filter: blur(8px);
    border-bottom:1px solid rgba(216,208,192,0.9);
  }
  .nav-btn{
    appearance:none;
    border:1px solid var(--border);
    background:var(--surface);
    color:var(--text);
    padding:10px 16px;
    font-size:0.78rem;
    letter-spacing:0.08em;
    cursor:pointer;
    transition:all .2s ease;
  }
  .nav-btn:hover,
  .nav-btn.active{
    border-color:var(--gold);
    color:var(--accent);
    box-shadow:0 8px 24px rgba(44,36,22,0.08);
  }
  .page-view{ display:none; }
  .page-view.active{ display:block; }

  .gallery-teaser{
    width:min(1100px,92vw);
    margin:40px auto 0;
    background:var(--surface);
    border:1px solid var(--border);
    padding:26px 24px;
    text-align:center;
  }
  .gallery-teaser h2{
    font-family:'Cormorant Garamond', serif;
    font-size:clamp(1.8rem,4vw,2.6rem);
    font-weight:400;
    letter-spacing:.08em;
    color:var(--accent);
  }
  .gallery-teaser p{
    margin-top:10px;
    color:var(--muted);
  }
  .gallery-teaser-actions{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
  }
  .gallery-page-shell{
    width:min(1180px,92vw);
    margin:34px auto 60px;
  }
  .about-page-shell{
    width:min(1100px,92vw);
    margin:34px auto 60px;
  }
  .about-page-head{
    text-align:center;
    margin-bottom:24px;
  }
  .about-page-head h2{
    font-family:'Cormorant Garamond', serif;
    font-size:clamp(2rem,4vw,3rem);
    font-weight:400;
    letter-spacing:.08em;
    color:var(--accent);
  }
  .about-page-head p{
    margin-top:10px;
    color:var(--muted);
  }
  .about-page-card{
    background:var(--surface);
    border:1px solid var(--border);
    padding:28px;
  }
  .about-page-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,340px);
    gap:28px;
    align-items:start;
  }
  [dir="rtl"] .about-page-grid{
    grid-template-columns:minmax(260px,340px) minmax(0,1fr);
  }
  .about-copy{
    font-size:1rem;
    line-height:1.95;
    color:var(--text);
  }
  [dir="rtl"] .about-copy{ text-align:right; }
  [dir="ltr"] .about-copy{ text-align:left; }
  .about-product-card{
    background:transparent;
    border:0;
    overflow:visible;
  }
  .about-product-card img{
    width:100%;
    aspect-ratio:4 / 5;
    object-fit:cover;
    display:block;
    border-radius:22px;
    box-shadow:0 16px 34px rgba(44,36,22,0.12);
  }
  .about-product-caption{
    display:none;
  }
  .gallery-page-head{
    text-align:center;
    margin-bottom:24px;
  }
  .gallery-page-head h2{
    font-family:'Cormorant Garamond', serif;
    font-size:clamp(2rem,4vw,3rem);
    font-weight:400;
    letter-spacing:.08em;
    color:var(--accent);
  }
  .gallery-page-head p{
    margin-top:10px;
    color:var(--muted);
  }



  .how-it-works-section{
    width:min(1100px,92vw);
    margin:32px auto 0;
    background:var(--surface);
    border:1px solid var(--border);
    padding:30px 24px;
    text-align:center;
  }
  .how-it-works-head h2{
    font-family:'Cormorant Garamond','Frank Ruhl Libre',serif;
    font-size:clamp(1.9rem,4vw,2.8rem);
    font-weight:400;
    letter-spacing:.08em;
    color:var(--accent);
  }
  .how-it-works-head p{
    margin-top:10px;
    color:var(--muted);
    line-height:1.7;
  }
  .how-it-works-grid{
    margin-top:24px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
  }
  .how-step-card{
    background:#fffdf9;
    border:1px solid var(--border);
    padding:22px 18px;
    min-height:168px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
  }
  .how-step-num{
    width:36px;
    height:36px;
    border:1px solid var(--gold);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
    font-family:'DM Mono', monospace;
    font-size:0.82rem;
    flex-shrink:0;
  }
  .how-step-title{
    font-size:0.98rem;
    color:var(--accent);
    line-height:1.45;
    font-weight:700;
  }
  .how-step-desc{
    font-size:0.8rem;
    color:var(--muted);
    line-height:1.75;
    max-width:22ch;
    margin:0 auto;
  }


  .pickup-inline-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.84rem;
    white-space: nowrap;
  }
  .pickup-inline-link:hover {
    text-decoration: underline;
  }
  .site-footer-contact {
    width: 100%;
    max-width: 1160px;
    margin: 56px auto 40px;
    padding: 0 20px;
  }
  .site-footer-inner {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 34px 28px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 14px 32px rgba(44,36,22,0.06);
  }
  .site-footer-inner h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
  }
  .site-footer-sub {
    margin: 0 auto 24px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 520px;
  }
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }
  .contact-item {
    border: 1px solid var(--border);
    background: #fffdf9;
    padding: 16px 18px;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 20px;
    text-align: inherit;
  }
  .contact-item.is-clickable {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }
  .contact-item.is-clickable:hover {
    transform: translateY(-1px);
    border-color: rgba(154,124,63,0.42);
    box-shadow: 0 10px 24px rgba(43,28,14,0.08);
    background: #fffaf2;
  }
  .contact-item.is-clickable:focus-visible {
    outline: 2px solid rgba(154,124,63,0.42);
    outline-offset: 2px;
  }
  .contact-item-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
  }
  .contact-item-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .contact-value,
  .contact-value a {
    color: var(--text);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 1.02rem;
    font-weight: 600;
  }
  .contact-item.email-item .contact-value,
  .contact-item.email-item .contact-value a {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
  }
  .contact-value a:hover {
    text-decoration: underline;
  }
  .contact-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-radius: 12px;
    background: transparent;
  }
  .contact-action-link:hover {
    background: rgba(154,124,63,0.08);
  }
  .contact-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(154,124,63,0.18);
    background: rgba(154,124,63,0.08);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
  }
  [dir="rtl"] .contact-grid {
    direction: rtl;
  }


  @media (max-width: 900px) {
    .how-it-works-grid{
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
  }

  @media (max-width: 560px) {
    .how-it-works-section{
      width:calc(100% - 28px);
      padding:24px 16px;
      margin-top:24px;
    }
    .how-it-works-grid{
      grid-template-columns:1fr;
      gap:12px;
    }
    .how-step-card{
      min-height:0;
      padding:18px 14px;
    }
  }


  @media (max-width: 900px) {
    .hero {
      padding: 34px 14px 0;
    }
    .hero-layout {
      width: 100%;
      grid-template-columns: 1fr !important;
      gap: 18px;
      align-items: center;
      justify-items: center;
    }
    .hero-product-card {
      order: 1;
      width: min(100%, 280px);
      max-width: 280px;
      margin: 0 auto;
      padding: 0;
    }
    .hero-product-card img {
      width: 100%;
      max-height: none;
      aspect-ratio: auto;
    }
    .hero-copy,
    [dir="rtl"] .hero-copy,
    [dir="ltr"] .hero-copy {
      order: 2;
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      padding: 0 8px 12px;
      text-align: center;
    }
    .hero h1 {
      font-size: clamp(2.4rem, 14vw, 3.8rem);
      letter-spacing: 0.08em;
      line-height: 0.95;
    }
    .hero-sub {
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      margin-top: 12px;
    }
    .hero-short {
      margin-top: 14px;
      font-size: 0.96rem;
      line-height: 1.75;
    }
  }

  @media (max-width: 560px) {
    .hero {
      padding: 28px 12px 0;
    }
    .hero-layout {
      gap: 14px;
    }
    .hero-product-card {
      max-width: 240px;
      width: min(100%, 240px);
    }
    .hero h1 {
      font-size: clamp(2rem, 12vw, 3rem);
      letter-spacing: 0.05em;
    }
    .hero-short {
      font-size: 0.9rem;
      line-height: 1.65;
    }
  }

  @media (max-width: 820px) {
    .contact-grid {
      grid-template-columns: 1fr;
    }
    .contact-item {
      text-align: center;
    }
    .contact-item,
    [dir="rtl"] .contact-item {
      flex-direction: column;
      align-items: center;
    }
    .contact-item-main {
      align-items: center;
    }
    .site-footer-contact {
      padding: 0 14px;
      margin: 40px auto 28px;
    }
    .site-footer-inner {
      padding: 28px 18px;
    }
    .about-page-card {
      padding: 20px 16px;
    }
    .about-page-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }
  }
