/* Chocolatique storefront: same identity as the main site (cream, Inter, cocoa accents). */
:root { --cream: #f7f1e8; --cream-2: #efe6d6; --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
body { background: var(--cream); font-family: var(--font); }
h1, h2, h3, .logo { font-family: var(--font); letter-spacing: -.01em; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 241, 232, .94); color: var(--cocoa-800); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--cocoa-900); text-decoration: none; }
.top .tools { display: flex; align-items: center; gap: .7rem; }
.top .lang-toggle { color: var(--cocoa-800); }
.cartbtn { background: var(--cocoa-900); color: #fff; border: 0; border-radius: 999px; padding: .5em 1.1em; font-weight: 700; cursor: pointer; }
.cartbtn:hover { background: var(--cocoa-700); }
.cartbtn .count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; margin-inline-start: .4em; background: var(--gold); color: var(--cocoa-900); border-radius: 999px; font-size: .8rem; padding: 0 .35em; }
.hero { text-align: center; padding: clamp(3.5rem, 11vw, 7rem) 1.2rem clamp(2.5rem, 7vw, 4.5rem); }
.hero h1 { color: var(--cocoa-900); font-size: clamp(2.1rem, 6.5vw, 3.8rem); max-width: 16em; margin: 0 auto .4em; font-weight: 800; }
.hero p { font-size: clamp(1rem, 2.4vw, 1.2rem); margin: 0 auto 1.6rem; color: var(--muted); }
.hero .btn { font-size: 1.05rem; padding: .75em 1.8em; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; max-width: 1000px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; display: grid; gap: .2rem; text-align: center; }
.feat span { font-size: 1.8rem; } .feat small { color: var(--muted); }
.about { max-width: 1000px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem) 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.about h2 { font-size: 1.3rem; } .about p { color: var(--muted); }
.wafab { position: fixed; bottom: 1.1rem; inset-inline-end: 1.1rem; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #1fa855; display: grid; place-items: center; font-size: 1.6rem; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 30; }

.section { max-width: 1180px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 3rem; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0 1.8rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4em 1.1em; cursor: pointer; font-weight: 600; color: var(--cocoa-700); }
.chip[aria-pressed=true] { background: var(--cocoa-800); color: #fff; border-color: var(--cocoa-800); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s; }
.pcard:hover { transform: translateY(-3px); }
.pimg { aspect-ratio: 1 / 1; background: linear-gradient(135deg, #5a3825, #8a5a3c); display: grid; place-items: center; font-size: 3.4rem; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pbody { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pbody h3 { font-size: 1.2rem; margin: 0; }
.pbody p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .5rem; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--cocoa-800); }
.price small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { background: var(--cream-2); border: 0; width: 2.2em; height: 2.2em; cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--cocoa-800); }
.stepper button:hover { background: var(--line); }
.stepper span { min-width: 2.2em; text-align: center; font-weight: 700; }
.emptyshop { text-align: center; color: var(--muted); padding: 3rem 1rem; }

.foot { background: var(--cocoa-900); color: #cdb99e; text-align: center; padding: 2rem 1rem; font-size: .92rem; }
.foot strong { color: var(--gold); font-size: 1.1rem; }
.foot .links { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin: .6rem 0; } .foot .links a { color: #eadbc6; }

dialog.cart { margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); border: 0; padding: 0; background: var(--cream); color: var(--ink); box-shadow: -10px 0 40px rgba(0, 0, 0, .3); }
[dir=rtl] dialog.cart { margin-inline-start: 0; margin-inline-end: auto; box-shadow: 10px 0 40px rgba(0, 0, 0, .3); }
dialog.cart::backdrop { background: rgba(43, 24, 16, .55); }
.cartin { display: flex; flex-direction: column; height: 100%; }
.carthead { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.carthead h2 { margin: 0; font-size: 1.3rem; }
.xbtn { background: transparent; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--cocoa-700); }
.cartbody { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.line { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .nm { font-weight: 700; } .line .sub { color: var(--muted); font-size: .85rem; }
.line .tot { font-weight: 700; text-align: end; }
.link { background: none; border: 0; padding: 0; color: var(--bad); cursor: pointer; font-size: .8rem; text-decoration: underline; }
.cartfoot { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line); background: #fff; }
.sumrow { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; margin-bottom: .8rem; }
.err { color: var(--bad); font-weight: 600; min-height: 1.3em; margin: .3rem 0; }
.success { text-align: center; padding: 2.5rem 1.4rem; }
.success .tick { font-size: 3.2rem; }
.success .btn { margin: .4rem; }
.wa { background: #1fa855; color: #fff; } .wa:hover { background: #178a45; }

#toast { position: fixed; bottom: 1.2rem; inset-inline-start: 50%; transform: translateX(-50%); background: var(--cocoa-900); color: #fff; padding: .6rem 1.2rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 99; font-weight: 600; }
[dir=rtl] #toast { transform: translateX(50%); }
#toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
