/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Amazon Ember', Arial, sans-serif;
    line-height: 1.6;
    color: #0F1111;
    background-color: #EAEDED;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Header Styles */
.header {
    background: #131921;
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FF9900;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo a {
    color: #FF9900;
    text-decoration: none;
    transition: color 0.3s;
}

.logo a:hover {
    color: #ffaa33;
}

.search-bar {
    flex: 1;
    min-width: 200px;
    max-width: 600px;
    margin: 0 20px;
}

.search-bar form {
    display: flex;
    width: 100%;
    height: 42px;
}

.search-bar input {
    flex: 1;
    padding: 0 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    min-width: 0;
    outline: none;
}

.search-bar input:focus {
    box-shadow: 0 0 0 2px #FF9900;
}

.search-bar button {
    background: #FF9900;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    white-space: nowrap;
    color: #131921;
    font-weight: bold;
    transition: background 0.3s;
    min-width: 80px;
}

.search-bar button:hover {
    background: #ffaa33;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 14px;
    border-radius: 3px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #FF9900;
    background: rgba(255, 255, 255, 0.1);
}

/* Main Navigation */
.header > .container > .header-nav {
    background: #232f3e;
    margin-top: 0;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header > .container > .header-nav .nav-link {
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid transparent;
}

.header > .container > .header-nav .nav-link:hover {
    border-color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cart Count Badge */
#cartCount {
    background: #FF9900;
    color: #131921;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #232f3e, #131921);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-button {
    background: #FF9900;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
    border: 2px solid #FF9900;
}

.cta-button:hover {
    background: transparent;
    color: #FF9900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.category-card h3 {
    color: #131921;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0F1111;
    flex-grow: 1;
    line-height: 1.4;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #B12704;
    margin-bottom: 15px;
}

.add-to-cart {
    background: #FFD814;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
    width: 100%;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.add-to-cart:hover {
    background: #F7CA00;
    transform: translateY(-2px);
}

.view-details {
    color: #007185;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.view-details:hover {
    text-decoration: underline;
    color: #C7511F;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

.product-images {
    text-align: center;
}

.product-images img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-info h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 10px;
    color: #131921;
    line-height: 1.3;
}

.product-category {
    color: #565959;
    margin-bottom: 20px;
    font-size: 1rem;
}

.product-description {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
    color: #0F1111;
}

.product-features {
    margin-bottom: 20px;
}

.product-features h3 {
    margin-bottom: 10px;
    color: #131921;
}

.product-features ul {
    list-style-type: none;
    padding-left: 0;
}

.product-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007600;
    font-weight: bold;
}

.product-pricing .price {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #B12704;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-actions {
    margin-top: 25px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #131921;
}

.quantity-selector input {
    width: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
}

.quantity-selector input:focus {
    border-color: #FF9900;
    outline: none;
}

.add-to-cart-btn, .buy-now-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    min-width: 150px;
}

.add-to-cart-btn {
    background: #FFD814;
    color: #0F1111;
}

.add-to-cart-btn:hover {
    background: #F7CA00;
    transform: translateY(-2px);
}

.buy-now-btn {
    background: #FFA41C;
    color: #0F1111;
}

.buy-now-btn:hover {
    background: #FA8900;
    transform: translateY(-2px);
}

/* Cart Page Styles */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    width: 100%;
}

.cart-title {
    color: #131921;
    margin-bottom: 30px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    text-align: center;
}

/* Empty Cart Styles */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.empty-cart-icon {
    margin-bottom: 20px;
}

.empty-cart h2 {
    color: #131921;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.continue-shopping-btn {
    background: #FF9900;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    font-size: 1rem;
    border: 2px solid #FF9900;
}

.continue-shopping-btn:hover {
    background: transparent;
    color: #FF9900;
    transform: translateY(-2px);
}

/* Cart Items Styles */
.cart-items {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    text-align: left;
}

.item-details h3 {
    color: #131921;
    margin-bottom: 5px;
    font-size: 1rem;
    line-height: 1.3;
}

