/* ================================
   Y.L. PARTS - Main Stylesheet
   Black + electric blue (matching logo)
   ================================ */

:root {
    --black: #000000;
    --bg: #0a0a0a;
    --bg-soft: #131313;
    --bg-card: #1a1a1a;
    --bg-card-2: #232323;
    --blue: #2196f3;
    --blue-light: #5cb6f8;
    --blue-glow: #4fc3f7;
    --blue-deep: #1565c0;
    --white: #ffffff;
    --text: #ffffff;
    --text-mute: #a3a3a3;
    --text-dim: #6e6e6e;
    --border: rgba(92,182,248,0.13);
    --border-soft: rgba(255,255,255,0.07);
    --red: #e53935;
    --green: #43a047;
    --gold: #ffb300;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.5);
    --shadow-md: 0 12px 36px rgba(0,0,0,0.6);
    --shadow-blue: 0 8px 28px rgba(33,150,243,0.4);
    --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; direction: rtl; }
body {
    font-family: 'Heebo', 'Rubik', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== TOPBAR ========== */
.topbar-strip {
    background: var(--bg-card);
    color: var(--text-mute);
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
}
.topbar-strip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-strip .left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-strip .left a, .topbar-strip .left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-strip i { color: var(--blue-light); }
.topbar-strip strong { color: var(--white); }
.today-status { color: var(--green); font-weight: 700; }
.today-status.closed { color: var(--red); }

/* ========== NAVBAR ========== */
.navbar {
    position: sticky; top: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: all .3s;
}
.navbar.scrolled { background: rgba(0,0,0,0.98); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}
.logo-img {
    height: 50px;
    border-radius: 6px;
    background: #000;
    padding: 4px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .top {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--blue-light);
    letter-spacing: 1px;
}
.logo-text .sub {
    font-size: 0.72rem;
    color: var(--text-mute);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-links { display: flex; align-items: center; list-style: none; gap: 28px; }
.nav-links > li { display: flex; align-items: center; }
.nav-links a:not(.nav-cta) {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    width: 0; height: 2px;
    background: var(--blue);
    transition: width .3s;
    margin: 0 auto;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff !important;
    padding: 11px 22px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
    transition: all .3s;
    box-shadow: var(--shadow-blue);
    white-space: nowrap;
}
.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--blue-light);
    box-shadow: 0 12px 32px rgba(33,150,243,0.55);
    color: #fff !important;
}
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--blue-light);
    font-size: 1.2rem;
}
.cart-count {
    position: absolute;
    top: -8px; left: -10px;
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; background: none; border: none; color: var(--blue-light); font-size: 1.6rem; cursor: pointer; }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(33,150,243,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(21,101,192,0.12) 0%, transparent 50%),
        var(--black);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(92,182,248,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92,182,248,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.hero-content { position: relative; z-index: 2; padding: 80px 0 50px; text-align: center; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(33,150,243,0.12);
    border: 1px solid rgba(33,150,243,0.4);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 24px;
    letter-spacing: 1.5px;
}
.hero-tag::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--blue-light);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--blue-light);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero h1 .gradient {
    background: linear-gradient(90deg, var(--blue-light), var(--white), var(--blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--text-mute); max-width: 680px; margin: 0 auto 30px; line-height: 1.8; }

/* ========== SKU SEARCH BOX (Delek lookup) ========== */
.sku-search-wrap {
    max-width: 700px;
    margin: 30px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow-md);
    text-align: right;
}
.sku-search-wrap h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--blue-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sku-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sku-form input {
    flex: 1;
    min-width: 180px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all .2s;
}
.sku-form input:focus {
    outline: none;
    border-color: var(--blue);
    background: #000;
}
.sku-form select {
    background: var(--bg-soft);
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    padding: 14px;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}
.sku-form button {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sku-form button:hover { background: var(--blue-light); transform: translateY(-2px); }

.sku-result {
    margin-top: 18px;
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    display: none;
}
.sku-result.active { display: block; }
.sku-loading { color: var(--text-mute); display: flex; align-items: center; gap: 10px; }
.sku-card {
    background: var(--bg-soft);
    border: 1px solid var(--blue);
    border-radius: 10px;
    padding: 18px;
}
.sku-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.sku-card-name { font-size: 1.15rem; font-weight: 800; }
.sku-card-name small { color: var(--text-mute); font-weight: 500; }
.sku-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.sku-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-mute);
}
.sku-badge.original { background: var(--blue); color: #fff; border-color: var(--blue); }
.sku-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 14px 0;
}
.sku-price-box {
    background: var(--bg-card);
    padding: 14px;
    border-radius: 8px;
    text-align: center;
}
.sku-price-box .label { font-size: 0.75rem; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; }
.sku-price-box .amount { font-size: 1.4rem; font-weight: 900; color: var(--white); margin-top: 4px; }
.sku-price-box.featured { background: rgba(33,150,243,0.12); border: 1px solid var(--blue); }
.sku-price-box.featured .amount { color: var(--blue-light); font-size: 1.7rem; }
.sku-meta { font-size: 0.88rem; color: var(--text-mute); margin-top: 8px; }
.sku-meta i { color: var(--blue-light); margin-inline-end: 4px; }
.sku-error {
    color: #ff6b6b;
    background: rgba(229,57,53,0.1);
    border: 1px solid rgba(229,57,53,0.3);
    padding: 12px 16px;
    border-radius: 8px;
}

