*{
    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;
}

:root, body[data-theme="default"] {
    /* Default (Light) Theme */
    --brand-primary: #010350; /* Deep Navy Blue */
    --brand-accent: #F8BF2A; /* Gold/Yellow */
    --brand-accent-text: #212121; /* Dark text for Gold accent */
    --text-primary: #212121; /* Dark grey instead of pure black */
    --text-secondary: #737373; /* User's Grey */
    --text-muted: #9e9e9e; /* Lighter Grey */
    --text-inverted: #ffffff;
    --text-link: #010350; /* Deep Navy Blue for links */
    --bg-primary: #f7f9fc; /* Very light, slightly cool grey */
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5; /* A bit darker for tertiary elements */
    --bg-accent: #010350;
    --border-primary: #dee2e6;
    --border-secondary: #e9ecef;
    --border-tertiary: #f1f3f5;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --success-color: #2e7d32; /* A deeper, less saturated green */
    --error-color: #d32f2f; /* A deeper, less saturated red */
    --disabled-color: #bdbdbd;
    --star-color: #F8BF2A; /* Gold/Yellow for stars */
}

body[data-theme="dark"] {
    --brand-primary: #6c8ed4; /* Lighter navy blue for dark mode */
    --brand-accent: #F8BF2A; /* Gold/Yellow */
    --brand-accent-text: #121212; /* Dark text for contrast */
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --text-inverted: #121212;
    --text-link: #6c8ed4; /* Same as brand-primary */
    --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, 0.5);
    --success-color: #66bb6a;
    --error-color: #ef5350;
    --disabled-color: #555;
    --star-color: #F8BF2A; /* Gold/Yellow for stars */
}

body[data-theme="corporate"] {
    --brand-primary: #010350; /* Deep Navy Blue */
    --brand-accent: #F8BF2A; /* Gold/Yellow */
    --brand-accent-text: #212529; /* Dark text for Gold */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    --text-inverted: #ffffff;
    --text-link: #010350; /* Deep Navy Blue */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-accent: #010350;
    --border-primary: #ced4da;
    --border-secondary: #dee2e6;
    --border-tertiary: #f1f3f5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #198754;
    --error-color: #dc3545;
    --disabled-color: #adb5bd;
    --star-color: #F8BF2A; /* Gold/Yellow */
}

/* Accessibility */
.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;
}

/* Better focus visibility for keyboard users */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--bg-secondary);
    border-radius: 2px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.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 0.3s ease;
    opacity: 0;
    animation: H1Ani 1s ease forwards; 
    animation-delay: 1.3s;
    text-transform: uppercase;
}
.btn:hover{
    background: transparent;
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-color);
}
.container{
    max-width: 1620px;
    width: 90%;
    margin: 0 auto;
}

/* .......................Start Nav Bar...................... */
nav {
    background: var(--bg-secondary);
    padding: 15px 5%;
    box-shadow: 0 2px 8px var(--shadow-color);
    width: 100%; 
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.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: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.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 forwards 1s ease;
    animation-delay: calc(.2s * var(--i));
    opacity: 0;
}

.social-link li {
    animation: socialAni forwards 1s ease;
    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 (Car Selector & Profile) */
.extras {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: socialAni forwards 1s ease; /* Reuse animation */
    animation-delay: 0.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; /* Ensure space for logged-in view */
    justify-content: flex-start;
}

.profile-section i {
    font-size: 22px;
}

.profile-button {
    background: none;
    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: bold;
    border: 2px solid var(--bg-secondary);
}

.cart-icon-container.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

/* .......................End Nav Bar...................... */


/* .......................Start Header Section...................... */
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;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://pub-d1d6c35dc7024f819f155246a42ea32b.r2.dev/Banners/Banners_heropageabigengine%20Optimized.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.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,0.5);
    animation: H1Ani forwards 1s ease;  
    opacity: 0;    
    animation-delay: 1s;  
}
.header-left h3{
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 500;
    color: var(--text-inverted);
    opacity: 0.95;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
    margin-top: 1rem;
    animation: H1Ani forwards 1s ease;  
    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: 0.9;
    animation: H1Ani forwards 1s ease;  
    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);
}
/* .......................End Header Section...................... */

