/* ============ Sunny Beauty — Storefront ============ */
:root {
  --noir: #000000;
  --noir-soft: #1d1916;
  --gold: #c9a04e;
  --gold-deep: #a9823a;
  --gold-light: #e8cd8a;
  --gold-grad: linear-gradient(180deg, #f1dc9f 0%, #d6b062 48%, #a9823a 100%);
  --cream: #faf6f0;
  --beige: #efe3d2;
  --beige-deep: #e2d1b9;
  --ink: #2b2420;
  --muted: #7a6c5f;
  --line: #e4d6c2;
  --danger: #a3372b;
  --ok: #3f6b3a;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --f-brand: 'Cinzel', 'Times New Roman', serif;
  --f-head-ar: 'El Messiri', 'Tajawal', sans-serif;
  --f-body: 'Tajawal', system-ui, sans-serif;
  --header-h: 76px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-head-ar); font-weight: 600; line-height: 1.25; margin: 0; }
html[lang="fr"] h1, html[lang="fr"] h2, html[lang="fr"] h3 { font-family: var(--f-brand); letter-spacing: .01em; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--noir); color: var(--gold-light); border-bottom: 1px solid #2a231b; }
.topbar-inner {
  max-width: 1320px; margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
}
.icon-btn { background: none; border: 0; color: inherit; padding: 8px; border-radius: 10px; display: inline-flex; }
.icon-btn:hover { background: rgba(232, 205, 138, .1); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-name {
  font-family: var(--f-brand); font-weight: 700; font-size: 27px; letter-spacing: .06em; white-space: nowrap;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.search {
  flex: 1; display: flex; align-items: center; gap: 10px; background: var(--noir-soft);
  border: 1px solid #3a3027; border-radius: 14px; padding: 0 16px; height: 48px; color: #b9a98f; max-width: 760px; margin-inline: auto;
}
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: #f5ecdc; height: 100%; min-width: 0; }
.search input::placeholder { color: #9b8b74; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-btn {
  background: none; border: 1px solid #4a3d2e; color: var(--gold-light); border-radius: 9px;
  padding: 4px 10px; font-size: 14px; font-weight: 700;
}
.lang-btn:hover { border-color: var(--gold); }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; color: var(--gold-light); }
.cart-btn:hover { background: rgba(232, 205, 138, .1); }
.cart-total { font-weight: 700; white-space: nowrap; }
.cart-count {
  position: absolute; top: 0; inset-inline-start: 22px; background: var(--gold); color: var(--noir);
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}

@media (max-width: 860px) {
  :root { --header-h: auto; }
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 14px 12px; gap: 8px 10px; }
  .brand { flex: 1; justify-content: center; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 22px; }
  .search { order: 5; flex-basis: 100%; height: 44px; }
  .cart-total { display: none; }
}
@media (max-width: 380px) { .brand-name { font-size: 19px; } .lang-btn { padding: 3px 7px; } }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 50; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(330px, 86vw); background: var(--cream);
  z-index: 51; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
}
html[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none !important; }
.drawer-head { background: var(--noir); color: var(--gold-light); display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.drawer-logo { width: 64px; height: 64px; border-radius: 50%; }
.drawer-body { overflow-y: auto; padding: 10px 0 30px; }
.drawer-group { padding: 8px 0; border-bottom: 1px solid var(--line); }
.drawer-group h3 { font-size: 14px; color: var(--muted); padding: 8px 22px 4px; font-weight: 500; font-family: var(--f-body); }
.drawer a, .drawer .drawer-link { display: flex; align-items: center; justify-content: space-between; padding: 11px 22px; font-size: 17px; width: 100%; background: none; border: 0; text-align: start; }
.drawer a:hover, .drawer .drawer-link:hover { background: var(--beige); }
.drawer a.active { color: var(--gold-deep); font-weight: 700; }
.cat-name { font-family: var(--f-brand); font-weight: 600; letter-spacing: .02em; }

/* ---------- Layout ---------- */
main { min-height: 60vh; outline: none; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); }
.section-head a { color: var(--gold-deep); font-weight: 700; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.page-title { padding: 34px 0 6px; }
.page-title h1 { font-size: clamp(26px, 4vw, 38px); }
.page-title p { color: var(--muted); margin: 6px 0 0; }

/* ---------- Category carousel ---------- */
.cats { padding-top: 34px; }
.cats h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 22px; }
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.cat-card {
  position: relative; scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--beige); display: block; transition: filter .35s ease, opacity .35s ease, transform .35s ease;
  filter: blur(2.5px); opacity: .55; transform: scale(.96);
}
.carousel-track.sized .cat-card { aspect-ratio: auto; height: var(--cat-h); }
.is-home main { min-height: 0; }
.is-home .cats { padding-top: 22px; }
.is-home .cats h2 { margin-bottom: 14px; }
.is-home .footer { margin-top: 10px; }
.cat-card.is-active { filter: none; opacity: 1; transform: none; box-shadow: 0 18px 40px -22px rgba(60, 40, 10, .55); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .cat-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, #3a2e22 0%, #000 70%);
}
.cat-card .cat-fallback img { width: 48%; height: auto; opacity: .9; border-radius: 50%; }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65) 100%); }
.cat-card-label {
  position: absolute; inset-inline-start: 22px; bottom: 82px; z-index: 2; color: #fff; font-family: var(--f-brand);
  font-size: 24px; font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.cat-card-btn {
  position: absolute; z-index: 2; inset-inline: 18px; bottom: 18px; height: 50px; border-radius: 12px;
  background: var(--noir); color: var(--gold-light); display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 17px; border: 1px solid rgba(232, 205, 138, .45);
}
.cat-card.is-active .cat-card-btn { background: var(--gold-grad); color: var(--noir); border-color: transparent; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .78); color: #fff; display: grid; place-items: center;
}
.carousel-arrow:hover { background: #000; }
.carousel-arrow.prev { inset-inline-start: -14px; }
.carousel-arrow.next { inset-inline-end: -14px; }
html[dir="rtl"] .carousel-arrow svg { transform: scaleX(-1); }
@media (max-width: 860px) {
  .carousel-track { grid-auto-columns: 78%; gap: 14px; }
  .carousel-arrow.prev { inset-inline-start: 4px; }
  .carousel-arrow.next { inset-inline-end: 4px; }
  .cat-card-label { font-size: 21px; bottom: 76px; }
}

/* ---------- Banner ---------- */
.banner {
  margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--noir); color: #f6eedd;
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 340px;
}
.banner-text { padding: 48px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 16px; position: relative; z-index: 2; }
.banner-text h2 { font-size: clamp(28px, 4vw, 44px); color: var(--gold-light); }
.banner-text p { margin: 0; color: #d9ccb6; max-width: 46ch; font-size: 17px; }
.banner-media { position: relative; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.banner-media.logo-only { display: grid; place-items: center; background: #000; }
.banner-media.logo-only img { position: static; width: min(300px, 70%); height: auto; }
@media (max-width: 760px) {
  .banner { grid-template-columns: 1fr; }
  .banner-media { min-height: 240px; order: -1; }
  .banner-text { padding: 28px 22px 32px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 11px; border: 1px solid transparent; font-weight: 700; font-size: 16px; white-space: nowrap; transition: background .15s, color .15s;
}
.btn-gold { background: var(--gold-grad); color: var(--noir); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-dark { background: var(--noir); color: var(--gold-light); }
.btn-dark:hover { background: #241d16; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--beige); display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card-media .img2 { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card:hover .card-media .img2 { opacity: 1; } }
.badge {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--noir); color: var(--gold-light); font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; z-index: 2;
}
.badge.new { background: var(--cream); color: var(--ink); top: 10px; inset-inline-start: auto; inset-inline-end: 10px; }
.badge.out { background: #6d6258; color: #fff; top: auto; bottom: 10px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 16px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-weight: 700; font-size: 18px; color: var(--ink); }
.price .old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.stars small { color: var(--muted); letter-spacing: 0; }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-actions .btn { height: 40px; font-size: 15px; padding: 0 10px; }
@media (max-width: 560px) {
  .card-body { padding: 10px; }
  .card-title { font-size: 14.5px; }
  .price .now { font-size: 16px; }
  .card-actions .btn { height: 38px; font-size: 14px; }
}
.load-more { display: flex; justify-content: center; padding: 28px 0 10px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, var(--beige) 0%, #f5ecdf 50%, var(--beige) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); aspect-ratio: 3/4; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Category chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: 30px; border: 1px solid var(--beige-deep); background: #fff; font-family: var(--f-brand);
  font-weight: 600; font-size: 15px;
}
.chip.active { background: var(--noir); color: var(--gold-light); border-color: var(--noir); }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px 0; align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; } }
.gallery-main { aspect-ratio: 1/1; background: var(--beige); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button { flex: 0 0 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--beige); }
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 901px) { .product-gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.product-info h1 { font-size: clamp(24px, 3vw, 34px); font-family: var(--f-head-ar); }
.product-info .price { margin: 12px 0; }
.product-info .price .now { font-size: 28px; }
.product-desc { white-space: pre-line; color: #4a3f37; margin: 14px 0 6px; }
.opt-group { margin: 18px 0 6px; }
.opt-label { font-weight: 700; margin-bottom: 8px; display: block; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  border: 1.5px solid var(--beige-deep); background: #fff; border-radius: 10px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
}
.opt .swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.opt.selected { border-color: var(--noir); background: var(--noir); color: var(--gold-light); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--beige-deep); border-radius: 10px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 20px; }
.qty button:hover { background: var(--beige); }
.qty input { width: 48px; text-align: center; border: 0; outline: 0; font-weight: 700; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }

/* ---------- Order form ---------- */
.order-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-top: 20px; }
.order-box > h2 { font-size: 22px; margin-bottom: 4px; }
.order-box > p { color: var(--muted); margin: 0 0 12px; }
.fs { border: 0; margin: 0; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.fs:first-of-type { border-top: 0; }
.fs legend { float: left; width: 100%; font-family: var(--f-head-ar); font-weight: 600; font-size: 18px; padding: 0; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.fs legend + * { clear: both; }
.fs legend small { font-family: var(--f-body); color: var(--muted); font-weight: 400; font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 5px; }
.field label .opt-mark { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; border: 1.5px solid var(--beige-deep); border-radius: 10px; padding: 0 12px; background: var(--cream); outline: 0;
}
.field textarea { height: 84px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: #fff; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field .mode {
  position: relative; margin: 0; font-size: inherit; border: 1.5px solid var(--beige-deep); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--cream);
}
.mode input { position: absolute; opacity: 0; }
.mode strong { font-size: 15.5px; }
.mode span { color: var(--muted); font-size: 14px; }
.mode:has(input:checked) { border-color: var(--noir); background: #fff; box-shadow: inset 0 0 0 1px var(--noir); }
.mode:has(input:disabled) { opacity: .45; }
.mode:has(input:focus-visible) { outline: 2px solid var(--gold); }
.summary { width: 100%; border-collapse: collapse; font-size: 15px; }
.summary td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.summary td:last-child { text-align: end; white-space: nowrap; font-weight: 500; }
.summary .item-meta { display: block; color: var(--muted); font-size: 13.5px; }
.summary tr.sub td { border-bottom: 0; color: var(--muted); }
.summary tr.total td { border-bottom: 0; font-weight: 700; font-size: 19px; color: var(--ink); padding-top: 10px; border-top: 1.5px solid var(--ink); }
.pay { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--noir); border-radius: 12px; padding: 12px 14px; background: #fff; }
.pay input { accent-color: var(--noir); width: 18px; height: 18px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-error { background: #f8e6e2; color: var(--danger); border-radius: 10px; padding: 10px 14px; margin: 12px 0 0; }
.submit-row { margin-top: 18px; }
.submit-row .btn { height: 54px; font-size: 18px; }

/* ---------- Reviews ---------- */
.reviews { padding: 30px 0 10px; border-top: 1px solid var(--line); margin-top: 20px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.review-head strong { font-weight: 700; }
.review p { margin: 6px 0 0; color: #4a3f37; white-space: pre-line; }
.review-form { background: var(--beige); border-radius: var(--radius); padding: 18px; margin-top: 18px; max-width: 640px; }
.review-form h3 { font-size: 19px; margin-bottom: 10px; }
.star-input { display: flex; gap: 4px; direction: ltr; justify-content: flex-end; }
html[dir="ltr"] .star-input { justify-content: flex-start; }
.star-input button { background: none; border: 0; font-size: 28px; line-height: 1; color: #cdbb9d; padding: 2px; }
.star-input button.on { color: var(--gold); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; padding: 20px 0 40px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px 18px; }
.cart-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img, .cart-item .ph { width: 82px; height: 82px; border-radius: 10px; object-fit: cover; background: var(--beige); }
.cart-item h3 { font-family: var(--f-body); font-size: 16px; font-weight: 500; }
.cart-item .meta { color: var(--muted); font-size: 14px; }
.cart-item .qty button { width: 34px; height: 34px; font-size: 18px; }
.cart-item .qty input { width: 36px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.link-btn { background: none; border: 0; color: var(--danger); font-size: 14px; padding: 2px; text-decoration: underline; }

/* ---------- Info pages ---------- */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.info-strip > div { background: var(--beige); border-radius: var(--radius); padding: 20px 22px; }
.info-strip h3 { font-size: 18px; margin-bottom: 4px; }
.info-strip p { margin: 0; color: #5a4d42; font-size: 15px; }
@media (max-width: 760px) { .info-strip { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.ship-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.ship-table th { background: var(--noir); color: var(--gold-light); font-weight: 700; padding: 12px; text-align: start; position: sticky; top: 0; }
.ship-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ship-table tr:nth-child(even) td { background: #fcf9f4; }
.ship-table td.num, .ship-table th.num { text-align: center; white-space: nowrap; }
.ship-search { max-width: 360px; margin: 0 0 14px; }
.note-box { background: var(--beige); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; color: #4f4338; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding: 20px 0 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.contact-item:hover { border-color: var(--gold); }
.contact-item .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--noir); color: var(--gold-light); display: grid; place-items: center; flex-shrink: 0; }
.contact-item strong { display: block; }
.contact-item span { color: var(--muted); direction: ltr; unicode-bidi: plaintext; word-break: break-all; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--beige); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Thank you ---------- */
.thanks { max-width: 560px; margin: 50px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 26px; }
.thanks .check { width: 70px; height: 70px; border-radius: 50%; background: var(--noir); color: var(--gold-light); display: grid; place-items: center; margin: 0 auto 16px; }
.thanks h1 { font-size: 28px; margin-bottom: 8px; }
.thanks .num { font-family: var(--f-brand); font-size: 24px; font-weight: 700; color: var(--gold-deep); margin: 12px 0; letter-spacing: .05em; }

/* ---------- Footer ---------- */
.footer { background: var(--noir); color: #cdbfa6; margin-top: 60px; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 40px 20px 24px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer h3 { color: var(--gold-light); font-size: 17px; margin-bottom: 10px; }
.footer a:hover { color: var(--gold-light); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand img { width: 64px; height: 64px; border-radius: 50%; }
.footer-brand .brand-name { font-size: 24px; }
.footer-bottom { border-top: 1px solid #2a231b; text-align: center; padding: 14px; font-size: 14px; color: #8f806a; }
.ltr { direction: ltr; unicode-bidi: plaintext; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Toast & Modal ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--noir); color: var(--gold-light);
  padding: 12px 20px; border-radius: 12px; z-index: 70; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 90vw; text-align: center;
}
.toast a { text-decoration: underline; margin-inline-start: 8px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--cream); border-radius: var(--radius-lg); width: min(440px, 100%); max-height: 90vh; overflow-y: auto; padding: 22px; }
.modal-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.modal-head img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.modal-head h3 { font-family: var(--f-body); font-size: 17px; font-weight: 700; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