/* SKU result — add-to-cart row */
.sku-order-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sku-qty {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    padding: 4px;
}
.sku-qty-btn {
    width: 34px; height: 34px;
    background: var(--bg-card-2);
    border: none;
    color: #fff;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sku-qty-btn:hover { background: var(--blue); transform: scale(1.05); }
.sku-qty-input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    -moz-appearance: textfield;
}
.sku-qty-input::-webkit-outer-spin-button,
.sku-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sku-order-btn { flex: 1; min-width: 180px; }
.sku-go-cart { white-space: nowrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all .3s;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-light); color: #fff; }
.btn-secondary { background: transparent; color: #fff; border: 2px solid rgba(92,182,248,0.3); }
.btn-secondary:hover { border-color: var(--blue-light); color: var(--blue-light); background: rgba(92,182,248,0.05); }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
.btn-whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ========== SECTIONS ========== */
.section { padding: 90px 0; }
.section.bg-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .eyebrow {
    display: inline-block;
    color: var(--blue-light);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-title h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.5px;
}
.section-title .divider {
    width: 70px; height: 3px;
    margin: 18px auto 0;
    background: var(--blue);
    border-radius: 2px;
}
.section-title p { color: var(--text-mute); font-size: 1.05rem; margin-top: 20px; max-width: 640px; margin-inline: auto; }

/* ========== PRODUCTS ========== */
.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    align-items: center;
    justify-content: space-between;
}
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    color: var(--text-mute);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.cat-chip:hover { border-color: var(--blue-light); color: #fff; }
.cat-chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    font-family: inherit;
    width: 240px;
}
.search-input:focus { outline: none; border-color: var(--blue); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(92,182,248,0.3);
    box-shadow: var(--shadow-md);
}
.product-img {
    aspect-ratio: 4/3;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    color: var(--text-dim);
    font-size: 3rem;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}