/* .......................Start Services and How-it-works sections...................... */
.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;
}

.service-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-bottom: 4px solid var(--border-primary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-bottom-width 0.15s 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(-3px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.service-box:active {
    transform: translateY(1px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 6px var(--shadow-color);
}

a.service-box.disabled {
    cursor: not-allowed;
}

a.service-box.disabled:hover {
    transform: none;
    box-shadow: none;
}

.service-box i {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--brand-primary);
}

.service-box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.service-box:hover img {
    transform: scale(1.1);
}

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

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

.how-box {
    flex: 1 1 220px;
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
    border-bottom: 4px solid var(--border-primary);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-bottom-width 0.15s ease-out;
    text-align: center;
}

.how-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.how-box:active {
    transform: translateY(1px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 6px var(--shadow-color);
}

.how-box i {
    font-size: 36px;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.how-box h3 {
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.how-box p {
    font-size: 15px;
    color: var(--text-secondary);
}


/* .......................Start 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; /* Add padding to sides and bottom for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border-primary) var(--bg-tertiary);
    /* This makes the scroll container start from edge and end at edge */
    margin: 0 -5%;
    padding-left: 5%;
    padding-right: 5%;
    -ms-overflow-style: none; /* IE and Edge */
}
.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 { /* Pseudo-element for spacing at the end */
    content: '';
    flex: 0 0 2vw;
}

.reel-card {
    flex: 0 0 220px; /* Fixed width for reels */
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease;
    position: relative;
}
.reel-card:hover {
    transform: scale(1.03) translateY(-5px);
}
.reel-card .main-image-container {
    width: 100%;
    height: 100%;
}
.reel-card .main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reel-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), 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;
}

.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;
}

/* New Video Player Styles */
.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;
}

.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(0, 0, 0, 0.6);
    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.2s ease, background-color 0.2s ease;
    padding-left: 5px; /* Optical centering for play icon */
}

.play-button-center:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.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;
}

.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;
}
/* .......................End Reels Section...................... */

/* .......................Start 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);
}


/* New banner section for individual pages */
.page-banner-section {
    margin-bottom: 40px;
}
.page-banner-section .banner-container {
    aspect-ratio: 21 / 9;
    max-height: 300px; /* Cap height on very wide screens */
}

/* .......................End Banner Section...................... */


/* ....................... Car Selector Modal ...................... */
.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 modal to the right */
    align-items: flex-start; /* Default align */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#image-editor-modal, #loading-overlay, #booking-modal, #review-modal, #code-generator-modal, #order-details-summary-modal, #auth-modal, #profile-page-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.3s ease-out;
}

#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.95);
}

#review-modal .modal-content,
#order-details-summary-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.95);
    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);
}

.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); /* Override the translateX */
}


.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;
}
#profile-page-modal .modal-header h3 {
    text-transform: none;
    font-size: 20px;
}

.modal-nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px;
    min-width: 30px; /* Ensure buttons have a minimum width */
}
/* Make the close button align to the right, even when back button is hidden */
#profile-modal-close-btn {
    margin-left: auto;
}
#profile-modal-back-btn:not(.hidden) + #profile-modal-title {
    padding-right: 30px; /* Balance the header when back is visible */
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.modal-step-content {
    flex-grow: 1;
    animation: contentFadeIn 0.5s ease;
}

.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-style: italic;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.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;
}
.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;
}
.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);
}
#modal-search-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--shadow-color);
}

