
/* Critical CSS for Initial Paint & Global Variables (from base.css) */
*{margin:0;padding:0;box-sizing:border-box;text-decoration:none;list-style:none;font-family:'Poppins','Trebuchet MS','Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif}

html {
    scroll-behavior: smooth;
}

:root,body[data-theme=default]{--brand-primary:#010350;--brand-accent:#f8bf2a;--brand-accent-text:#212121;--text-primary:#212121;--text-secondary:#737373;--text-muted:#9e9e9e;--text-inverted:#fff;--text-link:#010350;--bg-primary:#f7f9fc;--bg-secondary:#fff;--bg-tertiary:#f0f2f5;--bg-accent:#010350;--border-primary:#dee2e6;--border-secondary:#e9ecef;--border-tertiary:#f1f3f5;--shadow-color:rgba(0,0,0,.08);--success-color:#2e7d32;--error-color:#d32f2f;--disabled-color:#bdbdbd;--star-color:#f8bf2a}
body[data-theme=dark]{--brand-primary:#6c8ed4;--brand-accent:#f8bf2a;--brand-accent-text:#121212;--text-primary:#e0e0e0;--text-secondary:#b0b0b0;--text-muted:#888;--text-inverted:#121212;--text-link:#6c8ed4;--bg-primary:#121212;--bg-secondary:#1e1e1e;--bg-tertiary:#2a2a2a;--bg-accent:#6c8ed4;--border-primary:#444;--border-secondary:#333;--border-tertiary:#2c2c2c;--shadow-color:rgba(0,0,0,.5);--success-color:#66bb6a;--error-color:#ef5350;--disabled-color:#555;--star-color:#f8bf2a}
body[data-theme=corporate]{--brand-primary:#010350;--brand-accent:#f8bf2a;--brand-accent-text:#212529;--text-primary:#212529;--text-secondary:#6c757d;--text-muted:#868e96;--text-inverted:#fff;--text-link:#010350;--bg-primary:#f8f9fa;--bg-secondary:#fff;--bg-tertiary:#e9ecef;--bg-accent:#010350;--border-primary:#ced4da;--border-secondary:#dee2e6;--border-tertiary:#f1f3f5;--shadow-color:rgba(0,0,0,.1);--success-color:#198754;--error-color:#dc3545;--disabled-color:#adb5bd;--star-color:#f8bf2a}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[aria-disabled=true]{cursor:not-allowed;pointer-events:none}:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px;box-shadow:0 0 0 4px var(--bg-secondary);border-radius:2px}:focus:not(:focus-visible){outline:none}body{background-color:var(--bg-primary);color:var(--text-primary)}#initial-loading-screen{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:var(--bg-primary);z-index:10000;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;transition:opacity .5s ease,visibility .5s;visibility:visible;opacity:1}#initial-loading-screen.hidden{opacity:0;visibility:hidden;pointer-events:none}.loader-logo{width:150px;height:auto;opacity:.8}#initial-loading-screen .loading-spinner{width:40px;height:40px;border:4px solid var(--border-primary);border-top-color:var(--brand-primary);border-radius:50%;animation:spin 1s linear infinite}.btn{display:inline-block;width:fit-content;padding:14px 32px;background:var(--brand-primary);border:2px solid var(--brand-primary);border-radius:6px;box-shadow:0 4px 12px var(--shadow-color);color:var(--text-inverted);letter-spacing:.5px;font-weight:600;transition:all .3s ease;opacity:0;animation:H1Ani 1s ease forwards;animation-delay:1.3s;text-transform:uppercase}.btn:hover{background:0 0;color:var(--brand-primary);transform:translateY(-2px);box-shadow:0 6px 16px var(--shadow-color)}.container{max-width:1620px;width:90%;margin:0 auto}

/* Glassmorphism Nav */
nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
body[data-theme="dark"] nav {
    background: rgba(30, 30, 30, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container{display:flex;justify-content:space-between;align-items:center;width:100%;gap:20px}.nav-left{display:flex;align-items:center;gap:10px}.nav-back-btn{background:0 0;border:none;color:var(--text-primary);font-size:22px;cursor:pointer;padding:8px;transition:color .2s ease;display:flex;align-items:center;justify-content:center}.nav-back-btn:hover{color:var(--brand-primary)}.logo{cursor:pointer}.logo img{height:48px;object-fit:contain;opacity:0;animation:logoAni 1s ease forwards}.nav-menu{display:flex;align-items:center;gap:40px}.nav-actions{display:flex;align-items:center;gap:20px}.nav-link,.social-link{display:flex;align-items:center;list-style:none;gap:20px}.nav-link li{animation:NavliaAni 1s ease forwards;animation-delay:calc(.2s * var(--i));opacity:0}.social-link li{animation:socialAni 1s ease forwards;animation-delay:calc(.2s * var(--i));opacity:0}.nav-link a,.social-link a{text-decoration:none;color:var(--text-link);font-weight:600;transition:.4s ease}.nav-link a:hover{color:var(--brand-accent)}.nav-link a.active{color:var(--brand-accent);font-weight:700}.social-link a i{color:var(--text-link);font-size:20px;transition:.4s ease}.social-link a:hover i{transform:scale(1.1)}.extras{display:flex;align-items:center;gap:20px;animation:socialAni 1s ease forwards;animation-delay:.8s;opacity:0}.car-selector-trigger{border:1px solid var(--border-primary);padding:8px 12px;border-radius:5px;display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;background-color:var(--bg-tertiary);color:var(--text-primary);min-width:180px}.car-selector-trigger .car-info{display:flex;align-items:center;gap:10px;font-weight:500}.car-selector-trigger .car-info .car-thumb{width:40px;height:25px;object-fit:cover;border-radius:3px}.car-selector-trigger .fa-chevron-right{font-size:12px}.profile-section{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--text-link);cursor:pointer;min-width:140px;justify-content:flex-start}.profile-section i{font-size:22px}.profile-button{background:0 0;border:none;padding:0;margin:0;font:inherit;letter-spacing:inherit}.profile-state-view{display:flex;align-items:center;gap:8px;width:100%}#logged-in-info{font-size:14px}.cart-icon-container{position:relative;cursor:pointer;color:var(--text-link);font-size:22px}.cart-item-count{position:absolute;top:-8px;right:-10px;background-color:var(--brand-accent);color:var(--brand-accent-text);width:20px;height:20px;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:12px;font-weight:700;border:2px solid var(--bg-secondary)}.cart-icon-container.shake{animation:shake .6s cubic-bezier(.36,.07,.19,.97) both}
.hidden{display:none!important}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1100px){.nav-actions,.extras{gap:15px}.nav-menu{gap:30px}}@media (max-width:992px){.nav-menu{display:none}.extras .profile-section{display:none}}@media (max-width:700px){header{padding-top:120px;min-height:80vh}}@media (max-width:576px){header{padding-top:100px;min-height:70vh}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes logoAni{0%{transform:translateX(-100px);opacity:0}100%{transform:translateX(0);opacity:1}}@keyframes H1Ani{0%{transform:translateY(100px);opacity:0}100%{transform:translateY(0);opacity:1}}@keyframes NavliaAni{0%{transform:translateX(100px);opacity:0}100%{transform:translateX(0);opacity:1}}@keyframes socialAni{0%{transform:translateY(-100px);opacity:0}100%{transform:translateY(0);opacity:1}}main#page-content{transition:opacity .3s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);}

/* Footer */
.footer {
    background-color: var(--brand-primary);
    color: var(--text-inverted);
    padding: 70px 5% 20px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col .logo img {
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-inverted);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--brand-accent);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--text-inverted);
    padding-left: 5px;
}

.footer-col p i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--brand-accent);
}

.footer-socials {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--brand-primary);
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    transform: translateY(-3px);
}

.footer-socials a[href*="wa.me"]:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: var(--text-inverted);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.theme-switcher li a {
    cursor: pointer;
}

