/*
Theme Name: Artwork Empire
Theme URI: https://artworkvietnam.com
Description: Child theme of Luminate for the Artwork Vietnam e-commerce store.
Author: Artwork Empire
Author URI: https://artworkvietnam.com
Template: luminate
Version: 5.3.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artwork-empire
*/

/* --- Buttons --- */
body .wp-block-buttons {
    margin-top: 2em !important;
    margin-bottom: 2em !important;
}

body .wp-block-button__link,
body .wp-element-button {
    padding: 14px 40px !important;
}

/* --- Headings --- */
body .entry-content h2,
body .wp-block-post-content h2,
body .wp-block-heading {
    margin-top: 2em !important;
    margin-bottom: 0.8em !important;
}

/* --- Media text --- */
body .wp-block-media-text {
    margin-top: 2em !important;
    margin-bottom: 2em !important;
}

/* --- Columns --- */
body .wp-block-columns {
    gap: 2em !important;
    margin-top: 1.5em !important;
    margin-bottom: 1.5em !important;
}

/* --- Trust icons gap --- */
.wp-block-group.is-nowrap.is-layout-flex {
    gap: 16px !important;
}

/* --- Navigation --- */
.wp-block-navigation .wp-block-navigation-item {
    padding: 0 0.6em;
}

/* --- Spacers --- */
body .wp-block-spacer {
    min-height: 20px !important;
}

/* --- Art style links --- */
.wp-block-columns .wp-block-column .wp-block-paragraph a {
    text-decoration: none;
    font-weight: 500;
}

/* --- Mobile touch target fix --- */
@media (max-width: 768px) {
    .wc-block-components-product-button__button,
    .wp-block-button__link,
    nav a,
    .woocommerce-loop-product__link {
        min-height: 44px;
        min-width: 44px;
    }

    .wp-block-navigation-item {
        padding: 8px 4px;
    }
}

/* --- FAQ accordion styling (category & page SEO content) --- */
.category-seo-content details,
.wp-block-group.alignfull details {
    border-bottom: 1px solid #E4E4E1;
    padding: 0;
}

.category-seo-content details:first-of-type,
.wp-block-group.alignfull details:first-of-type {
    border-top: 1px solid #E4E4E1;
}

.category-seo-content summary,
.wp-block-group.alignfull summary {
    font-size: 15px;
    font-weight: 500;
    color: #242A2E;
    padding: 1rem 2rem 1rem 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.4;
}

.category-seo-content summary::-webkit-details-marker,
.wp-block-group.alignfull summary::-webkit-details-marker {
    display: none;
}

.category-seo-content summary::after,
.wp-block-group.alignfull summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 1rem;
    font-size: 18px;
    font-weight: 300;
    color: #999;
    transition: transform 0.2s;
}

.category-seo-content details[open] summary::after,
.wp-block-group.alignfull details[open] summary::after {
    content: "−";
}

.category-seo-content details p,
.wp-block-group.alignfull details p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    padding: 0 0 1rem;
}

/* Translate mini-cart label per language */
html[lang="fr-FR"] .wc-block-mini-cart__button:before { content: "Panier"; }
html[lang="de-DE"] .wc-block-mini-cart__button:before { content: "Warenkorb"; }
html[lang="ja"] .wc-block-mini-cart__button:before { content: "カート"; }
html[lang="ko-KR"] .wc-block-mini-cart__button:before { content: "장바구니"; }
html[lang="es-ES"] .wc-block-mini-cart__button:before { content: "Carrito"; }

/* Italian (it) — Auto-generated by AE Translation Engine */
html[lang="it-IT"] .wc-block-mini-cart__button:before { content: "Carrello"; }




/* ── Product gallery: no cropping on paintings ────── */

.woocommerce-product-gallery__image {
  height: auto !important;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image .wp-post-image {
  object-fit: contain !important;
  aspect-ratio: auto !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}