/* Smart Grid System for Car Selection */
.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.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.grid-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px 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.2s ease;
}
.grid-item img.car { /* Car images don't need the extra zoom */
     border-radius: 4px;
}
.grid-item:hover img {
    transform: scale(1.08);
}
.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; /* Reserve space for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: inherit;
    position: relative;
    overflow: hidden;
}

.main-image-container.loading::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.main-image-container.error::after,
.main-image-container.no-image::after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f1b9'; /* fa-car */
    font-size: 32px;
    color: var(--text-muted);
}
.main-image-container.error img {
    opacity: 0.3;
}
.main-image-container.no-image picture,
.main-image-container.no-image img,
.main-image-container.error picture,
.main-image-container.error img {
    visibility: hidden;
}


@keyframes spin {
    to { transform: rotate(360deg); }
}

.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 ease;
    font-weight: 500;
}
.list-item:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--brand-primary);
}
.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;
}
.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 Redesign */
#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%;
}
#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;
}
.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;
}
.phone-input-container:focus-within {
    border-color: var(--brand-primary);
}
.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: opacity 0.2s;
}
.auth-btn:hover {
    opacity: 0.9;
}
.auth-btn:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
}
.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 Step */
#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);
}
.otp-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--shadow-color);
}
.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;
}

/* Success Step */
.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;
}
.success-icon-wrapper i {
    font-size: 36px;
    color: var(--brand-primary);
}

.hidden {
    display: none !important;
}

/* Profile Modal & Form Styles */
#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;
}

/* 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);
}

.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 Page */
.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;
}

/* ===========================
   Unified Card Styles
   =========================== */
.service-list-card,
.battery-product-card,
.tyre-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-tertiary);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
}

.service-list-card:hover,
.battery-product-card:hover,
.tyre-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--brand-primary);
}

.service-list-card h3,
.battery-product-card h3,
.tyre-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.service-list-card h3 a,
.battery-product-card h3 a,
.tyre-card h3 a {
    text-decoration: none;
    color: inherit;
}

.service-list-card h3 a:hover,
.battery-product-card h3 a:hover,
.tyre-card h3 a:hover {
    color: var(--brand-primary);
}

.card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-tertiary);
}

.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;
}

/* ===========================
   Polished Action Buttons
   =========================== */
.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.25s ease-out;
    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(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}
.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(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    filter: brightness(1.05);
}
.product-actions .add-to-cart-btn.added-to-cart {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--text-inverted);
}

/* ===========================
   Service List Card (Car Wash, etc.)
   =========================== */
.service-packages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.service-list-card {
    gap: 24px;
    padding: 24px;
}
.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;
}
.media-img, .service-list-card .media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.service-list-card:hover .media .media-img,
.service-list-card:hover .media video {
    transform: scale(1.05);
}
.service-list-card .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flexbox overflow */
}
.star-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin-bottom: 15px; /* Unified margin */
    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;
}
.features-preview {
    margin: 0;
    padding-left: 20px;
    flex-grow: 1;
}
.features-preview li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}
.details-link {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    padding: 5px 0;
    margin-top: 10px;
}
.promo-text {
    font-size: 14px;
    color: var(--brand-primary);
    font-weight: bold;
}

/* Meta info for service cards (e.g., estimated time) */
.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);
}

/* Mini gallery for service 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.4s ease-in-out;
}

.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);
    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;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-gallery-container:hover .card-carousel-btn {
    opacity: 1;
}

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

.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;
}

.card-carousel-dots .dot.active {
    background-color: white;
}


/* ===========================
   Service Grid Card (Car Wash, Car Care)
   =========================== */
.service-grid-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-tertiary);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--brand-primary);
}

.service-grid-card h3 {
    font-size: 18px; /* Slightly smaller for a more compact card */
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.service-grid-card h3 a {
    text-decoration: none;
    color: inherit;
}

.service-grid-card h3 a:hover {
    color: var(--brand-primary);
}

.service-grid-card .media {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background-color: var(--bg-tertiary);
}

.service-grid-card .media .media-img, .service-grid-card .media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-grid-card:hover .media .media-img,
.service-grid-card:hover .media video {
    transform: scale(1.05);
}

.service-grid-card .info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Make info section fill available space */
    padding: 20px;
}

