/* EasyTech Shop – gemeinsames Stylesheet, angelehnt an das Haupt-Design */
:root {
    --navy-950: #071423;
    --navy-900: #0b2540;
    --blue-700: #1158a5;
    --blue-500: #1b74d1;
    --blue-300: #8bc0ff;
    --blue-100: #eaf3ff;
    --gray-900: #152334;
    --gray-700: #4c5d75;
    --gray-500: #7487a0;
    --gray-200: #d9e4f0;
    --gray-100: #f6f9fd;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.68);
    --glass-strong: rgba(255, 255, 255, 0.82);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-lg: 0 20px 48px rgba(10, 32, 58, 0.16);
    --shadow-md: 0 12px 28px rgba(10, 32, 58, 0.11);
    --shadow-sm: 0 7px 16px rgba(10, 32, 58, 0.08);
    --primary: #1b74d1;
    --danger: #dc2626;
    --success: #16a34a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Manrope, sans-serif;
    background:
        radial-gradient(circle at 9% 14%, rgba(157, 205, 255, 0.33), transparent 42%),
        radial-gradient(circle at 87% 16%, rgba(143, 189, 255, 0.24), transparent 38%),
        radial-gradient(circle at 52% 87%, rgba(222, 239, 255, 0.45), transparent 52%),
        var(--white);
    color: var(--gray-900);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }

.page-glow { position: fixed; inset: auto auto 0 0; width: 36vw; height: 36vw; max-width: 460px; max-height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(137, 194, 255, 0.36), rgba(137, 194, 255, 0)); filter: blur(30px); z-index: -1; pointer-events: none; }

/* ── Floating Nav (identisch zur Haupt-Website) ─────────────────────────── */
.floating-nav-wrap { position: fixed; left: 0; right: 0; top: 14px; z-index: 1400; pointer-events: none; }
.floating-nav { min-height: 72px; border-radius: 999px; pointer-events: auto; border: 1px solid rgba(165, 187, 215, 0.58); background: var(--glass); box-shadow: var(--shadow-md); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .58rem .75rem .58rem .72rem; }
.floating-nav .brand img { height: 42px; width: auto; }
.desktop-nav, .links { display: flex; gap: 1.4rem; justify-content: center; font-weight: 600; font-size: .92rem; }
.desktop-nav a, .links a { color: var(--gray-700); padding: .3rem 0; border-bottom: 2px solid transparent; }
.desktop-nav a:hover, .links a:hover, .desktop-nav a.active, .links a.active { color: var(--blue-700); border-color: var(--blue-500); }
.menu-toggle { display: none; border: none; background: var(--white); width: 42px; height: 42px; border-radius: 50%; box-shadow: var(--shadow-sm); font-size: 1.1rem; color: var(--blue-700); cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; gap: .2rem; background: var(--glass-strong); border-radius: var(--radius-lg); margin-top: .5rem; padding: .8rem 1rem; box-shadow: var(--shadow-md); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .55rem 0; font-weight: 600; border-bottom: 1px solid var(--gray-200); }
.cart-badge { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); color: var(--blue-700); font-size: 1.05rem; }
.cart-badge span { position: absolute; top: -4px; right: -4px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

@media (max-width: 880px) {
    .desktop-nav, .links { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ── Buttons / Cards (gleiche Optik wie Hauptseite) ─────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .92rem; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--blue-700); border-color: var(--blue-500); }
.btn-secondary:hover { background: var(--blue-100); }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; }

.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }

/* ── Shop-Seiten ─────────────────────────────────────────────────────────── */
main.shop-main { padding-top: 7.4rem; padding-bottom: 4rem; min-height: 70vh; }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.shop-toolbar form { display: flex; gap: .6rem; flex-wrap: wrap; }
.shop-toolbar input[type=text], .shop-toolbar select, select, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], textarea {
    padding: .7rem .9rem; border-radius: var(--radius-md); border: 1.5px solid var(--gray-200); font-family: inherit; font-size: .92rem; background: var(--white);
}
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.shop-filters { position: sticky; top: 7.4rem; }
.shop-filters h3 { font-family: Sora, sans-serif; font-size: 1rem; margin: 1rem 0 .5rem; }
.shop-filters a { display: block; padding: .3rem 0; color: var(--gray-700); }
.shop-filters a.active, .shop-filters a:hover { color: var(--blue-700); font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.product-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--gray-100); position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge { position: absolute; top: .6rem; left: .6rem; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; padding: .25rem .55rem; border-radius: 999px; }
.product-card .badge.sale { background: var(--danger); }
.product-card .body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card h3 { font-size: 1rem; margin: 0; font-family: Sora, sans-serif; }
.product-card .cat { font-size: .78rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.product-card .price-row { margin-top: auto; display: flex; align-items: center; gap: .5rem; }
.price-old { text-decoration: line-through; color: var(--gray-500); font-size: .85rem; }
.price-now { font-weight: 800; font-size: 1.1rem; color: var(--blue-700); }

.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-family: Sora, sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.section-head p { color: var(--gray-700); max-width: 620px; margin: 0 auto; }

/* Produktdetail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-gallery img.main { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow-sm); }
.product-gallery .thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.product-gallery .thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-md); cursor: pointer; border: 2px solid transparent; }
.product-gallery .thumbs img.active { border-color: var(--blue-500); }
.product-info h1 { font-family: Sora, sans-serif; font-size: 1.9rem; margin: 0 0 .5rem; }
.product-info .price-row { font-size: 1.5rem; margin: .8rem 0; }
.stock-ok { color: var(--success); font-weight: 700; }
.stock-low { color: #d97706; font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; }
.qty-select { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; }
.qty-select input { width: 70px; text-align: center; }

/* Warenkorb / Checkout */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td, .cart-table th { padding: .8rem .5rem; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: middle; }
.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-md); }
.cart-summary { padding: 1.4rem; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.cart-summary .total { font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--gray-200); padding-top: .7rem; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-grid label, label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.form-group { margin-bottom: .9rem; }
.payment-option { display: flex; align-items: flex-start; gap: .7rem; padding: .9rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); margin-bottom: .7rem; cursor: pointer; }
.payment-option input { margin-top: .2rem; }
.payment-option.selected { border-color: var(--blue-500); background: var(--blue-100); }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: var(--blue-100); color: var(--blue-700); }

.footer { background: var(--navy-950); color: var(--gray-200); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.footer h3 { color: #fff; font-family: Sora, sans-serif; }
.footer a { color: var(--blue-300); }

@media (max-width: 900px) {
    .shop-layout, .product-detail, .checkout-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
}
