/*
Theme Name: Golfex-child
Author: 
Description: Your description goes here
Version: 1.0
Template: golfex

This is the child theme for Golfex theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/
/* ==========================================================================
   WOOCOMMERCE SINGLE PRODUCT PAGE — CUSTOM STYLES
   ========================================================================== */

/* --- Overall page wrapper --- */
.single-product div.product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Layout: gallery + summary side by side --- */
.single-product div.product .images,
.single-product div.product .summary {
    width: 48%;
}

.single-product div.product .summary {
    float: right;
}

/* --- Product Gallery --- */
.woocommerce-product-gallery {
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-product-gallery__image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.flex-control-thumbs li img {
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
    opacity: 1;
}

/* --- Product Title --- */
.single-product .product_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.3;
}

/* --- Price --- */
.single-product p.price {
    font-size: 24px;
    font-weight: 600;
    color: #d63638;
    margin: 15px 0;
}

.single-product p.price del {
    color: #999;
    font-size: 18px;
    opacity: 0.7;
    margin-right: 8px;
}

.single-product p.price ins {
    text-decoration: none;
}

/* --- Star Rating --- */
.single-product .woocommerce-product-rating {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-product .star-rating {
    font-size: 16px;
}

.single-product .star-rating span:before {
    color: #f5a623;
}

/* --- Short Description --- */
.single-product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin: 20px 0;
}

/* --- Add to Cart Form --- */
.single-product form.cart {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Quantity input */
.single-product .quantity .qty {
    width: 70px;
    height: 48px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

/* Add to cart button */
.single-product button.single_add_to_cart_button {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-product button.single_add_to_cart_button:hover {
    background-color: #d63638;
}

.single-product button.single_add_to_cart_button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Meta (SKU, categories, tags) --- */
.single-product .product_meta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #777;
}

.single-product .product_meta > span {
    display: block;
    margin-bottom: 5px;
}

.single-product .product_meta a {
    color: #555;
    text-decoration: none;
}

.single-product .product_meta a:hover {
    color: #d63638;
}

/* --- Tabs (Description / Reviews / Additional Info) --- */
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    margin: 50px 0 0;
    padding: 0;
    list-style: none;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 20px;
    font-weight: 600;
    color: #777;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #1a1a1a;
    border-bottom-color: #d63638;
}

.woocommerce-tabs .panel {
    padding: 25px 0;
    line-height: 1.8;
    color: #444;
}

/* --- Related Products --- */
.related.products {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related.products > h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.related.products ul.products li.product {
    text-align: center;
}

.related.products ul.products li.product img {
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.related.products ul.products li.product:hover img {
    transform: scale(1.03);
}

/* --- Sale Badge --- */
.single-product span.onsale {
    background-color: #d63638;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    top: 10px;
    left: 10px;
}

/* --- Stock Status --- */
.single-product p.stock {
    font-size: 14px;
    font-weight: 600;
}

.single-product p.stock.in-stock {
    color: #2e7d32;
}

.single-product p.stock.out-of-stock {
    color: #d63638;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .single-product div.product .images,
    .single-product div.product .summary {
        width: 100%;
        float: none;
    }

    .single-product div.product .summary {
        margin-top: 25px;
    }

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

    .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }
}