:root { --bg: #faf7f4; --ink: #1c1917; --muted: #78716c; --line: #ece4dc; --accent: #9a6b4f; --gold: #d6a77a; --soft: #f3ebe3; --display: 'Amiri'; --radius-btn: 4px; }
.ship-bar { background: var(--ink); color: #e7dfd6; text-align: center; font-size: 13px; padding: 7px 10px; } .ship-bar b { color: var(--gold); }
.head { position: sticky; top: 0; z-index: 30; background: rgba(250, 247, 244, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { font-family: 'Amiri'; font-size: 34px; font-weight: 700; line-height: 1; margin: 0; }
.logo small { display: block; font-family: 'IBM Plex Sans Arabic'; font-size: 10px; letter-spacing: .15em; color: var(--muted); font-weight: 500; margin-top: 4px; }
.nav { display: flex; gap: 24px; } .nav a { color: var(--muted); font-weight: 500; position: relative; } .nav a:hover { color: var(--ink); }
.cart-btn { position: relative; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.cart-btn span { position: absolute; top: -4px; inset-inline-start: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.cart-btn.bump { animation: bump .45s; } @keyframes bump { 40% { transform: scale(1.18) rotate(-8deg); } }

.hero { padding: 50px 0 70px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.1; margin: 10px 0 16px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 440px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-line { color: var(--ink); border-color: var(--ink); }
.hero-pics { position: relative; height: 500px; }
.hero-pics img { position: absolute; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(28, 25, 23, .5); }
.hero-pics .p1 { inset: 0 auto 60px 22%; width: 78%; height: auto; aspect-ratio: auto; height: 86%; border-radius: 200px 200px 6px 6px; }
.hero-pics .p2 { left: 0; bottom: 0; width: 46%; height: 52%; border-radius: 6px; border: 8px solid var(--bg); }

.shop-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.shop-top h2 { font-size: clamp(32px, 4.6vw, 46px); margin: 0; }
.tabs { display: flex; gap: 6px; } .tabs button { padding: 9px 18px; border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.card { display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); border-radius: 4px; cursor: pointer; border: 0; padding: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; } .card:hover .card-img img { transform: scale(1.06); }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 2px; }
.badge.sale { background: #b91c1c; }
.quick { position: absolute; inset: auto 10px 10px; padding: 10px; background: rgba(255, 255, 255, .92); text-align: center; font-weight: 700; font-size: 13px; border-radius: 2px; opacity: 0; transform: translateY(8px); transition: .3s; }
.card:hover .quick { opacity: 1; transform: none; }
.card h3 { font-family: 'IBM Plex Sans Arabic'; font-size: 16px; font-weight: 600; margin: 12px 0 2px; } .card small { color: var(--muted); font-size: 13px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.add, .price { white-space: nowrap; }
.price { font-weight: 700; } .price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-inline-start: 6px; }
.add { border: 1px solid var(--ink); background: transparent; padding: 6px 12px; border-radius: 2px; cursor: pointer; font-weight: 600; font-size: 13px; transition: .2s; } .add:hover { background: var(--ink); color: #fff; }

.why { background: var(--ink); color: #e7dfd6; padding: 56px 0; }
.why-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why b { font-size: 28px; } .why h3 { font-family: 'IBM Plex Sans Arabic'; font-size: 17px; color: #fff; margin: 8px 0 4px; } .why p { margin: 0; color: #a8a29e; font-size: 14px; }
.foot { padding: 34px 0; text-align: center; } .foot .logo { font-size: 30px; } .foot p { margin: 4px 0; }

.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(28, 25, 23, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal { position: relative; width: min(860px, 100%); max-height: 92vh; overflow: auto; background: #fff; display: grid; grid-template-columns: 1fr 1fr; border-radius: 6px; animation: rise .35s both; }
.modal img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.qv-body { padding: 34px 28px; display: flex; flex-direction: column; gap: 10px; }
.qv-body h3 { font-size: 30px; margin: 0; } .qv-body p { color: var(--muted); margin: 0; }
.tag { align-self: flex-start; font-size: 12px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.qv-price { font-size: 24px; font-weight: 700; } .qv-price s { font-size: 15px; color: var(--muted); font-weight: 400; }
.qv-act { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; } .qv-act .btn { flex: 1; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; } .qty button { width: 36px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; } .qty span { min-width: 28px; text-align: center; font-weight: 700; }
.x { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; z-index: 2; }

.drawer-back { position: fixed; inset: 0; background: rgba(28, 25, 23, .45); z-index: 40; }
.drawer { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(430px, 100%); background: var(--bg); z-index: 50; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.drawer.open { transform: none; }
.drawer-head { position: relative; padding: 18px 22px; border-bottom: 1px solid var(--line); } .drawer-head h2 { margin: 0; font-size: 28px; } .drawer-head .x { top: 16px; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 22px; }
#stepCheckout { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 76px; object-fit: cover; border-radius: 3px; } .line b { font-size: 14.5px; display: block; } .line small { color: var(--muted); }
.line .qty button { height: 32px; width: 30px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.free { margin-top: 16px; } .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
.free small { display: block; margin-top: 6px; color: var(--muted); }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .pay input { position: absolute; opacity: 0; }
.pay span { display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; } .pay b { display: block; font-size: 14px; } .pay small { color: var(--muted); font-size: 11px; }
.pay input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.pay-info { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--soft); font-size: 13px; }
.err { margin: 0; padding: 10px 12px; border-radius: 6px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.drawer-foot { padding: 14px 22px 20px; border-top: 1px solid var(--line); background: #fff; display: grid; gap: 8px; }
.sum { display: flex; justify-content: space-between; } .sum.small { color: var(--muted); font-size: 14px; } .sum.big b { font-size: 22px; }
.hint { margin: 0; font-size: 11.5px; color: var(--muted); text-align: center; }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } .why-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .hero-in { grid-template-columns: 1fr; } .hero-pics { height: 380px; order: -1; } .hero { padding-top: 20px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .modal { grid-template-columns: 1fr; } .modal img { min-height: 0; aspect-ratio: 4 / 3; }
  .quick { display: none; }
}
@media (max-width: 560px) { .nav { display: none; } .hero-btns .btn { flex: 1; } .why-in { grid-template-columns: 1fr; } .sec { padding: 56px 0; } .card h3 { font-size: 14.5px; } .add { padding: 6px 8px; } }
