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

:root {
    --bg: #f4f7fb;
    --ink: #0f172a;
    --blue: #2563eb;
    --blue-2: #1d4ed8;
    --card: #fff;
    --line: #dbe4f0;
    --muted: #64748b;
}

* { 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: 78px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.header { position: sticky; top: 0; z-index: 50; background: #0f172a; color: #e2e8f0; }
.nav { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.logo { font-family: 'Outfit', sans-serif; color: #93c5fd; letter-spacing: .08em; font-size: 1.25rem; }
.nav-links { display: flex; gap: 14px; margin-inline-start: auto; align-items: center; }
.nav-links a { color: #e2e8f0; font-weight: 700; white-space: nowrap; }
.nav-links a:hover { color: #93c5fd; }
.lang { border: 1px solid #93c5fd; color: #93c5fd; padding: 2px 8px; border-radius: 999px; font-size: .8rem; }
.nav > .lang { display: none; }
.chip { background: var(--blue); color: #fff; padding: 4px 10px; border-radius: 999px; font-weight: 800; }

.hero {
    background: radial-gradient(circle at 20% 20%, #1e3a8a, #0f172a 55%);
    color: #fff;
    padding: 70px 0 58px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border: 18px solid rgba(147,197,253,.18);
    border-radius: 36px;
    inset-inline-end: 8%;
    top: 18%;
    animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 16ch; }

.section { padding: 42px 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; animation: up .45s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card img { width: 100%; height: 180px; object-fit: cover; background: #e2e8f0; }
.card .pad { padding: 12px; }
.price { color: var(--blue-2); font-weight: 800; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.cats a { background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.cats a.on { background: var(--blue); color: #fff; }

.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; padding: 10px 14px; border-radius: 10px; font-family: inherit; font-weight: 800; cursor: pointer; }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.form { display: grid; gap: 10px; max-width: 440px; }
label { display: grid; gap: 4px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); padding: 10px; border-radius: 10px; font-family: inherit; }
.alert { padding: 10px 14px; margin: 10px 0; background: #dbeafe; border-radius: 10px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product img { width: 100%; border-radius: 16px; max-height: 420px; object-fit: cover; }
.colors { display: flex; gap: 8px; margin: 10px 0; }
.colors label { border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.colors input { display: none; }
.colors input:checked + span { font-weight: 800; color: var(--blue); }
.line-item { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 10px; border-radius: 12px; margin-bottom: 8px; }
.line-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: start; }

.footer { background: #0f172a; color: #cbd5e1; padding: 26px 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: .66rem; padding: 8px 0 10px; color: var(--ink); }
.m-foot span { display: block; font-size: 1.05rem; }

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