/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/


/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/

/* ==========================================================================
   CUSTOM SINGLE PRODUCT LAYOUT - CIRCUIT BREAKER / SALGEAR STYLE
   ========================================================================== */
.custom-product-layout {
    display: flex;
    gap: 50px;
    padding: 40px 0;
    align-items: flex-start;
    max-width: 1240px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, sans-serif;
}

.cpl-left { width: 48%; flex: 0 0 48%; }
.cpl-right { width: 48%; flex: 0 0 48%; }

/* Title Row */
.cpl-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #111;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cpl-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cpl-rating .star-rating { font-size: 14px; color: #e0655d; }
.review-count { font-size: 12px; color: #777; }

/* Subtitle */
.cpl-sub-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #e0655d;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.cpl-sub-title small {
    font-weight: 400;
    color: #888;
    font-size: 11px;
}

/* Cart Section */
.cpl-cart-section form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 30px;
}
.cpl-cart-section .price-box {
    flex: 1 1 100%;
    font-size: 32px;
    font-weight: 500;
    color: #111;
}
.cpl-cart-section .price-box .woocommerce-Price-amount { font-size: 1.4em; }

/* Quantity */
.cpl-cart-section .quantity {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    height: 42px;
}
.cpl-cart-section .quantity input.qty {
    width: 60px;
    border: none;
    text-align: center;
    font-weight: 600;
}
.cpl-cart-section .quantity .button {
    width: 38px;
    background: transparent;
    border: none;
    color: #555;
}

