/*
Theme Name: Astra Child
Template: astra
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

/* ===== GLOBAL ===== */
body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: #FFF5F5 !important;
    color: #1A1A2E !important;
    font-weight: 600 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #1A1A2E !important;
}

a { color: #FF6B6B !important; }
a:hover { color: #E85555 !important; }

/* ===== WOOCOMMERCE ===== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button,
button[type="submit"] {
    background-color: #FF6B6B !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover {
    background-color: #E85555 !important;
    color: #FFFFFF !important;
}

.woocommerce .price,
.woocommerce .amount,
.woocommerce-Price-amount {
    color: #FF6B6B !important;
    font-weight: 800 !important;
}

.woocommerce ul.products li.product {
    border: 1px solid #FFE4E4 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    background: #fff !important;
    margin-bottom: 16px !important;
}

/* ===== HOMEPAGE FULL WIDTH FIX ===== */
body.home #content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.home .site-content {
    padding: 0 !important;
}

body.home #primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

body.home .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.home .entry-header,
body.home .entry-footer,
body.home .post-navigation {
    display: none !important;
}

body.home article {
    padding: 0 !important;
    margin: 0 !important;
}

body.home {
    --ast-normal-container-width: 100% !important;
    --ast-content-layout-padding: 0 !important;
}

/* Hide subcategory tiles on category pages */
.miau-subcat-grid { display: none !important; }

/* Show product name, SKU and description in MODEL view mode */
.miau-products-grid.mode-model .miau-prod-info {
    display: block !important;
    padding: 10px 12px 12px;
    background: #fff;
}

/* Fix sidebar alignment */
.miau-cat-page {
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .miau-cat-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Fix product thumbnail stretch */
.woocommerce ul.products li.product a img,
.products .product .woocommerce-loop-product__link img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Portrait image ratio for pa_gen taxonomy pages (Bărbat, Damă, Copii) */
.tax-pa_gen .woocommerce-loop-product__link img,
.tax-pa_gen .attachment-woocommerce_thumbnail {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
    height: auto;
}