/* Search Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-link);
    cursor: pointer;
    padding: 8px;
}

.search-bar {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 5px 10px;
    width: 300px;
    transform-origin: top right;
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 102;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
    visibility: hidden;
}

.search-bar:not(.hidden) {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}


#search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    padding: 5px;
    color: var(--text-primary);
}

.search-close-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
}

.search-results-container {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--shadow-color);
    z-index: 101;
    border: 1px solid var(--border-tertiary);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-tertiary);
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: inherit;
    text-decoration: none;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: var(--bg-tertiary);
}

.search-result-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
}
.search-result-thumb img, .search-result-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-info {
    flex-grow: 1;
}
.search-result-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.search-result-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.search-result-thumb.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-tertiary);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 24px;
}

/* Mobile Bottom Nav */
#mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    box-shadow: 0 -2px 10px var(--shadow-color);
    display: none;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 998;
    border-top: 1px solid var(--border-tertiary);
}
#mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
    flex-grow: 1;
    background: none;
    border: none;
    font-family: inherit;
    position: relative;
    cursor: pointer;
}
#mobile-bottom-nav .nav-item i {
    font-size: 20px;
}
#mobile-bottom-nav .nav-item.active {
    color: var(--brand-primary);
    font-weight: 600;
}
#mobile-bottom-nav .nav-item #mobile-order-count {
    position: absolute;
    top: -2px;
    right: 15px; 
    width: 18px;
    height: 18px;
    font-size: 11px;
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
}
#whatsapp-fab, #enquiry-fab {
    position: static; 
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
}
#whatsapp-fab {
    background-color: #25D366;
    color: white;
}
#enquiry-fab {
    background-color: var(--brand-primary);
    color: white;
    font-size: 24px;
}
#whatsapp-fab:hover, #enquiry-fab:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
}
.notification {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    max-width: 350px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
    backdrop-filter: blur(10px);
}
.notification.show {
    transform: translateX(0);
    opacity: 1;
}
.notification i {
    font-size: 20px;
}
.notification span {
    flex-grow: 1;
    font-weight: 500;
}
.notification.success {
    background-color: rgba(46, 125, 50, 0.95);
    color: var(--text-inverted);
}
.notification.error {
    background-color: rgba(211, 47, 47, 0.95);
    color: var(--text-inverted);
}
.notification.info {
    background-color: var(--brand-primary);
    color: var(--text-inverted);
    opacity: 0.95;
}

/* Loaders */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}
.loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.content-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    min-height: 200px;
}
.content-loader .loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Buttons */
.btn.loading, .auth-btn.loading, .checkout-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: wait;
}
.btn.loading .spinner, .auth-btn.loading .spinner, .checkout-btn.loading .spinner {
    display: inline-block;
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-inverted);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.logout-button.loading .spinner,
.change-btn.loading .spinner,
#tyre-filter-reset-btn.loading .spinner,
#car-wash-filter-reset-btn.loading .spinner,
.product-actions .add-to-cart-btn.loading .spinner {
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--brand-primary);
}

/* Performance Utilities */
.reels-section,
.how-it-works {
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

/* Scroll Reveal Animation Classes */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grids */
.reveal-element:nth-child(2) { transition-delay: 0.1s; }
.reveal-element:nth-child(3) { transition-delay: 0.2s; }
.reveal-element:nth-child(4) { transition-delay: 0.3s; }


/* Error Boundary Fallback UI */
.error-boundary-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.error-boundary-container .error-logo {
    width: 150px;
    margin-bottom: 20px;
    filter: grayscale(1);
    opacity: 0.8;
}

.error-boundary-container h1 {
    color: var(--error-color);
    margin-bottom: 15px;
    font-size: 28px;
}

.error-boundary-container p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    max-width: 500px;
    line-height: 1.6;
}

.error-boundary-container .reload-btn {
    margin-top: 20px;
    animation: none; /* Override initial button animation */
    opacity: 1;
}

/* Media Queries */
@media (max-width: 992px) {
    .search-container {
        order: -1; 
    }
    body {
        padding-bottom: 70px;
    }
    #mobile-bottom-nav {
        display: flex;
    }
}
@media (max-width: 700px) {
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}


/* HOME SECTIONS (from home-sections.css) */
header{width:100%;min-height:90vh;padding:150px 9% 50px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;text-align:center}header::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6));z-index:1}

.hero-image-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.1);
    transition: filter 0.5s ease-out, transform 0.5s ease-out;
}
.hero-image-picture.loaded .hero-image {
    filter: blur(0);
    transform: scale(1);
}

.header-container{display:flex;justify-content:center;align-items:center;height:100%;position:relative;z-index:2}.header-left{max-width:750px;position:relative}.header-left h1{font-size:clamp(2.5rem,5vw,4rem);line-height:1.2;color:var(--text-inverted);font-weight:700;text-shadow:2px 2px 8px rgba(0,0,0,.5);animation:H1Ani 1s ease forwards;opacity:0;animation-delay:1s}.header-left h3{font-size:clamp(1.5rem,4vw,2.25rem);font-weight:500;color:var(--text-inverted);opacity:.95;text-shadow:1px 1px 6px rgba(0,0,0,.4);margin-top:1rem;animation:H1Ani 1s ease forwards;opacity:0;animation-delay:.8s}.header-left p{margin:25px auto 40px;line-height:1.7;font-size:clamp(1rem,2.5vw,1.125rem);max-width:600px;color:var(--text-inverted);opacity:.9;animation:H1Ani 1s ease forwards;opacity:0;animation-delay:.6s}.header-left .btn{margin:0 auto;background-color:var(--brand-accent);border-color:var(--brand-accent);color:var(--brand-accent-text)}.header-left .btn:hover{background-color:transparent;border-color:var(--brand-accent);color:var(--brand-accent)}

.services-section {
    padding: 80px 5%;
    background: var(--bg-tertiary);
}

.services-section h2, .how-it-works h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--brand-primary);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.how-it-works {
    padding: 80px 5%;
    background-color: var(--bg-secondary);
}

.how-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* Reels Section */
.reels-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
}
.reels-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--brand-primary);
    text-align: center;
}
.reels-subtitle {
    font-size: 16px;
    margin-bottom: 50px;
    color: var(--text-secondary);
    text-align: center;
}
.reels-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 0 5% 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-primary) var(--bg-tertiary);
    margin: 0 -5%;
    padding-left: 5%;
    padding-right: 5%;
    -ms-overflow-style: none;
    min-height: 420px;
    align-items: center;
}
.reels-container::-webkit-scrollbar {
    height: 8px;
}
.reels-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
.reels-container::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}
.reels-container::after {
    content: '';
    flex: 0 0 2vw;
}

/* Banner Section */
#banner-section {
    padding: 60px 0;
    background-color: var(--bg-tertiary);
}

.banner-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.banner-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.banner-item {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: block;
    background-color: var(--bg-secondary);
}

.banner-item img {
    width: 100%;
    height: 100%;
    display: block;
}

.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: background-color 0.2s, opacity 0.3s;
    z-index: 10;
    opacity: 0;
}

.banner-container:hover .banner-nav-btn {
    opacity: 1;
}

.banner-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.banner-nav-btn.prev { left: 15px; }
.banner-nav-btn.next { right: 15px; }

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.banner-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.banner-dot.active {
    background-color: white;
    border-color: rgba(0,0,0,0.4);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 5%;
    background-color: var(--bg-tertiary);
    text-align: center;
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

.why-choose-us h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--brand-primary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    background-color: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: 1px solid var(--border-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--brand-accent);
}

.why-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--border-primary);
}

.why-card:hover .icon-wrapper {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: scale(1.1) rotate(-5deg);
}

.why-card i {
    font-size: 36px;
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

.why-card:hover i {
    color: var(--text-inverted);
}

.why-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.why-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}


/* CARD STYLES (from cards.css) */
/* ....................... Service Box (Home) ...................... */
.service-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-bottom: 4px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-bottom-width 0.2s ease-out;
    color: var(--brand-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
a.service-box { text-decoration: none; color: var(--brand-primary); }
.service-box:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-box:active { transform: translateY(1px); border-bottom-width: 2px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.service-box i { font-size: 30px; margin-bottom: 10px; color: var(--brand-primary); transition: transform 0.3s ease; }
.service-box img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 15px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.service-box:hover img, .service-box:hover i { transform: scale(1.15); }

/* ....................... How-It-Works Box ...................... */
.how-box {
    flex: 1 1 220px;
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-secondary);
    border-bottom: 4px solid var(--border-primary);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-bottom-width 0.2s ease-out;
    text-align: center;
}
.how-box:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.how-box:active { transform: translateY(1px); border-bottom-width: 2px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.how-box i { font-size: 36px; color: var(--brand-primary); margin-bottom: 15px; transition: transform 0.3s ease; }
.how-box:hover i { transform: scale(1.1) rotate(5deg); }
.how-box h3 { font-size: 20px; color: var(--brand-primary); margin-bottom: 10px; }
.how-box p { font-size: 15px; color: var(--text-secondary); }

/* ....................... Reel & Testimonial Card ...................... */
.reel-card {
    flex: 0 0 220px;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.reel-card:hover { transform: scale(1.03) translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.reel-card .main-image-container { width: 100%; height: 100%; }
.reel-card .main-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.reel-card:hover .main-image-container img { transform: scale(1.05); }
.reel-card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 3; pointer-events: none;
}
.reel-card-overlay > * { pointer-events: auto; }
.reel-card-title { color: var(--text-inverted); font-size: 16px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.testimonial-card .reel-card-overlay { justify-content: flex-end; display: flex; flex-direction: column; }
.testimonial-text { font-style: italic; font-size: 15px; color: rgba(255, 255, 255, 0.9); margin-bottom: 10px; line-height: 1.5; }
.testimonial-author { font-size: 16px; font-weight: bold; color: #fff; text-align: right; }

/* Video Player inside Reel Card */
.video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; border-radius: inherit; overflow: hidden; cursor: pointer; }
.video-wrapper video, .video-wrapper .video-thumbnail { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform 0.5s ease; }
.reel-card:hover video { transform: scale(1.05); }
.video-wrapper .video-thumbnail { z-index: 1; display: none; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background-color: rgba(0, 0, 0, 0.3); z-index: 2; transition: opacity 0.3s ease; border-radius: inherit; }
.play-button-center { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); color: white; border: 2px solid white; border-radius: 50%; width: 60px; height: 60px; font-size: 24px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease; padding-left: 5px; }
.play-button-center:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.15); }
.video-controls { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; gap: 15px; padding: 10px 15px; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
.play-pause-btn, .mute-unmute-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 5px; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); }
.video-wrapper.is-playing .video-overlay { opacity: 0; pointer-events: none; }
.video-wrapper.is-playing .video-thumbnail { display: none; }
.video-wrapper.is-playing:hover .video-controls { opacity: 1; pointer-events: auto; }

