/* ============================================================
   ANTONIETA ATELIER — CUSTOM FIXES (Phase 1)
   Cleaned for FSE: removed legacy Poza header-hide rules.
   Only keeps structural overrides needed to render header, footer,
   and product grid at 4 columns consistently.
   ============================================================ */

/* ── TOPBAR (pink) — match official #e89bac ─────────────── */
header.wp-block-template-part > .wp-block-group:first-child {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eee !important;
}

/* Pink topbar above header (uses has-pink-accent-background-color) */
header.wp-block-template-part > .wp-block-group.has-pink-accent-background-color {
    background: #e89bac !important;
    color: #ffffff !important;
    text-align: center !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 9px 40px !important;
    line-height: 1.5 !important;
}

/* ── HEADER inner — align wide ─────────────── */
header.wp-block-template-part .wp-block-group.alignwide {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 14px 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
}

header.wp-block-template-part .wp-block-site-title,
header.wp-block-template-part .wp-block-site-title a {
    font-family: 'Roboto', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #111 !important;
    text-decoration: none !important;
    margin: 0 !important;
}

header.wp-block-template-part .wp-block-navigation {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

header.wp-block-template-part .wp-block-navigation__container {
    gap: 24px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

header.wp-block-template-part .wp-block-navigation a {
    color: #111 !important;
    text-decoration: none !important;
}

header.wp-block-template-part .wp-block-navigation a:hover {
    color: #e89bac !important;
}

header.wp-block-template-part .wc-block-mini-cart,
header.wp-block-template-part .widget_shopping_cart {
    font-family: 'Roboto', sans-serif !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* ── FOOTER (4-col minimalist, matches official) ─────────────── */
footer.wp-block-template-part {
    background: #ffffff !important;
    color: #6d6d6d !important;
    padding: 50px 0 0 !important;
    margin-top: 60px !important;
    font-family: 'Roboto', sans-serif !important;
    border-top: 1px solid #eee !important;
}

footer.wp-block-template-part .wp-block-columns {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    gap: 40px !important;
}

footer.wp-block-template-part .wp-block-column {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

footer.wp-block-template-part h5,
footer.wp-block-template-part .wp-block-heading {
    color: #111 !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 14px !important;
    font-size: 0.85rem !important;
}

footer.wp-block-template-part p {
    color: #6d6d6d !important;
    font-size: 0.85rem !important;
    line-height: 1.7 !important;
    margin: 0 0 6px !important;
}

footer.wp-block-template-part a {
    color: #6d6d6d !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    transition: color 0.2s !important;
}

footer.wp-block-template-part a:hover {
    color: #e89bac !important;
}

footer.wp-block-template-part .wp-block-image img {
    max-width: 200px !important;
    height: auto !important;
}

footer.wp-block-template-part hr.wp-block-separator {
    border-color: #eee !important;
    margin: 40px 40px 20px !important;
    max-width: 1200px !important;
}

footer.wp-block-template-part p.has-text-align-center {
    color: #999 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    margin: 8px 0 30px !important;
}

/* ── PRODUCT GRID 4 columns — works for both .products and wc-block-grid ── */
.woocommerce ul.products.columns-4,
.wc-block-grid__products,
.wc-block-product-collection .wc-block-grid__products,
.woocommerce-page .products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products.columns-4,
    .wc-block-grid__products,
    .woocommerce-page .products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .woocommerce ul.products.columns-4,
    .wc-block-grid__products,
    .woocommerce-page .products { grid-template-columns: repeat(2, 1fr) !important; gap: 16px 12px !important; }
}
@media (max-width: 480px) {
    .woocommerce ul.products.columns-4,
    .wc-block-grid__products,
    .woocommerce-page .products { grid-template-columns: 1fr !important; }
}

/* ── PAGE TITLE on shop / category — small, uppercase ── */
.woocommerce-products-header,
.term-description { display: none !important; }

.boutique-page-title h1,
.woocommerce .boutique-page-title h1,
h1.wp-block-heading.has-large-font-size {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    color: #111 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* ── STAR RATING pink (official) ── */
.woocommerce .star-rating { color: #e89bac !important; }

/* ── REMOVE default WP post-title from FSE pages (we control H1 in template) ── */
main > h1.wp-block-post-title { display: none !important; }

/* ── PAGINATION ── */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 8px 14px !important;
    border: 1px solid #eee !important;
    color: #111 !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}
