

























*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

:root, body[data-theme="default"] {
    /* Default (Light) Theme */
    --brand-primary: #0A2647;
    --brand-accent: #e63946;
    --text-primary: #222;
    --text-secondary: #555;
    --text-muted: #777;
    --text-inverted: #ffffff;
    --text-link: #0A2647;
    --bg-primary: #f4f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f9f9fa;
    --bg-accent: #0A2647;
    --border-primary: #ddd;
    --border-secondary: #e0e0e0;
    --border-tertiary: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --success-color: #28a745;
    --error-color: #e63946;
    --disabled-color: #ccc;
    --brand-golden: #FFC107;
}

body[data-theme="dark"] {
    --brand-primary: #58a6ff;
    --brand-accent: #f85149;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --text-inverted: #121212;
    --text-link: #58a6ff;
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --bg-accent: #58a6ff;
    --border-primary: #444;
    --border-secondary: #333;
    --border-tertiary: #2c2c2c;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --success-color: #4caf50;
    --error-color: #f85149;
    --disabled-color: #555;
    --brand-golden: #FFD700;
}

body[data-theme="corporate"] {
    --brand-primary: #004085;
    --brand-accent: #007bff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    --text-inverted: #ffffff;
    --text-link: #004085;
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-accent: #004085;
    --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;
    --brand-golden: #B8860B;
}

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

.btn{
    display: inline-block;
    width: fit-content;
    padding: 12px 28px;
    background: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--shadow-color);
    color: var(--text-inverted);
    letter-spacing: .4px;
    font-weight: 600;
    transition: .4s ease;
    opacity: 0;
    animation: H1Ani 1s ease forwards; 
    animation-delay: 1.3s;
}
.btn:hover{
    background: transparent;
    color: var(--brand-primary);
}
.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;
}

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

.hamburger-btn {
    display: none;
    font-size: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1002;
}


.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(--text-inverted);
    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 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

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

.header-left{
    max-width: 750px;
    position: relative;
}
.header-left h1{
    font-size: 58px;
    line-height: 1.2;
    color: var(--text-primary);
    animation: H1Ani forwards 1s ease;  
    opacity: 0;    
    animation-delay: 1s;  
}
.header-left h3{
    font-size: 42px;
    font-weight: 400;
    color: var(--brand-primary);
    margin-top: .5rem;
    animation: H1Ani forwards 1s ease;  
    opacity: 0;    
    animation-delay: .8s;  
}
.header-left p{
    margin: 20px auto 35px;
    line-height: 1.6;
    font-size: 18px;
    max-width: 600px;
    color: var(--text-secondary);
    animation: H1Ani forwards 1s ease;  
    opacity: 0;    
    animation-delay: .6s; 
}

.header-left .btn {
    margin: 0 auto;
}
/* .......................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-primary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--brand-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

a.service-box {
    text-decoration: none;
    color: var(--brand-primary);
}


.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.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;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.how-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px 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 video, .reel-card 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);
}
.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;
}
/* .......................End Reels Section...................... */

/* .......................Start Banner Section...................... */
#banner-section {
    padding: 60px 0;
    background-color: var(--bg-tertiary);
}
.banner-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px; /* For scrollbar space if visible */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
.banner-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}
.banner-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-secondary);
}
.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}
.banner-item img {
    width: 100%;
    height: 100%;
    display: block;
}
.banner-progress-bar-container {
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    height: 4px;
    background-color: var(--border-secondary);
    border-radius: 2px;
    overflow: hidden;
}
.banner-progress-bar {
    width: 0%; /* Initially 0 */
    height: 100%;
    background-color: var(--brand-primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}
/* .......................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 {
    max-width: 500px;
}


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

.modal-nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px;
}

.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-tertiary);
    position: relative;
    overflow: hidden;
    padding: 10px;
}
.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: '\f127'; /* fa-camera-retro */
    font-size: 24px;
    color: var(--text-muted);
}
.main-image-container.error img {
    opacity: 0.3;
}
.main-image-container.no-image img,
.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-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); /* Use primary background for the modal */
    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; /* Ensure flex direction works as expected */
    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; /* Remove padding as sections will handle their own */
    overflow-y: auto;
}

/* Dashboard View */
#profile-dashboard-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

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

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

.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;
}
#profile-orders-count, #profile-wishlist-count {
    display: inline-block; /* To be visible */
}

.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; /* Light red background on hover */
}

/* Edit View */
#profile-edit-view {
    padding: 20px;
    background-color: var(--bg-secondary); /* Ensure edit view also has a clean background */
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
.form-group-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
    font-size: 16px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}
.form-group input[readonly] {
    background-color: var(--bg-tertiary);
    cursor: not-allowed;
}

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

