/*
Theme Name: Zorozo Shop
Author: Amita
Version: 1.0
*/

/* ===== COLOR SYSTEM ===== */
:root {
    --bg: #f5f1ec;
    --primary: #2f2a26;
    --accent: #c8a97e;
    --text: #3a3a3a;
    --white: #ffffff;
    --border: #e5dfd8;
}

/* ===== GLOBAL ===== */
body {
    margin:  0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Georgia', serif;
}

/* =========================
   HEADER WRAPPER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgb(120 108 99);
    border-bottom: 1px solid var(--border);
}
.container {
    margin: 0 auto;
    padding: 0.5rem 1rem;
}
/* Container specific to header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    /* padding: 0.5rem 3rem; */
}

/* =========================
   LEFT: LOGO
========================= */
.header-left {
    flex: 0 0 auto;
}

.logo img {
    height: clamp(2.5rem, 4vw, 3.5rem); /* responsive scaling */
    width: auto;
    border-radius: 12px;
}

/* =========================
   CENTER: SEARCH
========================= */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
}

/* Search input */
.search-form input[type="search"] {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

/* Search button */
.search-form button {
    border: none;
    background: transparent;
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1rem;
}

/* =========================
   RIGHT: MENU + CART
========================= */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Menu */
.menu ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    font-size: 0.9rem;
    color: var(--primary);
}

/* Cart */
.cart-icon a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1rem;
}



/* ===== SHOP GRID ===== */
.woocommerce {
    padding: 50px 0;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* ===== PRODUCT CARD ===== */
.woocommerce ul.products li.product {
    background: var(--white);
    padding: 15px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Image */
.woocommerce ul.products li.product img {
    border-radius: 6px;
}

/* Title */
.woocommerce ul.products li.product h2 {
    font-size: 14px;
    margin: 10px 0;
}

/* Price */
.woocommerce ul.products li.product .price {
    color: var(--accent);
    font-weight: 600;
}

/* Button */
.woocommerce ul.products li.product .button {
    background: var(--primary);
    color: var(--white);
    padding: 10px;
    margin-top: 10px;
    display: block;
}

/* ===== PRODUCT PAGE ===== */
.product-page {
    margin: 50px auto;
}

.single-product div.product {
    display: flex;
    gap: 50px;
}

/* Title */
.single-product .product_title {
    font-size: 30px;
    color: var(--primary);
}

/* Price */
.single-product .price {
    font-size: 22px;
    color: var(--accent);
}

/* Button */
.single_add_to_cart_button {
    background: var(--primary);
    color: var(--white);
    padding: 14px 25px;
    border: none;
}


/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablet */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-center {
        order: 3;
        width: 100%;
    }

    .search-form {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .menu {
        display: none; /* later we add hamburger */
    }

    .header-container {
        gap: 0.5rem;
    }

    .cart-icon a {
        font-size: 0.9rem;
    }
}


@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .single-product div.product {
        flex-direction: column;
    }
}