/* ═══════════════════════════════════════════════════════════════
   VELG & BAN CATALOG — Premium Redesign
   Consistent with Aurora Navy Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Page-Specific Hero Banner ─────────────────────────────── */
.velg-hero {
    background:
        radial-gradient(420px 240px at 85% -5%, rgba(53, 101, 224, 0.36), transparent 62%),
        radial-gradient(300px 180px at -4% 110%, rgba(215, 18, 58, 0.18), transparent 62%),
        linear-gradient(155deg, #1a3a72 0%, #0d1b3e 55%, #081029 100%);
    padding: 22px 22px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    box-shadow: 0 14px 34px rgba(7, 13, 34, 0.3);
}

.velg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

/* Decorative floating circles */
.velg-hero::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -40px;
    top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 101, 224, 0.15), transparent 70%);
    pointer-events: none;
}

.velg-hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.velg-hero-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 16px;
}

.velg-hero-back:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateX(-3px);
}

.velg-hero-back:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
}

.velg-hero-count {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.velg-hero-count i {
    font-size: 11px;
}

.velg-hero-content {
    position: relative;
    z-index: 2;
}

.velg-hero-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(53, 101, 224, 0.35), rgba(215, 18, 58, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.velg-hero-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.velg-hero-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* ── Category Filter Tabs ──────────────────────────────────── */
.velg-filter-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    z-index: 2;
}

.velg-filter-tabs::-webkit-scrollbar {
    display: none;
}

.velg-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    letter-spacing: 0.1px;
}

.velg-tab i {
    font-size: 12px;
    opacity: 0.7;
}

.velg-tab:hover {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

.velg-tab.active {
    background: white;
    color: var(--primary-blue);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.velg-tab.active i {
    opacity: 1;
    color: var(--accent-blue);
}

/* ── Product Grid ──────────────────────────────────────────── */
.velg-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
    padding: 0 18px 40px;
}

/* ── Product Card — Glassmorphism Style ────────────────────── */
.velg-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.35s var(--ease);
    position: relative;
    cursor: pointer;
    box-shadow: var(--ring), var(--shadow-xs);
}

.velg-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(53, 101, 224, 0.15);
}

.velg-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* ── Image Area ────────────────────────────────────────────── */
.velg-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(53, 101, 224, 0.04), transparent 65%),
        linear-gradient(145deg, #f3f5fa 0%, #edf0f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 14px;
}

.velg-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-bottom: 1px solid var(--border-color);
}

.velg-card-img img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    transition: transform 0.5s var(--ease-out);
    filter: drop-shadow(0 4px 12px rgba(13, 27, 62, 0.08));
}

.velg-card:hover .velg-card-img img {
    transform: scale(1.1) rotate(8deg);
}

/* ── Badge ─────────────────────────────────────────────────── */
.velg-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.velg-badge-ready {
    background: var(--green-light);
    color: var(--green-success);
    border: 1px solid rgba(13, 146, 104, 0.15);
}

.velg-badge-po {
    background: var(--yellow-light);
    color: var(--yellow-warn);
    border: 1px solid rgba(180, 83, 9, 0.15);
}

.velg-badge i {
    font-size: 8px;
}

/* ── Card Body ─────────────────────────────────────────────── */
.velg-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.velg-card-brand {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.velg-card-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

/* ── Spec Tags ─────────────────────────────────────────────── */
.velg-specs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.velg-spec {
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.velg-spec i {
    font-size: 9px;
    color: var(--text-muted);
}

/* ── Card Footer (Price + CTA) ─────────────────────────────── */
.velg-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.velg-price-block {
    display: flex;
    flex-direction: column;
}

.velg-price-label {
    font-size: 9.5px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
}

.velg-price-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.velg-btn-add {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-size: 14px;
    background: var(--navy-grad);
    color: white;
    box-shadow: var(--shadow-blue);
    flex-shrink: 0;
}

.velg-btn-add:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(53, 101, 224, 0.3);
}

.velg-btn-add:active {
    transform: scale(0.92);
}

/* ── Empty State ───────────────────────────────────────────── */
.velg-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 52px 20px;
    color: var(--text-muted);
}

.velg-empty-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.velg-empty h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.velg-empty p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   DETAIL MODAL — Bottom Sheet Style
   ═══════════════════════════════════════════════════════════════ */
.velg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 13, 34, 0.65);
    backdrop-filter: blur(16px);
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.velg-modal.show {
    opacity: 1;
    visibility: visible;
}

.velg-modal-content {
    background: var(--card-bg);
    width: 100%;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: 12px 22px 32px;
    transform: translateY(100%);
    transition: transform 0.4s var(--spring);
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 -16px 48px rgba(7, 13, 34, 0.25);
}

.velg-modal.show .velg-modal-content {
    transform: translateY(0);
}

/* ── Modal Drag Handle ─────────────────────────────────────── */
.modal-drag-handle {
    width: 38px;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    margin: 4px auto 22px;
}

/* ── Modal Header Row ──────────────────────────────────────── */
.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.modal-title-row .product-brand {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.modal-title-row .product-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.modal-price-tag {
    background: linear-gradient(135deg, rgba(53, 101, 224, 0.08), rgba(53, 101, 224, 0.14));
    color: var(--accent-blue);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
    border: 1px solid rgba(53, 101, 224, 0.12);
    flex-shrink: 0;
}

/* ── Modal Image ───────────────────────────────────────────── */
.modal-img-showcase {
    width: 100%;
    height: 220px;
    background:
        radial-gradient(circle at 50% 50%, rgba(53, 101, 224, 0.05), transparent 65%),
        linear-gradient(145deg, #f3f5fa 0%, #edf0f8 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.modal-img-showcase img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(13, 27, 62, 0.1));
}

/* ── Spec Grid ─────────────────────────────────────────────── */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.spec-item {
    background: var(--bg-color);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.spec-item:hover {
    border-color: rgba(53, 101, 224, 0.15);
    background: rgba(53, 101, 224, 0.03);
}

.spec-item label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.spec-item span {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
}

/* ── Order CTA ─────────────────────────────────────────────── */
.btn-order-full {
    width: 100%;
    padding: 16px;
    background: var(--red-grad);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-red);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    letter-spacing: 0.2px;
}

.btn-order-full:hover {
    filter: brightness(1.08);
    box-shadow: 0 14px 36px rgba(215, 18, 58, 0.35);
}

.btn-order-full:active {
    transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .velg-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        padding: 0;
        margin: 0 auto 40px;
        max-width: 1100px;
        gap: 18px;
    }

    .velg-hero {
        max-width: 1100px;
        margin: 0 auto 24px;
        border-radius: var(--radius-xl);
        margin-top: 20px;
    }

    .velg-modal {
        align-items: center;
        justify-content: center;
    }

    .velg-modal-content {
        max-width: 520px;
        border-radius: var(--radius-2xl);
        transform: scale(0.92) translateY(20px);
        box-shadow: var(--shadow-xl);
    }

    .velg-modal.show .velg-modal-content {
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 374px) {
    .velg-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 14px 30px;
    }

    .velg-card-name {
        font-size: 13px;
    }

    .velg-price-value {
        font-size: 13px;
    }
}
