* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --light-color: #f5f5f5;
    --text-color: #212121;
    --border-color: #e0e0e0;
    --flipkart-blue: #2874f0;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f1f1;
    color: var(--text-color);
    line-height: 1.5;
}

/* Navigation Bar */
.navbar {
    background-color: var(--flipkart-blue);
    color: white;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.navbar-logo a {
    font-size: 1.6rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    flex: 1;
    margin: 0 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-icons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.cart-btn, .auth-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.4rem 0.9rem;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cart-btn:hover, .auth-btn:hover {
    background-color: white;
    color: var(--flipkart-blue);
}

.cart-count {
    background-color: #ff9500;
    padding: 0.15rem 0.4rem;
    border-radius: 50%;
    font-size: 0.65rem;
    margin-left: 0.2rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(40, 116, 240, 0.85) 0%, rgba(30, 93, 200, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1589519160732-57fc498494f8?w=1200&h=400&fit=crop') center/cover;
    color: white;
    text-align: left;
    padding: calc(4rem + 25px) 1rem;
    margin-bottom: 1rem;
    min-height: 315px; /* reduced by ~10% from 350px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.hero-content {
    width: 55%;
    padding-left: 35px; /* 30-35px left padding as requested */
    transform: translateY(-8px); /* slightly upward */
    transition: transform 0.35s ease;
    z-index: 2;
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffeb3b;
    margin: 0.5rem 0 1rem 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 500px;
}
.hero-image { width: 40%; display:flex; align-items:center; justify-content:center; z-index: 3; position: relative; }
.hero-image img {
    width: 500px;
    height: 400px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: opacity 0.6s ease, transform 0.3s ease;
}

.hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.shop-btn {
    background-color: #ff9500;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1.02rem; /* increased by ~20% */
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-btn:hover {
    background-color: #ff8400;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.categories-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    background: white;
    border-radius: 0;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.category-card h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.category-card p {
    color: #666;
    font-size: 0.75rem;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border-radius: 10px;
    margin: 2rem 0;
}

.prompt-content {
    max-width: 600px;
    margin: 0 auto;
}

.prompt-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.prompt-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.login-btn {
    background-color: var(--highlight-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

/* Categories Section */
.categories-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.categories-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--highlight-color);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Filter Section */
.filter-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-bar, .filter-select {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar:focus, .filter-select:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 5px rgba(233, 69, 96, 0.3);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
}

/* Products Section */
.products-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.products-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
    animation: fadeIn 0.6s ease;
}

.product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.product-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: #ff9500;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 600;
}

.product-body {
    padding: 0.7rem;
}

.product-name {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.2;
    min-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    color: #888;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    text-transform: capitalize;
    display: none;
}

.product-rating {
    color: #ff9500;
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.original-price {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    display: inline-block;
    color: #31a24c;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.quick-add {
    width: 100%;
    padding: 0.5rem;
    background-color: #ff9500;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.7rem;
    transition: background-color 0.3s ease;
    margin-bottom: 0.3rem;
}

.quick-add:hover {
    background-color: #ff8400;
}

.view-details {
    width: 100%;
    padding: 0.5rem;
    background-color: white;
    color: var(--flipkart-blue);
    border: 2px solid var(--flipkart-blue);
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.view-details:hover {
    background-color: var(--flipkart-blue);
    color: white;
}

/* About Section */
.about-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem 4rem;
}

.about-container {
    background: white;
    border-radius: 0;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.about-section h1 {
    font-size: 2.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-text h2 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.about-text p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background: linear-gradient(135deg, #2874f0 0%, #1e5dc8 100%);
    color: white;
    padding: 2rem;
    border-radius: 0;
    text-align: center;
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-box p {
    font-size: 1rem;
    font-weight: 300;
}

.team-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.team-section h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.team-section > p {
    color: #666;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.team-member p {
    color: #666;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem 4rem;
}

.contact-container {
    background: white;
    border-radius: 0;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.contact-section h1 {
    font-size: 2.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.info-box {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--flipkart-blue);
}

.info-box h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-box p {
    color: #666;
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.info-box p.small {
    font-size: 0.85rem;
    color: #999;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--flipkart-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.social-links a:hover {
    background-color: #1e5dc8;
}

.contact-form-container h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--flipkart-blue);
    box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--flipkart-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1e5dc8;
}

.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.faq-section h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--flipkart-blue);
}

.faq-item h3 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--flipkart-blue);
    color: white;
    text-align: center;
    padding: 2.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 2px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cart-modal {
    max-width: 600px;
}

.product-modal {
    max-width: 900px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-color);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-tab {
    flex: 1;
    padding: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #999;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modal-tab.active {
    color: var(--flipkart-blue);
    border-bottom-color: var(--flipkart-blue);
}

/* Modal Forms */
.modal-form {
    display: none;
}

.modal-form.active {
    display: block;
}

.modal-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.3rem;
}

.modal-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--flipkart-blue);
    box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.1);
}

.modal-form button {
    width: 100%;
    padding: 1rem;
    background-color: var(--flipkart-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.modal-form button:hover {
    background-color: #1e5dc8;
}

.form-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: #dff0d8;
    color: #3c763d;
    display: block;
}

.form-message.error {
    background-color: #f2dede;
    color: #a94442;
    display: block;
}

/* Checkout Confirmation Modal */
.confirmation-content {
    text-align: center;
    padding: 2rem 0;
}

.confirmation-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1rem;
    display: block;
    animation: scaleUp 0.5s ease;
}

@keyframes scaleUp {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.confirmation-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.confirm-btn,
.cancel-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: var(--flipkart-blue);
    color: white;
}

.confirm-btn:hover {
    background: #1e5dc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 116, 240, 0.3);
}

.cancel-btn {
    background: var(--border-color);
    color: var(--text-color);
}

.cancel-btn:hover {
    background: #d8d8d8;
}

@media (max-width: 480px) {
    .confirmation-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .confirmation-icon {
        font-size: 3rem;
    }

    .confirmation-content h3 {
        font-size: 1.2rem;
    }

    .confirmation-content p {
        font-size: 0.9rem;
    }
}

/* Cart Items */
.cart-items {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.cart-item-size {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--flipkart-blue);
    font-weight: 600;
}

.cart-item-remove {
    background-color: #f0f0f0;
    color: #e74c3c;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.cart-item-remove:hover {
    background-color: #e74c3c;
    color: white;
}

.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
    font-size: 1rem;
}

