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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

/* Header Styles */
header {
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #000;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px;
}

.search-bar input::placeholder {
    color: #888;
}

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

.icon-link {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.icon-link:hover {
    color: #ddd;
}

/* Navigation */
.main-nav {
    background: #fff;
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #000;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #666;
}

.nav-links-right {
    display: flex;
    gap: 20px;
}

.offers-link {
    color: #00a651 !important;
}

.sale-link {
    color: #e60000 !important;
}

/* Main Content */
main {
    background: #fff;
}

/* Category Section */
.category-section {
    padding: 30px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    aspect-ratio: 1;
}

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

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 40px 20px 20px;
}

.category-overlay h2 {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.offer-badge {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    background: #fff;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
}

.new-in {
    background: linear-gradient(135deg, #d4c5b9, #b8a89a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-in-content {
    text-align: center;
    color: #fff;
}

.new-in-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.new-in-content p {
    font-size: 14px;
    line-height: 1.4;
}

/* Brands Section */
.brands-section,
.browse-section {
    padding: 40px 0;
    background: #f8f8f8;
}

.section-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.brands-slider,
.browse-slider {
    position: relative;
}

.brands-grid,
.browse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.brand-card,
.browse-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    aspect-ratio: 1;
    background: #000;
}

.brand-card img,
.browse-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.brand-card:hover img,
.browse-card:hover img {
    transform: scale(1.05);
}

.brand-overlay,
.browse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-overlay h3,
.browse-overlay h3 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: #fff;
}

.slider-btn.prev {
    left: -20px;
}

.slider-btn.next {
    right: -20px;
}

/* App Section */
.app-section {
    padding: 40px 0;
    background: #e8f4f8;
}

.app-banner {
    text-align: center;
}

.app-banner h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.app-btn img {
    height: 40px;
}

/* About Section */
.about-section {
    padding: 40px 0;
    text-align: center;
}

.about-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #666;
}

.more-btn {
    background: #000;
    color: #fff;
    padding: 10px 30px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.more-btn:hover {
    background: #333;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-app-links img {
    max-width: 150px;
}

.rating-badge {
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stars {
    color: #ff6600;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.rating-text {
    font-size: 14px;
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 24px;
}

.blog-btn {
    background: #fff;
    color: #000;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.blog-btn:hover {
    background: #f0f0f0;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    font-size: 12px;
}

.footer-links a:hover {
    color: #fff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
}

.social-btn:hover {
    background: #f8f8f8;
}

.google-btn span {
    font-size: 18px;
}

.apple-btn span {
    font-size: 20px;
}

.facebook-btn {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.facebook-btn:hover {
    background: #166fe5;
}

.divider {
    text-align: center;
    margin: 25px 0;
    font-size: 12px;
    color: #666;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.password-field {
    position: relative;
}

.show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.show-password input {
    width: auto;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

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

.recaptcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.recaptcha input {
    width: auto;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #333;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.signup-link a {
    color: #0066cc;
    font-weight: bold;
}

.signup-link a:hover {
    text-decoration: underline;
}

.preference-section {
    margin: 25px 0;
}

.preference-section p {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.preference-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.preference-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.preference-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.stay-informed {
    margin-top: 20px !important;
}

.notification-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.notification-btn:hover {
    background: #f8f8f8;
}

.terms-text {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 15px;
}

.terms-text a {
    color: #0066cc;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .category-grid,
    .brands-grid,
    .browse-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 15px 0 0 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 12px;
    }
    
    .category-grid,
    .brands-grid,
    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}