/* ....................... Unified Service Grid Card (Crucial Fixes) ...................... */
.service-grid-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-tertiary);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
    /* FIX: Ensure cards are flex containers */
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-grid-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-color: var(--brand-primary); }

.service-grid-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    color: var(--text-primary);
    word-break: break-word; /* Prevent long titles from breaking layout */
}
.service-grid-card h3 a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.service-grid-card h3 a:hover { color: var(--brand-primary); }

.service-grid-card .media {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background-color: var(--bg-tertiary);
    overflow: hidden;
}
.service-grid-card .media .media-img, .service-grid-card .media video {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-grid-card:hover .media .media-img, .service-grid-card:hover .media video { transform: scale(1.08); }

/* FIX: Card info expands to fill space */
.service-grid-card .info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

/* FIX: Content grows, pushing footer down */
.service-grid-card .card-content {
    flex-grow: 1;
}

/* FIX: Footer always at bottom */
.service-grid-card .card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-tertiary);
}

.service-grid-card .process-steps-preview { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-tertiary); }
.service-grid-card .process-steps-preview ul { padding-left: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.service-grid-card .process-steps-preview li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); text-align: left; }
.service-grid-card .process-steps-preview li i { color: var(--success-color); font-size: 14px; flex-shrink: 0; }

/* ....................... Tyre Card & Battery Card ...................... */
/* Reusing basic card styles but with specific layout adjustments */
.service-list-card, .battery-product-card, .tyre-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-tertiary);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
    display: flex;
    height: 100%;
    flex-direction: column; /* Enforce vertical stacking */
}

.service-list-card:hover, .battery-product-card:hover, .tyre-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--brand-primary);
}

/* Specifics for Tyre Card Content */
.tyre-card-gallery { flex-shrink: 0; padding: 20px 20px 0; }
.tyre-card-gallery .main-image-container { position: relative; width: 100%; overflow: hidden; }
.main-gallery-image { width: 100%; aspect-ratio: 1/1; object-fit: contain; border: 1px solid var(--border-tertiary); border-radius: 8px; padding: 8px; background: #fff; transition: transform 0.4s ease; }
.tyre-card:hover .main-gallery-image { transform: scale(1.05); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.4); color: white; border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 18px; transition: background-color 0.2s, transform 0.2s ease; z-index: 10; }
.carousel-btn:hover { background-color: rgba(0, 0, 0, 0.7); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.tyre-card-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
    min-width: 0;
}
.tyre-card-details .card-content { flex-grow: 1; } /* Push footer down */
.tyre-card-details .card-footer { margin-top: auto; }

.tyre-card-tabs { display: flex; border-bottom: 1px solid var(--border-primary); margin-bottom: 15px; }
.tab-button { background: none; border: none; padding: 10px 20px; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--text-secondary); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: all 0.3s ease; }
.tab-button:hover { color: var(--brand-primary); }
.tab-button.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); font-weight: 600; }
.tab-pane { animation: contentFadeIn 0.4s ease-out; }
.tab-pane.hidden { display: none; }

