:root{
  --burgundy:#8A181B; --beige:#F2E9DA; --white:#FFFFFF;
  --bg:#FBF8F3;               /* very soft beige, close to white */
  --line:rgba(138,24,27,.14);
  --muted:rgba(138,24,27,.72);
  --radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--burgundy);font-family:'Tajawal',system-ui,sans-serif;font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
[hidden]{display:none!important}
h1,h2,h3{margin:0;font-weight:700;line-height:1.35}
.section{padding:56px 0}
.section-title{font-size:28px;text-align:center;margin-bottom:28px}
.muted{color:var(--muted)}

/* ---------- buttons & inputs ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--burgundy);color:var(--white);border:1.5px solid var(--burgundy);border-radius:999px;padding:12px 28px;font-weight:700;font-size:17px;cursor:pointer;text-decoration:none;min-height:48px;transition:opacity .15s}
.btn:hover{opacity:.9}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-outline{background:transparent;color:var(--burgundy)}
.btn-beige{background:var(--beige);color:var(--burgundy);border-color:var(--beige)}
.btn-sm{padding:7px 16px;min-height:38px;font-size:15px}
.btn-block{width:100%}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.field label{font-weight:500;font-size:15px}
.input,select.input,textarea.input{width:100%;background:var(--white);border:1.5px solid var(--line);border-radius:10px;padding:12px 14px;min-height:48px;outline:none}
.input:focus{border-color:var(--burgundy)}
textarea.input{min-height:90px;resize:vertical}
.err{color:var(--burgundy);font-weight:700;font-size:14px}
.input.bad{border-color:var(--burgundy);background:var(--beige)}

/* ---------- header ---------- */
.site-header{background:var(--burgundy);color:var(--beige);position:sticky;top:0;z-index:50}
.header-row{display:flex;align-items:center;gap:18px;height:76px}
.logo img{height:60px;width:auto}
.main-nav{display:flex;gap:30px;margin-inline-start:24px;flex:1}
.main-nav a,.main-nav button{color:var(--beige);text-decoration:none;font-weight:500;background:none;border:0;cursor:pointer;padding:8px 0;font-size:17px}
.nav-drop{position:relative}
.nav-drop .drop{position:absolute;top:100%;inset-inline-start:-16px;background:var(--white);border-radius:12px;box-shadow:0 10px 30px rgba(138,24,27,.15);padding:8px;min-width:220px;display:none}
.nav-drop:hover .drop,.nav-drop:focus-within .drop{display:block}
.drop a{display:block;color:var(--burgundy);padding:9px 14px;border-radius:8px}
.drop a:hover{background:var(--beige)}
.header-icons{display:flex;align-items:center;gap:6px;margin-inline-start:auto}
.icon-btn{background:none;border:0;color:var(--beige);cursor:pointer;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;position:relative;text-decoration:none}
.icon-btn:hover{background:rgba(242,233,218,.12)}
.icon-btn svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lang-btn{width:auto;padding:0 10px;gap:5px;border-radius:999px;font-weight:700;font-size:14px}
.badge{position:absolute;top:3px;inset-inline-end:1px;background:var(--beige);color:var(--burgundy);font-size:12px;font-weight:700;min-width:19px;height:19px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 5px}
.menu-btn{display:none}
.search-bar{padding:0 0 14px}
.search-bar input{width:100%;border:0;border-radius:999px;padding:12px 20px;background:var(--beige);color:var(--burgundy);outline:none;min-height:48px}
.drawer{position:fixed;inset:76px 0 0 0;background:var(--burgundy);color:var(--beige);z-index:40;padding:16px 24px;overflow:auto}
.drawer a{display:block;color:var(--beige);text-decoration:none;padding:12px 0;font-size:19px;border-bottom:1px solid rgba(242,233,218,.15)}
.drawer .sub a{font-size:17px;padding-inline-start:16px;opacity:.9}

/* ---------- hero ---------- */
.hero{background:var(--beige);padding:72px 0 76px;text-align:center}
.hero .quote{max-width:760px;margin:0 auto 34px;font-size:24px;line-height:2;font-weight:500}
.hero .quote::before,.hero .quote::after{content:'"';opacity:.4}
.hero-mark{width:34px;margin:0 auto 26px;opacity:.9}
html[dir=ltr] .hero .quote{font-size:21px}