.service-grid-card .card-content {
    flex-grow: 1; /* Pushes footer down */
}

.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 Replacement Page
   =========================== */
.service-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.tyre-card {
    flex-direction: column; /* Overrides unified style */
}
.tyre-card-gallery {
    flex-shrink: 0;
    padding: 20px 20px 0;
}
.tyre-card-gallery .main-image-container {
    position: relative;
    width: 100%;
}
.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;
}
.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;
    z-index: 10;
}
.carousel-btn:hover { background-color: rgba(0, 0, 0, 0.7); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.tyre-card-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px; /* Unified padding */
    min-width: 0;
}
.tyre-card-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 15px;
}

.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);
}

.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; /* Overlap border */
}
.tab-button.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    font-weight: 600;
}
.tab-pane {
    animation: contentFadeIn 0.3s;
}
.features {
    padding-left: 20px;
}
.features li {
    margin-bottom: 8px;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    border-bottom: 1px solid var(--border-tertiary);
}
.spec-row:nth-child(odd) {
    background-color: var(--bg-tertiary);
}
.spec-key {
    font-weight: bold;
}
.reviews-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}
.review-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-tertiary);
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.review-comment {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Tyre Service Benefits Highlight */
.tyre-service-benefits {
    margin: 0 0 20px;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 5px solid var(--brand-accent);
}

.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;
}


.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;
}


/* Prompt for selecting a car */
.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; /* Override animation delay */
    animation: none;
}

/* Bar for showing current vehicle */
.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;
}

/* ===========================
   Battery Replacement Card
   =========================== */
.battery-product-card {
    flex-wrap: wrap;
    gap: 30px;
    padding: 24px; /* Unified padding */
    max-width: 900px;
    margin: 0 auto 30px;
}
.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;
}
.main-image-wrapper .main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.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;
}
.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;
}
.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;
}

/* My Cart / Order Page Redesign */
.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;
}

.order-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cart-item {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
}
.cart-item-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}
.cart-item-thumbnail img,
.cart-item-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-details {
    flex-grow: 1;
}
.cart-item-details h4 {
    font-size: 16px;
    margin: 0 0 5px;
}
.cart-item-details .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--brand-primary);
}
.cart-item-booking-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    overflow: hidden;
}
.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: var(--bg-tertiary);
    border: none;
    font-weight: bold;
    cursor: pointer;
}
.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-primary);
    border-right: 1px solid var(--border-primary);
    padding: 5px 0;
    font-size: 16px;
    -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: 13px;
    cursor: pointer;
}
.order-summary {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}
.order-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-tertiary);
}
.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    border-bottom: none;
    padding-top: 15px;
}
.checkout-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background-color: var(--brand-accent);
    color: var(--brand-accent-text);
    cursor: pointer;
}
.checkout-btn:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
}

