:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --image-height: 220px; /* Consistent image height */
    --image-width: 100%; /* Full width of container */
    --image-aspect-ratio: 1/1; /* Square ratio for consistency */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    color: var(--primary-color);
}

.cart-icon-wrapper {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cart-icon-wrapper:hover {
    background-color: var(--bg-light);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.btn-login {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background: #1d4ed8;
}

/* Hero Section */
#hero {
    background:
        linear-gradient(135deg, rgba(29,78,216,0.6), rgba(29,78,216,0.6)),
        url('images/brandon-romanchuk-xpe7pyNmEbw-unsplash.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 8rem 0 4rem;
    margin-top: 60px;
    background-attachment: fixed;
}

/* Optional: Add a subtle overlay to improve text contrast */
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

#hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Text Styling */
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons a {
    background: var(--accent-color, #ff9800);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-buttons a:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--white);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero-image {
    text-align: center;
    font-size: 8rem;
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Products Section - UPDATED FOR CONSISTENT IMAGE SIZES */
#products {
    padding: 4rem 0;
    background: var(--bg-light);
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* UPDATED: Consistent Product Image Container */
.product-image-container {
    position: relative;
    width: var(--image-width);
    height: var(--image-height);
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* UPDATED: Consistent Image Styling */
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows entire image without cropping */
    transition: transform 0.3s ease;
    padding: 1rem; /* Add padding to prevent images from touching edges */
    background: var(--white); /* White background for consistency */
}

/* Alternative: If you want images to fill the container (may crop) */
.product-image-container img.fill {
    object-fit: cover; /* Fills container, may crop image */
}

/* Alternative: If you want fixed aspect ratio */
.product-image-container.aspect-ratio {
    aspect-ratio: var(--image-aspect-ratio);
    height: auto;
}

/* Fallback for when image doesn't load */
.product-image-container .image-fallback {
    color: var(--primary-color);
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Add a hover effect for images */
.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.3;
    min-height: 3.6rem; /* Ensure consistent title height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.specs {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.8rem; /* Ensure consistent specs height */
}

.product-card .add-to-cart {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
}

/* Cart Item Images - Also Regulated */
.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    background: var(--white);
}

/* Checkout/Receipt Images */
.receipt-item-image {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.receipt-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
    background: var(--white);
}

/* Features Section */
#features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* About Section */
#about {
    padding: 4rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
}

.benefits-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-list i {
    color: var(--accent-color);
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Section */
#contact {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.map-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    background: none;
    border: none;
}

.close-button:hover {
    color: var(--text-dark);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Cart Styles */
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0; /* Prevent overflow */
}

.cart-item-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-specs {
    color: var(--text-light);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-item:hover {
    color: #ef4444;
    background: var(--bg-light);
}

.cart-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    background: var(--secondary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    color: var(--text-light);
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

.skeleton-image-container {
    height: var(--image-height);
    background: var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 1rem;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-button {
    height: 2.5rem;
    background: var(--border-color);
    border-radius: 6px;
    margin-top: 1rem;
}

@keyframes skeleton-loading {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Empty States */
.no-products, .error-state {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
    color: var(--text-light);
}

.no-products i, .error-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.error-state i {
    color: var(--accent-color);
}

/* User Message Styles */
.user-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 300px;
    box-shadow: var(--shadow-lg);
}
.user-message.success { background: #10b981; }
.user-message.error { background: #ef4444; }
.user-message.info { background: #3b82f6; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tracking Section Styles */
.tracking-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.tracking-form .form-group {
    margin-bottom: 1.5rem;
}

.tracking-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tracking-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.tracking-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tracking-form small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Tracking Results */
.tracking-results {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    min-height: 200px;
}

.initial-message, .loading-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.initial-message i, .loading-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.loading-message .fa-spinner {
    animation: spin 1s linear infinite;
}

.success-message, .error-message {
    animation: fadeIn 0.5s ease;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.status-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.status-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.status-processing { 
    background: #ffc107; 
    color: #000; 
    border: 2px solid #ffc107;
}

.status-in-transit { 
    background: #17a2b8; 
    color: white;
    border: 2px solid #17a2b8;
}

.status-out-for-delivery { 
    background: var(--primary-color); 
    color: white;
    border: 2px solid var(--primary-color);
}

.status-delivered { 
    background: #28a745; 
    color: white;
    border: 2px solid #28a745;
}

.status-cancelled { 
    background: #dc3545; 
    color: white;
    border: 2px solid #dc3545;
}

.status-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.status-details p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.status-details strong {
    color: var(--text-dark);
    min-width: 120px;
}

.status-description {
    font-style: italic;
    color: var(--text-light);
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

/* Status Timeline */
.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
    padding-top: 2rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 5%;
    right: 5%;
    height: 3px;
    background: #ddd;
    z-index: 1;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #ddd;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.timeline-step.completed .step-icon {
    background: var(--primary-color);
    color: white;
}

.timeline-step.active .step-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-step.cancelled .step-icon {
    background: #dc3545;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.timeline-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.help-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.help-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

.tracking-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.tracking-actions .btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.tracking-actions .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Print Header */
.print-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.print-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design for Tracking */
@media (max-width: 768px) {
    .tracking-form,
    .tracking-results {
        padding: 1.5rem;
    }
    
    .status-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .status-timeline::before {
        display: none;
    }
    
    .timeline-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .step-icon {
        margin: 0;
        flex-shrink: 0;
    }
    
    .step-label {
        text-align: left;
    }
    
    .status-details p {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tracking-actions {
        flex-direction: column;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    #hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .product-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
    }
    
    .cart-item-price {
        align-self: end;
    }
    
    .user-message {
        left: 20px;
        right: 20px;
        top: 80px;
        max-width: none;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    #hero {
        padding: 7rem 0 3rem;
    }
    
    /* Adjust image height for mobile */
    :root {
        --image-height: 180px;
    }
    
    .product-card h3 {
        min-height: auto;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    :root {
        --image-height: 160px;
    }
    
    .product-image-container {
        height: var(--image-height);
    }
}

/* Print Styles for Receipts */
@media print {
    .product-image-container img {
        max-height: 100px;
        object-fit: contain;
    }
}