.product-badge.original {
    background: var(--gold);
    color: #000;
}
.product-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-brand { color: var(--blue-light); font-size: 0.78rem; letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; }
.product-name { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; min-height: 44px; line-height: 1.4; }
.product-sku { font-family: 'Courier New', monospace; color: var(--text-mute); font-size: 0.78rem; margin-bottom: 12px; }
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}
.product-price {
    display: flex;
    flex-direction: column;
}
.product-price .before { color: #fff; font-weight: 900; font-size: 1.4rem; line-height: 1; }
.product-price .vat-info { color: var(--text-mute); font-size: 0.75rem; margin-top: 4px; }
.product-stock { font-size: 0.78rem; }
.product-stock.in { color: var(--green); }
.product-stock.out { color: var(--red); }
.product-actions { margin-top: 14px; display: flex; gap: 8px; }

/* ========== CART / CHECKOUT ========== */
.cart-section { background: var(--bg); min-height: 60vh; }
.cart-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.cart-items {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 24px;
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
    width: 80px; height: 80px;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; margin-bottom: 4px; }
.cart-item-meta { color: var(--text-mute); font-size: 0.85rem; }
.cart-item-line { text-align: left; }
.cart-item-line .before-vat { font-weight: 800; font-size: 1.1rem; color: var(--blue-light); }
.cart-item-line .with-vat { color: var(--text-mute); font-size: 0.8rem; margin-top: 2px; }

.checkout-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    position: sticky;
    top: 100px;
    height: fit-content;
}
.checkout-summary h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; }
.sum-row.subtotal { padding-top: 14px; border-top: 1px solid var(--border-soft); }
.sum-row.vat { color: var(--text-mute); font-size: 0.92rem; }
.sum-row.total {
    border-top: 1px solid var(--border-soft);
    margin-top: 10px;
    padding-top: 16px;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--blue-light);
}
#paypal-button-container { margin-top: 18px; }

/* ========== HOURS ========== */
.hours-card {
    max-width: 540px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.hours-card-head {
    background: linear-gradient(90deg, var(--blue-deep), var(--bg-card));
    padding: 18px 24px;
    border-bottom: 1px solid var(--blue);
    display: flex;
    align-items: center;
    gap: 12px;
}
.hours-card-head h3 { font-size: 1.15rem; }
.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-soft);
}
.hours-row:last-child { border-bottom: none; }
.hours-row.today { background: rgba(33,150,243,0.06); border-right: 3px solid var(--blue); }
.hours-day { font-weight: 700; }
.hours-day.today { color: var(--blue-light); }
.hours-time { color: var(--text-mute); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-time.closed { color: var(--red); font-style: italic; }

/* ========== ABOUT/FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.feature { text-align: center; padding: 26px 18px; }
.feature-icon {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.feature h3 { margin-bottom: 12px; font-size: 1.1rem; font-weight: 800; }
.feature p { color: var(--text-mute); font-size: 0.92rem; }

/* ========== CONTACT ========== */
.contact-section { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-soft);
}
.contact-info-icon {
    width: 50px; height: 50px;
    background: rgba(33,150,243,0.12);
    color: var(--blue-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.contact-info-content h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-content p, .contact-info-content a { color: var(--text-mute); font-size: 0.95rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-control {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    padding: 13px 16px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all .25s;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,150,243,0.12); }
.form-control::placeholder { color: var(--text-dim); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.95rem; border-right: 4px solid; }
.alert-success { background: rgba(67,160,71,0.1); color: #66bb6a; border-color: var(--green); }
.alert-error { background: rgba(229,57,53,0.1); color: #ff6b6b; border-color: var(--red); }
.alert-info { background: rgba(33,150,243,0.1); color: var(--blue-light); border-color: var(--blue); }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px; left: 24px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    transition: all .3s;
    animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4); }
    50%      { box-shadow: 0 8px 24px rgba(37,211,102,0.5), 0 0 0 16px rgba(37,211,102,0); }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--black);
    padding: 70px 0 30px;
    border-top: 1px solid var(--border);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer h4 {
    font-size: 1rem;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue-light);
}
.footer p, .footer a, .footer li { color: var(--text-mute); font-size: 0.92rem; line-height: 2; }
.footer ul { list-style: none; }
.footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
    width: 42px; height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all .3s;
}
.footer-social a:hover { background: var(--blue); transform: translateY(-3px); border-color: var(--blue); }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 80px; right: -100%;
        flex-direction: column;
        align-items: stretch;
        background: var(--black);
        width: 280px;
        height: calc(100vh - 80px);
        padding: 40px 30px;
        gap: 24px;
        transition: right .3s;
        border-right: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }
    .menu-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .section { padding: 60px 0; }
    .cart-wrap { grid-template-columns: 1fr; }
    .sku-price-grid { grid-template-columns: 1fr; }
    .topbar-strip .container { font-size: 0.78rem; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .btn { padding: 13px 24px; font-size: 0.92rem; }
}

