/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --brand-red: #d32f2f;
    --brand-dark: #111111;
    --brand-light: #f9f9f9;
    --brand-gray: #6b7280;
    --brand-border: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    
    --font-heading: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-red { color: var(--brand-red); }
.text-white { color: #fff; }
.mt-4 { margin-top: 1rem; }

/* --- MOVING TOP BANNER --- */
.top-banner {
    background-color: var(--brand-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
}
.banner-track {
    display: inline-block;
    animation: scrollBanner 20s linear infinite;
}
.banner-track span { margin-right: 15px; }
@keyframes scrollBanner { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- HEADER --- */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    gap: 20px;
}
.logo img { height: 180px; width: auto; object-fit: contain; }

/* Desktop Navigation */
.desktop-nav { display: flex; gap: 25px; }
.desktop-nav a { font-family: var(--font-heading); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-dark); transition: var(--transition); }
.desktop-nav a:hover { color: var(--brand-red); }

/* Search Bar with Typewriter */
.header-search { flex: 1; max-width: 500px; margin: 0 20px; display: flex; position: relative; }
.header-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--brand-border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: #fff;
    color: var(--text-main);
    cursor: text;
}
.header-search input:focus { border-color: var(--brand-red); }
.header-search button {
    background: var(--brand-red);
    color: #fff;
    padding: 0 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.header-search button:hover { background: #b71c1c; }
.header-search button svg { width: 20px; height: 20px; stroke-width: 2.5; }

/* Search Suggestions Dropdown */
.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-top: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--brand-border);
    cursor: pointer;
    transition: var(--transition);
}
.suggestion-item:hover { background: var(--brand-light); }
.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.suggestion-info h4 { font-size: 14px; font-weight: 600; font-family: var(--font-body); text-transform: none; margin-bottom: 2px; color: var(--brand-dark); }
.suggestion-info p { font-size: 13px; color: var(--brand-red); font-weight: 700; }