.tyre-specs-overview { display: flex; justify-content: space-around; background-color: var(--bg-tertiary); border-radius: 8px; padding: 12px; margin-top: 15px; margin-bottom: 20px; border: 1px solid var(--border-tertiary); }
.spec-item { text-align: center; flex: 1; }
.spec-item .spec-label { display: block; font-size: 12px; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.spec-item .spec-value { display: block; font-size: 18px; font-weight: 600; color: var(--text-primary); }

.tyre-service-benefits { margin: 0 0 20px; padding: 15px 20px; background: var(--bg-tertiary); border-radius: 12px; border-left: 5px solid var(--brand-accent); transition: transform 0.3s ease; }
.tyre-card:hover .tyre-service-benefits { transform: translateX(5px); }
.tyre-service-benefits .benefits-header { margin-bottom: 15px; text-align: center; }
.tyre-service-benefits .benefits-title { font-size: 16px; font-weight: 600; color: var(--brand-primary); margin: 0 0 4px; }
.tyre-service-benefits .benefits-subtitle { font-size: 13px; color: var(--text-secondary); margin: 0; }
.tyre-service-benefits .benefits-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tyre-service-benefits .benefits-list li { font-size: 14px; color: var(--text-secondary); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.tyre-service-benefits .benefits-list li i { color: var(--brand-accent); font-size: 18px; width: 20px; text-align: center; }

/* Battery Card Specifics */
.battery-product-card { flex-wrap: wrap; gap: 30px; padding: 24px; max-width: 900px; margin: 0 auto 30px; flex-direction: row; }
.battery-image-gallery { flex: 1 1 300px; display: flex; flex-direction: column; gap: 15px; }
.main-image-wrapper { width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--border-tertiary); border-radius: 8px; padding: 15px; background-color: white; overflow: hidden; }
.main-image-wrapper .main-image { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.battery-product-card:hover .main-image { transform: scale(1.05); }
.thumbnail-list { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.thumbnail-list .thumbnail { width: 60px; height: 60px; border: 2px solid var(--border-tertiary); border-radius: 6px; padding: 5px; cursor: pointer; object-fit: contain; background-color: white; transition: border-color 0.2s ease, transform 0.2s ease; }
.thumbnail-list .thumbnail:hover { transform: scale(1.1); }
.thumbnail-list .thumbnail.active { border-color: var(--brand-accent); }
.battery-details { flex: 2 1 400px; display: flex; flex-direction: column; }
.battery-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.battery-header .actions { display: flex; gap: 15px; color: var(--text-secondary); }
.action-btn-icon { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; transition: color 0.2s ease, transform 0.2s ease; }
.action-btn-icon:hover { color: var(--brand-primary); transform: scale(1.2); }
.reviews-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-tertiary); }
.assured-badge { background-color: #e6e6f2; color: var(--brand-primary); padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; border: 1px solid #b3b3d1; }
.product-info-table { margin-bottom: 25px; }
.info-row { display: flex; gap: 10px; padding: 8px 0; font-size: 15px; }
.info-row .label { flex-basis: 150px; flex-shrink: 0; color: var(--text-muted); }
.info-row .value { color: var(--text-primary); font-weight: 500; }

/* Service List Card (Horizontal) */
.service-list-card { gap: 24px; padding: 24px; display: flex; }
.service-list-card .media { flex-basis: 220px; flex-shrink: 0; align-self: center; aspect-ratio: 4 / 3; height: auto; border-radius: 8px; overflow: hidden; position: relative; }
.service-list-card .info { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Shared Card Utilities */
.star-rating { display: flex; align-items: center; gap: 5px; font-size: 14px; margin-bottom: 15px; color: var(--text-secondary); }
.star-rating .fa-star, .star-rating .fa-star-half-alt { color: var(--star-color); }
.star-rating .rating-value { background-color: var(--success-color); color: var(--text-inverted); font-weight: bold; padding: 2px 6px; border-radius: 4px; font-size: 13px; display: flex; align-items: center; gap: 3px; }
.star-rating .rating-value .fa-star { color: var(--text-inverted); font-size: 10px; }
.details-link { background: none; border: none; color: var(--brand-primary); font-weight: bold; cursor: pointer; text-align: left; padding: 5px 0; margin-top: 10px; transition: color 0.2s ease, padding-left 0.2s ease; }
.details-link:hover { color: var(--brand-accent); padding-left: 5px; }
.service-meta-info { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.service-meta-info i { color: var(--brand-primary); }

.price-container, .price-section { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.offer-price, .current-price { font-size: 26px; font-weight: 700; color: var(--brand-primary); }
.mrp-price, .original-price { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }
.discount, .discount-badge { background-color: var(--success-color); color: white; padding: 4px 8px; border-radius: 4px; font-size: 14px; font-weight: bold; }
.car-price-info { font-size: 13px; color: var(--text-muted); font-style: italic; margin-top: 5px; }
.promo-text { font-size: 14px; color: var(--brand-primary); font-weight: bold; }

.product-actions { display: flex; gap: 15px; }
.product-actions .add-to-cart-btn, .product-actions .buy-now-btn { flex: 1; padding: 12px; font-size: 16px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); text-align: center; text-transform: uppercase; letter-spacing: 0.5px; }
.product-actions .add-to-cart-btn { background-color: var(--bg-secondary); color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.product-actions .add-to-cart-btn:hover { background-color: var(--brand-primary); color: var(--text-inverted); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(var(--brand-primary-rgb), 0.2); }
.product-actions .add-to-cart-btn:active { transform: scale(0.98); }
.product-actions .buy-now-btn { background-color: var(--brand-accent); color: var(--brand-accent-text); border: 2px solid var(--brand-accent); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.product-actions .buy-now-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); filter: brightness(1.05); }
.product-actions .buy-now-btn:active { transform: scale(0.98); }

/* Carousel Inside Cards */
.card-gallery-container { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.card-gallery-wrapper { display: flex; height: 100%; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.card-gallery-item { flex: 0 0 100%; width: 100%; height: 100%; }
.card-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); color: white; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 14px; transition: background-color 0.2s, transform 0.2s ease; z-index: 10; opacity: 0; }
.card-gallery-container:hover .card-carousel-btn { opacity: 1; }
.card-carousel-btn:hover { background-color: rgba(0, 0, 0, 0.7); transform: translateY(-50%) scale(1.1); }
.card-carousel-btn.prev { left: 5px; }
.card-carousel-btn.next { right: 5px; }
.card-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.card-carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); border: none; padding: 0; cursor: pointer; transition: background-color 0.3s, transform 0.3s; }
.card-carousel-dots .dot:hover { transform: scale(1.2); }
.card-carousel-dots .dot.active { background-color: white; }

/* Skeleton */
.service-card-skeleton { pointer-events: none; border-color: var(--border-tertiary) !important; }
.service-card-skeleton:hover { transform: none; box-shadow: 0 4px 15px var(--shadow-color); }
.service-card-skeleton .skeleton-media, .service-card-skeleton .skeleton-line { background-color: var(--bg-tertiary); animation: skeleton-pulse 1.5s infinite ease-in-out; }
.service-card-skeleton .skeleton-media { aspect-ratio: 16 / 9; }
.service-card-skeleton .skeleton-line { border-radius: 4px; height: 1em; margin-bottom: 10px; }
.service-card-skeleton .skeleton-line:last-child { margin-bottom: 0; }
.service-card-skeleton .product-actions .skeleton-line { flex: 1; }
@keyframes skeleton-pulse { 0% { background-color: var(--bg-tertiary); } 50% { background-color: var(--border-tertiary); } 100% { background-color: var(--bg-tertiary); } }

@media (max-width: 700px) {
    .battery-product-card { flex-direction: column; }
}
@media (max-width: 576px) {
    .service-list-card { flex-direction: column; align-items: center; text-align: center; }
    .service-list-card .details-link { text-align: center; }
    .service-list-card .info { width: 100%; }
    .service-list-card .media { width: 100%; max-width: 200px; height: auto; aspect-ratio: 1/1; }
    .service-list-card .product-actions { display: flex; gap: 10px; width: 100%; max-width: 350px; margin: 15px auto 0; }
    .service-list-card .product-actions .add-to-cart-btn, .service-list-card .product-actions .buy-now-btn { flex: 1; padding: 12px 5px; font-size: 14px; }
    .tyre-card, .battery-product-card { padding: 15px; gap: 20px; }
    .tyre-card-details, .battery-details { flex-basis: auto; }
    .tyre-card-details h3, .battery-header h3 { font-size: 18px; line-height: 1.4; }
    .tyre-card-details .tab-button { padding: 10px 12px; font-size: 14px; flex-grow: 1; text-align: center; }
    .tyre-card-tabs { justify-content: space-around; }
    .tyre-card .product-actions, .battery-product-card .product-actions { flex-direction: column; gap: 10px; margin-top: 15px; }
}

@media (max-width: 400px) {
    .service-grid-card .product-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* MODAL STYLES (from modals.css) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1000;
    display: flex; justify-content: flex-end; align-items: flex-start; opacity: 0; visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(4px); /* Glass effect for modal background */
}
#image-editor-modal, #loading-overlay, #booking-modal, #review-modal, #code-generator-modal, #order-details-summary-modal, #auth-modal, #profile-page-modal, #enquiry-modal {
    justify-content: center; align-items: center;
}
.modal-overlay:not(.hidden) { opacity: 1; visibility: visible; }
.modal-content {
    width: 100%; max-width: 420px; height: 100%; background: var(--bg-secondary); display: flex; flex-direction: column;
    transform: translateX(100%); 
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Bouncy slide in */
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
}
#booking-modal .modal-content, #review-modal .modal-content, #code-generator-modal .modal-content, #order-details-summary-modal .modal-content, #auth-modal .modal-content, #profile-page-modal .modal-content {
    max-width: 800px; height: auto; border-radius: 12px; 
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy pop in */
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
#review-modal .modal-content, #order-details-summary-modal .modal-content, #enquiry-modal .modal-content { max-width: 500px; }
#booking-modal .booking-modal-content { width: 95vw; max-width: 500px; height: auto; max-height: 85vh; border-radius: 16px; transform: scale(0.9); display: flex; flex-direction: column; overflow: hidden; }

#booking-modal:not(.hidden) .modal-content, #review-modal:not(.hidden) .modal-content, #code-generator-modal:not(.hidden) .modal-content, #order-details-summary-modal:not(.hidden) .modal-content, #auth-modal:not(.hidden) .modal-content, #profile-page-modal:not(.hidden) .modal-content { transform: scale(1) translateY(0); }

.modal-overlay:not(.hidden) .modal-content { transform: translateX(0); }
#auth-modal:not(.hidden) .modal-content, #profile-page-modal:not(.hidden) .modal-content, #booking-modal:not(.hidden) .booking-modal-content { transform: scale(1); }

.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 2px solid var(--border-tertiary); flex-shrink: 0; }
.modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); text-transform: uppercase; flex-grow: 1; text-align: center; }
.modal-nav-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-secondary); padding: 5px; min-width: 30px; transition: transform 0.2s ease; }
.modal-nav-btn:hover { transform: scale(1.1); color: var(--brand-primary); }
.modal-body { flex-grow: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; }

/* Car Selector */
.progress-container { display: flex; justify-content: space-between; margin-bottom: 20px; position: relative; }
.progress-container::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: var(--border-secondary); transform: translateY(-50%); z-index: -1; }
.progress-step { font-size: 12px; font-weight: 600; color: var(--text-muted); background-color: var(--bg-secondary); padding: 0 10px; position: relative; transition: color 0.3s ease; }
.progress-step.active, .progress-step.completed { color: var(--brand-primary); }
.progress-step::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 50%; background-color: var(--border-secondary); border: 2px solid var(--bg-secondary); z-index: -1; transition: background-color 0.3s ease; }
.progress-step.active::after { background-color: var(--brand-accent); }
.progress-step.completed::after { background-color: var(--brand-primary); }

.modal-search-container { position: relative; margin-bottom: 20px; }
.modal-search-container i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
#modal-search-input { width: 100%; padding: 12px 15px 12px 40px; border-radius: 8px; border: 1px solid var(--border-primary); font-size: 16px; background-color: var(--bg-tertiary); color: var(--text-primary); transition: box-shadow 0.2s ease; }
#modal-search-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1); }