/* New Service Page Layout (Hoora inspired) */
.service-packages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.service-list-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
}
.service-list-card .info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-list-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.service-list-card h3 a {
    text-decoration: none;
    color: inherit;
}
.service-list-card h3 a:hover {
    color: var(--brand-accent);
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}
.star-rating .fa-star, .star-rating .fa-star-half-alt {
    color: #ffc107;
}
.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-accent);
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    padding: 5px 0;
    margin-top: 10px;
}
.price-line-container {
    margin-top: auto; /* Push to bottom */
    padding-top: 15px;
}
.price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.offer-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}
.mrp-price {
    color: var(--text-muted);
    font-size: 16px;
}
.discount {
    color: var(--success-color);
    font-weight: bold;
    font-size: 16px;
}
.promo-text {
    font-size: 14px;
    color: var(--brand-accent);
    font-weight: bold;
    margin-top: 8px;
}
.service-list-card .media {
    flex-basis: 150px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 150px; /* Fixed height for consistency */
    align-self: center;
}
.media-img, .media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media .add-btn {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 8px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    color: var(--brand-accent);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.media .add-btn:hover {
    background-color: var(--brand-accent);
    color: var(--text-inverted);
}


/* Tyre Replacement Page */
.service-packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.tyre-card {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
}
.tyre-card-gallery {
    flex: 1 1 300px;
}
.tyre-card-gallery .main-image-container {
    position: relative;
}
.main-gallery-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border: 1px solid var(--border-tertiary);
    border-radius: 8px;
    padding: 10px;
}
.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.thumbnail-wrapper {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    padding: 2px;
}
.thumbnail-wrapper.active {
    border-color: var(--brand-primary);
}
.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.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: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: background-color 0.2s, opacity 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 {
    flex: 2 1 400px;
    min-width: 0;
}

.tyre-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.tyre-brand-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    padding: 5px;
    border: 1px solid var(--border-tertiary);
    border-radius: 8px;
}

.tyre-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tyre-card-details h3 {
    font-size: 24px;
    margin-bottom: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}
.tyre-card-details h3 a {
    text-decoration: none;
    color: inherit;
}
.tyre-card-details h3 a:hover {
    color: var(--brand-accent);
}

.tyre-card-details .star-rating {
    margin-bottom: 20px;
}
.tyre-card-details .price-line {
    margin-bottom: 25px;
}
.tyre-card-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 20px;
}
.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;
}
.tyre-card-details .add-to-cart-btn {
    width: 100%;
}
.add-to-cart-btn.added-to-cart {
    background-color: var(--success-color);
}
.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-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    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 label {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
}
.filter-group select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-tertiary);
    min-width: 150px;
}
#tyre-filter-reset-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-secondary);
    cursor: pointer;
    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: 10px;
    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);
}
#change-vehicle-btn {
    font-size: 14px;
}

/* Battery Replacement Page - Product Card */
.battery-product-card {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow-color);
    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 h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}
.battery-header h3 a {
    text-decoration: none;
    color: inherit;
}
.battery-header h3 a:hover {
    color: var(--brand-accent);
}

.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);
}
.reviews-summary .star-rating {
    margin-bottom: 0;
}
.assured-badge {
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #91d5ff;
}
.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;
}
.price-section {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 20px;
}
.price-section .current-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--brand-accent);
}
.price-section .original-price {
    font-size: 18px;
    color: var(--text-muted);
}
.price-section .discount-badge {
    background-color: var(--error-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.product-actions .add-to-cart-btn,
.product-actions .buy-now-btn {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.product-actions .add-to-cart-btn {
    background-color: transparent;
    color: var(--brand-accent);
    border: 2px solid var(--brand-accent);
}
.product-actions .add-to-cart-btn:hover {
    background-color: var(--brand-accent);
    color: var(--text-inverted);
}
.product-actions .buy-now-btn {
    background-color: var(--brand-accent);
    color: var(--text-inverted);
    border: 2px solid var(--brand-accent);
}
.product-actions .buy-now-btn:hover {
    opacity: 0.9;
}
.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 .product-actions {
    margin-top: 15px;
}

/* My Cart / Order Page Redesign */
.empty-cart-view {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}
.empty-cart-view i {
    font-size: 50px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.empty-cart-view h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.empty-cart-view p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}
.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 {
    display: flex;
    gap: 20px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
}
.cart-item-thumbnail {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.cart-item-thumbnail img, .cart-item-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.cart-item-details h4 {
    font-size: 16px;
    margin-bottom: 8px;
}
.cart-item-details .price {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}
.cart-item-booking-info {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    overflow: hidden;
}
.quantity-btn {
    background-color: var(--bg-tertiary);
    border: none;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}
.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    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: 14px;
    cursor: pointer;
    font-weight: 500;
}
.order-summary {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-color);
    position: sticky;
    top: 100px;
}
.order-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-tertiary);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}
.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-tertiary);
}
.checkout-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;
    margin-top: 10px;
}
.checkout-btn:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
}