/* Cart Icon */
.header-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}
.header-cart:hover { color: var(--brand-red); }
.cart-icon-wrapper { position: relative; }
.cart-icon-wrapper svg { width: 28px; height: 28px; stroke-width: 2; }
.cart-badge {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--brand-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    height: 20px; width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.pop { transform: scale(1.3); }
.cart-text { font-family: var(--font-heading); font-weight: 700; font-size: 18px; text-transform: uppercase; margin-top: 2px; }

/* Mobile Hamburger */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--brand-dark); }
.mobile-nav { display: none; flex-direction: column; background: #fff; padding: 20px; border-bottom: 1px solid var(--brand-border); }
.mobile-nav a { padding: 15px 0; border-bottom: 1px solid #f3f4f6; font-family: var(--font-heading); font-size: 20px; font-weight: 600; text-transform: uppercase; }
.mobile-nav a:hover { color: var(--brand-red); }
.mobile-nav.active { display: flex; }

/* Mobile-only Search Bar (below header) */
.mobile-only-search { display: none; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    width: 100%;
}

.hero h1 { font-size: clamp(40px, 6vw, 72px); color: #fff; margin-bottom: 15px; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.hero p { font-size: 18px; color: #d1d5db; max-width: 600px; margin: 0 auto 40px; }

/* Smaller Hero Search Box */
.hero-search-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    width: 100%; 
    max-width: 700px; 
    margin: 0 auto;
    z-index: 10;
}
.hero-search-box h3 { font-size: 24px; margin-bottom: 20px; color: var(--brand-dark); }
.search-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 15px; }
.search-grid select {
    padding: 14px;
    border: 1px solid var(--brand-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}
.search-grid select:focus { border-color: var(--brand-red); }
.search-btn {
    background: var(--brand-red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    padding: 14px;
}
.search-btn:hover { background: #b71c1c; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4); }

/* --- SECTIONS & TITLES --- */
.section { padding: 80px 0; }
.bg-light { background-color: var(--brand-light); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-title { font-size: 36px; color: var(--brand-dark); position: relative; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: var(--brand-red); }
.view-all { color: var(--brand-red); font-weight: 600; font-size: 15px; transition: var(--transition); }
.view-all:hover { color: var(--brand-dark); transform: translateX(5px); }

/* --- BRANDS GRID --- */
.brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.brand-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.brand-card:hover { 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
    border-color: var(--brand-red); 
    transform: translateY(-3px); 
}
.brand-card img { 
    max-height: 100%; 
    max-width: 100%; 
    object-fit: contain; 
    opacity: 1; 
    filter: none; 
    transition: transform 0.3s ease; 
}
.brand-card:hover img { 
    transform: scale(1.08); 
}

/* --- CATEGORY GRID --- */
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.category-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    aspect-ratio: 1/1;
}
.category-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--brand-red); transform: translateY(-3px); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.category-card:hover img { transform: scale(1.08); }
.category-card-title {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 30px 10px 15px 10px;
    letter-spacing: 1px;
}

/* --- PRODUCT GRID --- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.product-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); transform: translateY(-5px); }
.product-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f3f4f6; cursor: pointer; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

/* Condition Badge */
.condition-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 4px 8px; border-radius: 3px; z-index: 2;
}
.badge-new { background: #dcfce7; color: #166534; }
.badge-used { background: #fef9c3; color: #854d0e; }
.badge-junkyard { background: #fee2e2; color: #991b1b; }

/* Quick Add Slide-up */
.quick-add {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: var(--brand-dark); color: #fff;
    font-family: var(--font-heading); font-size: 16px; font-weight: 700; text-transform: uppercase;
    padding: 12px; text-align: center; border: none; cursor: pointer;
    transform: translateY(100%); opacity: 0; transition: var(--transition); z-index: 2;
}
.product-card:hover .quick-add { transform: translateY(0); opacity: 1; }
.quick-add:hover { background: var(--brand-red); }

/* Product Info */
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.product-title { font-size: 17px; font-weight: 700; color: var(--text-main); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-cat { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-wrap { display: flex; align-items: center; gap: 8px; }
.price-slash { text-decoration: line-through; color: var(--text-muted); font-size: 14px; }
.price-main { font-size: 20px; font-weight: 700; color: var(--brand-red); }

/* --- TESTIMONIALS MARQUEE --- */
.testimonials-section { overflow: hidden; }
.marquee-container { display: flex; overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 30px; animation: scroll 40s linear infinite; width: max-content; padding: 0 15px; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonial-card {
    width: 400px; background: var(--brand-light);
    padding: 30px; border-radius: 8px; border: 1px solid var(--brand-border);
    flex-shrink: 0;
}
.stars { display: flex; gap: 4px; color: #f59e0b; margin-bottom: 15px; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial-text { font-size: 16px; font-style: italic; color: #4b5563; margin-bottom: 20px; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.author-info h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; text-transform: none; color: var(--brand-dark); margin-bottom: 2px; }
.author-info p { font-size: 13px; color: var(--text-muted); }

/* --- PAYMENT METHODS --- */
.payments-section { padding: 40px 0; border-top: 1px solid var(--brand-border); text-align: center; background: #fff; }
.payments-section p { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 20px; }
.payment-logos { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; align-items: center; }
.pay-logo { height: 32px; width: auto; max-width: 110px; object-fit: contain; opacity: 1; filter: none; transition: transform 0.3s ease; }
.pay-logo:hover { transform: scale(1.1); }

/* --- FOOTER --- */
.site-footer { background: var(--brand-dark); color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 180px; width: auto; background: #fff; padding: 10px; border-radius: 8px; margin-bottom: 20px; object-fit: contain; }
.footer-brand p { color: #9ca3af; font-size: 14px; line-height: 1.6; }
.footer-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; margin-bottom: 20px; color: #fff; letter-spacing: 1px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #9ca3af; font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; color: #9ca3af; font-size: 14px; }
.footer-contact svg { width: 20px; height: 20px; color: var(--brand-red); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: #9ca3af; transition: var(--transition); }
.footer-contact a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid #374151; padding-top: 20px; font-size: 13px; color: #6b7280; }

/* --- CART DRAWER --- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100vh; background: #fff; z-index: 101; display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: -5px 0 30px rgba(0,0,0,0.1); }
.cart-drawer.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--brand-border); }
.cart-header h2 { font-size: 24px; }
.cart-close { background: none; border: none; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.cart-close:hover { color: var(--brand-red); transform: rotate(90deg); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); text-align: center; }
.cart-empty svg { width: 60px; height: 60px; color: var(--brand-border); margin-bottom: 15px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--brand-border); background: var(--brand-light); }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 20px; }
.checkout-btn { display: block; width: 100%; background: var(--brand-red); color: #fff; text-align: center; padding: 16px; font-family: var(--font-heading); font-size: 18px; font-weight: 700; text-transform: uppercase; border-radius: 4px; transition: var(--transition); }
.checkout-btn:hover { background: #b71c1c; transform: translateY(-2px); }
.continue-btn { display: block; width: 100%; text-align: center; margin-top: 15px; background: none; border: none; color: var(--text-muted); font-weight: 600; cursor: pointer; transition: var(--transition); }
.continue-btn:hover { color: var(--brand-dark); }

/* --- SHOP PAGE LAYOUT --- */
.shop-layout { display: flex; max-width: 1280px; margin: 40px auto; padding: 0 20px; gap: 40px; align-items: flex-start; }
.shop-sidebar { width: 280px; flex-shrink: 0; background: #fff; padding: 25px; border: 1px solid var(--brand-border); border-radius: 8px; position: sticky; top: 100px; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid var(--brand-dark); padding-bottom: 10px; }
.sidebar-header h3 { font-family: var(--font-heading); font-size: 24px; margin: 0; }
.close-filter-btn { display: none; background: none; border: none; cursor: pointer; }
.filter-group { margin-bottom: 25px; }
.filter-group h4 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 10px; text-transform: uppercase; color: var(--brand-dark); }
.filter-select { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid var(--brand-border); border-radius: 4px; font-family: var(--font-body); font-size: 14px; outline: none; }
.filter-select:focus { border-color: var(--brand-red); }
.checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--text-main); }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--brand-red); cursor: pointer; }
.shop-main { flex: 1; }
.shop-header { margin-bottom: 30px; }
.shop-header h1 { font-size: 32px; margin-bottom: 5px; }
.result-count { color: var(--text-muted); font-size: 14px; }
.mobile-filter-btn { display: none; width: 100%; padding: 15px; background: var(--brand-dark); color: #fff; font-family: var(--font-heading); font-size: 18px; font-weight: 700; text-transform: uppercase; border: none; border-radius: 4px; margin-bottom: 20px; cursor: pointer; align-items: center; justify-content: center; gap: 10px; }
.filter-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; opacity: 0; transition: opacity 0.3s; }
.filter-overlay.active { display: block; opacity: 1; }

/* --- PRODUCT DETAIL PAGE --- */
.product-detail-layout { display: flex; max-width: 1280px; margin: 20px auto 60px; padding: 0 20px; gap: 60px; }
.product-gallery { flex: 1; }
.main-image { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--brand-border); border-radius: 8px; }
.thumbnail-row { display: flex; gap: 15px; margin-top: 15px; }
.thumbnail-row img { width: 80px; height: 80px; object-fit: cover; border: 2px solid transparent; border-radius: 4px; cursor: pointer; opacity: 0.6; transition: var(--transition); }
.thumbnail-row img.active, .thumbnail-row img:hover { opacity: 1; border-color: var(--brand-red); }
.product-details { flex: 1; padding-top: 10px; }
.product-details h1 { font-size: 42px; margin-bottom: 15px; line-height: 1.1; }
.product-details .desc { color: var(--text-muted); font-size: 16px; line-height: 1.6; margin-bottom: 30px; }
.specs-box { background: var(--brand-light); padding: 20px; border-radius: 8px; border: 1px solid var(--brand-border); margin-bottom: 30px; }
.specs-box h4 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 15px; color: var(--brand-dark); border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.specs-box ul li { font-size: 14px; margin-bottom: 8px; color: var(--text-main); display: flex; justify-content: space-between; }
.specs-box ul li span { font-weight: 600; color: var(--brand-dark); }
.add-to-cart-area { display: flex; gap: 15px; margin-bottom: 30px; }
.quantity-selector { display: flex; border: 2px solid var(--brand-border); border-radius: 4px; overflow: hidden; }
.qty-btn { background: var(--brand-light); border: none; padding: 0 15px; font-size: 18px; cursor: pointer; transition: var(--transition); }
.qty-btn:hover { background: #e5e7eb; }
.quantity-selector input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--brand-border); border-right: 1px solid var(--brand-border); font-family: var(--font-body); font-size: 16px; outline: none; }
.add-to-cart-btn { flex: 1; background: var(--brand-red); color: #fff; font-family: var(--font-heading); font-size: 20px; font-weight: 700; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; padding: 15px; transition: var(--transition); }
.add-to-cart-btn:hover { background: #b71c1c; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3); }
.trust-badges { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--brand-border); padding-top: 20px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.trust-item svg { width: 20px; height: 20px; color: var(--brand-red); }

/* --- PREMIUM CHECKOUT PAGE --- */
.checkout-header { background: #fff; }
.checkout-layout { display: flex; max-width: 1100px; margin: 40px auto; padding: 0 20px; gap: 50px; align-items: flex-start; }
.checkout-form-wrapper { flex: 1; background: #fff; padding: 40px; border-radius: 8px; border: 1px solid var(--brand-border); box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.checkout-section { margin-bottom: 30px; }
.checkout-section-title { font-family: var(--font-heading); font-size: 22px; margin-bottom: 20px; color: var(--brand-dark); border-bottom: 1px solid var(--brand-border); padding-bottom: 10px; }
.checkout-form-wrapper .form-group { margin-bottom: 15px; }
.checkout-form-wrapper label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.checkout-form-wrapper input { width: 100%; padding: 14px; border: 1px solid var(--brand-border); border-radius: 4px; font-family: var(--font-body); font-size: 15px; outline: none; transition: var(--transition); background: var(--brand-light); }
.checkout-form-wrapper input:focus { border-color: var(--brand-red); background: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.checkout-submit-btn { width: 100%; padding: 20px; background: var(--brand-red); color: #fff; font-family: var(--font-heading); font-size: 20px; font-weight: 700; text-transform: uppercase; border: none; border-radius: 4px; cursor: pointer; transition: var(--transition); margin-top: 10px; }
.checkout-submit-btn:hover { background: #b71c1c; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4); }
.checkout-summary-wrapper { width: 380px; background: #fff; padding: 30px; border-radius: 8px; border: 1px solid var(--brand-border); box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: sticky; top: 100px; }
.summary-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.summary-img-wrap { position: relative; width: 60px; height: 60px; border-radius: 6px; border: 1px solid var(--brand-border); }
.summary-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.summary-qty { position: absolute; top: -8px; right: -8px; background: var(--brand-dark); color: #fff; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.summary-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; line-height: 1.3; color: var(--brand-dark); }
.summary-info p { font-size: 14px; font-weight: 700; color: var(--brand-red); }
.summary-totals { border-top: 1px solid var(--brand-border); padding-top: 20px; margin-top: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }
.summary-row.total-row { font-size: 18px; font-weight: 700; color: var(--brand-dark); border-top: 1px solid var(--brand-border); padding-top: 15px; margin-top: 10px; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    /* Header Mobile Adjustments */
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .header-search { display: none; }
    
    /* Mobile Search Bar Layout */
    .mobile-only-search { display: block; padding: 10px 0 15px 0; background: #fff; border-bottom: 1px solid var(--brand-border); }
    .mobile-only-search input { width: 100%; padding: 12px 16px; border: 2px solid var(--brand-border); border-radius: 4px; font-family: var(--font-body); font-size: 15px; outline: none; background: var(--brand-light); transition: var(--transition); }
    .mobile-only-search input:focus { border-color: var(--brand-red); background: #fff; }

    /* Mobile Header Layout */
    .header-inner { position: relative; justify-content: space-between; height: 100px; }
    .logo { position: absolute; left: 50%; transform: translateX(-50%); }
    .logo img { height: 120px; }

    /* Shop Page Mobile Adjustments */
    .shop-layout { flex-direction: column; padding: 20px; gap: 0; }
    .mobile-filter-btn { display: flex; }
    .shop-header { text-align: center; margin-bottom: 20px; }
    .shop-sidebar { position: fixed; top: 0; left: -100%; width: 85%; max-width: 350px; height: 100vh; z-index: 100; border-radius: 0; overflow-y: auto; transition: left 0.3s ease; box-shadow: 5px 0 30px rgba(0,0,0,0.1); }
    .shop-sidebar.active { left: 0; }
    .close-filter-btn { display: block; }

    /* Checkout Mobile */
    .checkout-layout { flex-direction: column; gap: 30px; }
    .checkout-summary-wrapper { width: 100%; position: static; }
    .checkout-form-wrapper { padding: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-inner { height: 90px; }
    .logo img { height: 135px; }
    .search-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 20px; min-height: 500px; }
    .hero-search-box { padding: 20px; max-width: 100%; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .section-title { font-size: 28px; }
    .cart-text { display: none; }
    .product-detail-layout { flex-direction: column; gap: 30px; }
    .product-details h1 { font-size: 32px; }
}