@import url("cart.css");

body {
    margin: 0rem;
    padding: 0rem;
    font-family: 'Inter', 'Poppins', sans-serif;
    font-weight: 400;
    font-style: normal;
}

.section-0 {
    height: auto;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0rem 0.1rem 0.5rem rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;

}

.section-0 .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.section-0 .navbar>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-0 .navbar .nav-logo {
    height: 9rem;
    width: auto;
    margin-left: 0.5rem;
    margin-right: 0;
    margin-top: 0rem;
    flex-shrink: 0;
}

/* Navigation Links Container */
.nav-links-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0;
}

.section-0 .navbar .nav-link {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 300;
    margin-right: 3rem;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: 0.2rem;
    background-color: transparent;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition-property: color, background-color, padding, border-radius, transform;
    transform: scale(1);
    white-space: nowrap;
    line-height: 1;
}

.section-0 .navbar .nav-link:hover {
    background-color: #ecfeff;
    transform: scale(1.05);
}

.section-0 .navbar .nav-link--home:hover {
    color: #0f766e;
}

.section-0 .navbar .nav-link--vehicles:hover {
    color: #0f766e;
}

.section-0 .navbar .nav-link--reviews:hover {
    color: #0f766e;
}

.section-0 .navbar .nav-link--contact:hover {
    color: #0f766e;
}

.section-0 .navbar .nav-link--about:hover {
    color: #0f766e;
}

