/* =======================================================
   RYES & SHINE — WooCommerce Branded Styling 
   ======================================================= */

/* Fonts + text color (global to woo pages) */
body.woocommerce,
body.woocommerce-page {
    font-family: "Source Sans Pro", sans-serif;
    color: #241F21;
}

/* ================================
   PRODUCT CARD STYLE
   ================================ */

body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hover animation */
body.woocommerce ul.products li.product:hover,
body.woocommerce-page ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Product image */
body.woocommerce ul.products li.product img,
body.woocommerce-page ul.products li.product img {
    border-radius: 10px;
    width: 85% !important;
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
}

/* Title */
body.woocommerce .woocommerce-loop-product__title,
body.woocommerce-page .woocommerce-loop-product__title {
    font-family: "Zilla Slab", serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Price */
body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #CA981E;
}

/* Button */
body.woocommerce ul.products li.product a.button,
body.woocommerce-page ul.products li.product a.button {
    background: #CA981E;
    color: #fff !important;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.woocommerce ul.products li.product a.button:hover,
body.woocommerce-page ul.products li.product a.button:hover {
    background: #241F21;
    transform: translateY(-2px);
}

/* ================================
   GRID LAYOUT (THE IMPORTANT PART)
   ================================ */

/* unified flex grid */
body.woocommerce ul.products,
body.woocommerce-page ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: flex-start; /* or center - your choice */
    margin: 0 !important;
    padding: 0 !important;
}

/* fixed 3-column grid */
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
    flex: 0 0 calc(33.333% - 24px) !important;
    max-width: calc(33.333% - 24px) !important;
    box-sizing: border-box;
}

/* ================================
   PAGINATION + SITE WIDTH
   ================================ */

body.woocommerce.archive .site-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

body.woocommerce nav.woocommerce-pagination {
    margin-top: 20px !important;
}

/* HARD FORCE 3 COLUMNS — OVERRIDES THEME + WOOCOMMERCE + ELEMENTOR */
body.woocommerce ul.products.columns-3 li.product,
body.woocommerce-page ul.products.columns-3 li.product,
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
    flex: 0 0 calc(33.333% - 24px) !important;
    max-width: calc(33.333% - 24px) !important;
}

/* =========================================================
   FORCE 3-COLUMN GRID EVEN IF WOO OUTPUTS "columns-4"
   ========================================================= */

body.woocommerce ul.products.columns-4 li.product,
body.woocommerce-page ul.products.columns-4 li.product {
    flex: 0 0 calc(33.333% - 24px) !important;
    max-width: calc(33.333% - 24px) !important;
    box-sizing: border-box;
}

/* Ensure the UL becomes a proper flex grid */
body.woocommerce ul.products.columns-4,
body.woocommerce-page ul.products.columns-4 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: flex-start; /* or center if you prefer */
}
body.woocommerce ul.products.columns-4,
body.woocommerce-page ul.products.columns-4 {
    justify-content: center !important;
}


