/*
Theme Name: Storefront Child - GraffitiWipe
Template: storefront
*/

/* =====================
   HEADER
   ===================== */
.site-header, .main-navigation {
    background-color: #8A8D8F !important;
}
.site-header a, .main-navigation a, .site-title a, .site-description {
    color: #ffffff !important;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
    background-color: #8A8D8F !important;
    padding: 25px 20px !important;
}
.site-footer, .site-footer a, .site-footer p {
    color: #ffffff !important;
}
/* Hide default Storefront copyright line */
.site-info {
    display: none !important;
}

/* =====================
   LAYOUT - FULL WIDTH, NO SIDEBAR
   ===================== */
#secondary,
.widget-area {
    display: none !important;
}
#primary,
.site-main {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    max-width: 1200px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* =====================
   PRODUCT GRID - CARD STYLE
   ===================== */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    float: none !important;
    width: 100% !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transition: box-shadow 0.2s ease !important;
    overflow: hidden !important;
}

ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* Product image — fill the card width, square crop */
ul.products li.product a img,
ul.products li.product .woocommerce-loop-product__link img {
    width: 100% !important;
    height: 280px !important;
    object-fit: contain !important;
    background: #f9f9f9 !important;
    display: block !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Product title */
ul.products li.product .woocommerce-loop-product__title {
    padding: 12px 16px 4px !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #333 !important;
}

/* Price */
ul.products li.product .price {
    font-size: 1.1em !important;
    color: #8A8D8F !important;
    font-weight: 700 !important;
    padding: 4px 16px 12px !important;
}

/* Add to cart button */
ul.products li.product .button {
    margin: 0 16px 16px !important;
    width: calc(100% - 32px) !important;
    box-sizing: border-box !important;
    background: #8A8D8F !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.85em !important;
}
ul.products li.product .button:hover {
    background: #6d7072 !important;
    color: #fff !important;
}

/* =====================
   MOBILE RESPONSIVE
   ===================== */
@media (max-width: 640px) {
    ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    ul.products li.product a img,
    ul.products li.product .woocommerce-loop-product__link img {
        height: 220px !important;
    }
    #primary,
    .site-main {
        padding: 0 12px !important;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    ul.products li.product a img,
    ul.products li.product .woocommerce-loop-product__link img {
        height: 220px !important;
    }
}
