/* =========================================
   FILTERS & CONTROLS
   ========================================= */
#filter-container {
    position: sticky; top: 81px; z-index: 99;
    background: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    display: flex; flex-direction: column; gap: 1rem;
}

.brand-tabs {
    display: flex; justify-content: center; gap: 1.5rem;
    overflow-x: auto; scrollbar-width: none;
}

.brand-tabs::-webkit-scrollbar { display: none; }

.filter-btn {
    color: var(--text-secondary); font-weight: 500; text-transform: uppercase; 
    letter-spacing: 1px; font-size: 0.85rem;
    padding: 0.5rem 0; border-bottom: 2px solid transparent;
    white-space: nowrap; transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--text-primary); border-color: var(--accent-pop);
}

.search-tools {
    display: flex; justify-content: center; gap: 1rem;
    max-width: 800px; margin: 0 auto; width: 100%;
}

.search-input, .price-filter {
    background: transparent; border: 1px solid var(--surface-metallic);
    color: var(--text-primary); padding: 0.8rem 1.2rem;
    font-family: 'Inter', sans-serif; font-size: 0.9rem;
    transition: border-color 0.3s;
}

.search-input { flex-grow: 1; }
.search-input:focus, .price-filter:focus { border-color: var(--accent-pop); outline: none; }
.search-input::placeholder { color: #555; }
.price-filter option { background: var(--bg-dark); color: var(--text-primary); }

/* =========================================
   MOOD BOARD PRODUCT GRID
   ========================================= */
main { 
    padding: 4rem 5% 8rem; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.product-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4rem 2.5rem;
    align-items: start;
}

.product-card {
    background: var(--surface-dark); 
    padding: 15px 15px 25px 15px;
    border: 1px solid var(--surface-metallic);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

/* The Editorial Tilt */
.product-card:nth-child(even) { transform: translateY(3rem) rotate(1.5deg); }
.product-card:nth-child(odd) { transform: rotate(-1.5deg); }

.product-card:hover { 
    transform: translateY(-10px) rotate(0deg) scale(1.03) !important; 
    z-index: 10; 
    border-color: #555;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
}

/* Image Wrapper & Tape Effect */
.product-img-wrapper {
    width: 100%; aspect-ratio: 4/5; 
    background: linear-gradient(135deg, #1a1a1a 0%, #050505 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 2rem;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg);
    width: 60px; height: 25px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(2px); z-index: 2;
}

.placeholder-text {
    color: #555; font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 1.8rem; letter-spacing: 0; transition: color 0.4s ease;
}

.product-card:hover .placeholder-text { color: var(--text-primary); }

/* Availability Tags */
.status-tag {
    position: absolute; top: 10px; right: 10px;
    padding: 0.4rem 0.8rem; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; border-radius: 2px;
}

.tag-in-stock { background: var(--tag-instock-bg); color: var(--tag-instock-text); border: 1px solid rgba(46, 204, 113, 0.3); }
.tag-out-of-stock { background: var(--tag-outstock-bg); color: var(--tag-outstock-text); border: 1px solid rgba(255, 255, 255, 0.1); }

/* Product Details */
.product-info { padding-top: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1rem; margin-bottom: 0.3rem; letter-spacing: 1px; color: var(--text-primary); }
.product-price { color: var(--text-secondary); font-family: 'Inter'; font-weight: 300; margin-bottom: 1.5rem; }

.btn-view {
    margin-top: auto; padding: 0.8rem; width: 100%;
    background: transparent; border: 1px solid var(--surface-metallic); color: var(--text-primary);
    font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem;
    transition: all 0.3s ease;
}

.product-card:hover .btn-view { background: var(--text-primary); color: var(--bg-dark); border-color: var(--text-primary); }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
    .product-card:nth-child(even) { transform: translateY(1.5rem) rotate(2deg); }
    .product-card:nth-child(odd) { transform: rotate(-2deg); }
    .product-card { padding: 10px 10px 18px 10px; }
    .product-card::before { width: 45px; height: 18px; top: -8px; } 
    .product-img-wrapper { padding: 1rem; }
    .placeholder-text { font-size: 1.2rem; } 
    .search-tools { flex-direction: column; }
}

/* =========================================
   DRAWER SYSTEM (INSPECTION & MANIFEST)
   ========================================= */
.overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.overlay.active { opacity: 1; pointer-events: all; }

.drawer {
    position: fixed; top: 0; right: -100%;
    width: 100%; max-width: var(--drawer-width); 
    height: 100vh; height: 100dvh; 
    background: var(--bg-dark); border-left: 1px solid var(--surface-metallic);
    z-index: 1001; transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; 
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.drawer.open { right: 0; }

.drawer-header {
    padding: 1.5rem 2rem; border-bottom: 1px solid var(--surface-metallic);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10,10,10,0.95);
    position: sticky; top: 0; z-index: 2; flex-shrink: 0;
}

.close-drawer { 
    font-size: 2rem; font-weight: 300; color: var(--text-secondary); 
    transition: color 0.3s; line-height: 1; 
}
.close-drawer:hover { color: var(--accent-pop); }

/* Vehicle Drawer Specifics */
.drawer-hero-img { 
    width: 100%; aspect-ratio: 4/3; flex-shrink: 0;
    background: linear-gradient(180deg, #151515 0%, #0a0a0a 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 2rem; border-bottom: 1px solid var(--surface-metallic);
}

.drawer-body { padding: 2.5rem 2rem; flex-shrink: 0; }

.vd-title { font-size: 2rem; line-height: 1.1; margin-bottom: 0.5rem; letter-spacing: -1px; }
.vd-price { font-size: 1.5rem; color: var(--accent-pop); font-family: 'Instrument Serif', serif; font-style: italic; margin-bottom: 1.5rem; }
.vd-desc { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.7; font-weight: 300; }

/* Dynamic Variant Selectors */
.variant-group { margin-bottom: 1.5rem; }
.variant-label { 
    display: block; margin-bottom: 0.8rem; color: var(--text-primary); 
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; 
}
.variant-options { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }

.var-btn {
    padding: 0.8rem 1.2rem; border: 1px solid var(--surface-metallic);
    color: var(--text-secondary); transition: all 0.3s; font-size: 0.8rem; letter-spacing: 1px;
}
.var-btn.active, .var-btn:hover { 
    border-color: var(--accent-pop); color: var(--bg-dark); background: var(--accent-pop); 
}

/* Action Buttons */
.btn-add {
    width: 100%; padding: 1.2rem; background: var(--text-primary); color: var(--bg-dark);
    font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem;
    transition: all 0.3s ease; border: none; margin-top: auto;
}
.btn-add:hover:not(:disabled) { background: #d4d4d4; }
.btn-add:disabled { background: var(--surface-metallic); color: #555; cursor: not-allowed; }

/* =========================================
   MANIFEST (CART) DRAWER
   ========================================= */
.manifest-items { 
    flex: 1 0 auto; padding: 2rem; 
    display: flex; flex-direction: column; gap: 2rem; 
}

.manifest-item { 
    display: flex; gap: 1.5rem; align-items: center; 
    border-bottom: 1px solid var(--surface-metallic); 
    padding-bottom: 2rem; 
}

.manifest-item-img { 
    width: 80px; height: 100px; background: #111; 
    border: 1px solid var(--surface-metallic);
    display: flex; align-items: center; justify-content: center; 
    text-align: center; flex-shrink: 0;
}

.manifest-item-details { flex-grow: 1; }
.manifest-item-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; margin-bottom: 0.3rem; }
.manifest-item-meta { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.5rem; line-height: 1.4; }
.manifest-item-price { font-weight: 600; color: var(--text-primary); }

.remove-item { 
    color: #888; font-size: 0.75rem; text-transform: uppercase; 
    letter-spacing: 1px; margin-top: 0.8rem; display: inline-block; 
    border-bottom: 1px solid #888; padding-bottom: 2px; transition: color 0.3s; 
}
.remove-item:hover { color: var(--accent-pop); border-color: var(--accent-pop); }

.empty-manifest-msg { 
    text-align: center; color: var(--text-secondary); padding: 4rem 0; 
    font-family: 'Instrument Serif', serif; font-style: italic; font-size: 1.5rem; 
}

/* =========================================
   CONCIERGE CHECKOUT SECTION
   ========================================= */
.checkout-section { 
    padding: 2rem; border-top: 1px solid var(--surface-metallic); 
    background: var(--bg-dark); flex-shrink: 0; margin-top: auto; 
}

.manifest-total { 
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; 
}
.manifest-total span:first-child { 
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); 
}
.manifest-total span:last-child { 
    font-family: 'Instrument Serif', serif; font-style: italic; font-size: 2.2rem; color: var(--accent-pop); line-height: 1; 
}

.form-group { margin-bottom: 1.5rem; }
.form-control {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid var(--surface-metallic); color: var(--text-primary);
    padding: 0.5rem 0; font-family: 'Inter', sans-serif; font-size: 0.95rem;
    transition: border-color 0.3s; border-radius: 0;
}
.form-control:focus { outline: none; border-bottom-color: var(--accent-pop); }
.form-control::placeholder { color: #555; font-weight: 300; }

.checkout-btns { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.btn-whatsapp { 
    background: var(--text-primary); color: var(--bg-dark); padding: 1.2rem; 
    font-weight: 700; width: 100%; border: none;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
    transition: background 0.2s;
}
.btn-whatsapp:hover { background: #d4d4d4; }

.btn-ig { 
    background: transparent; color: var(--text-primary); padding: 1.2rem; 
    font-weight: 600; width: 100%; border: 1px solid #555;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
    transition: all 0.3s ease;
}
.btn-ig:hover { border-color: var(--accent-pop); background: rgba(255,255,255,0.05); }