/*
Theme Name: Giardino Prime
Theme URI: https://giardinoprime.com
Author: AZTRA DEV HOUSE
Author URI: https://giardinoprime.com
Description: A premium, minimal WooCommerce theme for luxury watches and belts. Clean modular code, mobile-first, fast, and fully customizable from the WordPress Customizer.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giardino-prime
Tags: e-commerce, one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, rtl-language-support, wide-blocks, block-styles, editor-style

Giardino Prime is a bespoke WooCommerce theme built for premium watch and belt retailers.
*/

/* This file intentionally holds only the required theme header + a tiny
   critical-path reset. All real styling lives in assets/css/main.css,
   which is enqueued in functions.php — this keeps the mandatory
   style.css light and keeps the real stylesheet easy to maintain. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: #111827; }
img { max-width: 100%; height: auto; }
/* ===================================================
   GIARDINO PRIME - PREMIUM PRODUCT PAGE OVERHAUL
   =================================================== */

/* 1. Main Product Container Grid */
.single-product .product {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 2. Fix Broken Gallery & Product Image Bug */
.single-product .sp-clean-gallery, 
.single-product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
}

.single-product .sp-clean-gallery img,
.single-product .wp-post-image {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    border-radius: 12px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #f0f0f0;
}

/* 3. Product Summary (Title, Price, Buy Buttons) */
.single-product .summary.entry-summary {
    width: 100% !important;
    float: none !important;
    display: flex;
    flex-direction: column;
}

.single-product .product_title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

.single-product .price {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #d4af37 !important; /* Premium Gold Accent */
    margin-bottom: 15px !important;
}

.single-product .single_add_to_cart_button {
    background-color: #d4af37 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 14px 28px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #b8952b !important;
}

/* 4. Tabs & Review Form Fix */
.single-product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 40px !important;
    border-top: 1px solid #eeeeee;
    padding-top: 30px;
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
}

.single-product #review_form_wrapper {
    background: #fafafa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.single-product #commentform input[type="text"],
.single-product #commentform input[type="email"],
.single-product #commentform textarea {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #cccccc !important;
    border-radius: 6px !important;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* 5. Related Products Grid Fix */
.single-product .related.products {
    grid-column: 1 / -1;
    margin-top: 50px !important;
}

.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-product .related.products ul.products li.product img {
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
    background: #fdfdfd;
    padding: 10px;
    border-radius: 8px;
}

/* 6. Mobile Responsiveness Optimization */
@media screen and (max-width: 768px) {
    .single-product .product {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }

    .single-product .product_title {
        font-size: 22px !important;
    }

    .single-product .sp-clean-gallery img,
    .single-product .wp-post-image {
        max-height: 380px !important;
    }

    .single-product .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
