/*
Theme Name: FreshGill Theme
*/

/* ===== GLOBAL RESET ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    font-family: sans-serif;
}

/* ===== HEADER ===== */
header {
    width: 100%;
    background: #fff !important;
    border-bottom: 1px solid #eee;
}

.top-bar {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px;
}

/* LOGO */
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    width: 40px;
}

/* SEARCH */
.search-bar {
    flex: 1 !important;
}

.search-bar form {
    display: flex !important;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
}

.search-bar button {
    padding: 10px;
    background: #006699;
    color: #fff;
    border: none;
}

/* SHOP BUTTON */
.shop-btn a {
    background: #006699 !important;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

/* CART */
.cart-btn a {
    color: #006699 !important;
    font-weight: bold;
    text-decoration: none;
}

/* ===== HERO ===== */
.hero-banner {
    width: 100%;
    padding: 20px !important;
}

.hero-banner img {
    width: 100% !important;
    display: block;
    border-radius: 20px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px !important;
    margin: auto;
    padding: 20px !important;
}

/* ===== WOOCOMMERCE ===== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product {
    background: #fff !important;
    padding: 12px !important;
    border-radius: 12px;
    text-align: center;
}

.woocommerce ul.products li.product img {
    border-radius: 10px;
}

/* BUTTON */
.woocommerce a.button {
    background: #2ecc71 !important;
    color: #fff !important;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .top-bar {
        flex-wrap: wrap !important;
    }

    .search-bar {
        width: 100% !important;
    }
}
}

/* ===== CATEGORY GRID ===== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* ===== CATEGORY CARD ===== */
.woocommerce ul.products li.product-category {
    background: #f4f9fd;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.woocommerce ul.products li.product-category:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* CATEGORY IMAGE */
.woocommerce ul.products li.product-category img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* CATEGORY TITLE */
.woocommerce ul.products li.product-category h2 {
    font-size: 15px;
    color: #333;
}

/* HIDE COUNT */
.woocommerce ul.products li.product-category .count {
    display: none !important;
}


/* ===== PRODUCT GRID ===== */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    text-align: left;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

/* PRODUCT IMAGE */
.woocommerce ul.products li.product img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
}

/* TITLE */
.woocommerce ul.products li.product h2 {
    font-size: 15px;
    margin: 10px 0 5px;
}

/* PRICE */
.woocommerce ul.products li.product .price {
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

/* ADD TO CART (BOTTOM FIX) */
.woocommerce ul.products li.product .button {
    margin-top: auto;
    width: 100%;
    background: #2ecc71 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

/* OPTIONAL: REMOVE EXTRA LINKS */
.woocommerce ul.products li.product a {
    text-decoration: none;
    color: inherit;
}
