/* ==========================================================================
   CUSTOM SINGLE PRODUCT PAGE STYLING
   ========================================================================== */

body.custom-single-product-page,
body.single-product {
    background-color: #FAF8F5;
    color: #1A231F;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-single-product-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    box-sizing: border-box;
}

/* 1. Breadcrumbs */
.custom-product-breadcrumb {
    margin-bottom: 26px;
    font-size: 13.5px;
    color: #666666;
}

.custom-product-breadcrumb .woocommerce-breadcrumb {
    padding: 0;
    margin: 0;
    background: transparent;
    font-size: 13.5px;
    color: #666666;
}

.custom-product-breadcrumb a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-product-breadcrumb a:hover {
    color: #0D4A80;
    text-decoration: underline;
}

/* 2. Main Product Layout (2 Columns) */
.custom-single-product-wrapper .product {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 60px;
    background: #ffffff;
    border: 1px solid #ECE7DE;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Left Column: Gallery */
.custom-single-product-wrapper .woocommerce-product-gallery {
    flex: 1 1 480px;
    max-width: 540px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #FAF8F5;
    border: 1px solid #EAE6DE;
    padding: 16px;
    box-sizing: border-box;
}

.custom-single-product-wrapper .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.custom-single-product-wrapper .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 0;
    list-style: none;
}

.custom-single-product-wrapper .flex-control-thumbs li {
    width: 70px;
    height: 70px;
    border: 1px solid #EAE6DE;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
}

.custom-single-product-wrapper .flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Summary / Details */
.custom-single-product-wrapper .summary.entry-summary {
    flex: 1 1 440px;
    display: flex;
    flex-direction: column;
}

/* Category Badge */
.custom-single-product-wrapper .summary .single-cat-badge {
    display: inline-block;
    align-self: flex-start;
    background: #587163;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

/* Product Title */
.custom-single-product-wrapper .product_title.entry-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #1A1A1F;
    margin: 0 0 14px;
}

/* SKU & MOQ Meta Bar */
.custom-single-product-wrapper .product-quick-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13.5px;
    color: #666666;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ECE7DE;
}

.custom-single-product-wrapper .product-quick-meta .meta-item strong {
    color: #1A1A1F;
}

/* Price */
.custom-single-product-wrapper .price {
    font-size: 24px;
    font-weight: 700;
    color: #0D4A80;
    margin-bottom: 18px;
}

.custom-single-product-wrapper .price del {
    color: #888888;
    font-size: 18px;
    margin-right: 8px;
}

/* Short Description */
.custom-single-product-wrapper .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.65;
    color: #4A5568;
    margin-bottom: 28px;
}

/* Add to Cart / Send Enquiry Form */
.custom-single-product-wrapper form.cart {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.custom-single-product-wrapper .quantity {
    display: inline-flex;
    align-items: center;
    height: 46px;
    background: #F7F5F0;
    border: 1px solid #D9D4CC;
    border-radius: 9999px;
    padding: 0 12px;
}

.custom-single-product-wrapper .quantity input.qty {
    width: 48px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1F;
    outline: none;
}

/* Buttons */
.custom-single-product-wrapper .single_add_to_cart_button,
.custom-single-product-wrapper .single-enquiry-btn {
    height: 46px;
    background: #1B382B; /* Forest green */
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.custom-single-product-wrapper .single_add_to_cart_button:hover,
.custom-single-product-wrapper .single-enquiry-btn:hover {
    background: #0E2219;
    transform: translateY(-1px);
}

/* Secondary Request Quote Button */
.custom-single-product-wrapper .btn-request-quote {
    height: 46px;
    background: transparent;
    border: 1.5px solid #0D4A80;
    color: #0D4A80;
    border-radius: 9999px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.custom-single-product-wrapper .btn-request-quote:hover {
    background: #0D4A80;
    color: #ffffff;
}

/* Product Meta (SKU, Categories, Tags) */
.custom-single-product-wrapper .product_meta {
    font-size: 13.5px;
    color: #666666;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid #ECE7DE;
}

.custom-single-product-wrapper .product_meta span {
    font-weight: 600;
    color: #1A1A1F;
}

.custom-single-product-wrapper .product_meta a {
    color: #0D4A80;
    text-decoration: none;
}

.custom-single-product-wrapper .product_meta a:hover {
    text-decoration: underline;
}

/* 3. Product Tabs (Description, Additional Info, Reviews) */
.custom-single-product-wrapper .woocommerce-tabs {
    background: #ffffff;
    border: 1px solid #ECE7DE;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.custom-single-product-wrapper .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 12px;
    padding: 0 0 16px;
    margin: 0 0 24px;
    border-bottom: 1px solid #ECE7DE;
    list-style: none;
}

.custom-single-product-wrapper .woocommerce-tabs ul.tabs li {
    padding: 8px 20px;
    border-radius: 9999px;
    background: #F7F5F0;
    border: 1px solid #D9D4CC;
    font-weight: 600;
    font-size: 14px;
}

.custom-single-product-wrapper .woocommerce-tabs ul.tabs li.active {
    background: #1B382B;
    border-color: #1B382B;
}

.custom-single-product-wrapper .woocommerce-tabs ul.tabs li a {
    color: #333333;
    text-decoration: none;
}

.custom-single-product-wrapper .woocommerce-tabs ul.tabs li.active a {
    color: #ffffff;
}

.custom-single-product-wrapper .woocommerce-tabs .panel {
    font-size: 15px;
    line-height: 1.7;
    color: #4A5568;
}

.custom-single-product-wrapper .woocommerce-tabs .panel h2 {
    font-size: 22px;
    font-family: 'Outfit', sans-serif;
    color: #1A1A1F;
    margin-bottom: 16px;
}

/* 4. Related Products Section */
.custom-single-product-wrapper .related.products {
    margin-top: 50px;
}

.custom-single-product-wrapper .related.products > h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1A1A1F;
    margin-bottom: 28px;
    text-align: left;
}

.custom-single-product-wrapper ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-single-product-wrapper ul.products li.product {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ECE7DE;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-single-product-wrapper ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.custom-single-product-wrapper ul.products li.product img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    padding: 16px;
    background: #FDFCFA;
    margin: 0;
}

.custom-single-product-wrapper ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 600;
    padding: 16px 18px 4px;
    color: #1A1A1F;
    margin: 0;
}

.custom-single-product-wrapper ul.products li.product .price {
    padding: 0 18px 16px;
    font-size: 15px;
    color: #0D4A80;
    font-weight: 700;
}

.custom-single-product-wrapper ul.products li.product .button {
    margin: 0 18px 18px;
    background: #1B382B;
    color: #ffffff;
    border-radius: 9999px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .custom-single-product-wrapper .product {
        flex-direction: column;
        gap: 32px;
        padding: 24px;
    }
    .custom-single-product-wrapper .woocommerce-product-gallery {
        max-width: 100%;
    }
    .custom-single-product-wrapper ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .custom-single-product-wrapper {
        padding: 20px 14px 60px;
    }
    .custom-single-product-wrapper .product_title.entry-title {
        font-size: 24px;
    }
    .custom-single-product-wrapper ul.products {
        grid-template-columns: 1fr;
    }
}