.modal-step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 15px; }
.grid-item { background-color: var(--bg-secondary); border: 1px solid var(--border-tertiary); border-radius: 8px; text-align: center; cursor: pointer; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; overflow: hidden; aspect-ratio: 1 / 1; }
.grid-item:hover { border-color: var(--brand-primary); box-shadow: 0 8px 20px var(--shadow-color); transform: scale(1.05); z-index: 10; position: relative; }
.grid-item .main-image-container { width: 100%; flex-grow: 1; display: flex; align-items: center; justify-content: center; background-color: var(--bg-secondary); position: relative; overflow: hidden; padding: 10px; }
.grid-item picture, .grid-item img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.grid-item img.car { border-radius: 4px; }
.grid-item:hover img { transform: scale(1.1); }
.grid-item p { font-weight: 600; font-size: 13px; color: var(--text-secondary); margin: 0; padding: 8px 5px; width: 100%; background-color: var(--bg-secondary); flex-shrink: 0; line-height: 1.3; height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }

.variant-list { display: flex; flex-direction: column; gap: 10px; }
.list-item { padding: 15px; border: 1px solid var(--border-primary); border-radius: 8px; cursor: pointer; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); font-weight: 500; }
.list-item:hover { background-color: var(--bg-tertiary); border-color: var(--brand-primary); transform: translateX(5px); }

.confirmation-view { text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.confirmation-view .main-image-container { width: 100%; max-width: 300px; height: 180px; margin: 0 auto 10px; border-radius: 8px; border: 1px solid var(--border-tertiary); }
.confirmation-view .main-image-container img { width: 100%; height: 100%; object-fit: contain; }
.confirmation-view h4 { font-size: 22px; margin-bottom: 0; color: var(--text-primary); }
.confirmation-view p { font-size: 16px; color: var(--text-secondary); margin-bottom: 15px; }
.confirmation-details { width: 100%; max-width: 300px; background-color: var(--bg-tertiary); border-radius: 8px; padding: 15px; text-align: left; font-size: 14px; margin-bottom: 20px; border: 1px solid var(--border-tertiary); }
.confirmation-details .detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-secondary); }
.confirmation-details .detail-row:last-child { border-bottom: none; }
.confirmation-details .detail-row strong { color: var(--text-secondary); }
.confirmation-details .detail-row span { color: var(--text-primary); font-weight: 600; }
.confirmation-buttons { display: flex; justify-content: center; gap: 15px; width: 100%; max-width: 300px; }
.change-btn, .done-btn { padding: 12px 25px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; font-size: 16px; flex: 1; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.change-btn:active, .done-btn:active { transform: scale(0.95); }
.change-btn { background-color: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border-primary); }
.done-btn { background-color: var(--brand-primary); color: var(--text-inverted); }

/* Auth Modal */
#auth-modal .auth-modal-content { max-width: 400px; border-radius: 20px; overflow: hidden; background-color: var(--bg-secondary); }
#auth-step-mobile, #auth-step-otp, #auth-step-success { width: 100%; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
#auth-step-mobile { position: relative; }
.auth-close-btn { position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.3); color: white; border-radius: 50%; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; font-size: 16px; transition: background 0.2s ease; }
.auth-close-btn:hover { background: rgba(0,0,0,0.5); }
.auth-header-image { width: 100%; height: 200px; }
.auth-header-image img { width: 100%; height: 100%; object-fit: cover; }
.auth-form-container { padding: 30px; text-align: center; }
.auth-form-container h2 { font-size: 24px; color: var(--text-primary); margin-bottom: 10px; }
.auth-form-container .auth-prompt { font-size: 14px; color: var(--text-secondary); margin-bottom: 25px; max-width: 280px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.auth-form-container .form-group { text-align: left; margin-bottom: 25px; position: relative; }
.auth-form-container .form-group label { position: absolute; top: -8px; left: 15px; background: var(--bg-secondary); padding: 0 5px; font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.phone-input-container { display: flex; border: 1px solid var(--border-primary); border-radius: 8px; align-items: center; transition: border-color 0.2s ease; }
.phone-input-container:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1); }
.phone-input-container span { padding: 12px 15px; font-weight: 600; border-right: 1px solid var(--border-primary); color: var(--text-secondary); }
.phone-input-container input { border: none; padding: 12px 15px; flex-grow: 1; font-size: 16px; background: transparent; width: 100%; color: var(--text-primary); }
.phone-input-container input:focus { outline: none; }
.auth-btn { width: 100%; padding: 14px; background-color: var(--brand-primary); color: var(--text-inverted); border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.auth-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { background-color: var(--disabled-color); cursor: not-allowed; transform: none; box-shadow: none; }
.auth-legal-notice { font-size: 12px; color: var(--text-secondary); margin-top: -10px; margin-bottom: 20px; line-height: 1.5; }
.auth-legal-notice a { color: var(--brand-primary); font-weight: 600; text-decoration: none; }
.auth-legal-notice a:hover { text-decoration: underline; }
#auth-modal .error-message { text-align: left; color: var(--error-color); font-size: 14px; padding-left: 10px; margin-top: 5px; margin-bottom: 0; }

/* OTP */
#auth-step-otp .auth-otp-header { padding: 15px 20px; text-align: left; }
#auth-step-otp .auth-form-container { padding-top: 0; }
.otp-input-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.otp-input { width: 45px; height: 50px; text-align: center; font-size: 20px; font-weight: bold; border: 1px solid var(--border-secondary); border-radius: 8px; color: var(--text-primary); background-color: var(--bg-secondary); transition: all 0.2s ease; }
.otp-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1); transform: translateY(-2px); }
.otp-actions { display: flex; justify-content: space-between; margin-bottom: 25px; }
.link-btn { background: none; border: none; color: var(--brand-primary); font-weight: 600; cursor: pointer; font-size: 14px; transition: color 0.2s ease; }
.link-btn:hover { color: var(--brand-accent); }