/* Variations (dropdowns, checkboxes, sliders) */
.cpl-cart-section .variations,
.cpl-cart-section .variations tr {
    width: 100%;
    margin-bottom: 15px;
}
.cpl-cart-section label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #444;
    display: block;
    margin-bottom: 8px;
}
.cpl-cart-section select,
.cpl-cart-section input[type="range"] {
    width: 100%;
    max-width: 420px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ORDER NOW Button */
.single_add_to_cart_button {
    width: 100%;
    background: #e0655d !important;
    color: white !important;
    border: none !important;
    padding: 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    border-radius: 4px !important;
    margin-top: 15px !important;
    cursor: pointer;
}
.single_add_to_cart_button:hover { background: #c74a48 !important; }

/* Accordion */
.custom-accordion { margin-top: 40px; border-top: 1px solid #eee; }
.accordion-item { border-bottom: 1px solid #eee; }
.accordion-header {
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header .icon { font-size: 20px; color: #aaa; }
.accordion-content {
    display: none;
    padding: 0 0 25px;
    color: #555;
    line-height: 1.7;
}

/* Features */
.product-features-section {
    display: flex;
    gap: 30px;
    margin: 0px auto 0;
    max-width: 1240px;
    padding: 50px 0;
    border-top: none;
}
.feature-box {
    flex: 1;
    background: #fcfcfc;
    padding: 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}
.feature-box .icon i { font-size: 28px; color: #2b0908; margin-bottom: 15px; }
.feature-box h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; }
.feature-box p { font-size: 13px; color: #666; line-height: 1.6; }

/* Related Products */
.custom-related-products { margin: 80px auto 0; max-width: 1240px; padding-top: 40px; border-top: 1px solid #eee; }
.custom-related-products h2 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}
.custom-related-products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Responsive */
@media (max-width: 850px) {
    .custom-product-layout { flex-direction: column; gap: 30px; padding: 20px; }
    .cpl-left, .cpl-right { width: 100%; }
    .cpl-right { order: -1; }
    .product-features-section { flex-direction: column; }
    .custom-related-products ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .custom-related-products ul.products { grid-template-columns: 1fr; }
}
/* Force quantity show & style like circuit breaker (± buttons) */
.cpl-cart-section .quantity {
    display: flex !important;
    align-items: center !important;
    background: #f7f7f7 !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px !important;
    height: 42px !important;
    width: auto !important;
    margin: 0 15px 0 0 !important;
}
.cpl-cart-section .quantity .qty {
    width: 50px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}
.cpl-cart-section .quantity .minus,
.cpl-cart-section .quantity .plus {
    width: 38px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    font-size: 20px !important;
    color: #555 !important;
    cursor: pointer !important;
}

/* Variations better fit */
.cpl-cart-section .variations {
    width: 100% !important;
    margin: 20px 0 !important;
}
.cpl-cart-section .variations td.label label {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #444 !important;
}
.cpl-cart-section .variations td.value select,
.cpl-cart-section .variations td.value input[type="range"] {
    width: 100% !important;
    max-width: 380px !important;
    padding: 10px !important;
}

/* ORDER NOW button exact */
.single_add_to_cart_button {
    background: #e0655d !important;
    color: #fff !important;
    width: 100% !important;
    padding: 18px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border: none !important;
    border-radius: 4px !important;
    margin-top: 20px !important;
}

/* Accordion first open styling */
.accordion-item.active .accordion-header {
    font-weight: 700 !important;
}
.accordion-item .accordion-content p {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #555 !important;
}

/* Right image exact match */
.cpl-right .woocommerce-product-gallery {
    margin: 0 !important;
}
.cpl-right .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}
/* RESET & FIX FOR CART SECTION - INLINE PRICE + QUANTITY + VARIATIONS */
.cpl-cart-section form.cart {
    display: flex !important;
    flex-direction: column !important; /* Default column for safety */
    align-items: stretch !important;
    gap: 15px !important;
}

/* Desktop: Inline price + quantity row */
@media (min-width: 768px) {
    .cpl-cart-section form.cart {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
    .cpl-cart-section .price-box {
        flex: 0 0 auto !important;
        order: 1 !important;
        font-size: 36px !important;
        font-weight: 500 !important;
        color: #111 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    
    .cpl-cart-section .quantity {
        flex: 0 0 auto !important;
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        background: #f7f7f7 !important;
        border: 1px solid #e2e2e2 !important;
        border-radius: 6px !important;
        height: 36px !important;
        padding: 0 5px !important;
        margin: 0 !important;
    }
    
    .cpl-cart-section .quantity input.qty {
        width: 55px !important;
        height: 46px !important;
        text-align: center !important;
        border: none !important;
        background: transparent !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        padding: 0 !important;
    }
    
    .cpl-cart-section .quantity .minus,
    .cpl-cart-section .quantity .plus {
        width: 40px !important;
        height: 46px !important;
        background: transparent !important;
        border: none !important;
        font-size: 20px !important;
        color: #666 !important;
        cursor: pointer !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    
    .cpl-cart-section .quantity .minus:hover,
    .cpl-cart-section .quantity .plus:hover {
        color: #e0655d !important;
    }
    
    /* Variations neeche full width, but after price/quantity row */
    .cpl-cart-section .variations {
        order: 3 !important;
        width: 100% !important;
        margin-top: 15px !important;
        flex: 1 1 100% !important;
    }
    
    .cpl-cart-section .variations td,
    .cpl-cart-section .variations th {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .cpl-cart-section .variations label {
        font-size: 13px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        color: #444 !important;
        margin-bottom: 8px !important;
        display: block !important;
    }
    
    .cpl-cart-section .variations select,
    .cpl-cart-section .variations input[type="range"],
    .cpl-cart-section .variations input[type="checkbox"] {
        width: 100% !important;
        max-width: 400px !important;
        padding: 10px !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        margin-bottom: 10px !important;
    }
    
    .cpl-cart-section .variations input[type="checkbox"] {
        width: auto !important;
        margin-right: 10px !important;
    }
}

/* Button always full width neeche */
.single_add_to_cart_button {
    order: 4 !important;
    width: 100% !important;
    background: #e0655d !important;
    color: #fff !important;
    border: none !important;
    padding: 18px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border-radius: 4px !important;
    margin-top: 15px !important;
    cursor: pointer !important;
}

.single_add_to_cart_button:hover {
    background: #c74a48 !important;
}

/* HIDE HONEYPOT SPAM BOX COMPLETELY (admin visible issue fix) */
.wpf-honeypot,
.wp-armour-honeypot,
[class*="honeypot"],
[class*="spam-trap"],
.wpforms-honeypot {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Extra: Accordion & other resets if needed */
.custom-accordion {
    margin-top: 40px !important;
}
.accordion-content {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #666 !important;
}

/* Extra default quantity hide (agar leak ho) */
/* wrapper row */
.price-qty-wrap{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:18px;
    margin-bottom:18px;
}

/* price left */
.price-box-inline{
    font-size:24px;
    font-weight:700;
}

/* quantity right */
.price-qty-wrap .ux-quantity{
    margin-left:auto;
}

/* add to cart full width below */
.single_add_to_cart_button{
    width:100% !important;
    display:block;
    margin-top:10px !important;
}
form.cart > .quantity,
form.cart .quantity.buttons_added + .quantity {
    display:none !important;
}
/* ========== RELATED PRODUCTS PREMIUM FLATSOME GRID STYLE ========== */

/* Wrapper */
.sg-related-wrapper{margin:40px 0;position:relative;}
.sg-related-wrapper h2{
    font-size:32px;font-weight:700;margin-bottom:25px;
}

/* Slider Layout */
.sg-related-slider .sg-card{
    width:255px;
/*     background:#fff; */
/*     border:1px solid #e6e6e6; */
    border-radius:6px;
/*     padding:14px; */
    position:relative;
    transition:.3s;
}
.sg-related-slider .sg-card:hover{
    transform:translateY(-4px);
}

/* Image same style as reference */
.sg-img-wrap{
    display:block;
    width:100%;
    height:200px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.sg-img-wrap img{
    max-height:180px;
    width:auto;
    object-fit:contain;
}

/* --- BADGES EXACT LOOK --- */
.sg-badge{
    position:absolute;
    top:10px;left:10px;
    padding:3px 10px;
    font-size:11px;
    font-weight:600;
    color:#fff;
    border-radius:3px;
}
.badge-red{background:#ff4d4d;}       /* Limited Edition */
.badge-blue{background:#3fa9ff;}      /* New In */
.badge-grey{background:#333;}         /* Out Of Stock */

/* --- RATING Top Right --- */
.sg-rating{
    position:absolute;
    top:10px;right:10px;
    font-size:11px;
    color:#d23a34;
    font-weight:600;
}

/* TEXT BLOCK */
.sg-info{margin-top:12px;}
.sg-info .brand{
    font-size:10px;
	color:#777;
	letter-spacing:1px;
}
.sg-info h3{
    font-size:13px;
    font-weight:700;
    margin:0 0 8px;
    line-height:20px;
	    min-height: 40px;
}
.sg-info .price{
    font-size:13px;
    font-weight:700;
    color:#000;
}

/* --- ARROWS EXACT LIKE IMAGE TOP RIGHT --- */
.sg-arrows{
    position:absolute;
    top:5px;
    right:0;
    display:flex;
    gap:6px;
}
.sg-arrows button{
    width:30px;height:30px;
    border:none;
    background:#f1f1f1;
    font-size:18px;
    cursor:pointer;
    border-radius:4px;
}
.sg-arrows button:hover{
    background:#dedede;
}
.sg-related-wrapper{
    max-width:1240px;
}
.row.sg-relative-prd{
	max-width: 1240px;
}
.sg-relative-prd .col.large-12{
	padding-left: 0;
	padding-right: 0;
}
.sg-next{
	color: #fff;
	background: rgb(219 61 54)!important;
}

.ux-quantity.quantity.buttons_added input[type=number]{
	box-shadow: none !important;
}
.sg-imgProduct-badge {
    background: #fff;
    padding: 14px;
}
.sgshop-card-img {
    height: 250px !important;
}




/* Gap between main product image and thumbnails */
.woocommerce div.product div.images .flex-control-thumbs,
.woocommerce-product-gallery .flickity-viewport {
    margin-top: 30px !important;  /* Gap adjust as required */
}

/* Extra safe override if theme blocks above */
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    padding-bottom: 20px !important;
}
.image-tools {
    bottom: 2% !important;
    left: 2% !important;
}




