/* ========================================
   SUNSTRIKE E-Commerce Website Stylesheet
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a1e3d;
    --primary-light: #1a3a52;
    --accent-gold: #f4a035;
    --accent-gold-dark: #d68a1f;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    line-height: 1.6;
}

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

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo i {
    color: var(--accent-gold);
    font-size: 32px;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    flex: 1;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-light);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    font-size: 12px;
}

.dropdown-menu a:hover {
    background-color: rgba(244, 160, 53, 0.1);
    color: var(--accent-gold);
}

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-box {
    display: flex;
    background-color: var(--text-light);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    min-width: 200px;
    outline: none;
}

.search-box button {
    background-color: var(--accent-gold);
    border: none;
    padding: 8px 15px;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: var(--accent-gold-dark);
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn, .cart-btn {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.login-btn:hover {
    background-color: rgba(244, 160, 53, 0.2);
    color: var(--accent-gold);
}

.cart-btn {
    position: relative;
}

.cart-btn:hover {
    background-color: rgba(244, 160, 53, 0.2);
    color: var(--accent-gold);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    padding: 20px;
}

.hero-label {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: var(--accent-gold);
}

.hero-description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -40px;
    width: 200px;
    height: 200px;
    background-color: var(--accent-gold);
    opacity: 0.1;
    border-radius: 50%;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--accent-gold-dark);
    transform: translateX(5px);
}

.btn-secondary {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    width: 100%;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--accent-gold-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-warning {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

.btn-warning:hover {
    background-color: var(--accent-gold-dark);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    padding: 60px 0;
    background-color: #f8f9fa;
}

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

.feature-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-gold);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 700;
}

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

/* ========================================
   CATEGORIES SECTION
   ======================================== */

.categories {
    padding: 60px 0;
}

.categories h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-dark);
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-card h4 {
    font-size: 14px;
    margin-top: 15px;
    color: var(--primary-dark);
    font-weight: 600;
}

.category-card p {
    font-size: 12px;
    color: var(--text-gray);
    padding: 0 10px 15px;
}

/* ========================================
   FEATURED PRODUCTS
   ======================================== */

.featured-products {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary-dark);
    font-weight: 700;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-nav button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.carousel-nav button:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-dark);
}

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

.product-card {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.product-image .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 600;
    min-height: 32px;
}

.product-info .brand {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.price-section {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
}

.price-section .price {
    color: var(--accent-gold);
    font-size: 16px;
}

.price-section .original-price {
    color: var(--text-gray);
    font-size: 13px;
    text-decoration: line-through;
}

.product-info .btn {
    margin-top: auto;
}

.view-all {
    text-align: center;
}

.view-all .btn {
    margin: 0 auto;
}

/* ========================================
   TOP BRANDS SECTION
   ======================================== */

.top-brands {
    padding: 60px 0;
}

.brands-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.brands-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-dark);
    font-weight: 700;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.brand-logo {
    background-color: var(--text-light);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: all 0.3s;
}

.brand-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-logo img {
    max-width: 90%;
    max-height: 70px;
    object-fit: contain;
}

.view-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.view-link:hover {
    color: var(--accent-gold);
    gap: 10px;
}

.promo-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.promo-box {
    padding: 40px;
    color: var(--text-light);
}

.promo-box h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.promo-box .highlight-text {
    color: var(--accent-gold);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.promo-description {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.95;
}

.promo-box .btn {
    margin-bottom: 20px;
}

.promo-perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.promo-perks span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
}

.footer-section p {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.6;
    opacity: 0.85;
}

.footer-section i {
    color: var(--accent-gold);
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background-color: rgba(244, 160, 53, 0.1);
    border-radius: 50%;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 30px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.payment-icons img:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(244, 160, 53, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav-wrapper {
        gap: 15px;
    }

    .nav-menu {
        display: none;
    }

    .search-box input {
        min-width: 120px;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-image::after {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-wrapper {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

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

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

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-box {
        padding: 20px;
    }

    .promo-box h3 {
        font-size: 18px;
    }

    .promo-box .highlight-text {
        font-size: 20px;
    }
}