/* ============== Search tabs (homepage) ============== */
.search-tabs { background: rgba(255,255,255,0.05); border-radius: 16px; padding: 6px; margin: 30px 0 18px; }
.search-tabs-nav { display: flex; gap: 4px; padding: 4px; background: rgba(0,0,0,0.25); border-radius: 12px; }
.search-tabs-nav .tab-btn {
    flex: 1; padding: 12px 16px; background: transparent; border: none;
    color: rgba(255,255,255,0.7); font-weight: 600; cursor: pointer;
    font-family: inherit; font-size: 0.92rem; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .15s;
}
.search-tabs-nav .tab-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.search-tabs-nav .tab-btn.active {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,102,177,0.3);
}
.tab-panel { display: none; padding: 18px; }
.tab-panel.active { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px);} to { opacity:1; transform:translateY(0);} }

@media (max-width: 720px) {
    .search-tabs-nav { flex-direction: column; }
    .search-tabs-nav .tab-btn { justify-content: flex-start; }
}

/* ============== SHOP — full e-commerce experience ============== */
.shop-header { background: linear-gradient(135deg, #0066B1 0%, #003e6e 100%); color: #fff; padding: 40px 0 30px; }
.shop-header .breadcrumb { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shop-header .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.shop-header .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.shop-header .breadcrumb .current { color: #fff; font-weight: 600; }
.shop-header .shop-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.shop-header .result-count { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.12); padding: 4px 12px; border-radius: 99px; }
.shop-header .shop-sub { color: rgba(255,255,255,0.8); margin-top: 8px; font-size: 0.95rem; }

.shop-main { padding: 30px 0 60px; background: #f7f8fa; }
.shop-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }

/* SIDEBAR */
.shop-sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 20px; }
.filter-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.filter-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #475569; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
.filter-card h3 i { color: var(--blue); }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { margin: 0; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 6px; color: #334155; text-decoration: none; font-size: 0.9rem; transition: background .15s; }
.filter-list a:hover { background: #f1f5f9; color: var(--blue); }
.filter-list a.active { background: rgba(0,102,177,0.1); color: var(--blue); font-weight: 700; }
.filter-list .count { font-size: 0.78rem; color: #94a3b8; background: #f1f5f9; padding: 1px 8px; border-radius: 99px; font-weight: 600; }
.filter-list a.active .count { background: var(--blue); color: #fff; }
.filter-input { flex: 1; padding: 7px 10px; border: 1.5px solid #cbd5e1; border-radius: 6px; font-size: 0.88rem; font-family: inherit; min-width: 0; }
.filter-input:focus { outline: none; border-color: var(--blue); }
.filter-clear { display: block; text-align: center; margin-top: 8px; font-size: 0.82rem; color: #ef4444; text-decoration: none; }
.filter-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; color: #334155; }
.filter-checkbox input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }

/* TOOLBAR */
.shop-toolbar { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-search { flex: 1; min-width: 240px; position: relative; }
.shop-search i.fa-search { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.shop-search input { width: 100%; padding: 9px 38px 9px 36px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; font-family: inherit; }
.shop-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,177,0.12); }
.search-clear { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; text-decoration: none; font-size: 1.3rem; }
.shop-tools { display: flex; gap: 10px; align-items: center; }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #475569; }
.shop-sort select { padding: 7px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 0.9rem; font-family: inherit; background: #fff; cursor: pointer; }
.view-switch { display: flex; gap: 2px; background: #f1f5f9; padding: 3px; border-radius: 7px; }
.view-switch a { padding: 7px 11px; color: #64748b; text-decoration: none; border-radius: 5px; font-size: 0.92rem; }
.view-switch a.active { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* PRODUCT CARDS */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.products-grid.list-view { grid-template-columns: 1fr; }
.products-grid.list-view .product-card { display: grid; grid-template-columns: 200px 1fr; }
.products-grid.list-view .product-img { aspect-ratio: auto; height: 100%; min-height: 180px; }
.product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; transition: all .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); border-color: var(--blue); }
.product-img { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #f8fafc, #f1f5f9); display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; position: relative; z-index: 1; }
.product-img .placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: #cbd5e1; z-index: 0; }
.product-img.no-img .placeholder { z-index: 1; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge { position: absolute; padding: 4px 11px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; border-radius: 99px; z-index: 2; }
.product-badge.featured { top: 10px; right: 10px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.product-badge.original { top: 10px; left: 10px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.product-badge.sold { top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(239,68,68,0.95); color: #fff; padding: 8px 22px; font-size: 0.85rem; }
.product-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.product-meta-top { display: flex; gap: 6px; align-items: center; font-size: 0.74rem; color: #64748b; margin-bottom: 6px; }
.product-brand { color: var(--blue); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.product-cat::before { content: '·'; margin-inline: 5px; }
.product-name { font-size: 0.98rem; font-weight: 600; color: #0f172a; text-decoration: none; line-height: 1.35; margin-bottom: 6px; display: block; min-height: 2.7em; }
.product-name:hover { color: var(--blue); text-decoration: none; }
.product-model { font-size: 0.78rem; color: #64748b; margin-bottom: 4px; }
.product-model i { color: var(--blue); margin-left: 4px; }
.product-sku { font-size: 0.78rem; color: #94a3b8; margin-bottom: 10px; font-family: 'SF Mono', Menlo, monospace; }
.product-price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; padding-top: 10px; border-top: 1px dashed #f1f5f9; }
.product-price .before { font-size: 1.25rem; font-weight: 800; color: var(--blue); }
.product-price .vat-info { font-size: 0.7rem; color: #94a3b8; margin-top: 2px; }
.product-stock { font-size: 0.78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.product-stock.in { background: #dcfce7; color: #166534; }
.product-stock.out { background: #fee2e2; color: #991b1b; }
.product-actions { display: flex; gap: 6px; margin-top: auto; }
.product-actions .btn-block { flex: 1; }

/* EMPTY STATE */
.empty-shop { text-align: center; padding: 80px 20px; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; }
.empty-shop i { font-size: 4rem; color: #cbd5e1; margin-bottom: 18px; display: block; }
.empty-shop h3 { font-size: 1.3rem; margin-bottom: 8px; color: #0f172a; }
.empty-shop p { color: #64748b; }

/* PAGINATION */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.pagination a { padding: 9px 14px; background: #fff; color: #475569; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: all .15s; }
.pagination a:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination a.disabled { opacity: 0.4; pointer-events: none; }
.pagination .page-info { font-size: 0.85rem; color: #64748b; margin-inline-start: 14px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; max-height: none; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-tools { justify-content: space-between; }
}

/* ============== CATALOG (BMW manual browser inside yl-parts) ============== */
.catalog-header {
    background: linear-gradient(135deg, #0066B1 0%, #002952 100%);
    color: #fff;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}
.catalog-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.1), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(255,255,255,0.08), transparent 50%);
    pointer-events: none;
}
.catalog-header .container { position: relative; }
.catalog-header .breadcrumb { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.catalog-header .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .15s; }
.catalog-header .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.catalog-header .breadcrumb .current { color: #fff; font-weight: 700; }
.catalog-header h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.catalog-header h1 i { color: rgba(255,255,255,0.7); font-size: 0.85em; }
.catalog-header > .container > p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 600px; }

.catalog-quick-search { margin-top: 20px; display: flex; gap: 0; max-width: 540px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.catalog-quick-search .qs-input { flex: 1; border: none; padding: 14px 20px; font-size: 1rem; font-family: inherit; color: #0f172a; }
.catalog-quick-search .qs-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.catalog-quick-search button { background: var(--blue); color: #fff; border: none; padding: 14px 24px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 0.95rem; transition: background .15s; }
.catalog-quick-search button:hover { background: #003e6e; }

.catalog-main { background: #f7f8fa; padding: 40px 0 80px; min-height: 60vh; }

.catalog-alert {
    background: #fff; border-radius: 14px; padding: 24px 28px;
    border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px;
}
.catalog-alert i { font-size: 2rem; flex-shrink: 0; }
.catalog-alert.info { border-left: 4px solid var(--blue); }
.catalog-alert.info i { color: var(--blue); }
.catalog-alert.warning { border-left: 4px solid #f59e0b; }
.catalog-alert.warning i { color: #f59e0b; }
.catalog-alert.error { border-left: 4px solid #ef4444; }
.catalog-alert.error i { color: #ef4444; }
.catalog-alert strong { display: block; font-size: 1.05rem; margin-bottom: 6px; color: #0f172a; }
.catalog-alert p { color: #475569; margin: 0; line-height: 1.6; }
.catalog-alert a { color: var(--blue); font-weight: 600; }

/* BRAND GRID */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.brand-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 36px 24px; text-align: center; text-decoration: none;
    color: #0f172a; transition: all .25s; position: relative; overflow: hidden;
    border-top: 4px solid var(--blue);
}
.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-decoration: none; color: #0f172a;
}
.brand-card i { font-size: 3rem; display: block; margin-bottom: 18px; }
.brand-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.brand-card p { color: #64748b; font-size: 0.88rem; }

/* CATEGORY CARDS (series, models, groups) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 22px 18px; text-align: center; text-decoration: none;
    color: #0f172a; transition: all .2s; display: flex; flex-direction: column;
    align-items: center; gap: 8px;
}
.cat-card:hover {
    border-color: var(--blue);
    background: linear-gradient(135deg, #fff, #f0f7ff);
    transform: translateY(-3px); text-decoration: none; color: var(--blue);
    box-shadow: 0 10px 24px rgba(0,102,177,0.12);
}
.cat-card i { font-size: 1.8rem; color: var(--blue); margin-bottom: 4px; }
.cat-card.big { padding: 32px 22px; }
.cat-card.big i { font-size: 2.4rem; }
.cat-card .cat-name { font-size: 1.05rem; font-weight: 700; }
.cat-card small { color: #94a3b8; font-size: 0.78rem; margin-top: 2px; }

/* DIAGRAM THUMBNAILS GRID */
.diagram-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.dt-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    overflow: hidden; text-decoration: none; transition: all .2s; display: block;
}
.dt-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 10px 22px rgba(0,0,0,0.08); }
.dt-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f8fafc; padding: 10px; }
.dt-card span { display: block; padding: 8px 12px; font-family: monospace; font-size: 0.85rem; text-align: center; color: #475569; border-top: 1px solid #f1f5f9; }

/* DIAGRAM VIEW (image + parts list) */
.diagram-view { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.diagram-img { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; }
.diagram-img img { width: 100%; height: auto; display: block; }
.diagram-parts { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; }
.diagram-parts h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.parts-list { display: flex; flex-direction: column; gap: 8px; max-height: 600px; overflow-y: auto; }
.part-row {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px; background: #f7fafc; border-radius: 8px; transition: background .15s;
}
.part-row:hover { background: #eff6ff; }
.part-pos {
    background: var(--blue); color: #fff; border-radius: 6px;
    width: 32px; height: 32px; display: grid; place-items: center;
    font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.part-info { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: baseline; }
.part-no { font-family: monospace; font-weight: 700; color: #0f172a; text-decoration: none; }
.part-no:hover { color: var(--blue); }
.part-price { color: var(--blue); font-weight: 600; font-size: 0.92rem; margin-inline-start: auto; }

/* PART DETAIL */
.part-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.part-detail-imgs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.part-detail-imgs img { width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.part-detail-info { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; }
.part-detail-info h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid #f1f5f9; }
.part-spec-table { width: 100%; margin-bottom: 24px; }
.part-spec-table th, .part-spec-table td { text-align: right; padding: 10px 12px; font-size: 0.95rem; border-bottom: 1px solid #f1f5f9; }
.part-spec-table th { font-weight: 600; color: #64748b; font-size: 0.85rem; width: 40%; }
.part-actions { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 900px) {
    .diagram-view, .part-detail { grid-template-columns: 1fr; }
    .catalog-quick-search { flex-direction: column; border-radius: 12px; }
}

/* ============== VIN RESULT CARD ============== */
.vin-result { max-width: 720px; margin: 0 auto; }
.vin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    color: #0f172a;
}
.vin-card-head {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.vin-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #eff6ff; color: var(--blue);
    border: 1px solid #bfdbfe; border-radius: 99px;
    padding: 4px 14px; font-size: 0.82rem; font-weight: 700;
    font-family: 'SF Mono', Menlo, monospace; letter-spacing: 0.5px;
}
.vin-tag.chassis { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.vin-card h2 {
    font-size: 1.8rem; font-weight: 800; color: #0f172a;
    padding-bottom: 18px; border-bottom: 2px solid #f1f5f9;
    margin-bottom: 22px;
}
.vin-card .part-spec-table { background: transparent; }
.vin-card .part-spec-table tr { border-bottom: 1px solid #f1f5f9; }
.vin-card .part-spec-table th {
    text-align: right; padding: 12px 14px;
    color: #64748b; font-weight: 600; font-size: 0.85rem;
    background: transparent; width: 40%;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.vin-card .part-spec-table td {
    padding: 12px 14px; font-size: 1rem; font-weight: 600;
    color: #0f172a; background: transparent;
}
.vin-card .part-spec-table td code {
    background: #f1f5f9; padding: 2px 8px; border-radius: 4px;
    font-family: 'SF Mono', Menlo, monospace; font-size: 0.88rem;
}
.vin-card .part-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* Also fix part detail page */
.part-detail-info { color: #0f172a; }
.part-detail-info h2 { color: #0f172a; }
.part-spec-table th { background: transparent; color: #64748b; }
.part-spec-table td { color: #0f172a; }

/* Make sure catalog-main never inherits white text */
.catalog-main, .catalog-main * { color: inherit; }
.catalog-main { color: #0f172a; }

/* ============== SERIES GROUP CARDS (1, 2, 3, 4, 5, X, M, Z, i) ============== */
.series-group-card {
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 18px;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    aspect-ratio: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.series-group-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue), #003e6e);
    opacity: 0;
    transition: opacity .2s;
    z-index: 0;
}
.series-group-card > * { position: relative; z-index: 1; transition: color .2s; }
.series-group-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 16px 36px rgba(0,102,177,0.18);
    color: #fff;
    text-decoration: none;
}
.series-group-card:hover::before { opacity: 1; }
.series-group-card .sg-num {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--blue);
    transition: color .2s;
    letter-spacing: -2px;
}
.series-group-card:hover .sg-num { color: #fff; }
.series-group-card .sg-lbl {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 6px;
}
.series-group-card small { font-size: 0.78rem; color: #94a3b8; margin-top: 4px; }
.series-group-card:hover .sg-lbl,
.series-group-card:hover small { color: rgba(255,255,255,0.85); }

/* ============== THUMB-GRID (main groups + functional groups with REAL ETK thumbnails) ============== */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.thumb-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px 10px;
    text-decoration: none;
    color: #0f172a;
    transition: all .2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.thumb-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--blue);
}
.thumb-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px;
}
.thumb-card .thumb-fallback {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    color: var(--blue);
    opacity: 0.5;
}
.thumb-card span {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}