/* My Orders List Page */
.orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}
.order-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-secondary);
    flex-wrap: wrap;
    gap: 15px;
}
.order-header-left, .order-header-right {
    display: flex;
    gap: 25px;
    align-items: center;
}
.order-card-header-info {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.order-card-header-info span {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}
.order-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    text-transform: capitalize;
}
.order-status.placed { background-color: #e3f2fd; color: #1976d2; }
.order-status.confirmed { background-color: #e3f2fd; color: #1976d2; }
.order-status.assigned { background-color: #ede7f6; color: #5e35b1; }
.order-status.inprogress { background-color: #fff3e0; color: #fb8c00; }
.order-status.delivered { background-color: #e8f5e9; color: #388e3c; }
.order-status.cancelled { background-color: #ffebee; color: #c62828; }

.order-card-body {
    padding: 20px;
}
.order-card-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-item-row {
    display: flex;
    gap: 15px;
    align-items: center;
}
.order-item-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.order-item-thumbnail img, .order-item-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-item-info-actions {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.order-item-info h5 {
    font-size: 16px;
    margin: 0 0 4px;
}
.order-item-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}
.order-item-product-link {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    text-align: left;
    padding: 0;
    margin-bottom: 4px;
    cursor: pointer;
}
.order-item-product-link:hover {
    color: var(--brand-primary);
}
.review-order-item-btn {
    padding: 8px 16px;
    font-size: 14px;
    background-color: var(--bg-secondary);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    opacity: 1; /* override .btn opacity */
    animation: none;
}
.review-order-item-btn:disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    border-color: var(--border-secondary);
    cursor: not-allowed;
}
.order-card-footer {
    padding: 10px 20px;
    text-align: right;
    border-top: 1px solid var(--border-tertiary);
}

/* My Orders Timeline */
.order-tracking-section {
    padding: 20px;
    border-top: 1px solid var(--border-tertiary);
}
.order-tracking-section h5 {
    font-size: 16px;
    margin-bottom: 25px;
}
.order-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
}
.timeline-connector {
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: var(--border-tertiary);
    border-radius: 2px;
}
.timeline-connector-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--success-color);
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}
.timeline-step {
    position: relative;
    text-align: center;
    width: 80px;
}
.timeline-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-tertiary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 3px solid var(--bg-secondary);
    transition: all 0.3s ease;
}
.timeline-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.timeline-step.completed .timeline-icon {
    background-color: var(--success-color);
    color: white;
}
.timeline-step.active .timeline-icon {
    background-color: var(--brand-primary);
    color: white;
    transform: scale(1.2);
}
.timeline-step.active .timeline-label {
    color: var(--brand-primary);
    font-weight: bold;
}
.timeline-step.completed .timeline-label {
    color: var(--text-primary);
}


/* ... other styles remain the same ... */

/* .......................Start Footer Section...................... */
.footer {
    background-color: var(--brand-primary);
    color: var(--text-inverted);
    padding: 70px 5% 20px;
}

.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 Styles .................. */
.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;
}
.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;
}

/* .......................Start Service Detail Page...................... */
#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; /* Align better with h1 */
}

.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; /* Adjust for nav height */
}

.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;
}
/* .......................End Service Detail Page...................... */

/* .......................Start Step-by-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; /* Space for marker and line */
    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;
}
/* .......................End Step-by-Step Process...................... */

/* ===========================
   Addons on Service Detail Page
   =========================== */
.addons-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-tertiary);
}

.addons-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    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;
}


