/* ============================================================
   TopoGeos.eu — public stylesheet
   Modern, premium, surveying-instrument vibe.
   ============================================================ */
:root {
    --bg:           #060a14;
    --bg-soft:      #0c1322;
    --surface:      #111a2e;
    --surface-2:    #18223a;
    --line:         rgba(255,255,255,.08);
    --text:         #e9edf6;
    --text-soft:    #a4adc1;
    --muted:        #6e7892;
    --brand:        #ff7a18;
    --brand-2:      #ffb454;
    --brand-glow:   rgba(255,122,24,.35);
    --accent:       #18d3a8;
    --danger:       #ef4f5d;

    --radius:       14px;
    --radius-lg:    22px;
    --shadow:       0 10px 40px rgba(0,0,0,.35);
    --shadow-sm:    0 4px 16px rgba(0,0,0,.25);
    --maxw:         1240px;
    --gutter:       clamp(16px, 3vw, 32px);
    --font:         "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-head:    "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-2); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #ff5a00);
    color: #fff;
    font-weight: 600;
    border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 8px 24px var(--brand-glow);
    font-size: .95rem;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; }
.btn:active { transform: translateY(0); }
.btn.ghost {
    background: rgba(255,255,255,.04);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line);
}
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.block { width: 100%; justify-content: center; }
.btn.sm { padding: 8px 14px; font-size: .85rem; }
.btn.danger {
    background: linear-gradient(135deg, var(--danger), #b21f2d);
    box-shadow: 0 8px 24px rgba(239,79,93,.35);
}

/* ---------- top bar ---------- */
.topbar {
    background: linear-gradient(90deg, #0a0f1e, #131c34);
    color: var(--text-soft);
    font-size: .82rem;
    border-bottom: 1px solid var(--line);
}
.topbar .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: var(--text-soft); }
.topbar .greeting { display: inline-flex; gap: 8px; align-items: center; }
.topbar .greeting .flag { width: 18px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.topbar .switch { display: inline-flex; gap: 14px; align-items: center; }
.topbar .switch select {
    background: rgba(255,255,255,.04);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .82rem;
}

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(6,10,20,.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding-top: 16px; padding-bottom: 16px;
}
.brand {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    display: inline-flex; align-items: center; gap: 10px;
}
.brand .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 0 10px var(--brand-glow);
}
.brand .eu { color: var(--brand-2); }
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
    font-weight: 500; font-size: .95rem; color: var(--text-soft);
    position: relative; padding: 6px 0;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after, .nav a:hover::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.actions { display: flex; align-items: center; gap: 14px; }
.icon-link {
    color: var(--text-soft);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 10px; border-radius: 10px;
    transition: background .2s ease, color .2s ease;
}
.icon-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.cart-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--brand); color: #fff;
    font-weight: 700; font-size: .72rem;
}

/* ---------- hero ---------- */
.hero {
    position: relative; isolation: isolate;
    padding: clamp(60px, 12vw, 140px) 0 clamp(60px, 9vw, 100px);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255,122,24,.15), transparent 60%),
        radial-gradient(900px 600px at 10% 110%, rgba(24,211,168,.12), transparent 60%),
        var(--bg);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 0, transparent 70%);
    z-index: -1;
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-2);
}
.hero h1 {
    max-width: 920px;
    background: linear-gradient(120deg, #fff 30%, #ffb454 60%, #ff7a18 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
    max-width: 700px; color: var(--text-soft); font-size: 1.15rem; margin: 1.2rem 0 2rem;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .float {
    position: absolute; right: -60px; top: 20%;
    width: 520px; max-width: 50vw;
    opacity: .85;
    pointer-events: none;
    filter: drop-shadow(0 30px 60px rgba(255,122,24,.25));
    animation: float 8s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-12px); }
}

