/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-top: -35px;
    margin-bottom: 40px;
    font-size: 17px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #1a1a2e;
    color: #ddd;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar i {
    margin-right: 6px;
    color: #c0392b;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a:hover {
    color: #fff;
}

/* ===== HEADER ===== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 24px;
    color: #c0392b;
}

.logo i {
    color: #c0392b;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c0392b;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: #c0392b;
}

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 18px;
    align-items: center;
}

.header-icons a {
    position: relative;
    transition: color 0.3s;
}

.header-icons a:hover {
    color: #c0392b;
}

.cart-count {
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -12px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 40px 0 80px;
    background: linear-gradient(135deg, #fdf2f2 0%, #f8e8e8 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content .badge {
    background: #c0392b;
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    color: #c0392b;
}

.hero-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192,57,43,0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #1a1a2e;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid #1a1a2e;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1a1a2e;
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stats div {
    font-size: 14px;
    color: #777;
}

.hero-stats span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.hero-image {
    position: relative;
}

.hero-image .hero-bg {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-radius: 20px;
    background-image: url('https://images.unsplash.com/photo-1567401893414-76b7b1e5a7a5?w=600');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 60px rgba(192,57,43,0.25);
}

.floating-badge {
    position: absolute;
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    font-weight: 600;
    font-size: 14px;
}

.floating-badge i {
    color: #c0392b;
    margin-right: 8px;
}

.badge-1 {
    top: 20px;
    right: -20px;
    animation: float 3s ease-in-out infinite;
}

.badge-2 {
    bottom: 40px;
    left: -20px;
    animation: float 3s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== FEATURES BANNER ===== */
.features-banner {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.features-banner .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 32px;
    color: #c0392b;
}

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 13px;
    color: #888;
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #c0392b;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 80px 0;
    background: #fafafa;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #c0392b;
}

.category-icon {
    font-size: 36px;
    color: #c0392b;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.category-card p {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.category-card a {
    color: #c0392b;
    font-weight: 600;
    font-size: 13px;
}

/* ===== PRODUCTS ===== */
.products {
    padding: 80px 0;
}

.products.featured-products {
    background: #fafafa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-image {
    height: 280px;
    background: #f5f5f5;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1596755094514-f87e34085b2c?w=400');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.product-image:hover .quick-view {
    opacity: 1;
    transform: translateY(0);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.product-tag.sale {
    background: #e67e22;
}

.wishlist-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-icon:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.quick-view button {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.quick-view button:hover {
    background: #c0392b;
    color: #fff;
}

.product-info {
    padding: 18px 20px 22px;
}

.product-rating {
    font-size: 13px;
    color: #f39c12;
    margin-bottom: 8px;
}

.product-rating span {
    color: #999;
    margin-left: 5px;
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.product-category {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 10px;
}

.old-price {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.product-colors span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.product-colors span:hover {
    border-color: #1a1a2e;
    transform: scale(1.1);
}

.product-sizes {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.product-sizes button {
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.product-sizes button:hover {
    border-color: #c0392b;
    background: #c0392b;
    color: #fff;
}

.btn-add {
    width: 100%;
    padding: 12px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #c0392b;
    transform: scale(1.02);
}

.btn-add i {
    margin-left: 8px;
}

/* ===== NEW ARRIVALS ===== */
.new-arrivals {
    background: #fff;
}

/* ===== OFFERS BANNER ===== */
.offers-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e, #2c3e50);
    color: #fff;
    text-align: center;
}

.offer-content {
    max-width: 700px;
    margin: 0 auto;
}

.offer-tag {
    background: #c0392b;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 15px;
}

.offer-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.offer-content h2 span {
    color: #c0392b;
}

.offer-content p {
    font-size: 18px;
    color: #bbb;
    margin-bottom: 30px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.countdown div {
    text-align: center;
}

.countdown span {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 60px;
}

.countdown div:not(:last-child)::after {
    content: ':';
    position: absolute;
    font-size: 30px;
    margin-left: 15px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 80px 0;
    background: #fafafa;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.testimonial-card .stars {
    color: #f39c12;
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.customer h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.customer span {
    font-size: 13px;
    color: #999;
}

/* ===== ABOUT ===== */
.about {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: #c0392b;
}

.about-content p {
    color: #555;
    font-size: 18px;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    text-align: left;
}

.about-features li {
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.about-features i {
    color: #27ae60;
    margin-right: 12px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.newsletter p {
    font-size: 17px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 14px 30px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #2c3e50;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a2e;
    color: #ddd;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 18px;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #c0392b;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    font-size: 14px;
    color: #777;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 28px;
}

.payment-icons i {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.payment-icons i:hover {
    opacity: 1;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image .hero-bg {
        height: 350px;
    }
    .features-banner .container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .about-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .top-links {
        display: none;
    }
    .top-bar .container {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .countdown {
        gap: 15px;
        flex-wrap: wrap;
    }
    .countdown span {
        font-size: 28px;
        padding: 8px 15px;
        min-width: 50px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .floating-badge {
        display: none;
    }
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .features-banner .container {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    .newsletter-form button {
        border-radius: 30px;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
}