/* Global Styles */
:root {
    --primary-color: #54cc6b;
    --primary-dark: #54cc6b;
    --secondary-color: #333;
    --light-color: #f9f9f9;
    --dark-color: #222;
    --gray-color: #777;
    --light-gray: #eee;
    --white-color: #fff;
    --black-color: #000;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    margin-left: 15px;
}

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

.view-all-btn {
    margin-top: 40px;
    padding: 15px 40px;
    background: var(--secondary-color);
}

.view-all-btn:hover {
    background: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.section-header {
    margin-bottom: 50px;
}

/* Header Styles */
header {
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

.main-nav ul li a:hover::after {
    width: 100%;
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary-color);
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    background: var(--white-color);
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    display: block;
    transition: var(--transition);
}

.mobile-menu ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Hero Slider Styles - Updated for High Quality Images */
.hero-slider {
    position: relative;
    height: 100vh; /* Use viewport height for better responsiveness */
    min-height: 600px; /* Minimum height for larger screens */
    max-height: 800px; /* Maximum height for very large screens */
    overflow: hidden;
    margin-top: 70px;
}

.slider-container {
    height: 100%;
    position: relative;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center; /* Always center the image */
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Force high quality rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: nearest-neighbor;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Prevent blurry images on scale */
.slide img {
    display: none; /* We're using background-image instead */
}

/* Add this to ensure proper mobile display */
@media (max-width: 768px) {
    .hero-slider {
        height: 50vh; /* Smaller height on mobile */
        min-height: 400px;
        margin-top: 60px;
    }
    
    .slide-content {
        padding: 0 20px;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 2rem !important; /* Force smaller font on mobile */
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* For very small devices */
@media (max-width: 480px) {
    .hero-slider {
        height: 45vh;
        min-height: 350px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem !important;
    }
    
    .slide-content p {
        font-size: 1rem !important;
    }
}



.slide-content {
    padding: 0 50px;
    max-width: 600px;
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(50px);
    transition: var(--transition);
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.slide-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px !important;
    display: inline-block;
}

.slide-buttons {
    display: flex;
    gap: 15px;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white-color);
}

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

.feature-card {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--secondary-color);
    transform: rotateY(180deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray-color);
}

/* Products Section */
.products {
    padding: 80px 0;
    background: var(--light-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    background: var(--white-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

.product-info {
    padding: 7px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--warning-color);
}

.product-rating span {
    color: var(--gray-color);
    font-size: 0.8rem;
    margin-left: 5px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: block;
}

.old-price {
    color: var(--gray-color);
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 5px;
}

.add-to-cart {
   
    color: var(--white-color);
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart i {
    font-size: 1rem;
}

.add-to-cart:hover {
    background: var(--primary-color);
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--white-color);
}

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

.testimonial-card {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-rating {
    color: var(--warning-color);
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-color);
    position: relative;
    padding-left: 20px;
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1486401899868-0e435ed85128?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white-color);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    border-radius: 0 50px 50px 0;
    border: none;
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--light-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white-color);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray-color);
}

.contact-form {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 0;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

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

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

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

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

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-newsletter {
    display: flex;
    margin-top: 20px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.footer-newsletter button {
    padding: 0 15px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white-color);
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

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

.modal-product-image {
    border-radius: 10px;
    overflow: hidden;
}

.modal-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.modal-product-image:hover img {
    transform: scale(1.05);
}

.modal-product-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.modal-rating .stars {
    color: var(--warning-color);
}

.modal-rating .review-count {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.modal-product-info .price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-product-info p {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-features {
    margin-bottom: 20px;
}

.modal-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-color);
}

.modal-features .feature i {
    color: var(--success-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-btn {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

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

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    margin: 0 10px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
}

.modal .add-to-cart {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: var(--transition);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.cart-header h3 {
    font-size: 1.5rem;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

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

.cart-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    animation: fadeIn 0.3s;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.cart-item-quantity button {
    background: var(--light-gray);
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid var(--light-gray);
    height: 25px;
}

.remove-item {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
    display: inline-block;
    transition: var(--transition);
}

.remove-item:hover {
    text-decoration: underline;
}

.cart-total {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.cart-subtotal,
.cart-shipping,
.cart-grand-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-grand-total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--light-gray);
}

.total-amount {
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Empty Cart */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.empty-cart i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.empty-cart p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.empty-cart .btn {
    width: auto;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .modal-product-details {
        grid-template-columns: 1fr;
    }
    
    .modal-product-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-slider {
        height: 450px;
    }
    
    .slide-content {
        padding: 0 30px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 400px;
        margin-top: 60px;
    }
    
    .slide-content {
        text-align: center;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 50px;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-methods {
        margin-top: 15px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Mobile First Approach - Base styles are for mobile */
/* Then media queries for larger screens */

/* General Mobile Styles */
@media (max-width: 767px) {
  /* Typography */
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  
  h1, .section-title {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  /* Layout */
  .container {
    padding: 0 15px;
    width: 100%;
  }
  
  /* Navigation */
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu {
    display: block;
  }
  
  /* Hero Slider */
  .hero-slider {
    height: 300px;
    margin-top: 60px;
  }
  
  .slide-content {
    padding: 0 20px;
    text-align: center;
  }
  
  .slide-content h2 {
    font-size: 1.8rem;
  }
  
  .slide-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-outline {
    margin-left: 0;
  }
  
  /* Product Grids */
  .product-grid, 
  .related-products-grid,
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
  
  /* Forms */
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Checkout Page */
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .order-summary {
    margin-top: 2rem;
  }
  
  /* Cart */
  .cart-item {
    flex-direction: column;
  }
  
  .cart-item-image {
    margin-bottom: 15px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* About Page */
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Product Detail Page */
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  .product-images {
    margin-bottom: 2rem;
  }
  
  /* Profile Page */
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
  .product-grid,
  .related-products-grid,
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  /* Even more compact styles */
  .hero-slider {
    height: 250px;
  }
  
  .slide-content h2 {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Checkout form adjustments */
  .payment-methods {
    flex-direction: column;
  }
  
  /* Order confirmation */
  .order-details {
    flex-direction: column;
  }
}

/* Specific Fixes for Common Issues */
/* Prevent horizontal scrolling */
html, body {
  
  max-width: 100%;
}

/* Mobile Menu Fixes */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

/* Form Input Sizing */
input, select, textarea {
  font-size: 16px !important; /* Prevent zooming on focus in iOS */
  min-height: 44px; /* Better touch target size */
}

/* Button Sizing */
.btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image Responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* Hide desktop elements on mobile */
.desktop-only {
  display: none;
}

@media (min-width: 992px) {
  .desktop-only {
    display: block;
  }
  
  .mobile-only {
    display: none;
  }
}

