@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --bg: #fafafa;
    --ink: #111;
    --muted: #6b6b6b;
    --line: #e6e6e6;
    --card: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Cairo', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    padding-bottom: 76px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 70px;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; letter-spacing: .08em; }
.nav-links { display: flex; gap: 16px; margin-inline-start: auto; align-items: center; }
.nav-links a { font-weight: 600; white-space: nowrap; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: #111; color: #fff; display: grid; place-items: center;
    font-size: .75rem; font-weight: 800;
}
.cart-btn { position: relative; font-weight: 700; }
.cart-btn b {
    position: absolute; top: -8px; inset-inline-end: -10px;
    background: #111; color: #fff; border-radius: 999px;
    font-size: .65rem; padding: 1px 5px;
}
.lang { border: 1px solid #111; padding: 2px 8px; font-size: .8rem; }
.nav > .lang { display: none; }

.hero {
    position: relative;
    min-height: 72vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.hero-copy { position: relative; z-index: 1; padding: 8vh 0 6vh; }
.hero-copy h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 7vw, 5rem); }

.section { padding: 48px 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card .pad { padding: 12px; }
.price { font-weight: 800; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 0 50px; }
.product img { width: 100%; max-height: 520px; object-fit: cover; }
.sizes { display: flex; gap: 8px; margin: 12px 0; }
.sizes label { border: 1px solid var(--line); padding: 6px 12px; cursor: pointer; }
.sizes input { display: none; }
.sizes input:checked + span { font-weight: 800; }

.btn { display: inline-block; background: #111; color: #fff; border: 0; padding: 11px 18px; font-family: inherit; font-weight: 700; cursor: pointer; }
.btn.line { background: #fff; color: #111; border: 1px solid #111; }
.form { display: grid; gap: 10px; max-width: 440px; }
label { display: grid; gap: 5px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); padding: 10px; font-family: inherit; }
.line-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 10px; margin-bottom: 10px; }
.line-item img { width: 72px; height: 72px; object-fit: cover; }
.alert { padding: 10px 14px; margin: 10px 0; background: #f1f1f1; }
.invoice { background: #fff; border: 1px solid var(--line); padding: 24px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: start; }

.drawer {
    position: fixed; inset: 0 auto 0 0; width: min(360px, 92vw);
    background: #fff; box-shadow: 0 0 30px rgba(0,0,0,.18);
    transform: translateX(-110%); transition: .25s; z-index: 70; padding: 18px;
    overflow: auto;
}
html[dir="rtl"] .drawer { inset: 0 0 0 auto; transform: translateX(110%); }
.drawer.open { transform: none; }
.drawer-bg { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60; }
.drawer-bg.open { display: block; }

.footer { background: #111; color: #ddd; padding: 28px 0 90px; }
.m-foot {
    position: fixed; bottom: 0; inset-inline: 0; display: flex;
    background: #fff; border-top: 1px solid var(--line); z-index: 55;
}
.m-foot a { flex: 1; text-align: center; font-size: .68rem; padding: 8px 0 10px; }
.m-foot span { display: block; font-size: 1.1rem; }

@media (min-width: 961px) {
    body { padding-bottom: 0; }
    .m-foot { display: none; }
    .footer { padding-bottom: 28px; }
}
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav > .lang { display: inline-block; margin-inline-start: auto; }
    .grid, .product { grid-template-columns: 1fr; }
}
@media print { .header, .footer, .m-foot, .btn { display: none !important; } }
