:root {
    --brand: #1f2a44;
    --accent: #c8963e;
    --accent-dark: #a97a2c;
    --bg: #faf8f5;
    --card: #ffffff;
    --text: #1d1d1f;
    --muted: #6b6b70;
    --border: #e7e2da;
    --danger: #c0392b;
    --ok: #1e8449;
    --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; font-family: 'Cairo', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.section { padding: 28px 16px; }
.section-title { font-size: 1.35rem; margin: 0 0 16px; }

.announce { background: var(--accent); color: #fff; text-align: center; padding: 6px 12px; font-size: .9rem; font-weight: 600; }
.header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.3rem; color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.nav { background: rgba(255,255,255,.06); }
.nav-row { display: flex; gap: 20px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; white-space: nowrap; scrollbar-width: none; }
.nav-row a { color: #e9e4da; font-size: .95rem; }
.nav-row a:hover { color: var(--accent); }

.hero { background: linear-gradient(135deg, var(--brand), #34436b); color: #fff; padding: 48px 0; text-align: center; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2.4rem); }
.hero p { margin: 0; opacity: .85; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; font-weight: 600; }
.cat img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.cat span { display: block; padding: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.card-img { position: relative; aspect-ratio: 1; background: #f0ece6; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff; font-size: .8rem; padding: 2px 10px; border-radius: 20px; font-weight: 700; }
.card-body { padding: 12px; }
.card-body h3 { font-size: 1rem; margin: 0 0 6px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { color: var(--brand); font-size: 1.1rem; }
.price s { color: var(--muted); font-size: .9rem; }
.price small { color: var(--muted); }
.price.big b { font-size: 1.7rem; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 24px; padding-bottom: 8px; }
.gallery-main { background: #f0ece6; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.thumbs img:hover { border-color: var(--accent); }
.crumb { color: var(--accent-dark); font-weight: 600; font-size: .9rem; }
.info h1 { margin: 4px 0 8px; font-size: 1.6rem; line-height: 1.4; }
.short { color: var(--muted); }

.order-box { background: var(--card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px; margin-top: 16px; scroll-margin-top: 80px; }
.order-box input, .order-box select, .order-box textarea { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: #fff; }
.order-box input:focus, .order-box select:focus, .order-box textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; opacity: 0 !important; border: 0 !important; }
.lbl { display: block; font-weight: 700; margin-bottom: 6px; }
.form-title { margin: 14px 0 10px; font-size: 1.05rem; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.variant { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; font: inherit; cursor: pointer; }
.variant.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.variant:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.styles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.style { width: 78px; padding: 3px; border: 2px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: .8rem; }
.style img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.style span { display: block; margin-top: 3px; line-height: 1.3; }
.style.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200,150,62,.25); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; color: #fff; display: flex; }
.cart-count { position: absolute; top: -6px; left: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; line-height: 18px; text-align: center; }
.btn-cart { display: block; width: 100%; margin: 0 0 6px; padding: 12px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.btn-cart:disabled { opacity: .6; }
.cart-toast { background: #eaf6ee; color: var(--ok); border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: .9rem; }
.cart-toast a, .cart-note a { text-decoration: underline; }
.cart-note { color: var(--accent-dark); font-weight: 600; font-size: .88rem; padding-bottom: 6px; border-bottom: 1px dashed var(--border); margin-bottom: 4px; display: block !important; }
.cart-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.cart-item { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; margin-bottom: 10px; }
.ci-img { width: 84px; flex-shrink: 0; }
.ci-img img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.ci-body { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; }
.ci-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.ci-row .qty { margin: 0; }
.empty-cart { text-align: center; padding: 40px 0; }
.add-line { display: block; width: 100%; margin: 4px 0 12px; padding: 10px; background: #fff; border: 1.5px dashed var(--accent); border-radius: 10px; color: var(--accent-dark); font: inherit; font-weight: 700; cursor: pointer; }
.add-line:hover { background: #fdf8ef; }
.lines-box { margin: 4px 0 8px; }
.line { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 6px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.line.active { border-color: var(--brand); background: #f3f5fa; }
.line-name { flex: 1; font-weight: 600; }
.line-q { color: var(--muted); }
.line-p { font-weight: 700; color: var(--brand); }
.line-rm { border: 0; background: none; color: var(--danger); font-size: 1rem; cursor: pointer; padding: 0 4px; }
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.qty button { width: 42px; border: 0; background: #f3efe9; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 56px !important; text-align: center; margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.hint { color: var(--muted); font-size: .82rem; margin: -4px 0 10px; }
.err { color: var(--danger); font-size: .88rem; margin: -6px 0 10px; }
.summary { background: #f7f4ef; border-radius: 8px; padding: 10px 14px; margin: 6px 0 12px; }
.summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.summary .total { border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 8px; font-weight: 800; font-size: 1.1rem; }
.btn-order { width: 100%; background: var(--accent); color: #fff; border: 0; padding: 14px; border-radius: 10px; font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; text-align: center; }
.btn-order:hover { background: var(--accent-dark); }
.btn-order:disabled { opacity: .7; }
.trust { text-align: center; color: var(--ok); font-size: .85rem; margin: 10px 0 0; }
.desc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.sticky-order { display: none; }

.thanks { text-align: center; padding: 48px 16px; max-width: 560px; }
.thanks .check { width: 72px; height: 72px; line-height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.2rem; }
.thanks .summary { text-align: right; margin: 20px 0; }

.pager { margin-top: 20px; text-align: center; }
.pager nav ul, .pager ul { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; }

.footer { background: var(--brand); color: #d8d3ca; text-align: center; padding: 28px 0 80px; margin-top: 40px; font-size: .9rem; }
.footer strong { color: #fff; font-size: 1.1rem; }
.wa-float { position: fixed; bottom: 18px; left: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 30; }

@media (max-width: 800px) {
    .product { grid-template-columns: 1fr; gap: 16px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-body h3 { font-size: .92rem; }
    .menu-btn { display: block; }
    .cart-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
    body.nav-open .nav { display: block; }
    .nav-row { flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
    .sticky-order { display: block; position: fixed; bottom: 0; right: 0; left: 0; background: var(--accent); color: #fff; text-align: center; padding: 14px; font-weight: 800; font-size: 1.1rem; z-index: 25; }
    .wa-float { bottom: 70px; }
}