/* Success */
.success-container { padding: 40px 30px; }
.success-icon-wrapper { width: 80px; height: 80px; border-radius: 50%; background-color: var(--bg-secondary); border: 3px solid var(--brand-accent); display: flex; justify-content: center; align-items: center; margin: 0 auto 20px; animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
@keyframes bounceIn { from { transform: scale(0); } to { transform: scale(1); } }
.success-icon-wrapper i { font-size: 36px; color: var(--brand-primary); }

/* Booking Modal */
#booking-modal-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.booking-modal-main-content { flex-grow: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 25px; }
.booking-summary-footer { flex-shrink: 0; padding: 20px; border-top: 1px solid var(--border-tertiary); background-color: var(--bg-primary); box-shadow: 0 -5px 20px rgba(0,0,0,0.05); }
.booking-summary-details p { margin: 0 0 8px; font-size: 14px; color: var(--text-secondary); }
.booking-summary-details p:last-child { margin-bottom: 0; }
.booking-summary-details p strong { color: var(--text-primary); font-weight: 600; }
.booking-summary-details .booking-summary-total { font-size: 20px; font-weight: bold; color: var(--brand-primary); margin-top: 10px; }
#booking-modal-body h4 { font-size: 16px; margin-bottom: 15px; color: var(--text-primary); }

/* Calendar */
.calendar-container { border: 1px solid var(--border-secondary); border-radius: 12px; padding: 20px; background-color: var(--bg-tertiary); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 0 5px; }
.calendar-header h5 { font-size: 18px; font-weight: 600; margin: 0; text-align: center; flex-grow: 1; }
.calendar-nav-btn { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--text-secondary); width: 36px; height: 36px; border-radius: 50%; transition: background-color 0.2s, color 0.2s; display: flex; align-items: center; justify-content: center; }
.calendar-nav-btn:not(:disabled):hover { background-color: var(--border-secondary); color: var(--text-primary); }
.calendar-nav-btn:disabled { cursor: not-allowed; opacity: 0.5; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.calendar-day { font-size: 14px; font-weight: 500; border-radius: 50%; cursor: pointer; position: relative; aspect-ratio: 1 / 1; display: flex; justify-content: center; align-items: center; border: 2px solid transparent; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.1s ease-out; }
.calendar-day.day-name { font-weight: 600; color: var(--text-muted); font-size: 12px; cursor: default; aspect-ratio: auto; height: 24px; }
.calendar-day:not(.day-name):not(.disabled):not(.selected):hover { background-color: var(--bg-secondary); color: var(--text-primary); }
.calendar-day:not(.day-name):not(.disabled):active { transform: scale(0.95); }
.calendar-day.today { font-weight: 700; border-color: var(--brand-accent); color: var(--brand-accent); }
.calendar-day.disabled { color: var(--disabled-color); cursor: not-allowed; opacity: 0.6; }
.calendar-day.selected { background-color: var(--brand-primary); color: var(--text-inverted); font-weight: 700; border-color: var(--brand-primary); transform: scale(1.1); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.calendar-day.today.selected { color: var(--text-inverted); }

.time-slot-container { animation: contentFadeIn 0.3s; }
.time-slot-group { margin-bottom: 15px; }
.time-slot-group h5 { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; border-bottom: 1px solid var(--border-tertiary); padding-bottom: 5px; }
.time-slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.time-slot-btn { padding: 10px; border: 1px solid var(--border-primary); background-color: var(--bg-secondary); color: var(--text-primary); cursor: pointer; transition: all 0.2s ease; border-radius: 6px; text-align: center; font-weight: 500; }
.time-slot-btn:hover:not(.disabled) { border-color: var(--brand-primary); background-color: var(--bg-tertiary); transform: translateY(-2px); }
.time-slot-btn.active { background-color: var(--brand-primary); color: var(--text-inverted); border-color: var(--brand-primary); font-weight: bold; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.time-slot-btn.disabled { background-color: var(--bg-tertiary); color: var(--disabled-color); cursor: not-allowed; border-color: var(--border-tertiary); }

/* Review Modal */
#review-form { display: flex; flex-direction: column; gap: 20px; }
.interactive-star-rating { display: flex; gap: 10px; }
.interactive-star-rating button { background: none; border: none; padding: 0; cursor: pointer; font-size: 28px; color: var(--text-muted); transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); border-radius: 4px; }
.interactive-star-rating button i { pointer-events: none; }
.interactive-star-rating button:hover { transform: scale(1.2); }
.interactive-star-rating button:hover i, .interactive-star-rating button i.fas { color: var(--star-color); }

/* Order Summary Modal */
.order-summary-modal-content { display: flex; flex-direction: column; gap: 20px; }
.summary-section { padding-bottom: 20px; border-bottom: 1px solid var(--border-tertiary); }
.summary-section:last-child { border-bottom: none; padding-bottom: 0; }
.summary-section h4 { font-size: 16px; font-weight: 600; margin-bottom: 15px; color: var(--text-secondary); }
.order-items-summary-list { display: flex; flex-direction: column; gap: 15px; }
.order-summary-item { display: flex; justify-content: space-between; gap: 10px; }
.order-summary-item .item-details { flex-grow: 1; }
.order-summary-item .item-name { font-weight: 500; margin: 0 0 5px; }
.order-summary-item .item-price { font-weight: 500; flex-shrink: 0; }

@media (max-width: 700px) {
    #car-selection-modal { justify-content: center; align-items: center; }
    #car-selection-modal .modal-content { transform: scale(0.95); max-width: 95%; width: 500px; height: auto; max-height: 90vh; border-radius: 12px; }
    #car-selection-modal.modal-overlay:not(.hidden) .modal-content { transform: scale(1); }
}
@media (max-width: 400px) { .calendar-day { font-size: 13px; } }


/* PROFILE MODAL (from profile-modal.css) */
#profile-page-modal .profile-modal-content {
    background-color: var(--bg-primary);
    max-width: 420px; width: 95%; height: auto; max-height: 90vh; border-radius: 16px;
    transform: scale(0.95); transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    display: flex; flex-direction: column; overflow: hidden;
}
#profile-page-modal:not(.hidden) .profile-modal-content { transform: scale(1); }
#profile-page-modal .modal-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border-tertiary); }
#profile-page-modal .profile-modal-body { padding: 0; overflow-y: auto; }
#profile-page-modal .modal-header h3 { text-transform: none; font-size: 20px; }
#profile-modal-close-btn { margin-left: auto; }
#profile-modal-back-btn:not(.hidden) + #profile-modal-title { padding-right: 30px; }

/* Dashboard View */
#profile-dashboard-view { display: flex; flex-direction: column; gap: 15px; padding: 15px; }
.profile-header-card { display: flex; align-items: center; gap: 15px; background-color: var(--bg-secondary); padding: 20px; border-radius: 12px; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; background-color: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--brand-primary); flex-shrink: 0; border: 2px solid var(--brand-primary); }
.profile-info { flex-grow: 1; }
.profile-info h3 { margin: 0 0 4px; font-size: 18px; color: var(--text-primary); }
.profile-info p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.edit-profile-link { background: none; border: none; color: var(--brand-primary); font-size: 18px; cursor: pointer; padding: 5px; border-radius: 50%; }
.edit-profile-link:hover { background-color: var(--bg-tertiary); }
.profile-menu-list { background-color: var(--bg-secondary); border-radius: 12px; overflow: hidden; }
.profile-menu-item { display: flex; align-items: center; padding: 15px; cursor: pointer; border-bottom: 1px solid var(--border-tertiary); transition: background-color 0.2s ease; }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background-color: var(--bg-tertiary); }
.profile-menu-item .menu-icon { font-size: 18px; color: var(--text-secondary); width: 25px; text-align: center; margin-right: 15px; }
.profile-menu-item span { flex-grow: 1; font-weight: 500; color: var(--text-primary); }
.menu-badge { background-color: var(--brand-primary); color: var(--text-inverted); font-size: 12px; font-weight: bold; padding: 2px 8px; border-radius: 10px; margin-right: 10px; }
.menu-chevron { color: var(--text-muted); }
.profile-logout-container { margin-top: auto; }
.logout-button { width: 100%; padding: 15px; border: none; border-radius: 12px; background-color: var(--bg-secondary); color: var(--error-color); font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background-color 0.2s ease; }
.logout-button:hover { background-color: #fee2e2; }
body[data-theme="dark"] .logout-button:hover { background-color: #3e2121; }

/* Edit View */
#profile-edit-view { padding: 20px; background-color: var(--bg-secondary); }
.profile-avatar-edit-container { position: relative; width: 100px; height: 100px; margin: 0 auto 25px; }
.profile-avatar-edit { width: 100%; height: 100%; border-radius: 50%; background-color: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--brand-primary); border: 3px solid var(--border-primary); }
.avatar-edit-button { position: absolute; bottom: 0; right: 0; width: 32px; height: 32px; border-radius: 50%; background-color: var(--brand-primary); color: var(--text-inverted); border: 2px solid var(--bg-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.form-group-row { display: flex; gap: 15px; }
.form-group-row .form-group { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; color: var(--text-secondary); }
.form-group-input { width: 100%; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-primary); font-size: 16px; background-color: var(--bg-secondary); color: var(--text-primary); }
.form-group-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 2px var(--shadow-color); }
.form-group input[readonly] { background-color: var(--bg-tertiary); cursor: not-allowed; color: var(--text-secondary); }

/* Address Views */
#profile-addresses-view, #profile-address-edit-view { padding: 20px; background-color: var(--bg-secondary); }
.address-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.address-card { display: flex; gap: 15px; align-items: center; padding: 15px; border-radius: 12px; border: 1px solid var(--border-tertiary); background-color: var(--bg-tertiary); }
.address-card-icon { font-size: 20px; color: var(--brand-primary); width: 30px; text-align: center; }
.address-card-details { flex-grow: 1; }
.address-card-details h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.address-card-details p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.address-card-actions { display: flex; gap: 8px; }
.address-action-btn { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--text-secondary); padding: 8px; border-radius: 50%; width: 36px; height: 36px; }
.address-action-btn:hover { background-color: var(--border-secondary); }
.address-action-btn.delete-btn:hover { color: var(--error-color); }
.address-action-btn.edit-btn:hover { color: var(--brand-primary); }
.form-label-with-action { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.form-label-with-action label { margin-bottom: 0; }
.text-btn { background: none; border: none; color: var(--brand-primary); font-weight: 600; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 5px; padding: 0; }
.text-btn:hover { text-decoration: underline; }

/* SERVICE PAGES (from service-pages.css) */
.service-page-container {
    padding: 120px 5% 60px;
    min-height: 80vh;
}
.service-page-container > h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--brand-primary);
    text-align: center;
}

.service-packages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* FIX: Robust Grid Layout */
.service-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ensures cards wrap on small screens */
    gap: 24px;
    align-items: stretch; /* Ensures equal height for all cards */
}

.tyre-filter-bar, .car-wash-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 20px;
    margin-bottom: 40px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
}
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group.price-filter-group { flex-grow: 1; }
.filter-group label { font-size: 12px; font-weight: bold; color: var(--text-muted); }
.filter-group select, .filter-group input { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border-primary); background-color: var(--bg-tertiary); min-width: 150px; }
#price-range-slider { width: 100%; cursor: pointer; padding: 0; }
#tyre-filter-reset-btn, #car-wash-filter-reset-btn { padding: 8px 20px; border-radius: 6px; border: 1px solid var(--border-primary); background-color: var(--bg-secondary); cursor: pointer; align-self: center; }
#tyre-filter-reset-btn { align-self: flex-end; }

