/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary: #6366f1;
    --secondary: #4f46e5;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --dark: #f9fafb;
    --light: #1f2937;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --border: #374151;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ==================== NAVBAR ==================== */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

body.dark-mode .navbar {
    background: #1f2937;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-search {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.nav-search input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.nav-search button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-search button:hover {
    background: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

.cart-icon, .user-icon {
    position: relative;
    font-size: 1.3rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn.full-width {
    width: 100%;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* ==================== CATEGORIES ==================== */
.categories {
    padding: 60px 20px;
    background: var(--light);
}

.categories h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

body.dark-mode .category-card {
    background: #2d3748;
}

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

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==================== DEALS ==================== */
.deals {
    padding: 60px 20px;
    background: white;
}

.deals h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.deal-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.deal-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.deal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.deal-image {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.deal-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.deal-price {
    font-size: 1.8rem;
    color: var(--danger);
    font-weight: bold;
    margin: 0.5rem 0;
}

.savings {
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==================== PRODUCTS ==================== */
.products {
    padding: 60px 20px;
    background: var(--light);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
}

.products-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 500;
}

body.dark-mode .sort-select {
    background: #2d3748;
    border-color: #4a5568;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid var(--border);
}

body.dark-mode .view-toggle {
    background: #2d3748;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.view-btn.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
}

/* ==================== FILTERS ==================== */
.filters-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.filter-toggle {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

body.dark-mode .filter-toggle {
    background: #2d3748;
}

.filter-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filters-panel {
    display: none;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    z-index: 100;
    margin-top: 0.5rem;
}

body.dark-mode .filters-panel {
    background: #2d3748;
}

.filters-panel.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.filter-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

.rating-filters label,
.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.rating-filters input,
.filter-group input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

body.dark-mode .product-card {
    background: #2d3748;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: var(--transition);
}

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

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex: 1;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

.price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.add-to-cart-btn {
    flex: 1;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--secondary);
}

.wishlist-btn {
    padding: 10px 12px;
    background: transparent;
    border: 2px solid var(--border);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.wishlist-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.no-results {
    text-align: center;
    padding: 3rem;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==================== CART DRAWER ==================== */
.cart-drawer {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow-y: auto;
}

body.dark-mode .cart-drawer {
    background: #1f2937;
}

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

.cart-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

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

.cart-item-name {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

body.dark-mode .qty-btn {
    background: #374151;
}

.remove-btn {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.cart-summary {
    padding: 1.5rem;
    border-top: 2px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    margin-bottom: 1rem;
}

/* ==================== CHECKOUT MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

body.dark-mode .modal-content {
    background: #1f2937;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.checkout-form h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section h3 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.form-section input {
    width: 100%;
    padding: 12px;
    margin-bottom: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text-dark);
    font-size: 0.95rem;
}

body.dark-mode .form-section input {
    background: #374151;
}

.form-section input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.card-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-option input {
    margin: 0;
}

.order-summary {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.order-summary h3 {
    margin-bottom: 1rem;
}

.order-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.order-item:last-child {
    border: none;
}

.total-amount {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    color: var(--text-dark);
}

/* ==================== SUCCESS MODAL ==================== */
.success-content {
    text-align: center;
    padding: 2rem !important;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-content h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.success-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.order-id {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.delivery-info {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ==================== USER PROFILE ==================== */
.user-profile {
    min-width: 400px;
}

.user-header {
    text-align: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.user-avatar {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.user-profile h2 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.user-profile p {
    color: var(--text-light);
}

.user-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.order-status {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    padding: 60px 20px;
    background: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

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

.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 0.8rem;
}

.testimonial-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.author {
    color: var(--primary);
    font-weight: 600;
}

/* ==================== NEWSLETTER ==================== */
.newsletter {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 3rem 20px 1rem;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 998;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background: var(--secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-search {
        display: none;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        padding: 2rem 0;
        gap: 0;
    }

    body.dark-mode .nav-menu {
        background: #1f2937;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .user-profile {
        min-width: auto;
    }

    .modal-content {
        max-width: 95%;
        padding: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .navbar .container {
        gap: 0.5rem;
    }

    .logo-text {
        display: none;
    }

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

    .hero-badges {
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 8px 12px;
    }

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

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

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

    .products-header {
        flex-direction: column;
    }

    .products-controls {
        width: 100%;
        flex-direction: column;
    }
}