/* Order Tracking Timeline */
.order-tracking-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}
.order-tracking-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 19px; /* Centered on the 40px marker */
    width: 2px;
    background-color: var(--border-tertiary);
    z-index: 1;
}
.tracking-step {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.tracking-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-tertiary);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.tracking-details {
    flex-grow: 1;
}
.tracking-status {
    font-weight: bold;
    color: var(--text-secondary);
    margin: 0 0 4px;
}
.tracking-timestamp {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Status States */
.tracking-step.active .tracking-marker,
.tracking-step.completed .tracking-marker {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: var(--text-inverted);
}
.tracking-step.active .tracking-status {
    color: var(--brand-primary);
}
.tracking-step.completed .tracking-status {
    color: var(--text-primary);
}
.tracking-step.completed .tracking-timestamp {
    color: var(--text-secondary);
}
/* For the active step, make the marker pulse */
.tracking-step.active .tracking-marker {
    animation: pulse-marker 2s infinite;
}

/* 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 -2px 10px var(--shadow-color);
}
.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-container {
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 15px;
    background-color: var(--bg-tertiary);
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}
.calendar-header h5 {
    font-size: 16px;
    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);
    padding: 5px 10px;
    border-radius: 50%;
    transition: background-color 0.2s;
}
.calendar-nav-btn:hover {
    background-color: var(--border-secondary);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}
.calendar-day {
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
}
.calendar-day.day-name {
    font-weight: bold;
    color: var(--text-muted);
    font-size: 12px;
    cursor: default;
    aspect-ratio: auto;
}
.calendar-day:not(.day-name):not(.disabled):hover {
    background-color: var(--bg-secondary);
}
.calendar-day.today {
    font-weight: bold;
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}
.calendar-day.disabled {
    color: var(--disabled-color);
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
}
.calendar-day.selected {
    background-color: var(--brand-primary);
    color: var(--text-inverted);
    font-weight: bold;
    border-color: var(--brand-primary);
}
.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);
}
.time-slot-btn.active {
    background-color: var(--brand-primary);
    color: var(--text-inverted);
    border-color: var(--brand-primary);
    font-weight: bold;
}
.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 ease;
    border-radius: 4px; /* for focus outline */
}
.interactive-star-rating button i {
    pointer-events: none;
}
.interactive-star-rating button:hover {
    transform: scale(1.1);
}
.interactive-star-rating button:hover i,
.interactive-star-rating button i.fas {
    color: var(--star-color);
}


/* 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);
}

/* Button Loading Spinner */
.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;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-inverted);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Spinner for buttons with dark text on light background */
.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);
}


/* Mobile Bottom Navigation */
#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; /* Hidden by default */
    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 {
    /* Use existing styles but override position */
    position: absolute;
    top: -2px;
    right: 15px; 
    width: 18px;
    height: 18px;
    font-size: 11px;
}

/* Dynamic Pricing & Addons */
.addons-section {
    margin-top: 20px;
}
.addons-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.addon-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.addon-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--brand-primary);
}
.addon-option label {
    display: flex;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    gap: 10px;
}
.addon-option label .addon-name {
    color: var(--text-secondary);
}
.addon-option label .addon-price {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.booking-summary, .service-detail-total {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid var(--border-secondary);
    background-color: var(--bg-tertiary);
    border-radius: 8px;
}
.booking-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}
.booking-summary-row span:first-child {
    color: var(--text-secondary);
}
.booking-summary-row span:last-child {
    font-weight: 500;
}
.booking-summary-row.total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}
.booking-summary-row.total span:first-child {
    color: var(--text-primary);
}

.car-price-info {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 5px;
}
.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;
}


/* Order Details 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);
}
.info-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}
.info-line span:first-child {
    color: var(--text-secondary);
}
.info-line.total {
    font-size: 16px;
    margin-top: 10px;
}

.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;
}
.item-meta {
    font-size: 13px;
    color: var(--text-muted);
}
.item-meta .cart-item-addons {
    padding-left: 0;
    margin-top: 5px;
}
.item-meta .cart-item-addons li::before {
    display: none;
}
.item-meta .cart-item-addons li {
    padding-left: 0;
    position: relative;
    display: inline-block;
    margin-right: 8px;
    padding: 2px 6px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

/* ===========================
   About Us Page
   =========================== */
.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);
}

/* ===========================
   NEW CHECKOUT FLOW STYLES
   =========================== */

