﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-muted: #a1a1a1;
    --gold: #d4af37;
    --gold-hover: #f1c40f;
    --border: #333;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* --- Global Utilities --- */
.section-spacer {
    margin-bottom: 80px;
}

.text-gold {
    color: var(--gold) !important;
}

/* --- 1. Hero Carousel --- */
.hero-section {
    position: relative;
    height: 85vh;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.carousel-item {
    height: 85vh;
}

    .carousel-item img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        filter: brightness(0.5);
        transition: transform 8s linear;
    }

    .carousel-item.active img {
        transform: scale(1.1);
    }

.carousel-caption {
    bottom: 35%;
    z-index: 2;
}

    .carousel-caption h5 {
        color: var(--gold);
        letter-spacing: 4px;
        font-weight: 700;
        text-transform: uppercase;
        animation: fadeInUp 1s ease both;
    }

    .carousel-caption h1 {
        font-size: 4rem;
        font-weight: 800;
        margin: 15px 0 30px;
        text-shadow: 0 5px 15px rgba(0,0,0,0.8);
        animation: fadeInUp 1s ease 0.3s both;
    }

.btn-gold {
    background: linear-gradient(45deg, var(--gold), #b8860b);
    color: #000;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    animation: fadeInUp 1s ease 0.6s both;
}

    .btn-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        color: #000;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 2. Features --- */
.features-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

.feature-box {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.4s;
}

    .feature-box:hover {
        border-color: var(--gold);
        transform: translateY(-5px);
    }

    .feature-box i {
        font-size: 2rem;
        color: var(--gold);
        margin-bottom: 15px;
    }

/* --- 3. Section Titles --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

.view-all-btn {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

    .view-all-btn:hover {
        color: var(--gold);
    }

/* --- 4. Product Card --- */
.product-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: 0.4s ease;
    border: 1px solid transparent;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-10px);
        border-color: rgba(212, 175, 55, 0.3);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

.image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.6s;
    }

.product-card:hover .image-wrapper img {
    transform: scale(1.1);
}

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.overlay-actions {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.product-card:hover .overlay-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-action:hover {
        background: var(--gold);
        color: #fff;
        transform: scale(1.1);
    }

.card-details {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .product-title a {
        color: var(--store-product-title, #fff);
        text-decoration: none;
    }

        .product-title a:hover {
            color: var(--gold);
        }

.category-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.price-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: baseline;
}

.new-price {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 800;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* --- 5. Mid-Page Promo Banner --- */
.mid-banner {
    position: relative;
    background: url('/images/men.jpg') fixed center center/cover; /* Parallax Effect */
    height: 400px;
    display: flex;
    align-items: center;
    margin: 60px 0;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.mid-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.6) 100%);
}

.mid-banner-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    width: 100%;
    max-width: 600px;
}

.mid-banner h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.mid-banner p {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .features-section {
        margin-top: 0;
        padding-top: 30px;
    }

    .mid-banner h2 {
        font-size: 2rem;
    }

    .mid-banner-content {
        padding: 30px;
    }
}
