/* MadeMine — customer site. White main colour, burgundy secondary. */
:root {
  --burg: #6E1E2B; --burg-d: #561722; --burg-l: #F5E4E7; --burg-xl: #FBF2F3;
  --brown: #4A2C1D; --cream: #F7F1EA; --cream-d: #EFE6DA;
  --ink: #2A211D; --muted: #6B5E57; --line: #E7DED4; --line-d: #DCD0C3;
  --green: #146C34; --green-l: #E3F3E8; --amber: #8A5A00; --amber-l: #FDF0D5; --red: #9F1F1F; --red-l: #FBE4E4;
  --blue: #1D4F8C; --blue-l: #E2EDFA; --gold: #C9A227;
  --r: 14px; --shadow: 0 10px 30px rgba(42, 33, 29, .10);
  --sans: Poppins, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: Lora, Georgia, serif;
  --arabic: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; font-size: 15px; line-height: 1.55; }
[dir="rtl"] body, .ar, [lang="ar"] { font-family: var(--arabic); }
[dir="rtl"] .h1, [dir="rtl"] .h2 { font-family: var(--arabic); font-weight: 700; }
img, svg { max-width: 100%; }
a { color: var(--burg); text-decoration: none; }
a:hover { color: var(--burg-d); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pad { padding-top: 32px; padding-bottom: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-l { color: #B9ADA5; font-size: 13px; }
.h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -.2px; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 3vw, 30px); margin: 0; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--burg); display: flex; gap: 10px; align-items: center; }
[dir="rtl"] .kicker { letter-spacing: 0; }
.ic { flex: none; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons & controls */
.btn, .btn-o, .btn-g { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px;
  padding: 12px 22px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent; line-height: 1.2;
  min-height: 46px; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn { background: var(--burg); color: #fff; }
.btn:hover { background: var(--burg-d); color: #fff; }
.btn-o { background: #fff; color: var(--burg); border-color: var(--burg); }
.btn-o:hover { background: var(--burg-xl); }
.btn-g { background: var(--cream); color: var(--ink); font-weight: 500; }
.btn-g:hover { background: var(--cream-d); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { background: #CFC3B8; border-color: #CFC3B8; cursor: not-allowed; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-d); border-radius: 999px; padding: 8px 15px;
  font-size: 14px; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; min-height: 40px; }
.chip:hover { border-color: var(--burg); color: var(--burg); }
.chip.on { background: var(--burg); color: #fff; border-color: var(--burg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.p-green { background: var(--green-l); color: var(--green); } .p-amber { background: var(--amber-l); color: var(--amber); }
.p-red { background: var(--red-l); color: var(--red); } .p-burg { background: var(--burg-l); color: var(--burg); }
.p-grey { background: #EFEAE5; color: #5A4F48; } .p-blue { background: var(--blue-l); color: var(--blue); }
.card { background: #fff; border: 1px solid #EDE4DA; border-radius: 16px; }
.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.inp, .sel, .ta { width: 100%; border: 1px solid var(--line-d); border-radius: 10px; padding: 11px 14px; font-size: 15px; background: #fff; min-height: 46px; }
.inp:focus, .sel:focus, .ta:focus { outline: 2px solid var(--burg); outline-offset: 0; border-color: var(--burg); }
.ta { min-height: 90px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; min-width: 0; }
.err { color: var(--red); font-size: 13px; margin-top: 4px; }
.alert { border-radius: 12px; padding: 12px 16px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: var(--green-l); color: var(--green); } .alert-warn { background: var(--amber-l); color: #6B4A00; }
.alert-err { background: var(--red-l); color: var(--red); } .alert-info { background: var(--burg-xl); color: var(--burg); border: 1px solid #EFD3D8; }
:focus-visible { outline: 2px solid var(--burg); outline-offset: 2px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #EFE7DE; }
.hdr-in { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a { color: var(--ink); padding: 6px 0; }
.nav a.on, .nav a:hover { color: var(--burg); box-shadow: inset 0 -2px 0 var(--burg); }
.hico { display: flex; align-items: center; gap: 16px; }
.hlink { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; position: relative; background: none; border: 0; padding: 6px; cursor: pointer; }
.hlink.on, .hlink:hover { color: var(--burg); }
.badge { position: absolute; top: -2px; inset-inline-end: -4px; background: var(--burg); color: #fff; font-size: 10.5px; border-radius: 999px; padding: 0 5px; line-height: 16px; }
.cnt { padding: 0 7px; }
.lang { display: flex; border: 1px solid #E2D7CB; border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang a { padding: 5px 12px; color: var(--ink); }
.lang a.on { background: var(--burg); color: #fff; }
.menu-btn { display: none; }

/* language popup */
.lang-pop { position: fixed; inset: 0; z-index: 100; background: rgba(42, 33, 29, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
.lang-card { background: #fff; border-radius: 22px; padding: 36px 40px; width: min(520px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; }
.lang-card h2 { font-family: var(--serif); font-size: 26px; margin: 6px 0 0; }
.lang-card p { font-size: 22px; font-weight: 700; color: var(--muted); margin: 0; }
.lang-opts { display: flex; gap: 14px; width: 100%; margin-top: 12px; }
.lang-opt { flex: 1; border: 2px solid var(--burg); border-radius: 14px; padding: 16px; color: var(--burg); display: flex; flex-direction: column; }
.lang-opt b { font-size: 22px; } .lang-opt span { font-size: 12.5px; }
.lang-opt.on, .lang-opt:hover { background: var(--burg); color: #fff; }
.lang-rem { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.lang-rem input { accent-color: var(--burg); width: 17px; height: 17px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* hero */
.hero { position: relative; background: var(--cream); overflow: hidden; min-height: 500px; display: flex; align-items: center; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-img { object-fit: cover; object-position: center right; }
[dir="rtl"] .hero .hero-img { transform: scaleX(-1); }
.hero-in { position: relative; z-index: 2; padding: 56px 24px; width: 100%; }
.hero-txt { max-width: 560px; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; margin: 14px 0 10px; }
[dir="rtl"] .hero h1 { font-family: var(--arabic); line-height: 1.25; }
.hero p { font-size: 17px; color: var(--muted); margin: 0 0 24px; }
.hero .alt { font-family: var(--arabic); font-size: 22px; font-weight: 700; color: var(--burg); margin-bottom: 10px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections */
.sec { padding: 36px 0 8px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.pgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pcard { padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.pcard:hover { border-color: var(--burg); box-shadow: var(--shadow); color: var(--ink); }
.pcard b { font-size: 15px; }
.pcard .pr { color: var(--burg); font-weight: 600; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 22px; display: flex; gap: 14px; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--burg-l); color: var(--burg); font: 700 18px var(--serif); display: flex; align-items: center; justify-content: center; flex: none; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.offer-band { background: var(--burg); color: #fff; border-radius: 18px; padding: 24px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.offer-band .k { font-size: 12px; letter-spacing: 2px; opacity: .85; text-transform: uppercase; }
.offer-band .t { font: 700 24px var(--serif); }
[dir="rtl"] .offer-band .t { font-family: var(--arabic); }
.offer-band .btn { background: #fff; color: var(--burg); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tcard { overflow: hidden; display: flex; flex-direction: column; }
.tcard .th { height: 180px; background: var(--cream); display: flex; align-items: center; justify-content: center; padding: 14px; }
.tcard .th img, .tcard .th canvas { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.08); background: #fff; }
.tcard .tb { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tcard .tb b { font-size: 14px; display: block; }
.tcard .tb span { font-size: 12px; color: var(--muted); }

/* product page */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 28px 0 48px; align-items: start; }
.prod-vis { background: var(--cream); border-radius: 22px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.opt { border: 1px solid var(--line-d); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; background: #fff; position: relative; display: block; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt b { display: block; font-size: 16px; }
.opt span { font-size: 12px; color: var(--muted); }
.opt:has(input:checked) { border: 2px solid var(--burg); background: var(--burg-xl); padding: 11px; }
.opt:has(input:focus-visible) { outline: 2px solid var(--burg); outline-offset: 2px; }
.opt-row { display: flex; align-items: center; gap: 12px; text-align: start; padding: 12px 14px; }
.opt-row .rad { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--burg); flex: none; display: flex; align-items: center; justify-content: center; }
.opt-row:has(input:checked) .rad::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--burg); }
.opt-row .grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.big-price { font-size: 26px; font-weight: 700; }

/* price page */
.pp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; padding: 28px 0 48px; align-items: start; }
.pp-vis { background: var(--cream); border-radius: 22px; padding: 30px; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.pp-vis img { max-height: 340px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.12); background: #fff; }
.qty-in { display: flex; align-items: center; gap: 8px; }
.qty-in .inp { width: 130px; }
.bd { padding: 6px 20px 16px; }
.bd-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F1EAE2; font-size: 14px; }
.bd-row .n { color: var(--muted); font-size: 12px; }
.bd-row.good { color: var(--green); }
.bd-tot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-top: 12px; flex-wrap: wrap; }
.bd-tot .tv { font-size: 32px; font-weight: 700; color: var(--burg); }
.strike { text-decoration: line-through; color: #8A7D75; }

/* my designs */
.dtable { width: 100%; border-collapse: collapse; }
.dtable th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBF8F5; }
.dtable td { padding: 12px 14px; border-bottom: 1px solid #F1EAE2; vertical-align: middle; }
.dthumb { width: 72px; height: 72px; background: var(--cream); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dthumb img { max-width: 64px; max-height: 64px; background: #fff; }
.acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* checkout */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; padding: 24px 0 48px; align-items: start; }
.co-sec { padding: 20px 22px; margin-bottom: 16px; }
.co-sec h2 { font-size: 17px; margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.co-sec h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--burg); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.citem { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F1EAE2; }
.citem:last-child { border-bottom: 0; }
.citem .grow { flex: 1; min-width: 0; }
.qbox { display: flex; align-items: center; border: 1px solid var(--line-d); border-radius: 10px; overflow: hidden; }
.qbox button { background: #fff; border: 0; width: 34px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qbox input { width: 72px; border: 0; text-align: center; height: 36px; border-inline: 1px solid var(--line-d); }
.phone-in { display: flex; }
.phone-in .cc { display: flex; align-items: center; padding: 0 12px; background: #EFEAE5; border: 1px solid var(--line-d); border-inline-end: 0; border-radius: 10px 0 0 10px; font-weight: 600; font-size: 14px; }
[dir="rtl"] .phone-in .cc { border-radius: 0 10px 10px 0; }
.phone-in .inp { border-radius: 0 10px 10px 0; }
[dir="rtl"] .phone-in .inp { border-radius: 10px 0 0 10px; direction: ltr; text-align: right; }
.map { height: 300px; border-radius: 12px; border: 1px solid var(--line); background: #E6EEE8; position: relative; z-index: 1; }
.map-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); font-size: 14px; }
.pm { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pm .opt { display: flex; align-items: center; gap: 10px; text-align: start; padding: 14px; }
.sum { position: sticky; top: 94px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; }
.sum-row span:first-child { color: var(--muted); }
.sum-tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.sum-tot b:last-child { font-size: 26px; color: var(--burg); }
.coupon-row { display: flex; gap: 8px; }

/* order tracking */
.track { display: flex; padding: 26px 20px; overflow-x: auto; }
.tstep { flex: 1; min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.tstep .dot { width: 36px; height: 36px; border-radius: 50%; background: #D6CCC2; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.tstep.done .dot { background: var(--burg); }
.tstep:not(:first-child)::before { content: ""; position: absolute; top: 17px; inset-inline-end: 50%; width: 100%; height: 3px; background: #D6CCC2; }
.tstep.done:not(:first-child)::before { background: var(--burg); }
.tstep b { font-size: 14px; }
.tstep span { font-size: 12px; color: var(--muted); }

/* footer */
.ftr { background: var(--ink); color: #E9DFD5; margin-top: 56px; }
.ftr-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 40px 24px 24px; font-size: 14px; }
.ftr-in > div { display: flex; flex-direction: column; gap: 8px; }
.ftr b { color: #fff; }
.ftr a { color: #E9DFD5; display: inline-flex; gap: 6px; align-items: center; }
.ftr a:hover { color: #fff; }
.ftr p { opacity: .75; margin: 6px 0 0; }
.ftr-copy { border-top: 1px solid #3E332D; padding: 14px 24px; font-size: 12.5px; color: #A79A91; }

/* modal (shared) */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(42, 33, 29, .55); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; animation: fade .15s; }
.modal-card { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 24px; position: relative; }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14px; z-index: 200; box-shadow: var(--shadow); max-width: 90vw; }

/* responsive */
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 74px; inset-inline: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px 0; }
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .prod, .pp, .co { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sum { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero picture, .hero .hero-img { position: static; height: auto; }
  .hero .hero-img { aspect-ratio: 1080 / 800; object-position: center; }
  .hero-in { padding: 28px 20px 8px; order: -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hdr-in { height: 64px; gap: 10px; }
  .hdr .logo { width: 104px; height: auto; }
  .nav { top: 64px; }
  .hico { gap: 8px; }
  .lang a { padding: 4px 9px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lang-card { padding: 28px 20px; }
  .lang-opts { flex-direction: column; }
  .dtable thead { display: none; }
  .dtable tr { display: grid; grid-template-columns: 80px 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #F1EAE2; }
  .dtable td { border: 0; padding: 0; }
  .dtable td:first-child { grid-row: span 3; }
  .dtable td.acts-td { grid-column: 1 / -1; }
  .acts { justify-content: flex-start; }
  .bd-tot .tv { font-size: 26px; }
  .ftr-in { grid-template-columns: 1fr; }
  .offer-band { padding: 20px; }
}
