/* Cullinan Jewelry — mobile-first, RTL-aware */
:root {
  --ink: #3A414C;
  --ink-soft: #5C6470;
  --bg: #fdfcfa;
  --card: #ffffff;
  --gold: #CAA57B;
  --gold-deep: #A0784E;
  --gold-pale: #F3EBDF;
  --line: #E8E2D8;
  --danger: #b3261e;
  --ok: #1e7a46;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { min-height: 60vh; }

/* header */
.site-header { background: var(--ink); color: #F3EBDF; position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; }
.brand-mark { width: 34px; height: 34px; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: 'Amiri', serif; font-size: 1.2rem; }
.nav { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: .9rem; flex-wrap: wrap; }
.nav a:hover { color: var(--gold); }
.lang-toggle { border: 1px solid var(--gold); color: var(--gold); padding: 1px 10px; border-radius: 999px; font-size: .8rem; }
.cart-link { position: relative; }
.cart-badge { background: var(--gold); color: #fff; font-size: .7rem; border-radius: 999px; padding: 0 6px; margin-inline-start: 3px; }
.cart-badge.badge-hidden { display: none; }

/* hero */
.hero { background: #3A414C; color: #F3EBDF; text-align: center; padding: 64px 20px; }
.hero-title { font-family: 'Amiri', 'Cairo', serif; font-size: 2.2rem; color: var(--gold); letter-spacing: .5px; }
.hero-sub { margin: 10px 0 24px; color: #C7BFB2; }

/* gold rate banner */
.rate-banner { background: var(--gold-pale); border-block: 1px solid var(--line); display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; font-size: .95rem; }
.rate-label { color: var(--ink-soft); }
.rate-value { font-weight: 700; color: var(--gold-deep); }

/* sections */
.section { max-width: 1100px; margin: 0 auto; padding: 28px 16px; }
.section.narrow { max-width: 560px; }
.section.center { text-align: center; }
.section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.muted { color: var(--ink-soft); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 10px; text-align: center; font-weight: 600; transition: border-color .15s; }
.cat-card:hover { border-color: var(--gold); color: var(--gold-deep); }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.cat-tab { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .88rem; background: var(--card); }
.cat-tab.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* product grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.product-img img, .img-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; }
.img-placeholder { display: grid; place-items: center; font-size: 2.4rem; background: var(--gold-pale); }
.img-placeholder.big { aspect-ratio: 1; border-radius: 14px; font-size: 4rem; }
.product-info { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 700; font-size: .95rem; }
.product-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--gold-pale); color: var(--gold-deep); font-size: .75rem; border-radius: 999px; padding: 1px 9px; }
.product-price { font-weight: 900; color: var(--gold-deep); margin-top: auto; }

/* buttons */
.btn { display: inline-block; border: none; cursor: pointer; font-family: inherit; font-weight: 700; border-radius: 10px; text-align: center; transition: background .15s; }
.btn-gold { background: var(--gold); color: #fff; padding: 10px 22px; font-size: .95rem; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 13px 28px; font-size: 1.02rem; }
.btn.full { width: 100%; }

/* product page */
.product-page-grid { display: grid; gap: 20px; }
.product-page-img img { border-radius: 14px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-page-info h1 { font-size: 1.4rem; margin-bottom: 8px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .93rem; }
.spec-table td { border-bottom: 1px solid var(--line); padding: 7px 2px; }
.spec-table td:last-child { text-align: end; font-weight: 600; }
.product-page-price { font-size: 1.6rem; font-weight: 900; color: var(--gold-deep); margin: 10px 0 2px; }
.price-note { font-size: .8rem; color: var(--ink-soft); margin: 6px 0 14px; }
.back-link { display: inline-block; margin-top: 14px; color: var(--gold-deep); font-size: .9rem; }
/* auth forms: stack the links under the button with clear spacing */
.form .back-link { display: block; text-align: center; margin-top: 18px; }
.form .btn + .back-link { margin-top: 26px; }

/* cart */
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-row { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; align-items: center; }
.cart-thumb { width: 70px; flex-shrink: 0; }
.cart-thumb img, .cart-thumb .img-placeholder { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; font-size: 1.4rem; }
.cart-details { flex: 1; min-width: 0; }
.cart-name { font-weight: 700; font-size: .92rem; }
.cart-unit { color: var(--gold-deep); font-size: .88rem; }
.cart-qty-form { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .85rem; }
.cart-qty-form input[type=number] { width: 58px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
.cart-line-total { font-weight: 900; white-space: nowrap; }
.cart-summary { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 4px; }

/* cards & forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.form input, .form textarea, .form select {
  width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form h3 { margin: 18px 0 10px; color: var(--gold-deep); font-size: 1rem; }
.check-label { display: flex !important; align-items: center; gap: 8px; }
.check-label input { width: auto !important; }
.form-thumb { width: 90px; border-radius: 8px; margin-bottom: 12px; }
.alert { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c1; }
.alert-info { background: var(--gold-pale); color: var(--gold-deep); border: 1px solid var(--line); }
.link-danger { color: var(--danger); background: none; border: none; cursor: pointer; font-family: inherit; font-size: .85rem; }

/* checkout */
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .93rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 900; font-size: 1.05rem; }
.delivery-options { border: none; margin-bottom: 14px; }
.delivery-options legend { font-weight: 700; margin-bottom: 8px; }
.radio-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer; font-weight: 400 !important; }
.radio-card:has(input:checked) { border-color: var(--gold); background: var(--gold-pale); }

/* order result */
.result-icon { font-size: 3rem; width: 84px; height: 84px; margin: 20px auto; border-radius: 50%; display: grid; place-items: center; background: var(--gold-pale); color: var(--gold-deep); }

/* status chips */
.status-chip { font-size: .78rem; border-radius: 999px; padding: 2px 10px; background: var(--gold-pale); color: var(--gold-deep); white-space: nowrap; }
.st-paid, .st-completed { background: #e6f4ec; color: var(--ok); }
.st-payment_failed, .st-cancelled { background: #fdecea; color: var(--danger); }

/* account */
.order-card { padding: 14px 16px; }

/* admin */
.admin-nav { display: flex; gap: 12px; flex-wrap: wrap; background: var(--gold-pale); padding: 10px 16px; font-size: .9rem; font-weight: 600; justify-content: center; border-bottom: 1px solid var(--line); }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.stat-num { font-size: 1.3rem; font-weight: 900; color: var(--ink); }
.admin-actions { margin: 16px 0; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.admin-table th { background: var(--gold-pale); color: var(--gold-deep); }
.thumb-cell img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); transition: transform .15s; }
.thumb-cell img:hover { transform: scale(2.2); position: relative; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.row-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.link-warn { border: none; background: none; color: var(--gold-deep); cursor: pointer; font-size: .88rem; font-family: inherit; }
.status-form { display: flex; gap: 10px; margin-top: 12px; }
.status-form select { flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; }
.kyc-img { margin-top: 12px; }
.kyc-img img { max-width: 340px; border-radius: 10px; border: 1px solid var(--line); margin-top: 6px; }

/* footer */
.site-footer { background: var(--ink); color: #C7BFB2; margin-top: 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 26px 16px; display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.footer-brand { font-family: 'Cinzel', 'Amiri', serif; color: var(--gold); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }

/* larger screens */
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-page-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 3rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* motion: gold sheen on hero title + gentle entrance animations */
@keyframes sheen { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.hero-title {
  background: linear-gradient(100deg, var(--gold) 40%, #DFC9AC 50%, var(--gold) 60%);
  background-size: 200% 100%; letter-spacing: .18em; text-transform: uppercase;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 3.5s linear infinite;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-content { animation: rise .7s ease-out both; }
.product-card { animation: rise .5s ease-out both; }
.product-card:nth-child(2) { animation-delay: .06s; }
.product-card:nth-child(3) { animation-delay: .12s; }
.product-card:nth-child(4) { animation-delay: .18s; }
.product-card:hover { border-color: var(--gold); transform: translateY(-3px); transition: transform .2s, border-color .2s; }
.rate-value { animation: rise .6s ease-out both; }
.btn-gold { transition: background .15s, transform .1s; }
.btn-gold:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .hero-title { animation: none; color: var(--gold); background: none; -webkit-background-clip: initial; }
  .hero-content, .product-card, .rate-value { animation: none; }
}

/* brand lockup (matches the Cullinan logo) */
.latin-brand { font-family: 'Cinzel', 'Amiri', serif; letter-spacing: .18em; text-transform: uppercase; }
.brand-logo { height: 56px; width: auto; }
.brand-name { font-family: 'Cinzel', 'Amiri', serif; }
.hero-logo { height: 110px; width: auto; margin: 0 auto 14px; display: block; }
.hero-sublabel { letter-spacing: .5em; text-transform: uppercase; font-size: .8rem; color: #C7BFB2; margin: 4px 0 22px; font-family: 'Cinzel', serif; }
.brand-mark { border: none !important; }

/* exact uploaded logo */
.hero-logo-img { max-height: 210px; max-width: 78%; margin: 0 auto 6px; display: block; animation: rise .7s ease-out both; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== live gold price panel ===== */
.gold-panel { max-width: 1100px; margin: 20px auto 8px; padding: 0 16px; }
.gold-panel-head { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 12px; }
.gold-panel-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.gold-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #1e7a46; box-shadow: 0 0 0 0 rgba(30,122,70,.5); animation: goldpulse 1.8s infinite; }
@keyframes goldpulse { 0% { box-shadow: 0 0 0 0 rgba(30,122,70,.5); } 70% { box-shadow: 0 0 0 8px rgba(30,122,70,0); } 100% { box-shadow: 0 0 0 0 rgba(30,122,70,0); } }
@media (prefers-reduced-motion: reduce) { .gold-live-dot { animation: none; } }
.gold-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gold-cell { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.gold-cell-lead { border-color: var(--gold); background: var(--gold-pale); }

.gold-cell .gk { font-size: .8rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .04em; }
.gold-cell .gp { font-size: 1.25rem; font-weight: 900; color: var(--gold-deep); }
.gold-cell .gu { font-size: .72rem; color: var(--ink-soft); }
.gold-cell-lead .gp { color: var(--gold-deep); }
.gold-ounce-box { margin-top: 10px; background: var(--ink); border: 1px solid var(--ink); border-radius: 14px; padding: 12px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.gold-ounce-box .gk { font-size: .85rem; color: #C7BFB2; font-weight: 600; letter-spacing: .04em; }
.gold-ounce-box .gp { font-size: 1.35rem; font-weight: 900; color: var(--gold); }
.gold-ounce-box .gu { font-size: .72rem; color: #9a9284; }
@media (min-width: 720px) {
  .gold-grid { grid-template-columns: repeat(4, 1fr); }
  .gold-cell .gp { font-size: 1.15rem; }
}
.btn-outline { display: inline-block; background: transparent; color: var(--ink); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 22px; font-weight: 600; text-decoration: none; margin-top: 8px; }
.btn-outline:hover { background: var(--gold-pale); }
.link-gold { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.link-gold:hover { text-decoration: underline; }

/* product gallery (product page) */
.product-gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* admin: price preview + image previews */
.price-preview { background: var(--gold-pale); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .95rem; }
.price-preview strong { color: var(--gold-deep); font-size: 1.15rem; }
.img-preview-grid, .img-manage-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.img-preview-grid img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.img-manage { position: relative; width: 110px; text-align: center; }
.img-manage img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.img-manage.is-cover img { border-color: var(--gold); }
.img-manage .cover-tag { position: absolute; top: 4px; inset-inline-start: 4px; background: var(--gold); color: #fff; font-size: .7rem; padding: 2px 6px; border-radius: 6px; }
.img-manage form { margin-top: 4px; }

/* ===== UX batch: toast, mini-cart, wa button, lightbox, steppers, express pay ===== */
.toast-wrap { position: fixed; bottom: 20px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: var(--ink); color: #F3EBDF; padding: 11px 20px; border-radius: 30px; font-size: .92rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); transition: .28s; }
.toast.show { opacity: 1; transform: translateY(0); }

.btn.is-loading { opacity: .65; pointer-events: none; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(30,33,40,.45); opacity: 0; visibility: hidden; transition: .25s; z-index: 190; }
.drawer-backdrop.show { opacity: 1; visibility: visible; }
.mini-cart { position: fixed; top: 0; inset-inline-end: 0; height: 100%; width: 360px; max-width: 88vw; background: var(--bg); box-shadow: -8px 0 30px rgba(0,0,0,.18); transform: translateX(110%); transition: transform .28s; z-index: 195; display: flex; flex-direction: column; }
[dir="rtl"] .mini-cart { transform: translateX(-110%); }
.mini-cart.open { transform: translateX(0); }
.mini-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.mini-cart-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--ink-soft); }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 8px 12px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.mini-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--card); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-info { flex: 1; min-width: 0; }
.mini-name { font-size: .9rem; font-weight: 600; }
.mini-total { font-weight: 700; color: var(--gold-deep); white-space: nowrap; }
.mini-cart-foot { padding: 14px 18px; border-top: 1px solid var(--line); }
.mini-cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.mini-cart-viewall { display: block; text-align: center; margin-top: 8px; color: var(--gold-deep); font-size: .9rem; }

.wa-float { position: fixed; bottom: 18px; inset-inline-end: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 150; }
.wa-float:hover { transform: scale(1.06); transition: .15s; }

.lightbox { position: fixed; inset: 0; background: rgba(20,22,26,.9); display: none; align-items: center; justify-content: center; z-index: 210; cursor: zoom-out; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; }
.gallery-main { position: relative; }
.zoomable { cursor: zoom-in; }
.zoom-hint { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(0,0,0,.5); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; pointer-events: none; }

.qty-stepper { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-stepper button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.qty-stepper .qty-value { min-width: 26px; text-align: center; font-weight: 600; }
.qty-stepper .qty-remove { width: auto; border: none; background: none; font-size: .82rem; margin-inline-start: 6px; }

.express-pay { margin-bottom: 16px; }
.express-pay-label { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; text-align: center; }
.express-pay-buttons { display: flex; gap: 10px; }
.btn-express { flex: 1; height: 48px; border-radius: 12px; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-apple { background: #000; color: #fff; }
.btn-gpay { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.express-or { text-align: center; margin: 14px 0 4px; position: relative; }
.express-or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.express-or span { position: relative; background: var(--card); padding: 0 12px; color: var(--ink-soft); font-size: .82rem; }

/* terms / legal page */
.legal h2 { font-size: 1.05rem; color: var(--ink); margin: 22px 0 6px; }
.legal p, .legal li { line-height: 1.9; color: #3f434b; }
.legal ul { padding-inline-start: 20px; margin: 6px 0; }
.legal li { margin-bottom: 8px; }
.footer-terms { display: inline-block; margin-top: 8px; color: var(--gold); text-decoration: underline; font-size: .85rem; }
.terms-agree { font-size: .85rem; color: var(--ink-soft); text-align: center; margin: 4px 0 10px; }
.terms-agree a { color: var(--gold-deep); text-decoration: underline; }

/* location / google maps */
.location-section { text-align: center; }
.location-address { font-size: 1rem; margin-bottom: 14px; }
.map-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin: 0 auto 16px; max-width: 760px; }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }
.footer-map-link { display: inline-block; margin-top: 6px; color: var(--gold); text-decoration: underline; font-size: .85rem; }

.img-actions { display: flex; gap: 10px; align-items: center; }
.link-gold { border: none; background: none; color: var(--gold-deep); cursor: pointer; font-size: .85rem; }

/* FAQ + guide */
.guide-steps { padding-inline-start: 22px; margin: 10px 0 26px; }
.guide-steps li { margin-bottom: 12px; line-height: 1.7; }
.faq-list { margin: 10px 0; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; padding: 0 16px; }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: inside; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { padding: 12px 0 14px; margin: 0; line-height: 1.8; color: var(--ink-soft); }
.faq-item a { color: var(--gold-deep); text-decoration: underline; }

/* product edit: danger zone */
.danger-zone { max-width: 640px; margin: 26px auto 0; padding: 16px; border: 1px solid #e5b8b5; border-radius: 12px; background: #fdf6f5; }
.btn-danger { background: var(--danger); color: #fff; border: none; border-radius: 10px; padding: 13px 18px; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn-danger:hover { filter: brightness(1.1); }

/* gift card message dropdown (checkout) */
.gift-msg-select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: .95rem; color: var(--ink); font-family: inherit; }

/* PWA install banner */
.pwa-banner { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.12);
  padding: 10px 14px; display: flex; align-items: center; gap: 12px; z-index: 1200; max-width: 92vw; }
.pwa-banner[hidden] { display: none; }
.pwa-x { border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1rem; }

/* admin customer list */
.customer-row { display: block; text-decoration: none; color: inherit; margin-bottom: 10px; transition: border-color .15s; }
.customer-row:hover { border-color: var(--gold); }

/* sell-gold admin requests */
.sell-req { max-width: 620px; margin: 0 auto 14px; padding: 16px; }
.sell-req-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sell-req-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.sell-req-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.sell-req-status { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.sell-req-status select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }

/* shop filter bar */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; }
.filter-search { flex: 1 1 220px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: .95rem; color: var(--ink); }
.filter-select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: .9rem; color: var(--ink); }

/* ring size selector */
.ring-size-label { display: block; margin: 12px 0; font-size: .9rem; color: var(--ink); }
.ring-size-select { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 1rem; color: var(--ink); }
.cart-size { font-size: .82rem; margin: 2px 0; }

/* installment (tabby) */
.installment-box { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 16px; margin: 14px 0 4px; }
.inst-title { font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }
.inst-line { font-size: .95rem; color: var(--ink); }
.inst-line strong { color: var(--gold-deep); }
.tabby-chip { display: inline-block; background: #3eedbf; color: #292929; font-weight: 700; font-size: .85rem; padding: 2px 10px 4px; border-radius: 8px; margin-inline-start: 6px; font-family: Arial, sans-serif; letter-spacing: .01em; }

/* stock / sold-out */
.stock-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.stock-badge.sold-out { background: #f3e3e3; color: #a33; }
.stock-badge.low { background: var(--gold-pale); color: var(--gold-deep); }
.product-card { position: relative; }
.product-card.is-soldout .product-img img { opacity: .55; filter: grayscale(.3); }
.card-soldout { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(58,65,76,.9); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 14px; letter-spacing: .03em; }
.btn:disabled { opacity: .5; cursor: not-allowed; background: var(--line); color: var(--ink-soft); border-color: var(--line); }

/* related products */
.related-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ring size guide */
.size-guide-link { display: inline-block; margin: 4px 0 12px; color: var(--gold-deep); text-decoration: underline; font-size: .9rem; }
.size-table { width: 100%; margin: 14px 0; border-collapse: collapse; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.size-table th { background: var(--gold-pale); color: var(--ink); font-weight: 600; }