/* Checkout Flow Redesign */
.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
}
.checkout-progress-bar-container {
    margin-bottom: 40px;
}
.checkout-progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.checkout-progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--border-secondary);
    z-index: 1;
}
.progress-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    position: relative;
}
.progress-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-secondary);
    color: var(--text-inverted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 3px solid var(--bg-primary);
}
.progress-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.progress-node.active .progress-icon { background-color: var(--brand-accent); }
.progress-node.active .progress-label { color: var(--text-primary); }
.progress-node.completed .progress-icon { background-color: var(--brand-primary); }
.progress-node.completed .progress-label { color: var(--text-primary); }
.progress-node.completed .progress-icon::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.details-card, .order-summary-card, .summary-card {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
}
.details-card h4 {
    margin-bottom: 15px;
}
.user-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.user-info-item i { color: var(--text-muted); }
.payment-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}
.payment-options {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
}
.payment-options h4 { margin-bottom: 20px; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}
.payment-option input[type="radio"] {
    flex-shrink: 0;
}
.payment-option i {
    font-size: 24px;
    color: var(--brand-primary);
}
.payment-option:has(input:checked) {
    border-color: var(--brand-primary);
    background-color: var(--bg-tertiary);
}
.order-confirmation-view {
    background-color: var(--bg-secondary);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.order-confirmation-view .success-icon {
    font-size: 50px;
    color: var(--success-color);
    margin-bottom: 20px;
}
.order-confirmation-view h2 {
    font-size: 28px;
    margin-bottom: 10px;
}
.order-confirmation-view p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}
.confirmation-summary {
    border: 1px solid var(--border-tertiary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}
.review-submission-section { margin-bottom: 30px; }
.review-submission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-tertiary);
}
.review-submission-item:last-child { border-bottom: none; }

/* My Orders List Redesign */
.orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.order-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
}
.order-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 20px;
    background-color: var(--bg-tertiary);
    align-items: center;
}
.order-card-header-info {
    font-size: 13px;
    color: var(--text-secondary);
}
.order-card-header-info span {
    display: block;
    font-weight: bold;
    color: var(--text-primary);
}
.order-status {
    margin-left: auto;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}
.order-status.placed { background-color: #e6f7ff; color: #1890ff; }
.order-status.completed { background-color: #f6ffed; color: #52c41a; }
.order-status.cancelled { background-color: #fff1f0; color: #f5222d; }
.order-card-body { padding: 20px; }
.order-card-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-item-row {
    display: flex;
    gap: 15px;
}
.order-item-row img, .order-item-row video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.order-item-info-actions {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-item-product-link {
    background: none;
    border: none;
    text-align: left;
    padding: 0;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}
.order-item-product-link:hover { color: var(--brand-accent); }
.order-card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-tertiary);
    text-align: right;
}
.view-order-details-btn {
    padding: 8px 16px;
    font-size: 14px;
}
/* .......................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-golden);
}

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

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

.footer-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    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(--text-inverted);
    background-color: var(--brand-golden);
    border-color: var(--brand-golden);
    transform: translateY(-3px);
}

.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;
    right: 100%; /* Position it to the left of the icon */
    top: 50%;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 25px;
    padding: 5px 10px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform-origin: right;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(-50%) scaleX(0);
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 102;
}

.search-bar:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scaleX(1);
}

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

/* .......................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-info h1 {
    font-size: 32px;
    margin-bottom: 15px;
}
.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;
}
.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...................... */

/* 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;
}
@keyframes pulse-marker {
    0% { box-shadow: 0 0 0 0 rgba(10, 38, 71, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(10, 38, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 38, 71, 0); }
}

/* Booking Modal */
#booking-time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.time-slot-btn {
    padding: 12px;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.time-slot-btn:hover {
    border-color: var(--brand-primary);
}

.time-slot-btn.active {
    background-color: var(--brand-primary);
    color: var(--text-inverted);
    border-color: var(--brand-primary);
    font-weight: bold;
}


@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        z-index: 1001;
        box-shadow: -4px 0 15px var(--shadow-color);
        display: flex;
    }
    .nav-menu.is-open {
        right: 0;
    }
    .nav-link {
        flex-direction: column;
    }
    .social-link {
        position: absolute;
        bottom: 30px;
    }
    .search-container {
        order: -1; 
    }
    .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: 768px) {
    header { padding-top: 120px; }
    .header-left h1 { font-size: 40px; }
    .header-left h3 { font-size: 28px; }
    .header-left p { font-size: 16px; }
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .tyre-card {
        flex-direction: column;
    }
    .battery-product-card {
        flex-direction: column;
    }
    .cart-item {
        flex-direction: column;
    }
    .cart-item-actions {
        flex-direction: row;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-left h1 { font-size: 32px; }
    .header-left h3 { font-size: 26px; }
    .header-left p { font-size: 15px; }
    .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;
    }
    .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;
    }
}

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