.checkout-container > h1 {
    display: none;
}
.checkout-container {
    padding-top: 100px;
}
.checkout-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}
.checkout-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 3px;
    background-color: var(--border-primary);
    z-index: -1;
}
.progress-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 500;
    width: 80px;
    text-align: center;
}
.progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 3px solid var(--border-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.progress-node.active .progress-icon {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: var(--text-inverted);
}
.progress-node.active .progress-label {
    color: var(--brand-primary);
    font-weight: 600;
}
.progress-node.completed .progress-icon {
    border-color: var(--success-color);
    background-color: var(--success-color);
    color: var(--text-inverted);
}
.progress-node.completed .progress-icon::before {
    content: '\f00c'; /* check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
.progress-node.completed .progress-label {
    color: var(--text-primary);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: flex-start;
}
.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.details-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 25px;
}
.details-card h4 {
    font-size: 18px;
    margin: 0 0 20px;
    color: var(--text-primary);
}
.user-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 15px;
}
.user-info-item i {
    color: var(--text-secondary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}
#edit-address-btn {
    margin-top: 10px;
}
.checkout-summary {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
    padding: 25px;
    position: sticky;
    top: 100px;
}
.checkout-summary h4 {
    font-size: 18px;
    margin: 0 0 20px;
}
.summary-item-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.summary-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.summary-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.summary-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--brand-primary);
    color: var(--text-inverted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-secondary);
}
.summary-item-info {
    flex-grow: 1;
}
.summary-item-name {
    font-weight: 500;
}
.summary-item-price {
    font-weight: 600;
}
.summary-totals {
    border-top: 1px solid var(--border-secondary);
    padding-top: 20px;
}

.payment-options {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: 25px;
}
.payment-options h4 {
    font-size: 18px;
    margin: 0 0 20px;
}
.payment-option {
    margin-bottom: 15px;
}
.payment-option input[type="radio"] {
    display: none;
}
.payment-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.payment-option label i {
    font-size: 24px;
    color: var(--text-secondary);
}
.payment-option input:checked + label {
    border-color: var(--brand-primary);
    background-color: #eef2ff;
}
body[data-theme="dark"] .payment-option input:checked + label {
    background-color: #2a3a5e;
}
.payment-option input:checked + label i {
    color: var(--brand-primary);
}
.payment-option.disabled label {
    cursor: not-allowed;
    background-color: var(--bg-tertiary);
    opacity: 0.6;
}

.order-confirmation-view {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow-color);
}
.order-confirmation-view .success-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 20px;
}
.order-confirmation-view h2 {
    font-size: 28px;
    margin-bottom: 15px;
}
.order-confirmation-view p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}
.confirmation-summary {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
    border: 1px solid var(--border-secondary);
}
.confirmation-summary .info-line {
    font-size: 15px;
}
.order-confirmation-view .product-actions button {
    font-size: 14px;
}
/* ===========================
   Legal Policies Page
   =========================== */
.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;
}

/* ===========================
   Floating Action Buttons
   =========================== */
.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; /* Override fixed positioning */
    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 ease, box-shadow 0.2s ease;
    text-decoration: none;
}

#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.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Enquiry Bot Modal
   =========================== */
#enquiry-modal {
    justify-content: center;
    align-items: flex-end;
    padding: 10px;
}

.enquiry-chat-window {
    width: 100%;
    max-width: 400px;
    height: 70vh;
    max-height: 600px;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

#enquiry-modal:not(.hidden) .enquiry-chat-window {
    transform: translateY(0);
}

.enquiry-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--brand-primary);
    color: var(--text-inverted);
}

.enquiry-header h3 {
    font-size: 18px;
    margin: 0;
}

.enquiry-header .modal-nav-btn {
    color: var(--text-inverted);
}

.enquiry-messages-container {
    flex-grow: 1;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.5;
    animation: message-pop-in 0.3s ease-out;
}

.bot-message {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.user-message {
    background-color: var(--brand-accent);
    color: var(--brand-accent-text);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.enquiry-input-container {
    flex-shrink: 0;
    padding: 15px;
    border-top: 1px solid var(--border-tertiary);
    background-color: var(--bg-secondary);
}

.enquiry-input-wrapper {
    display: flex;
    gap: 10px;
}

#enquiry-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    font-size: 16px;
    outline: none;
}

#enquiry-input:focus {
    border-color: var(--brand-primary);
}

#enquiry-send-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--brand-primary);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.quick-reply-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.quick-reply-btn {
    padding: 8px 15px;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background-color: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}

