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

:root {
    --bg: #f3f7f6;
    --ink: #10221f;
    --mint: #14b8a6;
    --mint-2: #0f766e;
    --navy: #0b1f2a;
    --coral: #fb7185;
    --card: #fff;
    --line: #d7e5e2;
}

* { 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(--mint-2); text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #e7fbf7; }
.nav { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.logo { font-family: 'Space Grotesk', sans-serif; color: var(--mint); letter-spacing: .06em; font-size: 1.35rem; }
.nav-links { display: flex; gap: 14px; margin-inline-start: auto; align-items: center; }
.nav-links a { color: #dff7f2; font-weight: 700; white-space: nowrap; }
.nav-links a:hover { color: var(--mint); }
.lang { border: 1px solid var(--mint); color: var(--mint); padding: 2px 8px; border-radius: 999px; font-size: .8rem; }
.nav > .lang { display: none; }
.chip { background: var(--mint); color: #042f2e; padding: 4px 10px; border-radius: 999px; font-weight: 800; }

.hero {
    background: linear-gradient(120deg, #0b1f2a, #134e4a 60%, #14b8a6);
    color: #fff;
    padding: 64px 0 56px;
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    background: rgba(251,113,133,.25);
    border-radius: 50%;
    top: -60px; inset-inline-end: -40px;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    50% { transform: translateY(18px); }
}
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 6vw, 3.6rem); max-width: 16ch; }
.searchbar { display: flex; gap: 8px; margin-top: 18px; max-width: 520px; }
.searchbar input { flex: 1; border: 0; padding: 12px; border-radius: 12px; }
.searchbar button { border: 0; background: var(--coral); color: #fff; padding: 0 16px; border-radius: 12px; font-weight: 800; font-family: inherit; }

.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: 16px;
    overflow: hidden;
    animation: pop .45s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.card img { width: 100%; height: 170px; object-fit: cover; }
.card .pad { padding: 12px; }
.price { color: var(--mint-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(--navy); color: #fff; }

.btn { display: inline-block; background: var(--mint); color: #042f2e; border: 0; padding: 10px 14px; border-radius: 10px; font-family: inherit; font-weight: 800; cursor: pointer; }
.btn.line { background: #fff; border: 1px solid var(--navy); color: var(--navy); }
.btn.coral { background: var(--coral); color: #fff; }
.form { display: grid; gap: 10px; max-width: 440px; }
label { display: grid; gap: 4px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); padding: 10px; border-radius: 10px; font-family: inherit; }
.alert { padding: 10px 14px; margin: 10px 0; background: #d1fae5; border-radius: 10px; }
.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; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product img { width: 100%; border-radius: 18px; max-height: 420px; object-fit: cover; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: start; }

.track { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.track span { padding: 6px 10px; border-radius: 999px; background: #e2e8f0; }
.track span.on { background: var(--mint); color: #042f2e; }

.footer { background: var(--navy); color: #cde7e2; 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; }
}