/* ---------- sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section.alt { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 2.4rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--muted); max-width: 480px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cat   { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.prod  { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.feat3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
    display: flex; flex-direction: column; gap: 14px;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,122,24,.4); box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,122,24,.12); color: var(--brand-2); }
.card h3 { margin: 0; }
.card p { color: var(--text-soft); margin: 0; }

/* product card */
.product {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-4px); border-color: rgba(255,122,24,.4); box-shadow: var(--shadow); }
.product .thumb {
    aspect-ratio: 4 / 3;
    background:
      radial-gradient(circle at 30% 30%, rgba(255,180,84,.12), transparent 60%),
      linear-gradient(160deg, #131d35, #0a1224);
    display: grid; place-items: center;
    overflow: hidden; position: relative;
}
.product .thumb img { width: 80%; height: 80%; object-fit: contain; }
.product .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product .cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product h3 { font-size: 1.05rem; margin: 0; }
.product .price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.product .price .now { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.product .price .was { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.product .ribbon {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--brand), #ff5a00);
    color: #fff; font-size: .7rem; padding: 4px 10px; border-radius: 999px;
    letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    box-shadow: 0 6px 20px var(--brand-glow);
}
.product .ribbon.sale { background: linear-gradient(135deg, var(--accent), #0e8e7a); box-shadow: 0 6px 20px rgba(24,211,168,.35); }
.product .locked, a.locked {
    color: var(--brand-2); font-size: .85rem; display: inline-flex; gap: 6px; align-items: center;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,122,24,.08);
    border: 1px solid rgba(255,122,24,.25);
    transition: background .15s ease, color .15s ease;
    text-decoration: none;
}
a.locked:hover { background: rgba(255,122,24,.18); color: #fff; }
.product .cta {
    margin-top: 12px; display: flex; gap: 8px; align-items: center;
}

/* category card */
.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 22px;
    background:
      linear-gradient(160deg, rgba(255,122,24,.08), transparent 60%),
      var(--surface);
    border: 1px solid var(--line);
    transition: transform .2s ease, border-color .2s ease;
    overflow: hidden;
}
.cat-card::before {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,122,24,.15), transparent 70%);
}
.cat-card:hover { transform: translateY(-4px); border-color: rgba(255,122,24,.4); }
.cat-card h3 { margin: 0; }
.cat-card .count { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.cat-card .arrow { margin-top: 18px; color: var(--brand-2); font-weight: 600; font-size: .9rem; }

/* ---------- offers strip ---------- */
.offers-strip {
    background: linear-gradient(90deg, rgba(24,211,168,.12), rgba(255,122,24,.12));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    font-size: .92rem;
    overflow: hidden;
}
.offers-strip .marquee {
    display: flex; gap: 50px; white-space: nowrap;
    animation: marq 30s linear infinite;
}
.offers-strip strong { color: var(--brand-2); }
@keyframes marq {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- footer ---------- */
.site-footer {
    background: #03060e;
    color: var(--text-soft);
    border-top: 1px solid var(--line);
    padding: 60px 0 30px;
    margin-top: 80px;
}
.site-footer .grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}
.site-footer h4 { color: var(--text); margin-bottom: 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .legal {
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .82rem;
}
.site-footer .badge {
    display: inline-flex; gap: 8px; align-items: center;
    background: rgba(24,211,168,.08); color: var(--accent);
    padding: 6px 12px; border-radius: 999px; font-size: .8rem;
    border: 1px solid rgba(24,211,168,.2);
}
.civilshop-card {
    background: linear-gradient(135deg, rgba(255,122,24,.1), rgba(24,211,168,.06));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px; margin-top: 14px;
}
.civilshop-card strong { color: var(--brand-2); }

@media (max-width: 900px) {
    .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .site-footer .grid { grid-template-columns: 1fr; }
    .nav { display: none; }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form label { display: block; font-size: .85rem; color: var(--text-soft); margin-bottom: 6px; }
.form input, .form select, .form textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 10px;
    font: inherit;
    transition: border-color .15s ease, background .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--brand);
    background: var(--surface-2);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .check { display: flex; gap: 8px; align-items: center; color: var(--text-soft); }

/* ---------- alerts ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem; }
.alert.success { background: rgba(24,211,168,.1); border: 1px solid rgba(24,211,168,.25); color: #6cf3d3; }
.alert.error   { background: rgba(239,79,93,.1); border: 1px solid rgba(239,79,93,.25);  color: #ff9aa3; }

/* ---------- cart / checkout layouts ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-table {
    width: 100%; border-collapse: collapse;
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line);
}
.cart-table th, .cart-table td {
    padding: 14px 16px; text-align: left;
    border-bottom: 1px solid var(--line);
}
.cart-table th { color: var(--muted); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.cart-table .thumb-sm { width: 60px; height: 60px; border-radius: 10px; background: #0a1224; display: grid; place-items: center; overflow: hidden; }
.cart-table .thumb-sm img { width: 100%; height: 100%; object-fit: contain; }
.cart-table input[type=number] { width: 70px; }

.summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: max-content;
    position: sticky; top: 100px;
}
.summary .row {
    display: flex; justify-content: space-between; padding: 8px 0;
    color: var(--text-soft);
}
.summary .row.grand {
    color: var(--text); font-weight: 700; font-size: 1.15rem;
    border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
}

/* ---------- product page ---------- */
.product-page { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.product-page .gallery {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    aspect-ratio: 1; display: grid; place-items: center; padding: 30px;
    background:
      radial-gradient(circle at 30% 30%, rgba(255,180,84,.1), transparent 60%),
      linear-gradient(160deg, #131d35, #0a1224);
}
.product-page .gallery img { max-height: 100%; object-fit: contain; }
.gallery-thumbs {
    display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.gallery-thumbs .gthumb {
    width: 78px; height: 78px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer; overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumbs .gthumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs .gthumb:hover { transform: translateY(-2px); }
.gallery-thumbs .gthumb.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.product-page .meta { display: flex; flex-direction: column; gap: 14px; }
.product-page .meta .cat { color: var(--brand-2); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.product-page .price-box {
    display: flex; align-items: baseline; gap: 12px; margin: 6px 0 16px;
}
.product-page .price-box .now { font-size: 2.2rem; font-weight: 700; }
.product-page .price-box .was { color: var(--muted); text-decoration: line-through; }
.product-page .specs {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; white-space: pre-line; color: var(--text-soft); font-size: .92rem;
    font-family: ui-monospace, "JetBrains Mono", "Menlo", monospace;
    line-height: 1.7;
}
@media (max-width: 900px) { .product-page { grid-template-columns: 1fr; } }

/* ---------- about / contact ---------- */
.page-head {
    padding: clamp(80px, 12vw, 140px) 0 40px;
    background:
        radial-gradient(800px 400px at 80% -10%, rgba(255,122,24,.15), transparent 60%),
        var(--bg);
}
.page-head h1 {
    background: linear-gradient(120deg, #fff 30%, #ffb454 60%, #ff7a18 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.info-box {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px; display: grid; gap: 8px;
}
.info-box strong { color: var(--text); }
.info-box .row { display: flex; justify-content: space-between; gap: 14px; color: var(--text-soft); border-bottom: 1px dashed var(--line); padding: 10px 0; }
.info-box .row:last-child { border: 0; }

/* ---------- auth / centered card ---------- */
.auth-shell {
    min-height: 70vh; display: grid; place-items: center; padding: 60px 16px;
}
.auth-card {
    width: 100%; max-width: 460px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 36px;
    box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 18px; font-size: .92rem; }

/* ---------- generic responsive ---------- */
@media (max-width: 700px) {
    .product-page { grid-template-columns: 1fr; }
    .hero .float { display: none; }
}

/* ---------- cookie banner & fab ---------- */
.cookie-fab {
    position: fixed; left: 20px; bottom: 20px; z-index: 60;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; border: 0; cursor: pointer; font-size: 20px;
    box-shadow: 0 8px 24px var(--brand-glow);
    transition: transform .15s ease;
}
.cookie-fab:hover { transform: scale(1.08); }
.cookie-banner {
    position: fixed; left: 20px; bottom: 20px; z-index: 70;
    width: min(420px, calc(100vw - 40px));
}
.cookie-banner.hidden { display: none; }
.cookie-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.cookie-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cookie-card p  { color: var(--text-soft); font-size: .9rem; margin: 0 0 14px; }
.cookie-card a  { color: var(--brand-2); text-decoration: underline; }
.cookie-row {
    display: flex; gap: 10px; align-items: center;
    padding: 6px 0; color: var(--text-soft); font-size: .92rem;
}
.cookie-row input { accent-color: var(--brand); }
.cookie-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 8px 12px; }

/* legal pages — table inside card */
.legal-table th, .legal-table td { padding: 10px 14px 10px 0; }

/* consent checkboxes */
.consent {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
}
.consent label {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 6px 0; color: var(--text-soft); font-size: .9rem; line-height: 1.5;
}
.consent label a { color: var(--brand-2); text-decoration: underline; }
.consent input[type=checkbox] { margin-top: 4px; accent-color: var(--brand); flex-shrink: 0; }
