/* Base & Reset */
:root {
    --primary-color: #e72e77;
    --primary-dark: #cc2566;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #eaeaea;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.mt-4 {
    margin-top: 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--white);
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
}

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

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-links > li > a {
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    display: inline-block;
    position: relative;
}

.nav-links > li > a i {
    font-size: 0.8rem;
    margin-left: 5px;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links > li:hover > a::after {
    width: 100%;
}

.nav-links > li:hover > a {
    color: var(--primary-color);
}

/* Mega Menu */
.dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
}

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

.mega-menu-column h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.mega-menu-column ul li {
    margin-bottom: 12px;
}

.mega-menu-column ul li a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.mega-menu-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.search-icon:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
}

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

.btn-signup {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background-image: url('../assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    width: 100%;
    max-width: 900px;
}

.hero-content p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.search-filter-box {
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

.filter-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
}

.filter-group.border-left {
    border-left: 1px solid var(--border-color);
}

.filter-group i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.filter-group select {
    width: 100%;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
}

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

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

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

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: block;
}

.category-img {
    position: relative;
    padding-top: 130%; /* Aspect ratio for portrait cards */
    overflow: hidden;
}

.category-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: var(--white);
    transition: var(--transition);
}

.category-overlay h3 {
    margin-bottom: 5px;
}

.category-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
}

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

.category-card:hover .category-overlay {
    padding-bottom: 30px;
}

/* Listing Grid */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.vendor-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

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

.vendor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    color: var(--text-gray);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

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

.vendor-info {
    padding: 20px;
}

.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.vendor-name {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.vendor-rating {
    background: #4caf50;
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vendor-rating i {
    font-size: 0.75rem;
}

.vendor-location, .vendor-type {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.vendor-location i {
    color: var(--primary-color);
    margin-right: 5px;
}

.vendor-price {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.price-val {
    font-weight: 600;
    color: var(--text-dark);
}

.price-val small {
    font-weight: 400;
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* Masonry Gallery */
.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.masonry-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.masonry-caption h4 {
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.masonry-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover .masonry-caption {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #222222;
    color: var(--text-light);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-primary);
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-links a {
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-filter-box {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .filter-group {
        width: 100%;
        padding: 10px 0;
    }
    
    .filter-group.border-left {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .btn-search {
        width: 100%;
    }

    .masonry-gallery {
        column-count: 2;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .mega-menu {
        position: static;
        flex-direction: column;
        gap: 20px;
        padding: 20px 0 0;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
    }

    .dropdown.active .mega-menu {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
    }
    
    .nav-links > li > a {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .auth-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .masonry-gallery {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