.item-details .price {
    color: #B12704;
    font-weight: bold;
    font-size: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.quantity-controls button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.quantity-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-controls span {
    min-width: 35px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
}

.item-total {
    font-weight: bold;
    font-size: 1rem;
    color: #131921;
    text-align: right;
}

.remove-item {
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: absolute;
    top: 10px;
    right: 10px;
}

.remove-item:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Cart Summary Styles */
.cart-summary {
    margin-top: 30px;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    position: sticky;
    top: 20px;
}

.summary-card h3 {
    color: #131921;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.summary-details {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: bold;
    color: #131921;
    border-top: 2px solid #f0f0f0;
    margin-top: 10px;
    padding-top: 12px;
}

.checkout-btn {
    background: #FFD814;
    color: #0F1111;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

.checkout-btn:hover {
    background: #F7CA00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 216, 20, 0.3);
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
}

/* Checkout Styles */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

.checkout-form, .order-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.checkout-form h2, .order-summary h2 {
    color: #131921;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #131921;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #FF9900;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.1);
}

.payment-methods {
    margin: 20px 0;
}

.payment-methods h3 {
    margin-bottom: 15px;
    color: #131921;
}

.payment-method {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.payment-method input {
    margin-right: 8px;
}

.place-order-btn {
    background: #FFD814;
    color: #0F1111;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s;
    margin-top: 20px;
}

.place-order-btn:hover {
    background: #F7CA00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 216, 20, 0.3);
}

/* Auth Forms */
.auth-form {
    max-width: 400px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #131921;
    font-size: 1.5rem;
}

.auth-btn {
    background: #FF9900;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
}

.auth-link a {
    color: #007185;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #ffe6e6;
    color: #d63031;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
    border-left: 4px solid #d63031;
}

.success-message {
    background: #e6ffe6;
    color: #27ae60;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
    border-left: 4px solid #27ae60;
}

/* Loading State */
.cart-loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF9900;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart Item Animations */
.cart-item.removing {
    opacity: 0;
    transform: translateX(-100%);
}

/* Quantity Update Animation */
.quantity-update {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Empty State Enhancement */
.empty-cart {
    transition: all 0.3s ease;
}

.empty-cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Cart Count Animation */
@keyframes cartBounce {
    0%, 20%, 60%, 100% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.2);
    }
    80% {
        transform: scale(1.1);
    }
}

.cart-update {
    animation: cartBounce 0.6s ease;
}

/* Footer */
.footer {
    background: #232f3e;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #FF9900;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FF9900;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #37475A;
    color: #999;
    font-size: 0.85rem;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .header-top {
        padding: 10px 0;
    }
    
    .search-bar {
        margin: 0 15px;
    }
    
    .header-nav {
        gap: 15px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header-top {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 8px 0;
    }
    
    .logo {
        font-size: 1.5rem;
        order: 1;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 2;
    }
    
    .search-bar {
        order: 4;
        margin: 10px 0 0 0;
        max-width: none;
        width: 100%;
        display: none;
    }
    
    .search-bar.active {
        display: block;
    }
    
    .header-nav:first-of-type {
        order: 3;
        margin-left: auto;
    }
    
    .header-nav:first-of-type .nav-link {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    /* Main navigation - hide on mobile, will be in mobile menu */
    .header > .container > .header-nav {
        display: none;
    }
    
    .header > .container > .header-nav.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #232f3e;
        z-index: 1000;
        padding: 15px;
        gap: 0;
    }
    
    .header > .container > .header-nav.mobile-active .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid #37475A;
        width: 100%;
        text-align: left;
    }
    
    .header > .container > .header-nav.mobile-active .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin: 30px 0;
    }
    
    .category-card,
    .product-card {
        padding: 15px;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .cart-item img {
        width: 70px;
        height: 70px;
    }
    
    .quantity-controls {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 5px;
    }
    
    .item-total {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 10px;
    }
    
    .remove-item {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .checkout-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .checkout-form, 
    .order-summary {
        padding: 20px;
    }
    
    .auth-form {
        margin: 30px 15px;
        padding: 25px;
    }
    
    .product-detail {
        gap: 20px;
        margin: 20px 0;
    }
    
    .add-to-cart-btn, 
    .buy-now-btn {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-top {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
    }
    
    .mobile-menu-btn {
        order: 2;
        margin-left: auto;
    }
    
    .header-nav:first-of-type {
        order: 3;
        width: 100%;
        justify-content: space-around;
        margin-top: 10px;
        border-top: 1px solid #37475A;
        padding-top: 10px;
    }
    
    .search-bar {
        order: 4;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    #cartCount {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-page {
        padding: 15px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .cart-page {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 30px;
        align-items: start;
    }
    
    .cart-summary {
        margin-top: 0;
    }
    
    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .checkout-container {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .header-top {
        flex-wrap: nowrap;
    }
    
    .search-bar {
        margin: 0 20px;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr auto auto auto;
        gap: 20px;
        padding: 20px;
    }
    
    .cart-item img {
        width: 100px;
        height: 100px;
    }
    
    .quantity-controls {
        grid-column: auto;
        margin-top: 0;
    }
    
    .item-total {
        grid-column: auto;
        text-align: right;
        margin-top: 0;
    }
    
    .remove-item {
        position: static;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .header-nav:first-of-type {
        gap: 5px;
    }
    
    .nav-link {
        padding: 5px 6px;
        font-size: 11px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .product-card {
        padding: 15px 10px;
    }
    
    .category-card {
        padding: 15px 10px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .checkout-btn,
    .add-to-cart,
    .remove-item,
    .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .product-card,
    .category-card,
    .cart-items,
    .summary-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
.nav-link:focus {
    outline: 2px solid #FF9900;
    outline-offset: 2px;
}

/* Skip to main content for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #FF9900;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}
/* Verification Styles */
.verification-code-input {
    letter-spacing: 10px;
    font-size: 24px;
    text-align: center;
    font-weight: bold;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.code-inputs input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.code-inputs input:focus {
    border-color: #FF9900;
    outline: none;
}