/* Cart Summary */
.cart-summary {
    border-top: 2px solid var(--border-color);
    padding-top: 1.5rem;
}

.cart-summary p {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: right;
    color: var(--text-color);
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: #ff9500;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #ff8400;
}

/* Product Detail Modal */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail .product-image {
    height: 450px;
}

.product-info h2 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: var(--text-color);
}

.product-info .product-category {
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.product-info .product-price {
    margin: 1.5rem 0;
}

.product-size, .product-quantity {
    margin: 1.5rem 0;
}

.product-size label, .product-quantity label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.product-size select, .product-quantity input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1.2rem;
    background-color: #ff9500;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #ff8400;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .navbar-logo a {
        font-size: 1.3rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        margin: 1rem 0 0;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.7rem;
    }

    .product-image {
        height: 130px;
    }

    .product-body {
        padding: 0.7rem;
    }

    .product-name {
        font-size: 0.75rem;
        min-height: 30px;
    }

    .product-rating {
        font-size: 0.7rem;
    }

    .current-price {
        font-size: 0.9rem;
    }

    .quick-add,
    .view-details {
        font-size: 0.7rem;
    }

    .product-image {
        height: 140px;
    }

    .product-body {
        padding: 0.8rem;
    }

    .product-name {
        font-size: 0.8rem;
        min-height: 30px;
    }

    .product-rating {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .product-price {
        gap: 0.4rem;
        margin-bottom: 0.4rem;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .original-price {
        font-size: 0.75rem;
    }

    .discount-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .quick-add,
    .view-details {
        font-size: 0.75rem;
        padding: 0.4rem;
        margin-top: 0.3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-tabs {
        flex-direction: column;
    }

    .modal-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }

    .modal-tab.active {
        border-bottom: none;
        border-left-color: var(--flipkart-blue);
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        flex-direction: column;
    }

    .search-bar, .filter-select {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-logo a {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 0.4rem;
        margin: 0 1rem;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }

    .nav-icons {
        gap: 0.8rem;
    }

    .cart-btn, .auth-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .cart-count {
        font-size: 0.6rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 0.6rem;
    }

    .product-image {
        height: 100px;
    }

    .product-body {
        padding: 0.6rem;
    }

    .product-name {
        font-size: 0.7rem;
        min-height: 25px;
    }

    .product-rating {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
    }

    .current-price {
        font-size: 0.85rem;
    }

    .original-price {
        font-size: 0.65rem;
    }

    .discount-badge {
        font-size: 0.6rem;
    }

    .quick-add,
    .view-details {
        font-size: 0.65rem;
        padding: 0.3rem;
    }

    .products-section h2,
    .about-section h1,
    .contact-section h1 {
        font-size: 1.5rem;
    }

    .cart-modal, .product-modal {
        max-width: 100% !important;
    }

    .product-body {
        padding: 0.8rem;
    }

    .quick-add, .view-details {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}