.delivery-info-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: var(--bg-tertiary); border: 1px solid var(--border-secondary); border-radius: 8px; margin-bottom: 30px; margin-top: -20px; }
.delivery-info-content { display: flex; align-items: center; gap: 15px; font-size: 15px; color: var(--text-secondary); }
.delivery-info-content i { color: var(--brand-primary); font-size: 18px; }
.delivery-info-content strong { color: var(--text-primary); }

.select-car-prompt { text-align: center; padding: 60px 20px; background-color: var(--bg-secondary); border-radius: 12px; margin: 40px auto; max-width: 600px; border: 1px dashed var(--border-primary); }
.select-car-prompt i { font-size: 48px; color: var(--text-muted); margin-bottom: 20px; }
.select-car-prompt h3 { font-size: 24px; color: var(--text-primary); margin-bottom: 10px; }
.select-car-prompt p { color: var(--text-secondary); margin-bottom: 30px; }
#select-car-prompt-btn { opacity: 1; animation: none; }
.select-car-prompt-modal { background-color: var(--bg-tertiary); border: 1px dashed var(--border-primary); padding: 20px; border-radius: 8px; text-align: center; font-weight: 500; cursor: pointer; }
.select-car-prompt-modal:hover { border-color: var(--brand-primary); }
.select-car-prompt-modal i { margin-right: 10px; }

.current-vehicle-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: var(--bg-tertiary); border: 1px solid var(--border-secondary); border-radius: 8px; margin-bottom: 30px; }
.current-vehicle-info { display: flex; align-items: center; gap: 15px; font-size: 15px; color: var(--text-secondary); }
.current-vehicle-info i { color: var(--success-color); font-size: 18px; }
.current-vehicle-info strong { color: var(--text-primary); }
.current-vehicle-info .vehicle-image { width: 60px; height: 40px; object-fit: contain; border-radius: 4px; background-color: var(--bg-secondary); padding: 2px; }
#change-vehicle-btn { font-size: 14px; }

/* Pagination */
.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--border-tertiary); }
.pagination-btn { background-color: var(--bg-secondary); border: 1px solid var(--border-primary); color: var(--text-primary); padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.pagination-btn:hover:not(:disabled) { background-color: var(--brand-primary); color: var(--text-inverted); border-color: var(--brand-primary); }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination-info { font-weight: 500; color: var(--text-secondary); }

/* Empty State View */
.empty-state-view { text-align: center; padding: 80px 20px; background: var(--bg-secondary); border-radius: 12px; }
.empty-state-view i { font-size: 50px; color: var(--text-muted); margin-bottom: 20px; }
.empty-state-view h3 { font-size: 22px; color: var(--text-primary); margin-bottom: 10px; }
.empty-state-view p { color: var(--text-secondary); margin-bottom: 30px; }
.empty-state-view .btn { opacity: 1; animation: none; }

@media (max-width: 576px) {
    .service-page-container {
        padding-top: 90px;
    }
    .pagination-controls { gap: 10px; flex-wrap: wrap; }
    .pagination-btn { padding: 8px 12px; font-size: 14px; }
}

@media (max-width: 480px) {
    .service-page-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* SERVICE DETAIL PAGE (from service-detail.css) */
#service-detail-page-content {
    padding: 120px 5% 60px;
    background-color: var(--bg-secondary);
}

.service-detail-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.service-detail-main-image {
    width: 100%;
    aspect-ratio: 1/1;
    border: 1px solid var(--border-tertiary);
    border-radius: 12px;
    overflow: hidden;
}
.service-detail-main-image img, .service-detail-main-image video {
    width: 100%; height: 100%; object-fit: contain;
}
.service-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}
.service-detail-thumb {
    aspect-ratio: 1/1;
    border: 2px solid var(--border-tertiary);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}
.service-detail-thumb.active { border-color: var(--brand-primary); }
.service-detail-thumb img, .service-detail-thumb video { width: 100%; height: 100%; object-fit: cover; }

.service-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.service-detail-header h1 {
    font-size: 32px;
    margin-bottom: 0;
    flex-grow: 1;
}

.service-detail-header .actions {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    padding-top: 5px;
}

.service-detail-info .star-rating { margin-bottom: 25px; }
.service-detail-info .short-description { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 25px; }

.service-detail-price-box {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    position: sticky;
    top: 100px;
}

.service-detail-price-box .price-line { margin-bottom: 10px; }
.service-detail-price-box .offer-price { font-size: 28px; color: var(--brand-primary); }
.service-detail-price-box .product-actions { margin-top: 20px; }

.service-detail-tabs { margin-top: 30px; border-bottom: 1px solid var(--border-primary); }
.service-detail-tab-content { padding: 25px 0; }
.service-detail-tab-content h4 { font-size: 18px; margin-bottom: 15px; }

/* Availability Checker */
.availability-checker { padding: 15px; margin-bottom: 20px; border: 1px solid var(--border-tertiary); border-radius: 8px; background-color: var(--bg-primary); }
.availability-checker h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: var(--text-secondary); text-align: left; }
.availability-input-group { display: flex; gap: 10px; }
.availability-input-group .availability-pincode { flex-grow: 1; padding: 10px; border-radius: 6px; border: 1px solid var(--border-primary); font-size: 16px; text-align: center; background-color: var(--bg-secondary); color: var(--text-primary); }
.availability-input-group .btn.availability-check-btn { padding: 10px 20px; opacity: 1; animation: none; font-size: 14px; flex-shrink: 0; }
.availability-result { margin-top: 10px; font-weight: 500; font-size: 14px; text-align: center; min-height: 1.2em; }
.availability-result.available { color: var(--success-color); }
.availability-result.not-available { color: var(--error-color); }
.availability-result i { margin-right: 8px; }

/* Addons */
.addons-section { margin-top: 20px; padding-top: 30px; border-top: 1px solid var(--border-tertiary); }
.addons-section h4 { font-size: 16px; margin-bottom: 15px; color: var(--text-primary); }
.addon-item { display: flex; gap: 15px; align-items: center; background-color: var(--bg-tertiary); border: 2px solid var(--border-secondary); border-radius: 12px; padding: 15px; margin-bottom: 15px; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.addon-item:hover { border-color: var(--brand-accent); box-shadow: 0 4px 12px var(--shadow-color); }
.addon-item.selected { border-color: var(--brand-primary); background-color: #eef2ff; }
body[data-theme="dark"] .addon-item.selected { background-color: #2a3a5e; }
.addon-item-thumb { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background-color: var(--bg-secondary); padding: 5px; flex-shrink: 0; }
.addon-item-details { flex-grow: 1; }
.addon-item-details h5 { font-size: 16px; font-weight: 600; margin: 0 0 5px; transition: color 0.2s ease; }
.addon-item.selected .addon-item-details h5 { color: var(--brand-primary); }
.addon-item-details p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.addon-item-action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-left: auto; }
.addon-item-price { font-weight: 700; font-size: 16px; color: var(--brand-primary); white-space: nowrap; }
.addon-item input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--brand-primary); cursor: pointer; }