.section-0 .navbar .nav-link--home {
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

.section-0 .navbar .nav-link--vehicles {
    transition-duration: 0.35s;
    transition-timing-function: ease;
}

.section-0 .navbar .nav-link--reviews {
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

.section-0 .navbar .nav-link--contact {
    transition-duration: 0.4s;
    transition-timing-function: ease;
}

.section-0 .navbar .nav-link--about {
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.section-0 .navbar .nav-link.active {
    color: #6366f1;
    font-weight: 600;
}

.section-0 .navbar .nav-link--login:hover {
    color: #0f766e;
}

.section-0 .navbar .nav-link--login {
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

.section-0 .login-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 2rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-0 .logout-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 2rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-0 .user-profile-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-0 .navbar .nav-link--logout:hover {
    color: #ef4444;
}

.section-0 .navbar .nav-link--logout {
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

.section-0 .user-profile-btn .nav-link i {
    font-size: 1.3rem;
    vertical-align: middle;
}

.section-0 .navbar .wishlist-icon-link,
.section-0 .navbar .cart-icon-link,
.section-0 .navbar .loyalty-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-right: 1.2rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
}

.section-0 .navbar .wishlist-icon-link:hover,
.section-0 .navbar .cart-icon-link:hover,
.section-0 .navbar .loyalty-icon-link:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.section-0 .navbar .wishlist-icon,
.section-0 .navbar .cart-icon,
.section-0 .navbar .loyalty-icon {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.section-0 .navbar .cart-icon-link:hover .cart-icon {
    transform: rotate(-10deg);
}

.section-0 .navbar .wishlist-icon { color: #ec4899; }
.section-0 .navbar .loyalty-icon { color: #f59e0b; }

.section-0 .navbar .wishlist-count-badge,
.section-0 .navbar .cart-count-badge,
.section-0 .navbar .loyalty-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.section-0 .navbar .wishlist-count-badge {
    background: linear-gradient(135deg, #ec4899, #d946ef);
}

.section-0 .navbar .cart-count-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.section-0 .navbar .loyalty-count-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.loyalty-count-badge[data-loyalty-count="0"] {
    display: none;
}

.section-0 button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* Search in navbar: icon only by default, input revealed on hover/focus */
.nav-search-form {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0.5rem;
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    transition: width 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

.nav-search-input {
    width: 0;
    opacity: 0;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 0.9rem;
    outline: none;
    pointer-events: none;
    transition: width 0.22s ease, opacity 0.2s ease;
}

.nav-search-input::placeholder {
    color: #64748b;
}

.nav-search-btn {
    width: 2.1rem;
    height: 2.1rem;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 2.1rem;
    background: linear-gradient(135deg, #0891b2, #0ea5e9);
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.35);
}

.nav-search-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: #ffffff;
}

.nav-search-form:hover,
.nav-search-form:focus-within {
    width: 15rem;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(2, 132, 199, 0.22);
}

.nav-search-form:hover .nav-search-input,
.nav-search-form:focus-within .nav-search-input {
    width: 10.9rem;
    opacity: 1;
    pointer-events: auto;
    margin-right: 0.45rem;
}

.nav-search-form:focus-within {
    border-color: #38bdf8;
}

.nav-search-btn:hover {
    transform: translateY(-1px);
}

@media (hover: none) {
    .nav-search-form {
        width: 12.5rem;
        background: #ffffff;
    }

    .nav-search-input {
        width: 8.6rem;
        opacity: 1;
        pointer-events: auto;
        margin-right: 0.4rem;
    }
}

/* Cart/Wishlist badges - consolidated above */
.cart-count-badge:empty,
.cart-count-badge[data-cart-count="0"] {
    display: none;
}

/* Hamburger Toggle Button - hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile auth links - hidden on desktop */
.nav-mobile-auth {
    display: none !important;
}

/* Responsive Design */
@media only screen and (max-width: 1200px) {
    .section-0 {
        height: 9rem;
        min-height: 9rem;
    }

    .section-0 .navbar .nav-link {
        margin-right: 2rem;
        font-size: 1.1rem;
    }

    .section-0 .navbar .nav-logo {
        height: 8rem;
        margin-left: 0.5rem;
    }

    .section-0 .login-btn {
        margin-right: 1.5rem;
    }

    .section-0 .user-profile-btn {
        margin-right: 1rem;
    }
}

@media only screen and (max-width: 992px) {
    .section-0 {
        height: 8rem;
        min-height: 8rem;
    }

    .section-0 .navbar .nav-link {
        margin-right: 1.5rem;
        font-size: 1rem;
    }

    .section-0 .navbar .nav-logo {
        height: 7rem;
        margin-left: 0.5rem;
    }

    .section-0 .login-btn {
        margin-right: 1rem;
    }

    .section-0 .user-profile-btn {
        margin-right: 0.5rem;
    }
}

@media only screen and (max-width: 768px) {
    .section-0 {
        height: auto;
        min-height: auto;
        padding: 0.5rem 0;
    }

    .section-0 .navbar>div {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0 0.5rem;
        flex-wrap: nowrap;
    }

    /* Show hamburger */
    .nav-hamburger {
        display: flex;
        order: 3;
    }

    /* Hide desktop auth buttons */
    .nav-desktop-auth {
        display: none !important;
    }

    /* Nav links become a dropdown drawer */
    .nav-links-container {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
        padding: 1rem 0;
        gap: 0;
        z-index: 99;
        border-top: 1px solid #e2e8f0;
    }

    .nav-links-container.nav-open {
        display: flex;
    }

    .nav-links-container button,
    .nav-links-container .cart-icon-link {
        width: 100%;
        text-align: left;
    }

    .nav-links-container button {
        padding: 0;
    }

    .section-0 .navbar .nav-link {
        display: block;
        font-size: 1rem;
        margin-right: 0;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }

    .section-0 .navbar .nav-link:hover {
        background-color: #eef2ff;
        transform: none;
    }

    .nav-links-container .cart-icon-link {
        padding: 0.75rem 1.5rem;
        margin-left: 0;
        justify-content: flex-start;
    }

    /* Show mobile auth links in drawer */
    .nav-mobile-auth {
        display: block !important;
    }

    .nav-mobile-auth .nav-link {
        border-top: 1px solid #f1f5f9;
    }

    .section-0 .navbar .nav-logo {
        height: 4.5rem;
        margin-left: 0.5rem;
        margin-right: 0;
    }

    .section-0 .login-btn,
    .section-0 .logout-btn,
    .section-0 .user-profile-btn {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    .section-0 .navbar .nav-logo {
        height: 3.5rem;
        margin-left: 0.3rem;
    }

    .section-0 .navbar .nav-link {
        font-size: 0.9rem;
        padding: 0.65rem 1.2rem;
    }
}

/* Promo Banner */
.promo-banner {
    width: 100%;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
    background-size: 200% 200%;
    animation: promoGradient 5s ease infinite;
    color: white;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.promo-content {
    display: inline-block;
    animation: promoSlide 20s linear infinite;
    white-space: nowrap;
}

.promo-icon {
    font-size: 1.1rem;
    vertical-align: middle;
    margin: 0 0.5rem;
}

.promo-banner strong {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

@keyframes promoGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes promoSlide {
    0% {
        transform: translateX(50%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==============================
   MID-PAGE PROMO STRIPS
   ============================== */
.promo-strip {
    width: 100%;
    padding: 0.8rem 1.5rem;
    overflow: hidden;
    position: relative;
    margin: 1.5rem 0;
    border-radius: 12px;
    background-size: 200% 200%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    color: #ffffff !important;
    z-index: 5;
}

.promo-strip__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem 2rem;
    width: 100%;
    font-size: 0.92rem;
    color: white;
    position: relative;
    z-index: 2;
}

.promo-strip__text {
    font-weight: 600;
    white-space: nowrap;
    animation: stripPulse 3s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.promo-strip__icon {
    font-size: 1.2rem;
    animation: iconBounce 2s ease-in-out infinite;
}

.promo-strip__divider {
    opacity: 0.4;
    font-size: 1.2rem;
}

.promo-strip__code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.6);
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.promo-strip__link {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

.promo-strip__text strong {
    font-weight: 800;
}

/* Variants */
.promo-strip--default {
    background: linear-gradient(120deg, #6366f1, #ec4899, #f59e0b);
    background-size: 200% 200%;
    animation: stripGradient 6s ease infinite;
    color: #fff;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.3);
}

.promo-strip--green {
    background: linear-gradient(120deg, #10b981, #34d399, #059669);
    background-size: 200% 200%;
    animation: stripGradient 6s ease infinite;
    color: #fff;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}

.promo-strip--purple {
    background: linear-gradient(120deg, #7c3aed, #a855f7, #c026d3);
    background-size: 200% 200%;
    animation: stripGradient 6s ease infinite;
    color: #fff;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.3);
}

.promo-strip--orange {
    background: linear-gradient(120deg, #f97316, #fb923c, #ef4444);
    background-size: 200% 200%;
    animation: stripGradient 6s ease infinite;
    color: #fff;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.3);
}

.promo-strip--dark {
    background: linear-gradient(120deg, #1e293b, #334155, #1e293b);
    color: #e2e8f0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

@keyframes stripGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes stripPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.92;
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 640px) {
    .promo-strip__inner {
        font-size: 0.8rem;
        gap: 0.6rem;
    }

    .promo-strip__divider {
        display: none;
    }

    .promo-strip {
        padding: 0.8rem 1rem;
        min-height: auto;
    }
}

.wishlist-icon-btn,
.cart-icon-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.wishlist-icon-btn:hover,
.cart-icon-btn:hover {
    transform: scale(1.1);
}

.wishlist-count-badge,
.cart-count-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #0f172a;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 10;
}