/* ═══════════════════════════════════════════════════════════════
   AutoLogic — Precision Parts Shop & Product Detail Experience CSS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Active Vehicle Fitment Banner ──────────────────────────── */
.vehicle-fitment-radar-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

.fitment-radar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fitment-radar-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.fitment-radar-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.fitment-radar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.fitment-radar-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.btn-radar-change {
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-radar-change:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.btn-radar-clear {
    padding: 0.55rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-radar-clear:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* ─── Parts Cyber Hero Banner ────────────────────────────────── */
.parts-cyber-hero {
    background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.22), transparent 55%),
                radial-gradient(circle at 15% 80%, rgba(30, 58, 138, 0.35), transparent 50%),
                #0b1120;
    color: #ffffff;
    padding: 3.25rem 0 2.75rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2.5rem;
}

.parts-cyber-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.parts-cyber-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.parts-hero-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.parts-cyber-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.parts-cyber-desc {
    color: #94a3b8;
    font-size: 0.98rem;
    max-width: 640px;
    line-height: 1.6;
    margin: 0;
}

.parts-hero-vehicle-capsule {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 1rem 1.35rem;
    min-width: 320px;
}

.hero-capsule-active {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-capsule-idle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.capsule-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.capsule-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #93c5fd;
    margin-bottom: 0.2rem;
}

.capsule-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.btn-capsule-select {
    padding: 0.65rem 1.15rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-capsule-select:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.btn-capsule-change {
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-capsule-change:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-capsule-clear {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-capsule-clear:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

/* ─── Modern Empty State Card ────────────────────────────────── */
.shop-empty-state-card {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.empty-state-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #eff6ff;
    border: 1.5px solid #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.15);
}

.empty-state-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.empty-state-desc {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 580px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.empty-state-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-empty-whatsapp {
    padding: 0.85rem 1.85rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.25s ease;
}

.btn-empty-whatsapp:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}

.btn-empty-vehicle {
    padding: 0.85rem 1.85rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
}

.btn-empty-vehicle:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

.btn-empty-reset {
    padding: 0.85rem 1.5rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155 !important;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-empty-reset:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
}

/* ─── Shop Layout Grid ───────────────────────────────────────── */
.shop-cyber-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* ─── Cyber Sidebar Filters ──────────────────────────────────── */
.shop-cyber-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cyber-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cyber-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.cyber-widget-header h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.cyber-widget-header h4 i {
    color: #2563eb;
}

.cyber-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 280px;
    overflow-y: auto;
}

.cyber-filter-list::-webkit-scrollbar {
    width: 4px;
}
.cyber-filter-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cyber-filter-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cyber-filter-item a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.cyber-filter-item a.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.cyber-filter-count {
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.cyber-filter-item a.active .cyber-filter-count {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* ─── Shop Header Controls ───────────────────────────────────── */
.shop-header-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.35rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.shop-results-meta {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.shop-results-meta span.active-tag {
    color: #2563eb;
    background: #eff6ff;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    border: 1px solid #dbeafe;
    margin-left: 0.35rem;
    font-size: 0.82rem;
}

.shop-sort-wrap select {
    padding: 0.55rem 2rem 0.55rem 1rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    appearance: none;
    cursor: pointer;
}

/* ─── Shop Product Grid ──────────────────────────────────────── */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.35rem;
}

.shop-part-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.shop-part-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12);
}

.shop-part-media {
    height: 190px;
    background: #ffffff;
    padding: 1.25rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.shop-part-media img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.shop-part-card:hover .shop-part-media img {
    transform: scale(1.08);
}

.shop-part-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-part-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}

.shop-part-title:hover {
    color: #2563eb;
}

.shop-actions-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-card-view {
    padding: 0.65rem 0.5rem;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-card-view:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-card-add {
    padding: 0.65rem 0.5rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease;
}

.btn-card-add:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT DETAILS ELEVATION STYLES
   ═══════════════════════════════════════════════════════════════ */
.pdp-cyber-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.pdp-gallery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem;
    position: sticky;
    top: 90px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.pdp-main-img-wrap {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pdp-main-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pdp-main-img-wrap:hover img {
    transform: scale(1.05);
}

.pdp-thumbs-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.pdp-thumb-tile {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0.35rem;
    cursor: pointer;
    background: #f8fafc;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pdp-thumb-tile.active,
.pdp-thumb-tile:hover {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.pdp-thumb-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ─── PDP Scanner Card ───────────────────────────────────────── */
.pdp-fitment-scanner {
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdp-fitment-scanner.fits {
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    color: #065f46;
}

.pdp-fitment-scanner.warning {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    color: #92400e;
}

.pdp-fitment-scanner.neutral {
    background: #f0f9ff;
    border: 1.5px solid #0284c7;
    color: #0369a1;
}

.scanner-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.pdp-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.pdp-rating-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pdp-price-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.pdp-price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
}

.pdp-price-was {
    font-size: 1.25rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.pdp-cta-dock {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-pdp-cart {
    flex: 2;
    padding: 1.1rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.25s ease;
}

.btn-pdp-cart:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
}

.btn-pdp-install {
    flex: 1.2;
    padding: 1.1rem;
    background: #f0f7ff;
    color: #1d4ed8;
    border: 1.5px solid #93c5fd;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-pdp-install:hover {
    background: #dbeafe;
    border-color: #2563eb;
    color: #1e40af;
    transform: translateY(-1px);
}

/* ─── Floating Mobile Bottom Dock ────────────────────────────── */
.mobile-pdp-sticky-bar {
    display: none;
    position: fixed;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    z-index: 994;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ─── Responsive Queries ─────────────────────────────────────── */
@media (max-width: 1200px) {
    .shop-products-grid { grid-template-columns: repeat(2, 1fr); }
    .pdp-cyber-grid { gap: 2rem; }
}

@media (max-width: 991px) {
    .shop-cyber-layout { grid-template-columns: 1fr; }
    .shop-cyber-sidebar { display: none; }
    .pdp-cyber-grid { grid-template-columns: 1fr; }
    .pdp-gallery-card { position: static; }
    .mobile-pdp-sticky-bar { display: block; }
}

@media (max-width: 640px) {
    .shop-products-grid { grid-template-columns: 1fr; }
    .pdp-main-img-wrap { height: 260px; }
    .pdp-title { font-size: 1.65rem; }
    .pdp-cta-dock { flex-direction: column; }
}
