/* =========================================================
   CREATOR NETWORK / PRODUCT DISPLAY
   4 PRODUCTS IN ONE ROW — CENTERED — MINIMAL
========================================================= */

/* ---------------------------------------------------------
   1. REMOVE UNWANTED SECTION / CONTAINER SPACE & GRID CLEARS
--------------------------------------------------------- */

.woocommerce,
.woocommerce-page,
.woocommerce .site-main,
.woocommerce-page .site-main {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce .content-area,
.woocommerce-page .content-area {
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Elementor / common page-builder containers */
.woocommerce .elementor-section,
.woocommerce .elementor-container,
.woocommerce .elementor-widget,
.woocommerce .elementor-widget-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* FIX: Prevent WooCommerce clearfix pseudo-elements from taking up grid cells */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}


/* ---------------------------------------------------------
   2. PRODUCT AREA
--------------------------------------------------------- */

.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px 24px !important;

    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px !important;

    align-items: stretch !important;
    justify-items: center !important;
    text-align: center !important;
    list-style: none !important;
}


/* ---------------------------------------------------------
   3. REMOVE DEFAULT WOOCOMMERCE WIDTH
--------------------------------------------------------- */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;

    text-align: center !important;
    background: #FFFFFF;
    border: 1px solid #E8E8F0;
    border-radius: 22px;
    overflow: hidden;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}


/* ---------------------------------------------------------
   4. CARD HOVER
--------------------------------------------------------- */

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 249, 51, 0.25);
    box-shadow: 0 18px 45px rgba(10, 10, 10, 0.09);
}


/* ---------------------------------------------------------
   5. PRODUCT IMAGE
--------------------------------------------------------- */

.woocommerce ul.products li.product a,
ul.products li.product a {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product a img,
ul.products li.product a img {
    display: block !important;
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    margin: 0 auto 20px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    transition: transform 0.35s ease;
}

.woocommerce ul.products li.product:hover a img,
ul.products li.product:hover a img {
    transform: scale(1.02);
}


/* ---------------------------------------------------------
   6. PRODUCT TITLE
--------------------------------------------------------- */

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-family: "Sora", sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.2px;
    color: #0A0A0A !important;
    text-align: center !important;
}


/* ---------------------------------------------------------
   7. PRODUCT PRICE
--------------------------------------------------------- */

.woocommerce ul.products li.product .price,
ul.products li.product .price {
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    font-family: "Inter", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0A0A0A !important;
    text-align: center !important;
}


/* ---------------------------------------------------------
   8. DESCRIPTION / NICHE
--------------------------------------------------------- */

.woocommerce ul.products li.product .description,
.woocommerce ul.products li.product .short-description {
    width: 100% !important;
    margin: 0 auto 15px !important;
    text-align: center !important;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #787878;
}