/* Step Process */
.step-by-step-process { max-width: 900px; margin: 80px auto 0; padding: 40px 0; border-top: 1px solid var(--border-tertiary); }
.step-by-step-process h2 { text-align: center; font-size: 32px; color: var(--brand-primary); margin-bottom: 60px; }
.timeline-container { position: relative; padding: 20px 0; }
.timeline-container::before { content: ''; position: absolute; left: 20px; top: 22px; bottom: 22px; width: 4px; background-color: var(--border-tertiary); border-radius: 2px; }
.timeline-item { position: relative; display: flex; gap: 30px; padding-left: 60px; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background-color: var(--bg-secondary); border: 4px solid var(--brand-primary); display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 18px; color: var(--brand-primary); z-index: 1; }
.timeline-content { background-color: var(--bg-tertiary); border-radius: 12px; padding: 25px; width: 100%; display: flex; gap: 25px; align-items: center; border: 1px solid var(--border-tertiary); }
.timeline-image { width: 200px; height: 150px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.timeline-text h3 { font-size: 20px; color: var(--text-primary); margin: 0 0 10px; }
.timeline-text p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Skeleton Styles */
@keyframes skeleton-pulse { 0% { opacity: 0.6; } 50% { opacity: 0.4; } 100% { opacity: 0.6; } }
.service-detail-skeleton .skeleton-line, .service-detail-skeleton .skeleton-media {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

@media (max-width: 840px) {
    .service-detail-page-layout { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .service-detail-price-box { 
        position: static; 
    }
    .service-detail-header h1 {
        font-size: 26px;
        line-height: 1.3;
    }
}
@media (max-width: 700px) {
    .timeline-label { font-size: 11px; }
    .timeline-content { flex-direction: column; align-items: flex-start; text-align: left; }
    .timeline-image { width: 100%; height: 180px; }
}
@media (max-width: 576px) {
    #service-detail-page-content {
        padding: 90px 15px 40px;
    }
    .step-by-step-process { margin-top: 60px; }
    .timeline-container::before { left: 15px; }
    .timeline-item { padding-left: 45px; }
    .timeline-marker { width: 34px; height: 34px; font-size: 16px; }
}

@media (max-width: 480px) {
    .service-detail-header h1 {
        font-size: 24px;
    }
    .service-detail-price-box {
        padding: 20px;
    }
    .availability-input-group {
        flex-direction: column;
        gap: 10px;
    }
    .availability-input-group .btn.availability-check-btn {
        width: 100%;
    }
    .service-detail-price-box .product-actions {
        flex-direction: column;
        gap: 10px;
    }
}


/* Comparison Table Styles */
.comparison-section {
    margin-top: 60px;
    padding: 40px 20px;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-secondary);
    overflow: hidden;
}
.comparison-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--brand-primary);
    font-size: 28px;
}
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 5px 0 10px -5px rgba(0,0,0,0.05);
    border-radius: 8px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; /* Force scroll on small screens to keep table readable */
}
.comparison-table th, .comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-tertiary);
    font-size: 14px;
    vertical-align: middle;
}
.comparison-table th {
    background-color: var(--bg-tertiary);
    color: var(--brand-primary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}
/* Sticky first column for features */
.comparison-table td:first-child, .comparison-table th:first-child {
    position: sticky;
    left: 0;
    background-color: var(--bg-secondary); /* Match row bg */
    z-index: 2;
    text-align: left;
    font-weight: 600;
    border-right: 2px solid var(--border-tertiary);
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    min-width: 200px;
    color: var(--text-primary);
}
.comparison-table th:first-child {
    background-color: var(--bg-tertiary);
    z-index: 3; /* Higher than other th and first col td */
}
.comparison-table tr:nth-child(even) td {
    background-color: var(--bg-primary);
}
.comparison-table tr:nth-child(even) td:first-child {
    background-color: var(--bg-primary);
}
.comparison-table tr:hover td {
    background-color: var(--bg-tertiary);
}
.check-icon { color: var(--success-color); font-size: 18px; }
.cross-icon { color: var(--text-muted); font-size: 16px; opacity: 0.4; }
.feature-note { font-size: 12px; color: var(--text-secondary); display: block; margin-top: 4px; font-weight: 500; }

/* Button to scroll */
.compare-btn {
    margin-left: 10px;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}
.compare-btn:hover {
    background: var(--brand-primary);
    color: white;
}

@media (max-width: 600px) {
    .comparison-section {
        padding: 30px 15px;
    }
    .comparison-table th, .comparison-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* Enhanced Cart CSS */

.order-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-tertiary);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    flex-wrap: wrap; /* Allows robust wrapping on narrow screens */
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--brand-primary);
}

.cart-item-thumbnail {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-tertiary);
}

.cart-item-thumbnail img, .cart-item-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-thumbnail img {
    transform: scale(1.05);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.cart-item-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.cart-item-details .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.cart-item-booking-info {
    font-size: 13px;
    color: var(--text-primary);
    background-color: #e3f2fd;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: auto; /* Pushes to bottom of details container */
}

.cart-item-booking-info i {
    color: var(--brand-primary);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    height: 100%;
    min-height: 100px;
}

.quantity-selector, .quantity-selector-static {
    display: flex;
    align-items: center;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-tertiary);
}

.quantity-selector-static {
    padding: 8px 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-tertiary);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quantity-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button, .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--error-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.remove-item-btn:hover {
    background-color: #fee2e2;
}

/* Order Summary Card */
.order-summary {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-tertiary);
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-tertiary);
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-tertiary);
    font-size: 15px;
    color: var(--text-secondary);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    border-top: 2px solid var(--border-tertiary);
    border-bottom: none;
    padding-top: 20px;
    margin-top: 10px;
    color: var(--brand-primary);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    margin-top: 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background-color: var(--brand-accent);
    color: var(--brand-accent-text);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.checkout-btn:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .order-layout {
        grid-template-columns: 1fr;
    }
    .order-summary {
        position: static;
        margin-top: 0;
        order: 2; /* Ensure it stays below items on mobile if column direction is used */
    }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; margin-top: 0; }
}

@media (max-width: 768px) {
     /* Mobile Cart Item View: Grid Layout */
    .cart-item {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        padding: 15px;
        align-items: start;
    }

    .cart-item-thumbnail {
        width: 80px;
        height: 80px;
        grid-row: 1;
        grid-column: 1;
    }
    
    .cart-item-details {
        grid-row: 1;
        grid-column: 2;
        min-height: auto;
        width: 100%;
    }
    
    .cart-item-actions {
        grid-row: 2;
        grid-column: 1 / -1;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-secondary);
        padding-top: 12px;
        margin-top: 5px;
        min-height: auto;
    }
    
    .cart-item-booking-info {
        margin-top: 8px;
        width: 100%;
    }
    
    /* Slightly larger touch targets on mobile */
    .quantity-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .payment-layout { grid-template-columns: 1fr; }
    .order-item-info-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ABOUT US PAGE CSS */
.about-us-container {
    background-color: var(--bg-secondary);
}
.about-us-hero-new {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://pub-d1d6c35dc7024f819f155246a42ea32b.r2.dev/Banners/abigenginetechnicialcheckingcarengine.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-inverted);
}
.about-us-hero-new h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.about-us-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 5%;
}
.about-section {
    margin-bottom: 80px;
}
.about-us-container .section-title {
    font-size: 32px;
    color: var(--brand-primary);
    text-align: center;
    margin-bottom: 20px;
}
.about-us-container .section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}
.about-mission-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-tertiary);
    border-radius: 12px;
}
.about-mission-section .section-title {
    margin-bottom: 15px;
}
.about-mission-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--text-primary);
}
.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.difference-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-tertiary);
    transition: transform 0.3s, box-shadow 0.3s;
}
.difference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-color);
}
.difference-card .card-icon {
    font-size: 36px;
    color: var(--brand-accent);
    margin-bottom: 20px;
}
.difference-card h3 {
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 10px;
}
.difference-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.founder-section {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 50px;
    border-radius: 12px;
}
.founder-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--bg-secondary);
    box-shadow: 0 5px 15px var(--shadow-color);
}
.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder-quote blockquote {
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    border-left: 4px solid var(--brand-accent);
    padding-left: 20px;
    margin: 0 0 20px;
    color: var(--text-primary);
}
.founder-quote cite {
    font-weight: bold;
    font-style: normal;
    color: var(--brand-primary);
}
.founder-quote cite span {
    display: block;
    font-weight: normal;
    font-size: 14px;
    color: var(--text-secondary);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.value-card {
    text-align: center;
}
.value-card .card-icon {
    font-size: 40px;
    color: var(--brand-primary);
    margin-bottom: 15px;
}
.value-card h3 {
    font-size: 22px;
    color: var(--text-primary);
}
.about-us-cta {
    background: var(--brand-primary);
    color: var(--text-inverted);
    text-align: center;
    padding: 60px 20px;
}
.about-us-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}
.about-us-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.about-us-cta .btn {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-accent-text);
    animation: none;
    opacity: 1;
}
.about-us-cta .btn:hover {
    background: transparent;
    border-color: var(--text-inverted);
    color: var(--text-inverted);
}

@media (max-width: 576px) {
    .about-us-content-wrapper { padding: 40px 5%; }
    .about-section { margin-bottom: 60px; }
}

/* LEGAL / STATIC PAGES CSS */
.legal-page-container {
    padding: 120px 5% 60px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.7;
}
.legal-page-container h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--brand-primary);
    text-align: center;
}
.legal-section {
    max-width: 800px;
    margin: 0 auto 60px;
    border-bottom: 1px solid var(--border-tertiary);
    padding-bottom: 40px;
}
.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.legal-section h2 {
    font-size: 28px;
    color: var(--brand-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-accent);
}
.legal-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}
.legal-section p, .legal-section li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.legal-section ul {
    list-style: disc;
    padding-left: 25px;
}
.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}
.legal-section .contact-info {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--brand-accent);
}
.legal-nav-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}
.legal-nav-list li {
    font-size: 18px;
    margin-bottom: 15px;
}
.legal-nav-list a {
    text-decoration: none;
    color: var(--brand-primary);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: background-color 0.2s;
}
.legal-nav-list a:hover {
    background-color: var(--bg-primary);
}
.legal-section .effective-date {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}