@keyframes message-pop-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Bot Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* -------------------- Media Queries -------------------- */

@media (max-width: 1100px) {
    .nav-actions, .extras {
        gap: 15px;
    }
    .nav-menu {
        gap: 30px;
    }
}


@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .search-container {
        order: -1; 
    }
    .why-choose-us-layout {
        flex-direction: column;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .checkout-summary {
        position: static;
        margin-top: 0;
    }
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    #mobile-bottom-nav {
        display: flex;
    }
}

@media (max-width: 840px) {
    .service-detail-page-layout {
        grid-template-columns: 1fr;
    }
    .service-detail-price-box {
        position: static;
    }
    .order-layout, .payment-layout {
        grid-template-columns: 1fr;
    }
    .order-summary {
        position: static;
    }
}


@media (max-width: 700px) {
    header { 
        padding-top: 120px;
        min-height: 80vh;
    }
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .battery-product-card {
        flex-direction: column;
    }
    .cart-item {
        flex-direction: column;
    }
    .cart-item-actions {
        flex-direction: row;
        width: 100%;
    }
    #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);
    }
    .extras .profile-section { /* Hide desktop profile button */
        display: none;
    }
    .page-banner-section .banner-container {
        aspect-ratio: 16 / 9;
    }
    .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) {
    header {
        padding-top: 100px;
        min-height: 70vh;
    }
    .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;
    }
    .payment-layout {
        grid-template-columns: 1fr;
    }
    .search-bar {
        width: calc(100vw - 120px);
    }
    .search-results-container {
        width: calc(100vw - 40px);
        right: -60px;
    }
    .order-item-info-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Tyre & Battery Card adjustments for better mobile view */
    .tyre-card, .battery-product-card {
        padding: 15px;
        gap: 20px;
    }

    .tyre-card-details, .battery-details {
        flex-basis: auto; /* Allow it to take full width when stacked */
    }
    
    .tyre-card-details h3, .battery-header h3 {
        font-size: 18px; /* Make title smaller */
        line-height: 1.4;
    }

    .tyre-card-details .tab-button {
        padding: 10px 12px; /* Reduce tab padding */
        font-size: 14px;
        flex-grow: 1; /* Allow tabs to fill space */
        text-align: center;
    }
    
    .tyre-card-tabs {
        justify-content: space-around;
    }

    /* Stack buttons on mobile for tyre and battery cards */
    .tyre-card .product-actions,
    .battery-product-card .product-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px; /* Reduce top margin */
    }

    .about-us-content-wrapper {
        padding: 40px 5%;
    }
    .about-section {
        margin-bottom: 60px;
    }

    .pagination-controls {
        gap: 10px;
        flex-wrap: wrap;
    }
    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .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: 400px) {
    .calendar-day {
        font-size: 13px;
    }
}

@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; } }

/* .......................Start Notification System...................... */
#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; /* Allows clicks to pass through container */
}

.notification {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-inverted);
    background-color: var(--text-primary);
    pointer-events: all;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 250px;
    max-width: 350px;
}
.notification.show {
    opacity: 1;
    transform: translateX(0);
}
.notification.success { background-color: var(--success-color); }
.notification.error { background-color: var(--error-color); }
.notification.info { background-color: var(--brand-primary); }
.notification i { font-size: 20px; }

/* .......................Start Loading Overlay...................... */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--text-inverted);
    font-size: 16px;
    font-weight: 500;
}
.loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-inverted);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Initial Loading Screen */
#initial-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#initial-loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
#initial-loading-screen .loading-content { text-align: center; }
#initial-loading-screen .loading-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.4));
}
#initial-loading-screen .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-tertiary);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
#initial-loading-screen .loading-text {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Generic Content Loader for Pages */
.content-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
    text-align: center;
    min-height: 300px;
}
.content-loader .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-tertiary);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.content-loader p {
    font-size: 16px;
    color: var(--text-secondary);
}