.woocommerce ul.products li.product .creator-niche {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    color: #3F3F46 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin: 4px 0 12px !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}


/* ---------------------------------------------------------
   9. ADD TO CART / READ MORE BUTTON
--------------------------------------------------------- */

.woocommerce ul.products li.product .button,
ul.products li.product .button {
    width: 100% !important;
    min-height: 48px !important;
    margin: auto 0 0 !important;
    padding: 13px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border: none !important;
    border-radius: 11px !important;
    background: linear-gradient(100deg, #C8F933, #C8F933) !important;
    color: #0A0A0A !important;
    font-family: "Inter", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover {
    color: #0A0A0A !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(200, 249, 51, 0.25);
}


/* ---------------------------------------------------------
   10. RATING & SALE BADGE
--------------------------------------------------------- */

.woocommerce ul.products li.product .star-rating {
    float: none !important;
    margin: 5px auto 12px !important;
    text-align: center !important;
    color: #0A0A0A !important;
}

.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    top: 25px !important;
    left: 25px !important;
    right: auto !important;
    margin: 0 !important;
    min-height: auto !important;
    min-width: auto !important;
    padding: 6px 10px !important;
    border-radius: 50px !important;
    background: #0A0A0A !important;
    color: #FFFFFF !important;
    font-family: "Inter", sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    z-index: 5;
}


/* ---------------------------------------------------------
   11. CREATOR FOLLOWERS BADGE
--------------------------------------------------------- */

.creator-followers-badge {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 999 !important;

    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 9px 15px !important;
    min-width: 125px !important;
    box-sizing: border-box !important;

    background: linear-gradient(135deg, #C8F933, #C8F933) !important;
    color: #0A0A0A !important;

    border-radius: 18px !important;
    box-shadow: 0 5px 15px rgba(10, 10, 10, 0.25);
    white-space: nowrap !important;
}

.creator-followers-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.creator-followers-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.15 !important;
    min-width: 0 !important;
}

.creator-followers-text strong {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0A0A0A !important;
    line-height: 1.1 !important;
}

.creator-followers-text small {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #0A0A0A !important;
    line-height: 1.1 !important;
}


/* ---------------------------------------------------------
   12. HIDE DEFAULTS / CLEANUP
--------------------------------------------------------- */

.woocommerce-result-count {
    display: none !important;
}

.woocommerce-ordering {
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 25px !important;
}

.woocommerce-ordering select {
    padding: 10px 35px 10px 14px !important;
    border: 1px solid #E5E5ED !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    color: #0A0A0A !important;
}

.woocommerce ul.products li.product:empty,
ul.products li.product:empty {
    display: none !important;
}

.woocommerce .products-wrapper,
.woocommerce .product-wrapper,
.woocommerce .products-container {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* ---------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
--------------------------------------------------------- */

@media (max-width: 1000px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    .woocommerce ul.products li.product a img,
    ul.products li.product a img {
        height: 260px !important;
    }
}

@media (max-width: 768px) {
    .creator-followers-badge {
        top: 12px !important;
        right: 12px !important;
        gap: 6px !important;
        padding: 7px 11px !important;
        min-width: 105px !important;
        border-radius: 15px !important;
    }

    .creator-followers-text strong {
        font-size: 14px !important;
    }

    .creator-followers-text small {
        font-size: 10px !important;
    }

    .woocommerce ul.products li.product .creator-niche {
        font-size: 13px !important;
        margin: 3px 0 10px !important;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        padding: 9px !important;
        border-radius: 16px !important;
    }

    .woocommerce ul.products li.product a img,
    ul.products li.product a img {
        height: 170px !important;
        border-radius: 12px !important;
        margin-bottom: 13px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 13px !important;
    }

    .woocommerce ul.products li.product .button {
        min-height: 40px !important;
        padding: 9px 8px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .creator-followers-badge {
        top: 8px !important;
        right: 8px !important;
        gap: 5px !important;
        padding: 6px 9px !important;
        min-width: 88px !important;
        border-radius: 13px !important;
        box-shadow: 0 3px 10px rgba(10, 10, 10, 0.22);
    }

    .creator-followers-icon {
        transform: scale(0.85);
    }

    .creator-followers-text strong {
        font-size: 12px !important;
    }

    .creator-followers-text small {
        font-size: 9px !important;
    }
}

@media (max-width: 380px) {
    .woocommerce ul.products,
    ul.products {
        gap: 8px !important;
        padding: 8px !important;
    }

    .woocommerce ul.products li.product a img,
    ul.products li.product a img {
        height: 145px !important;
    }

    .creator-followers-badge {
        top: 6px !important;
        right: 6px !important;
        gap: 4px !important;
        padding: 5px 7px !important;
        min-width: 78px !important;
        border-radius: 11px !important;
    }

    .creator-followers-icon {
        transform: scale(0.75);
    }

    .creator-followers-text strong {
        font-size: 11px !important;
    }

    .creator-followers-text small {
        font-size: 8px !important;
    }
}

/* Background behind the creator grids (was set on the Elementor container) */
.creator-grid-section {
  background: #FAFAFC;
  padding: 0 0 40px;
}

.creator-grid-section ul.products li.product a img {
  background: #EEF0F6;
}


/* Laravel additions: "view all" link under each city grid, and the empty state */
.creator-grid-more {
  margin: 8px 0 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.creator-grid-more a {
  color: #0A0A0A;
}

.creator-grid-empty {
  padding: 40px 24px 90px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #535353;
}

.creator-grid-empty a {
  color: #0A0A0A;
  font-weight: 600;
}

/* Tighter gap between a city heading and its creator grid */
.inf-how-section.inf-city-heading {
  padding-bottom: 0;
}

.inf-city-heading .inf-how-heading {
  margin-bottom: 40px;
}

/* Card links never underline, and photo-less cards show a soft placeholder */
ul.products li.product a {
  text-decoration: none !important;
}

ul.products li.product a img {
  background: #EEF0F6;
}
