/* Turathi E-commerce - Clean CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: #333;
    line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.header-logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #e53935;
}

.header-search {
    position: relative;
}

.header-search input {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    width: 250px;
}

.header-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons i {
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.header-icons i:hover {
    color: #e53935;
}

.cart-icon-link {
    text-decoration: none;
    color: inherit;
}

.cart-icon-link i {
    color: inherit;
}

.login-icon-link {
    text-decoration: none;
    color: inherit;
}

.login-icon-link i {
    color: inherit;
}

/* ===== HOME PAGE ===== */
.home-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px 0;
}

.home-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-hero button {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-hero button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Home Upper Section */
.home-upper {
    margin: 40px 0;
}

.home-main-content {
    display: flex;
    gap: 40px;
    padding: 0 60px;
}

.home-sidebar {
    width: 250px;
    border-right: 1px solid #ddd;
    padding-right: 30px;
}

.home-sidebar ul {
    list-style: none;
}

.home-sidebar li {
    margin: 15px 0;
}

.home-sidebar a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.home-sidebar a:hover {
    color: #e53935;
}

.home-promo {
    flex: 1;
    background: #7D8184;
    color: white;
    border-radius: 10px;
    padding: 40px;
    position: relative;
}

.home-promo-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-promo-text {
    flex: 1;
}

.home-promo-text i {
    font-size: 28px;
}

.home-promo-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-promo-text .shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.home-promo-text .shop-btn:hover {
    transform: translateX(5px);
}

.home-promo-image {
    flex: 1;
    text-align: center;
}

.home-promo-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.home-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.home-carousel-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.home-carousel-dots i:hover,
.home-carousel-dots i.active {
    background: white;
}

/* Flash Sales Section */
.flash-sales {
    background: #e53935;
    color: white;
    padding: 30px 40px;
    border-radius: 10px;
    margin: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-sales-badge {
    background: white;
    color: #e53935;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.flash-sales-title {
    font-size: 32px;
    font-weight: bold;
}

.flash-sales-timer {
    display: flex;
    gap: 20px;
    align-items: center;
}

.flash-sales-timer span {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flash-sales-timer .number {
    font-size: 28px;
    font-weight: bold;
}

.flash-sales-timer .label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.8;
}

.flash-sales-timer .separator {
    font-size: 24px;
    font-weight: bold;
}

/* ===== PRODUCTS ===== */
.section-title {
    font-size: 32px;
    margin: 40px 0 20px;
    text-align: center;
    color: #333;
}

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #e53935;
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #666;
    font-size: 14px;
}

.product-action-btn:hover {
    background: #e53935;
    color: white;
    transform: scale(1.1);
}

.product-action-btn.wishlist:hover {
    background: #e91e63;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-stars {
    display: flex;
    gap: 2px;
}

.product-stars i {
    color: #ffc107;
    font-size: 12px;
}

.product-stars i.empty {
    color: #e0e0e0;
}

.product-reviews {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    color: #e53935;
    font-weight: 700;
}

.product-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.product-discount {
    background: #e53935;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-btn:hover {
    background: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.product-btn:active {
    transform: translateY(0);
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin: 40px 0;
}

.category-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: #e53935;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ===== DISCOVER SECTION ===== */
.discover-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 10px;
    margin: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discover-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.discover-content p {
    font-size: 18px;
    opacity: 0.9;
}

.discover-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.discover-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* ===== CART PAGE ===== */
.cart-header {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
}

.cart-header h1 {
    font-size: 36px;
}

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

.cart-titles {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 50px;
    font-weight: bold;
    padding: 20px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.cart-titles div:first-child {
    grid-column: 1 / span 2;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 50px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: white;
    transition: background 0.3s;
}

.cart-item:hover {
    background: #f9f9f9;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-details p {
    font-size: 14px;
    color: #666;
}

.cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.cart-quantity button {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-quantity button:hover {
    background: #f0f0f0;
}

.cart-quantity span {
    padding: 8px 15px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.cart-price, .cart-total {
    font-weight: 600;
    font-size: 16px;
}

.cart-delete {
    color: #e53935;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-delete:hover {
    color: #d32f2f;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.continue-shopping {
    background: white;
    border: 2px solid #333;
    color: #333;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.continue-shopping:hover {
    background: #333;
    color: white;
}

.empty-cart {
    color: #e53935;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
}

.empty-cart:hover {
    color: #d32f2f;
}

.cart-coupon {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.cart-coupon h3 {
    margin-bottom: 15px;
}

.cart-coupon-input {
    display: flex;
    gap: 10px;
}

.cart-coupon input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cart-coupon button {
    background: #e53935;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-coupon button:hover {
    background: #d32f2f;
}

.cart-summary {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    max-width: 350px;
    margin-left: auto;
}

.cart-summary h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-summary-total {
    font-size: 18px;
    font-weight: bold;
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.checkout-btn {
    width: 100%;
    background: #e53935;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.checkout-btn:hover {
    background: #d32f2f;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page-title {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px;
    margin-bottom: 40px;
}

.checkout-page-title h1 {
    font-size: 36px;
}

.checkout-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.checkout-billing {
    flex: 2;
}

.checkout-billing h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #e53935;
}

.checkout-summary {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
}

.checkout-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.order-summary-total {
    font-size: 18px;
    font-weight: bold;
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.payment-methods {
    margin: 25px 0;
}

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

.payment-method input[type="radio"] {
    margin: 0;
}

.place-order-btn {
    width: 100%;
    background: #e53935;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.place-order-btn:hover {
    background: #d32f2f;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    min-height: 100vh;
    background: white;
    position: relative;
    overflow: hidden;
}

.login-left {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(229, 57, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(229, 57, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-pattern {
    max-width: 85%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-pattern:hover {
    transform: scale(1.02);
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: white;
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.login-form {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-form h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-form p {
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: #e53935;
    background: white;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover {
    border-color: #ddd;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.2);
}

.forgot-password {
    text-align: center;
    padding: 16px 0;
}

.forgot-link {
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    display: inline-block;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e53935;
    transition: width 0.3s ease;
}

.forgot-link:hover {
    color: #d32f2f;
}

.forgot-link:hover::after {
    width: 100%;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .login-left {
        flex: 1;
    }
    
    .login-right {
        padding: 40px 30px;
    }
    
    .login-form {
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .login-left {
        flex: 0 0 280px;
        padding: 40px 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .login-pattern {
        max-width: 70%;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
    }
    
    .login-right {
        padding: 40px 20px;
        flex: 1;
    }
    
    .login-right::before {
        display: none;
    }
    
    .login-form {
        max-width: 100%;
    }
    
    .login-form h2 {
        font-size: 28px;
    }
    
    .form-group input {
        padding: 14px 18px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-left {
        flex: 0 0 200px;
        padding: 30px 15px;
    }
    
    .login-pattern {
        max-width: 80%;
    }
    
    .login-right {
        padding: 30px 15px;
    }
    
    .login-form h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .login-form p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .forgot-password {
        padding: 12px 0;
    }
    
    .forgot-link {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .login-left {
        flex: 0 0 160px;
    }
    
    .login-form h2 {
        font-size: 22px;
    }
    
    .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 10px;
        font-size: 13px;
    }
}
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .home-main-content {
        padding: 0 40px;
    }
    
    .flash-sales {
        margin: 40px 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 12px 20px;
    }
    
    .header-nav {
        gap: 20px;
    }
    
    .header-search input {
        width: 200px;
    }
    
    .home-main-content {
        padding: 0 30px;
        gap: 30px;
    }
    
    .home-sidebar {
        width: 220px;
    }
    
    .flash-sales {
        margin: 30px 30px;
        padding: 25px 30px;
    }
    
    .flash-sales-title {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .cart-container {
        padding: 0 15px;
    }
    
    .checkout-container {
        gap: 30px;
        padding: 0 15px 30px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
        position: relative;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: 300px;
    }
    
    .header-search input {
        width: 100%;
    }
    
    .header-icons {
        position: absolute;
        top: 15px;
        right: 15px;
        gap: 15px;
    }
    
    .home-main-content {
        flex-direction: column;
        padding: 0 20px;
        gap: 25px;
    }
    
    .home-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .home-promo {
        padding: 30px 20px;
    }
    
    .home-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .home-promo-text h1 {
        font-size: 36px;
    }
    
    .flash-sales {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin: 30px 20px;
        padding: 25px 20px;
    }
    
    .flash-sales-title {
        font-size: 24px;
    }
    
    .flash-sales-timer {
        justify-content: center;
        gap: 15px;
    }
    
    .flash-sales-timer .number {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .discover-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
        margin: 30px 15px;
    }
    
    .discover-content h2 {
        font-size: 28px;
    }
    
    .discover-content p {
        font-size: 16px;
    }
    
    .cart-header {
        padding: 25px 15px;
    }
    
    .cart-header h1 {
        font-size: 28px;
    }
    
    .cart-titles {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 15px;
        font-size: 14px;
    }
    
    .cart-titles div:first-child {
        grid-column: 1;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }
    
    .cart-item-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-quantity {
        justify-content: center;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .cart-coupon {
        padding: 20px 15px;
    }
    
    .cart-summary {
        max-width: 100%;
        margin: 20px 0 0;
    }
    
    .checkout-page-title {
        padding: 30px 15px;
    }
    
    .checkout-page-title h1 {
        font-size: 28px;
    }
    
    .checkout-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkout-summary {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 12px 10px;
    }
    
    .header-nav {
        gap: 12px;
    }
    
    .header-nav a {
        font-size: 14px;
    }
    
    .header-icons i {
        font-size: 16px;
    }
    
    .home-hero {
        padding: 60px 15px;
    }
    
    .home-hero h1 {
        font-size: 32px;
    }
    
    .home-hero button {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .home-promo-text h1 {
        font-size: 28px;
    }
    
    .flash-sales-title {
        font-size: 20px;
    }
    
    .flash-sales-timer .number {
        font-size: 20px;
    }
    
    .flash-sales-timer .label {
        font-size: 10px;
    }
    
    .section-title {
        font-size: 24px;
        margin: 30px 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    .discover-section {
        padding: 30px 15px;
        margin: 20px 10px;
    }
    
    .discover-content h2 {
        font-size: 24px;
    }
    
    .discover-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .cart-header {
        padding: 20px 10px;
    }
    
    .cart-header h1 {
        font-size: 24px;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-coupon-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-summary {
        padding: 20px 15px;
    }
    
    .checkout-page-title {
        padding: 25px 10px;
    }
    
    .checkout-page-title h1 {
        font-size: 24px;
    }
    
    .checkout-container {
        padding: 0 10px 20px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-nav a {
        font-size: 13px;
    }
    
    .home-hero h1 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .discover-content h2 {
        font-size: 22px;
    }
    
    .cart-header h1 {
        font-size: 22px;
    }
    
    .checkout-page-title h1 {
        font-size: 22px;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 10px 8px;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .header-nav a {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .header-search input {
        padding: 6px 30px 6px 12px;
        font-size: 13px;
    }
    
    .header-icons i {
        font-size: 14px;
    }
    
    .home-hero {
        padding: 40px 10px;
    }
    
    .home-hero h1 {
        font-size: 24px;
    }
    
    .home-hero button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .category-card {
        padding: 12px 8px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .discover-section {
        padding: 25px 10px;
    }
    
    .discover-content h2 {
        font-size: 20px;
    }
    
    .discover-content p {
        font-size: 14px;
    }
    
    .discover-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
