/* WordPress/WooCommerce binding layer for Vinfur HTML theme */
:root { --chiaia-black:#111; --chiaia-muted:#777; }
.admin-bar .header-sticky { top: 32px; }
@media (max-width:782px){ .admin-bar .header-sticky { top:46px; } }
.chiaia-text-logo { font-size: 18px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; color:var(--chiaia-black); white-space:nowrap; }
.header .custom-logo { max-width: 190px; height:auto; }
.header .main-menu .navigation > li > a { text-transform: uppercase; letter-spacing: .03em; }
.chiaia-header-cta { font-size:13px; text-transform:uppercase; letter-spacing:.06em; }
.chiaia-mobile-menu { display:grid; gap:14px; list-style:none; padding:0; margin:0; }
.chiaia-mobile-menu a { color:#111; font-size:18px; text-transform:uppercase; }
.chiaia-mobile-sub { list-style:none; padding-left:16px; margin-top:10px; display:grid; gap:8px; }
.chiaia-mobile-sub a { font-size:14px; color:#666; }
.chiaia-vinfur-theme .wp-block-image img { height:auto; }
.chiaia-page-content { max-width:980px; margin:0 auto; }
.chiaia-page-content p { margin-bottom:18px; color:var(--chiaia-muted); line-height:1.75; }
.chiaia-page-content h1,.chiaia-page-content h2,.chiaia-page-content h3 { text-transform:uppercase; margin-bottom:18px; }
.chiaia-page-default { padding:70px 0 90px; }
.chiaia-page-default .entry-content:empty:after { content:'Contenuto non disponibile nel vecchio layout. Questa pagina era probabilmente costruita con shortcode WPBakery/Geometry.'; color:#777; }
.chiaia-home-about-copy p { color:#555; line-height:1.8; }
.chiaia-wc-card .product-img { background:#f7f7f7; }
.chiaia-wc-card .product-img img { object-fit:cover; width:100%; aspect-ratio:1/1; }
.chiaia-wc-card .price-wrap { margin-top:8px; }
.catalog-mode .product-action_list,
.catalog-mode .price-wrap,
.catalog-mode .price,
.catalog-mode .product-info-price,
.catalog-mode .tf-product-total-quantity,
.catalog-mode .tf-sticky-btn-atc,
.catalog-mode .single_add_to_cart_button,
.catalog-mode form.cart,
.catalog-mode .woocommerce-Price-amount,
.catalog-mode .shop-cart,
.catalog-mode .wishlist,
.catalog-mode .compare,
.catalog-mode .s-customer-services,
.catalog-mode .s-customer-services-v01 { display:none !important; }
.catalog-mode .card-product_info { padding-top:16px; }
.chiaia-shop-grid-control .pagination { justify-content:center; gap:8px; display:flex; list-style:none; padding-left:0; }
.chiaia-shop-grid-control .pagination a,.chiaia-shop-grid-control .pagination span { min-width:42px; height:42px; border:1px solid #ddd; display:grid; place-items:center; color:#111; }
.chiaia-shop-grid-control .pagination .current { background:#111; color:#fff; }
.chiaia-product-description { color:#555; line-height:1.8; }
.chiaia-product-description ul { padding-left:1.2rem; }
.chiaia-product-meta { display:grid; gap:12px; margin-top:24px; padding-top:24px; border-top:1px solid #eee; color:#666; }
.chiaia-product-meta strong { color:#111; }
.product-gallery-fallback { background:#f7f7f7; padding:40px; }
.chiaia-related-products { padding-bottom:80px; }
.chiaia-hero-content-override { position:relative; z-index:2; }
.hero-banner-v01 .thumb img { width:100%; height:auto; object-fit:cover; }
.chiaia-about-thumb { position:relative; }
.chiaia-about-thumb img { width:100%; height:auto; }
.chiaia-contact-list { list-style:none; padding:0; margin:30px 0 0; display:grid; gap:12px; color:#555; }
.chiaia-contact-list strong { color:#111; }
.footer a { color:inherit; }
.footer-menu-list { list-style:none; padding-left:0; }
.tf-page-title .breadcrumb-list a { color:inherit; }
.tf-grid-layout .card-product { min-width:0; }
@media (max-width:1199px){ .main-menu { display:none !important; } }
@media (min-width:1200px){ .mobile-button { display:none !important; } }
@media (max-width:767px){ .tf-page-title .title { font-size:34px; } .hero-banner-v01 .hero-banner_title { font-size:44px; } }

/* Chiaia v2.1 preloader failsafe */
.preload.preload-container.chiaia-preloader-hidden,
#preload.chiaia-preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .35s ease, visibility .35s ease;
}
body.chiaia-preloader-done .preload.preload-container,
body.chiaia-preloader-done #preload {
    display: none !important;
}

/* Chiaia v2.2: exact Vinfur product media + tabs binding */
.tf-main-product.section-image-zoom .tf-product-media-wrap { z-index: 2; }
.tf-product-media-main .swiper-slide .item { display:block; background:#f7f7f7; overflow:hidden; }
.tf-product-media-main .swiper-slide img { width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; display:block; }
.tf-product-media-thumbs .item { cursor:pointer; background:#f7f7f7; overflow:hidden; }
.tf-product-media-thumbs .item img { width:100%; height:100%; aspect-ratio:1/1; object-fit:cover; display:block; }
.tf-product-media-thumbs .swiper-slide-thumb-active .item { outline:1px solid #111; outline-offset:-1px; }
.chiaia-product-tabs-section .tab-content { margin-top:32px; }
.chiaia-product-tabs-section .tab-pane:not(.active) { display:none; }
.chiaia-product-tabs-section .tab-descriptions p,
.chiaia-product-tabs-section .tab-policy p { color:#555; line-height:1.8; }
.chiaia-product-tabs-section .tab-descriptions ul { margin:0 0 24px 18px; }
.wd-customer-review .avatar { width:80px; height:80px; border-radius:50%; object-fit:cover; }
.wd-customer-review .review-list { list-style:none; margin:0; padding:0; }
.wd-customer-review .review-item { display:flex; gap:18px; margin-bottom:28px; }
.wd-customer-review .review-info { display:flex; justify-content:space-between; gap:16px; margin-bottom:10px; }
.wd-customer-review .review-meta { display:grid; gap:4px; }
.wd-customer-review .rating-breakdown { display:grid; gap:10px; margin-top:18px; }
.wd-customer-review .rating-breakdown-item { display:grid; grid-template-columns:48px 1fr 32px; align-items:center; gap:12px; }
.wd-customer-review .rating-bar { height:6px; background:#eee; overflow:hidden; }
.wd-customer-review .rating-bar .value { height:100%; background:#111; }
.wd-customer-review .form-review { margin-top:40px; }
.wd-customer-review .form-review input,
.wd-customer-review .form-review textarea { width:100%; border:1px solid #ddd; padding:14px 16px; background:#fff; }
.wd-customer-review .form-review textarea { min-height:140px; resize:vertical; }
.wd-customer-review .group-2-ip { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.wd-customer-review .check-save { display:flex; gap:10px; align-items:flex-start; margin:16px 0 24px; }
.wd-customer-review .check-save input { width:auto; margin-top:4px; }
@media (max-width:767px){ .wd-customer-review .group-2-ip { grid-template-columns:1fr; } .wd-customer-review .review-info { display:block; } }

/* Chiaia v2.3: product-style-01 gallery fidelity + real Vinfur zoom */
.single-product .tf-product-media-wrap.sticky-top { top: 15px; }
.single-product .product-thumbs-slider.thumbs-bottom { flex-direction: column; gap: 10px; max-width: 684px; }
.single-product .thumbs-bottom .flat-wrap-media-product { width: 100%; }
.single-product .thumbs-bottom .flat-wrap-media-product .tf-product-media-main { width: 100%; overflow: hidden; }
.single-product .thumbs-bottom .flat-wrap-media-product .tf-product-media-main .swiper-wrapper { align-items: stretch; }
.single-product .thumbs-bottom .flat-wrap-media-product .tf-product-media-main .swiper-slide { height: auto; }
.single-product .thumbs-bottom .flat-wrap-media-product .tf-product-media-main .item,
.single-product .tf-product-media-main .swiper-slide .item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: none !important;
    background: #f7f7f7;
    overflow: hidden;
}
.single-product .thumbs-bottom .flat-wrap-media-product .tf-product-media-main .item img,
.single-product .tf-product-media-main .swiper-slide img.tf-image-zoom {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    display: block;
}
.single-product .thumbs-bottom .tf-product-media-thumbs { width: 100%; order: 1; }
.single-product .tf-product-media-thumbs .swiper-wrapper { align-items: stretch; }
.single-product .tf-product-media-thumbs .swiper-slide { height: auto; }
.single-product .tf-product-media-thumbs .swiper-slide .item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    overflow: hidden;
}
.single-product .tf-product-media-thumbs .swiper-slide .item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.single-product .tf-product-media-thumbs .swiper-slide.swiper-slide-thumb-active .item::after { border-color: #757575; }
.single-product .tf-zoom-main { min-height: 0; background: transparent !important; pointer-events: none; }
.single-product .tf-zoom-main .drift-zoom-pane { opacity: 0; visibility: hidden; pointer-events: none; }
.single-product .section-image-zoom.zoom-active .tf-zoom-main .drift-zoom-pane.drift-open,
.single-product .tf-zoom-main .drift-zoom-pane.drift-open { opacity: 1; visibility: visible; }
.single-product .drift-bounding-box.drift-open { background: rgba(255,255,255,.25); box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset; z-index: 5000; }
@media (max-width: 1199px) {
    .single-product .product-thumbs-slider.thumbs-bottom { max-width: none; }
    .single-product .tf-zoom-main { display: none; }
}

/* v2.4 index-2 homepage fidelity */
.chiaia-home-product-card .card-product_wrapper,
.chiaia-home-product-card .product-img {
    background: #f4f4f4;
}
.chiaia-home-product-card .product-img img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 100%;
}
.catalog-mode .s-product-main .product-action_list,
.catalog-mode .s-banner-lookbook .price-wrap {
    display: none !important;
}
.s-testimonials .wrap-gallery .gallery img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.s-categories-v01 .category-text h2 {
    text-transform: uppercase;
}
@media (max-width: 767px) {
    .hero-banner-v01 .hero-banner_title { font-size: clamp(42px, 13vw, 72px); }
    .s-product-main .heading-seciton { align-items: flex-start !important; }
    .s-product-main .tab-product_list { justify-content: flex-start; overflow-x: auto; width: 100%; padding-bottom: 8px; }
}