/* ---------- categories ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.cat-card{display:block;text-decoration:none;background:var(--white);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);transition:transform .15s}
.cat-card:hover{transform:translateY(-2px)}
.cat-card .img{aspect-ratio:1;background:var(--burgundy);display:flex;align-items:center;justify-content:center}
.cat-card .img img{width:100%;height:100%;object-fit:cover}
.cat-card .img img.ph{width:22%;height:auto;object-fit:contain;opacity:.85}
.cat-card .name{padding:14px 10px;text-align:center;font-weight:700;font-size:18px}

/* ---------- products ---------- */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.card{background:var(--white);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);display:flex;flex-direction:column}
.card a.img{display:block;aspect-ratio:1;overflow:hidden;background:var(--burgundy)}
.card a.img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.card:hover a.img img{transform:scale(1.03)}
.card .body{padding:14px 14px 16px;display:flex;flex-direction:column;gap:4px;flex:1}
.card .pname{font-weight:700;font-size:17px;text-decoration:none;line-height:1.45}
.card .price{font-weight:700;font-size:17px}
.card .price small{font-weight:400;color:var(--muted);font-size:14px}
.card .btn{margin-top:auto}
.card .body .spacer{flex:1;min-height:8px}
.oos{font-size:14px;font-weight:700;opacity:.65}
.chips{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:28px}
.chip{border:1.5px solid var(--burgundy);background:transparent;border-radius:999px;padding:8px 18px;cursor:pointer;text-decoration:none;font-weight:500;font-size:15px;min-height:42px;display:inline-flex;align-items:center}
.chip.on{background:var(--burgundy);color:var(--white)}
.empty{text-align:center;padding:50px 20px;color:var(--muted)}
.crumbs{font-size:15px;color:var(--muted);margin:22px 0 4px}
.crumbs a{text-decoration:none}

/* ---------- product page ---------- */
.pd{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:24px 0 64px;align-items:start}
.gallery .main{border-radius:var(--radius);overflow:hidden;aspect-ratio:1;background:var(--burgundy)}
.gallery .main img{width:100%;height:100%;object-fit:cover}
.thumbs{display:flex;gap:10px;margin-top:12px}
.thumbs button{width:72px;height:72px;border-radius:10px;overflow:hidden;border:2px solid transparent;padding:0;cursor:pointer;background:none}
.thumbs button.on{border-color:var(--burgundy)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.pd h1{font-size:30px;margin-bottom:8px}
.pd .price{font-size:26px;font-weight:700;margin:6px 0 18px}
.pd .desc{color:var(--muted);margin-bottom:22px}
.opt-label{font-weight:700;margin-bottom:8px;font-size:15px}
.variants{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:999px;background:var(--white);overflow:hidden}
.qty button{width:44px;height:44px;border:0;background:none;cursor:pointer;font-size:22px;color:var(--burgundy)}
.qty span{min-width:34px;text-align:center;font-weight:700}
.buy-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.buy-row .btn{flex:1;min-width:0;white-space:nowrap}
.sticky-d{position:sticky;top:96px}

/* ---------- cart & checkout ---------- */
.page-title{font-size:30px;margin:30px 0 24px}
.cart-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:32px;align-items:start;padding-bottom:64px}
.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.line{display:grid;grid-template-columns:84px 1fr auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.line:last-child{border-bottom:0}
.line img{width:84px;height:84px;object-fit:cover;border-radius:10px}
.line .nm{font-weight:700;line-height:1.4}
.line .vr{font-size:14px;color:var(--muted)}
.line .rm{background:none;border:0;color:var(--muted);cursor:pointer;text-decoration:underline;font-size:14px;padding:4px 0}
.line .lt{font-weight:700;text-align:end}
.sum-row{display:flex;justify-content:space-between;padding:7px 0}
.sum-row.total{border-top:1.5px solid var(--line);margin-top:8px;padding-top:14px;font-size:21px;font-weight:700}
.code-row{display:flex;gap:8px;margin:12px 0}
.code-row .input{flex:1}
.pay-opt{display:flex;align-items:center;gap:12px;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px;cursor:pointer;background:var(--white)}
.pay-opt.on{border-color:var(--burgundy);background:var(--beige)}
.pay-opt input{accent-color:var(--burgundy);width:20px;height:20px}
.check{display:flex;gap:10px;align-items:center;cursor:pointer;margin-bottom:12px}
.check input{accent-color:var(--burgundy);width:20px;height:20px}
.h3{font-size:20px;margin-bottom:16px}
.note{background:var(--beige);border-radius:12px;padding:12px 14px;font-size:15px;margin:10px 0}
.done{max-width:620px;margin:50px auto 70px;text-align:center}
.done .tick{width:72px;height:72px;border-radius:50%;background:var(--burgundy);color:var(--white);display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:36px}
.prose{max-width:760px;margin:0 auto;padding-bottom:60px;font-size:18px;white-space:pre-line}

/* ---------- footer ---------- */
.site-footer{background:var(--burgundy);color:var(--beige);margin-top:20px}
.site-footer a{color:var(--beige)}
.reviews{padding:52px 0 40px;border-bottom:1px solid rgba(242,233,218,.18)}
.reviews-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.reviews-head h2{font-size:26px}
.rv-avg{font-size:15px;opacity:.9}
.rv-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px;scrollbar-width:thin}
.rv{flex:0 0 300px;scroll-snap-align:start;background:var(--beige);color:var(--burgundy);border-radius:var(--radius);padding:18px 20px;display:flex;flex-direction:column;gap:8px}
.stars{letter-spacing:2px;font-size:18px}
.rv .who{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);margin-top:auto}
.rv-empty{opacity:.85;padding:10px 0}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:30px;padding:40px 0 30px}
.foot-grid h3{font-size:18px;margin-bottom:12px}
.foot-grid a{display:flex;align-items:center;gap:10px;text-decoration:none;padding:5px 0}
.foot-grid svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.foot-logo img{height:84px;width:auto;margin-bottom:12px}
.copy{text-align:center;padding:16px 0 22px;border-top:1px solid rgba(242,233,218,.18);font-size:14px;opacity:.9}
.star-pick{display:flex;gap:4px;direction:ltr;justify-content:flex-end}
html[dir=ltr] .star-pick{justify-content:flex-start}
.star-pick button{background:none;border:0;font-size:32px;cursor:pointer;color:var(--burgundy);opacity:.3;padding:0 2px}
.star-pick button.on{opacity:1}

