
/* ========================================
   ZIVO MARKETPLACE - MAIN STYLESHEET
======================================== */

:root {
    --primary: #171717;
    --accent: #f5a623;
    --accent-dark: #e18b08;
    --background: #ffffff;
    --surface: #f7f8fa;
    --border: #e5e7eb;
    --text: #202124;
    --muted: #707782;
    --success: #15803d;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1240px, 92%);
    margin: auto;
}

/* ========================================
   TOP BAR
======================================== */

.top-bar {
    background: #f5f5f5;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}

.top-bar-content {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-content div {
    display: flex;
    gap: 22px;
}

.top-bar a:hover {
    color: var(--accent-dark);
}

/* ========================================
   MAIN HEADER
======================================== */

.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-content {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--primary);
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
}

.search-box {
    display: flex;
    height: 48px;
    flex: 1;
    max-width: 620px;
    border: 2px solid var(--primary);
    border-radius: 7px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0 17px;
    font-size: 14px;
}

.search-box button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 0 28px;
    font-weight: 700;
    transition: 0.2s;
}

.search-box button:hover {
    background: var(--accent-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.header-actions a:hover {
    color: var(--accent-dark);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 7px;
}

#cartCount {
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #171717;
    font-size: 11px;
}

/* ========================================
   NAVIGATION
======================================== */

.main-nav {
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 35px;
    min-height: 49px;
    overflow-x: auto;
}

.nav-content a {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #444;
    transition: 0.2s;
}

.nav-content a:hover {
    color: var(--accent-dark);
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    background: #f8f8f6;
    overflow: hidden;
}

.hero-content {
    min-height: 430px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
    padding-top: 35px;
    padding-bottom: 35px;
}

.hero-label,
.section-label {
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-text h1 {
    margin: 15px 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.12;
    letter-spacing: -2px;
    font-weight: 800;
}

.hero-text h1 span {
    color: var(--accent-dark);
}

.hero-text p {
    max-width: 480px;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 27px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 24px;
    border-radius: 6px;
    background: var(--accent);
    color: #171717;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s;
}

.primary-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.hero-image {
    height: 340px;
    overflow: hidden;
    border-radius: 15px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   SECTION HEADINGS
======================================== */

.categories-section,
.products-section {
    padding-top: 75px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin-top: 5px;
    font-size: 29px;
    letter-spacing: -0.8px;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ========================================
   CATEGORY GRID
======================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 17px;
}

.category-card {
    min-height: 145px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 10px;
    text-align: center;
    transition: 0.25s;
}

.category-card:hover {
    border-color: var(--accent);
    background: #fffaf0;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.category-card span {
    font-size: 35px;
    display: block;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 13px;
    font-weight: 700;
}

/* ========================================
   PRODUCTS SECTION
======================================== */

.products-section {
    padding-bottom: 75px;
}

.product-heading select {
    min-width: 170px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    outline: none;
    font-size: 12px;
}

.active-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-button {
    border: 1px solid var(--border);
    background: #fff;
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.filter-button.active,
.filter-button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 55px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    margin-top: 20px;
}

.empty-state h3 {
    font-size: 19px;
    margin-bottom: 7px;
}

.empty-state p {
    color: var(--muted);
    font-size: 13px;
}

/* ========================================
   PRODUCT CARD
======================================== */

.product-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.product-image {
    position: relative;
    height: 210px;
    background: var(--surface);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #171717;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
}

.product-info {
    padding: 15px;
}

.product-category {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
}

.product-seller {
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}

.add-to-cart {
    width: 100%;
    margin-top: 14px;
    min-height: 39px;
    border: none;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.add-to-cart:hover {
    background: var(--accent-dark);
    color: #171717;
}

/* ========================================
   SELLER BANNER
======================================== */

.seller-banner {
    background: #171717;
    color: #fff;
    border-radius: 15px;
    min-height: 240px;
    margin-bottom: 75px;
    padding: 40px 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller-banner span {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
}

.seller-banner h2 {
    font-size: 30px;
    margin: 8px 0;
}

.seller-banner p {
    font-size: 13px;
    color: #c5c5c5;
    margin-bottom: 20px;
}

.seller-banner-icon {
    font-size: 95px;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: #f5f5f5;
    border-top: 1px solid var(--border);
}

.footer-content {
    min-height: 170px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-size: 32px;
}

.footer-content p {
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    color: #555;
}

.footer-links a:hover {
    color: var(--accent-dark);
}

.copyright {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 17px;
    font-size: 11px;
    color: var(--muted);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1000px) {

    .header-content {
        gap: 15px;
    }

    .header-actions {
        gap: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content {
        gap: 25px;
    }
}

@media (max-width: 700px) {

    .top-bar-content {
        justify-content: center;
    }

    .top-bar-content div {
        display: none;
    }

    .header-content {
        padding-top: 15px;
        padding-bottom: 15px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 31px;
    }

    .search-box {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .header-actions {
        gap: 12px;
        font-size: 11px;
    }

    .nav-content {
        gap: 22px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .hero-text h1 {
        font-size: 43px;
    }

    .hero-image {
        height: 230px;
    }

    .categories-section,
    .products-section {
        padding-top: 50px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        min-height: 125px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 11px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .product-heading select {
        min-width: 125px;
        max-width: 145px;
        font-size: 10px;
    }

    .seller-banner {
        padding: 30px 22px;
        min-height: 220px;
        margin-bottom: 45px;
    }

    .seller-banner h2 {
        font-size: 23px;
    }

    .seller-banner-icon {
        font-size: 55px;
    }

    .footer-content {
        padding-top: 35px;
        padding-bottom: 35px;
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 380px) {

    .header-actions {
        gap: 8px;
        font-size: 10px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .product-grid {
        gap: 9px;
    }

    .product-image {
        height: 125px;
    }
}
