/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d24343;
    --primary-hover: #b83636;
    --secondary-color: #4a148c;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #fff;
    --border-color: #e0e0e0;
    --success-color: #2b872f;
    --warning-color: #ff6f00;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --grey5: rgba(255, 0, 0, 0.03);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--grey5);
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo img {
    height: 56px;
    max-width: 300px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Banner Section */
.banner {
    background: linear-gradient(135deg, rgba(210, 67, 67, 0.1) 0%, rgba(255, 111, 0, 0.1) 100%);
    padding: 80px 0;
    text-align: center;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.banner-content p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.banner-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.feature .icon {
    font-size: 24px;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: var(--white);
}

.categories h2,
.offers h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

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

/* Offers Section */
.offers {
    padding: 80px 0;
    background: var(--bg-light);
}

.offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.offer-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.offer-card:hover {
    transform: translateY(-4px);
}

.offer-card.highlighted {
    background: linear-gradient(135deg, rgba(210, 67, 67, 0.05) 0%, rgba(255, 111, 0, 0.05) 100%);
    border: 2px solid var(--primary-color);
}

.offer-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
}

.offer-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.offer-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 12px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Policy Pages Styles */
.policy-page {
    padding: 60px 0;
    background: var(--white);
}

.policy-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px 0;
    background: var(--bg-light);
}

.policy-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.policy-header p {
    color: var(--text-light);
    font-size: 16px;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin: 32px 0 16px;
}

.policy-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin: 24px 0 12px;
}

.policy-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.policy-content ul,
.policy-content ol {
    margin: 16px 0 16px 24px;
    color: var(--text-light);
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.policy-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-features {
        flex-direction: column;
        gap: 20px;
    }

    .categories h2,
    .offers h2 {
        font-size: 28px;
    }

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

    .offer-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav ul {
        gap: 16px;
    }

    .policy-header h1 {
        font-size: 32px;
    }

    .policy-content h2 {
        font-size: 24px;
    }
}

/* Sale Banner */
.sale-banner {
    background: linear-gradient(135deg, rgba(210, 67, 67, 0.15) 0%, rgba(255, 111, 0, 0.15) 100%);
    padding: 40px 0;
    text-align: center;
}

.sale-content {
    max-width: 900px;
    margin: 0 auto;
}

.sale-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}

.sale-banner h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.sale-banner p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.coupon-codes {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.coupon {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.coupon strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero Banner */
.hero-banner {
    padding: 40px 0;
    background: var(--white);
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Category Cards with Images */
.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Product Card Link */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s;
}

.product-card-link:hover {
    opacity: 1;
}

.product-card-link:active {
    opacity: 0.9;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
}

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

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

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(210, 67, 67, 0.3);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sale-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

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

/* Features Section */
.features-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.feature-box {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.feature-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.feature-box p {
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .sale-banner h1 {
        font-size: 28px;
    }

    .sale-banner p {
        font-size: 16px;
    }

    .coupon-codes {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .sale-price {
        font-size: 18px;
    }

    .original-price {
        font-size: 14px;
    }

    .category-card img {
        height: 150px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Login Page Styles */
.login-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(210, 67, 67, 0.05) 0%, rgba(255, 111, 0, 0.05) 100%);
    min-height: calc(100vh - 200px);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.login-card {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.login-header p {
    font-size: 16px;
    color: var(--text-light);
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.country-code {
    padding: 12px 16px;
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
    border-right: 2px solid var(--border-color);
}

.form-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.resend-btn {
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.resend-btn:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 8px;
}

.login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

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

.login-terms {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-light);
}

.login-terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-terms a:hover {
    text-decoration: underline;
}

.login-benefits {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.login-benefits h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.login-benefits ul {
    list-style: none;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-light);
}

.benefit-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.login-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    border-radius: 16px;
    padding: 48px;
    color: var(--white);
}

.illustration-content {
    text-align: center;
}

.illustration-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.illustration-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.2);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 28px;
}

.badge span:last-child {
    font-size: 16px;
    font-weight: 600;
}

/* Login Page Responsive */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .login-illustration {
        order: -1;
    }

    .login-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 40px 0;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-card {
        padding: 24px;
    }

    .illustration-content h2 {
        font-size: 28px;
    }

    .illustration-content p {
        font-size: 16px;
    }
}
