/* ===================================
   AutoEdge Deals - Main Stylesheet
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping if needed, but links stay inline */
}

.header-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap; /* Prevent wrapping to keep links inline */
}

.header-links a {
    color: var(--white);
    margin-left: 20px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.header-links a i {
    font-size: 1rem;
    flex-shrink: 0;
}

.header-links a .nav-text {
    display: inline;
}

.header-links a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

.hero-tags {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--white);
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tag:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-large {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.9rem;
    padding: 8px 20px;
}

.btn-secondary:hover {
    background: #d97706;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
    background: var(--secondary-color);
    color: var(--white);
}

.btn-large:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Vehicle Slider Section */
.vehicle-slider-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.vehicle-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.vehicle-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.vehicle-slider .slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
}

.vehicle-slider .slide.active .slide-image img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(59, 130, 246, 0.75) 50%, rgba(30, 64, 175, 0.85) 100%);
    z-index: 1;
}

.slide-info {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 30px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.slide-category {
    margin-bottom: 15px;
}

.category-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.category-link:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.slide-title a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.slide-title a:hover {
    color: var(--secondary-color);
}

.slide-details {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    font-size: 1rem;
}

.slide-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.slide-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.25) !important;
}

.slide-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-slider {
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-slider:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-slider-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid var(--white);
}