/* ---------- toast / modal ---------- */
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--burgundy);color:var(--beige);padding:12px 18px;border-radius:999px;z-index:90;display:flex;gap:14px;align-items:center;box-shadow:0 8px 24px rgba(138,24,27,.3);max-width:92vw}
.toast span{white-space:nowrap}.toast a{white-space:nowrap;color:var(--white);font-weight:700}
.modal{position:fixed;inset:0;background:rgba(138,24,27,.35);z-index:80;display:flex;align-items:center;justify-content:center;padding:16px}
.modal-box{background:var(--bg);border-radius:18px;padding:24px;width:100%;max-width:520px;max-height:92vh;overflow:auto}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .grid,.cat-grid{grid-template-columns:repeat(3,1fr)}
  .cart-layout{grid-template-columns:1fr}
}
@media (max-width:760px){
  body{font-size:16px}
  .main-nav{display:none}
  .menu-btn{display:inline-flex}
  .header-row{gap:6px;height:68px}
  .logo img{height:52px}
  .drawer{inset:68px 0 0 0}
  .grid,.cat-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .card .body{padding:10px 10px 12px}
  .card .pname,.card .price{font-size:15px}
  .card .btn{padding:8px 10px;font-size:14px;min-height:40px}
  .cat-card .name{font-size:15px;padding:10px 6px}
  .hero{padding:48px 0 52px}
  .hero .quote{font-size:19px}
  .section{padding:40px 0}
  .section-title{font-size:23px}
  .pd{grid-template-columns:1fr;gap:20px}
  .pd h1{font-size:24px}
  .foot-grid{grid-template-columns:1fr;gap:18px}
  .rv{flex-basis:84%}
  .line{grid-template-columns:68px 1fr;}
  .sticky-d{position:static}
  .buy-row .btn{font-size:16px;padding:12px 16px}
  .toast{bottom:14px;padding:10px 16px;font-size:15px}
  .line img{width:68px;height:68px}
  .line .lt{grid-column:2;text-align:start}
}
