@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #ff4d4f;
    --secondary-color: #ffb347;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

img {
    max-width: 100%;
    display: block;
}

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

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 60vh;
    /* Almost full screen */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #360000 100%);
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px;
    max-width: 800px;
    transform: translateY(-10px);
    /* Move content up to avoid overlap */
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.4);
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: #e03e3e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 79, 0.6);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin: 80px 0 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Featured Vendors (Cards) --- */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    border-top: 4px solid transparent;
    /* Placeholder to keep layout stable if we want to animate it, or just plain style */
}

/* Add a gold/red accent top border to cards to tie them to the theme */
.vendor-card {
    border-top: 4px solid var(--primary-color);
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

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

.vendor-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vendor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vendor-card:hover .vendor-img {
    transform: scale(1.1);
}

.vendor-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vendor-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-info {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.price-tag {
    color: var(--primary-color);
    font-weight: 700;
}

.vendor-actions {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-order {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-order:hover {
    background-color: var(--primary-color);
}

.fav-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.fav-btn-icon:hover {
    transform: scale(1.2);
}

.fav-btn-icon img {
    width: 24px;
    height: 24px;
}

/* --- Features Section --- */
.features-section {
    background-color: var(--white);
    padding: 40px 0;
    text-align: center;
}

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

.feature-item {
    padding: 10px;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Offers Section --- */
.offers-section-modern {
    padding: 40px 0;
}

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

.offer-card-modern {
    background: linear-gradient(135deg, #fff 0%, #fff0f3 100%);
    border: 1px solid rgba(255, 77, 79, 0.3);
    border-top: 4px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: var(--transition);
}

.offer-card-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.offer-badge-modern {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.offer-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    margin-top: 8px;
}

/* --- Grayscale Utility --- */
.filter-gray {
    filter: grayscale(100%);
}

.filter-gray:hover {
    filter: none;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: 60vh;
    }

    .section-header {
        margin: 50px 0 30px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* --- Scroll Down Animation --- */
.scroll-down {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding-top: 40px;
    /* Space for arrows */
    position: relative;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 5px;
    opacity: 0.8;
}

.scroll-down a span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 16px;
    /* Smaller size */
    height: 16px;
    /* Smaller size */
    margin-left: -8px;
    /* Center it (half of width) */
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    animation: scrollFade 2s infinite;
    opacity: 0;
    box-sizing: border-box;
}

.scroll-down a span:nth-of-type(1) {
    top: 0px;
    animation-delay: 0s;
}

.scroll-down a span:nth-of-type(2) {
    top: 10px;
    animation-delay: .15s;
}

.scroll-down a span:nth-of-type(3) {
    top: 20px;
    animation-delay: .3s;
}

@keyframes scrollFade {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translate(0, 0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(-45deg) translate(-10px, 10px);
    }
}