.btn-slider-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

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

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.slider-dots .dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .vehicle-slider-section {
        padding: 40px 0;
    }

    .vehicle-slider {
        height: 380px;
        border-radius: 15px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-details {
        gap: 15px;
        font-size: 0.9rem;
    }

    .slide-price {
        font-size: 1.2rem;
    }

    .slide-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-slider,
    .btn-slider-secondary {
        width: 80%;
        text-align: center;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .vehicle-slider {
        height: 320px;
    }

    .slide-info {
        padding: 20px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-details {
        flex-direction: column;
        gap: 10px;
    }

    .slide-details span {
        width: 100%;
        justify-content: center;
    }
}

/* Categories Section */
.categories {
    background: var(--light-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: 15px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: var(--white);
}

.category-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.category-card:hover i {
    color: var(--white);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vehicle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--light-color);
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.new {
    background: var(--success-color);
}

.badge.luxury {
    background: #8b5cf6;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.vehicle-details {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    flex-wrap: wrap;
}

.vehicle-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehicle-details i {
    color: var(--primary-color);
}

.vehicle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Features Section */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Membership Section */
.membership {
    background: var(--light-color);
}

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

.membership-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.membership-card.featured {
    border: 3px solid var(--primary-color);
}

.membership-card.premium {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: var(--white);
}

.membership-card.premium h3,
.membership-card.premium .price-tag {
    color: var(--white);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.membership-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.membership-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.membership-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.membership-card.premium ul li {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.membership-card ul li i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.membership-card.premium ul li i {
    color: var(--white);
}

/* Testimonials Section */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-color);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.rating {
    margin-bottom: 20px;
}

.rating i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.testimonial-card p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    color: var(--text-color);
}

.author strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author span {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

/* Footer Styles */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 40px;
    width: 100vw;
    box-sizing: border-box;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 30px 40px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    width: 100vw;
    box-sizing: border-box;
}

/* Responsive Design */
/* Tablets and small screens - Hide text in header-links, show icons only */
@media (max-width: 1024px) {
    .header-links a .nav-text {
        display: none;
    }

    .header-links a {
        margin-left: 15px;
        padding: 5px;
        min-width: 30px;
        text-align: center;
        justify-content: center;
    }

    .header-links a i {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .hero-search {
        display: block;
        text-align: center;
    }
    .hero-search input[type="text"] {
        display: inline-block;
        width: auto;
        min-width: 200px;
        max-width: calc(100% - 140px);
        vertical-align: middle;
        margin-right: 8px;
    }
    .hero-search button {
        display: inline-block;
        vertical-align: middle;
        margin-left: 0;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
    }

    .nav.active {
        display: flex;
    }

    .header-links {
        gap: 10px;
    }

    .header-links a {
        margin-left: 0;
        min-width: 35px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-search {
        display: block;
        text-align: center;
    }

    .hero-search input[type="text"] {
        display: inline-block;
        width: auto;
        min-width: 200px;
        max-width: calc(100% - 140px);
        vertical-align: middle;
        margin-right: 8px;
    }

    .hero-search button {
        display: inline-block;
        vertical-align: middle;
        margin-left: 0;
        margin-top: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .membership-grid {
        grid-template-columns: 1fr;
    }

    .header-main .container {
        flex-wrap: wrap;
    }

    .header-actions {
        order: 2;
    }

    /* Keep header-top container horizontal (inline) at all screen sizes */
    .header-top .container {
        flex-direction: row; /* Keep inline, not column */
        align-items: center;
        gap: 8px;
    }

    .header-links {
        margin-top: 0; /* Remove top margin */
        width: auto; /* Don't force full width */
        display: flex;
        flex-wrap: nowrap; /* Keep links inline, prevent wrapping */
        gap: 10px;
    }

    .header-links a {
        margin-left: 0;
        margin-right: 0;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .hero-search {
        display: block;
        text-align: center;
    }
    .hero-search input[type="text"] {
        display: inline-block;
        width: auto;
        min-width: 150px;
        max-width: calc(100% - 120px);
        vertical-align: middle;
        margin-right: 6px;
    }
    .hero-search button {
        display: inline-block;
        vertical-align: middle;
        margin-left: 0;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 20px;
    }

    section {
        padding: 50px 0;
    }

    .header-top .container {
        gap: 8px;
        font-size: 0.85rem;
        flex-wrap: wrap; /* Allow container to wrap if needed, but links stay inline */
    }

    /* Keep header-links inline (horizontal) at all screen sizes */
    .header-links {
        flex-direction: row; /* Keep inline, not column */
        gap: 8px;
        flex-wrap: nowrap; /* Prevent individual links from wrapping */
    }

    .header-links a {
        margin: 0;
        font-size: 1rem;
        flex-shrink: 0; /* Prevent links from shrinking */
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* ===================================
   Quick Cart Styles
   =================================== */

.quick-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow: hidden;
}

.quick-cart.active {
    right: 0;
}

.quick-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-cart.active ~ .quick-cart-overlay {
    display: block;
    opacity: 1;
}

.quick-cart-header {
    padding: 20px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-cart-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.quick-cart-close:hover {
    transform: rotate(90deg);
}

.quick-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.quick-cart-empty {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.quick-cart-empty p {
    color: var(--text-color);
    margin: 10px 0;
}

.quick-cart-items {
    display: none;
}

.quick-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.quick-cart-item:last-child {
    border-bottom: none;
}

.quick-cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.quick-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-cart-item-image i {
    font-size: 2rem;
    color: var(--text-color);
}

.quick-cart-item-details {
    flex: 1;
    min-width: 0;
}

.quick-cart-item-details h4 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
}

.quick-cart-item-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: transform 0.2s;
    align-self: flex-start;
}

.quick-cart-item-remove:hover {
    transform: scale(1.2);
}

.quick-cart-footer {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    background: var(--light-color);
    display: none;
}

.quick-cart-summary {
    margin-bottom: 15px;
}

.quick-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    padding: 10px 0;
}

.quick-cart-summary-row strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.quick-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-icon-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Responsive for Quick Cart */
@media (max-width: 768px) {
    .quick-cart {
        width: 100%;
        right: -100%;
    }
    
    .quick-cart-item {
        padding: 12px;
    }
    
    .quick-cart-item-image {
        width: 60px;
        height: 60px;
    }
}

/* ===================================
   Quick Chat Widget Styles
   =================================== */

.quick-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: inherit;
}

.quick-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.quick-chat-toggle:hover {
    background: #1e3a8a;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.quick-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--white);
}

.quick-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    max-height: 80vh;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.quick-chat-widget.active .quick-chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.quick-chat-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-chat-header-info i {
    font-size: 1.5rem;
}

.quick-chat-header-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.quick-chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.quick-chat-minimize {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.quick-chat-minimize:hover {
    transform: scale(1.2);
}

.quick-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.quick-chat-welcome {
    text-align: center;
    padding: 20px 0;
}

.quick-chat-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 1.5rem;
}

.quick-chat-welcome p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.quick-chat-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.quick-chat-action-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.quick-chat-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.quick-chat-action-btn i {
    font-size: 1.2rem;
}

.quick-chat-messages {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.quick-chat-messages:not(:empty) {
    display: flex;
}

.quick-chat-message {
    display: flex;
    animation: slideInMessage 0.3s ease;
}

.quick-chat-message-user {
    justify-content: flex-end;
}

.quick-chat-message-support {
    justify-content: flex-start;
}

.quick-chat-message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
}

.quick-chat-message-user .quick-chat-message-content {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.quick-chat-message-support .quick-chat-message-content {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.quick-chat-message-content p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.quick-chat-message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    text-align: right;
}

.quick-chat-message-support .quick-chat-message-time {
    text-align: left;
}

.quick-chat-input-area {
    border-top: 1px solid var(--border-color);
    background: var(--white);
    padding: 15px;
}

.quick-chat-input-area form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#quickChatInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#quickChatInput:focus {
    border-color: var(--primary-color);
}

.quick-chat-send-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-chat-send-btn:hover {
    background: #1e3a8a;
}

.quick-chat-footer-links {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.quick-chat-footer-links a {
    font-size: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.quick-chat-footer-links a:hover {
    color: var(--primary-color);
}

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

/* Mobile Responsive for Quick Chat */
@media (max-width: 768px) {
    .quick-chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .quick-chat-toggle {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
    
    .quick-chat-window {
        width: calc(100vw - 30px);
        max-width: 380px;
        height: calc(100vh - 100px);
        max-height: 600px;
        bottom: 80px;
        right: 0;
    }
    
    .quick-chat-quick-actions {
        grid-template-columns: 1fr;
    }
    
    .quick-chat-footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Shipping Schedule Responsive */
@media (max-width: 768px) {
    .shipping-schedule {
        padding: 40px 0 !important;
    }
    
    .shipping-schedule > .container > div {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .shipping-schedule table {
        font-size: 0.9rem;
        min-width: 600px;
    }
    
    .shipping-schedule th,
    .shipping-schedule td {
        padding: 12px 10px !important;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .shipping-schedule {
        padding: 30px 0 !important;
    }
    
    .shipping-schedule table {
        font-size: 0.8rem;
        min-width: 550px;
    }
    
    .shipping-schedule th,
    .shipping-schedule td {
        padding: 10px 8px !important;
    }
    
    .shipping-schedule .section-subtitle {
        font-size: 0.9rem;
    }
}
