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

/* =========================================================
   PRODUCT PAGE LAYOUT - Boxed and centered
   ========================================================= */

.single-product .product-main {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.single-product .product-footer .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove gray area under product images */
.single-product .product-main .content-row {
    align-items: flex-start;
}

.single-product .product-gallery,
.single-product .product-gallery .col-inner {
    background: transparent !important;
}


/* =========================================================
   REMOVE BREADCRUMBS
   ========================================================= */

.single-product .woocommerce-breadcrumb,
.single-product .breadcrumbs,
.single-product nav.woocommerce-breadcrumb {
    display: none !important;
}


/* =========================================================
   FIX PRODUCT GALLERY IMAGE SCROLL JUMP
   ========================================================= */

/* Prevent browser scroll anchoring from shifting gallery during Flickity init */
.single-product .product-gallery,
.single-product .product-images,
.single-product .product-gallery-slider {
    overflow-anchor: none !important;
}

.single-product .product-images,
.single-product .product-gallery-slider {
    min-height: 300px;
}

.single-product .product-gallery-slider .slide a,
.single-product .product-thumbnails a,
.single-product .product-gallery-slider a[href^="#"] {
    scroll-behavior: auto !important;
}

.single-product .product-gallery {
    position: relative;
}

.single-product .product-images {
    scroll-margin-top: 0 !important;
}


/* =========================================================
   TAB BAR
   ========================================================= */

.single-product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
    padding: 0;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    margin: 0 4px 0 0;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.single-product .woocommerce-tabs ul.tabs li a {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #555;
    padding: 12px 20px;
    letter-spacing: 0.5px;
}

.single-product .woocommerce-tabs ul.tabs li:hover {
    background: #e8e8e8;
}

.single-product .woocommerce-tabs ul.tabs li.active {
    background: #fff;
    border-bottom-color: #fff;
    position: relative;
}

.single-product .woocommerce-tabs ul.tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

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


/* =========================================================
   TAB PANELS CONTAINER - Remove outer box
   ========================================================= */

.single-product .woocommerce-tabs .tab-panels {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-top: 0 !important;
}


/* =========================================================
   UNIFIED TAB PANELS - No box-in-box, clean flat look
   ========================================================= */

/* Base panel reset */
.single-product .woocommerce-tabs .panel {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
}

/* Only active panel gets padding — inactive panels must stay padding:0 for Flatsome's height:0 hide */
.single-product .woocommerce-tabs .panel.active {
    padding: 20px 0 25px !important;
}

.single-product .woocommerce-tabs .panel:not(.active) {
    padding: 0 !important;
}

/* ALL content inside panels: max-width centered block */
.single-product .woocommerce-tabs .panel > *,
.single-product .woocommerce-tabs .panel .sunset-tab-inner {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Remove any extra spacing from tab inner wrapper */
.single-product .woocommerce-tabs .panel .sunset-tab-inner {
    padding: 0;
    margin-top: 0;
}

/* Heading: identical across ALL tabs, tight top spacing */
.single-product .woocommerce-tabs .panel h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2473a1 !important;
    margin: 0 0 18px 0 !important;
    padding: 0 0 10px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f66f04;
    max-width: 900px;
}

/* Body text: same font, size, color, line-height everywhere */
.single-product .woocommerce-tabs .panel,
.single-product .woocommerce-tabs .panel p,
.single-product .woocommerce-tabs .panel li,
.single-product .woocommerce-tabs .panel td,
.single-product .woocommerce-tabs .panel th,
.single-product .woocommerce-tabs .panel span,
.single-product .woocommerce-tabs .panel a,
.single-product .woocommerce-tabs .panel label {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #444 !important;
}

/* Override inline font-weight: 400 from WP editor content */
.single-product .woocommerce-tabs .panel span[style*="font-weight"],
.single-product .woocommerce-tabs .panel li[style*="font-weight"] {
    font-weight: inherit !important;
}

/* Bold/strong: uniform */
.single-product .woocommerce-tabs .panel b,
.single-product .woocommerce-tabs .panel strong {
    color: #333 !important;
    font-weight: 700 !important;
}

/* Links inside panels */
.single-product .woocommerce-tabs .panel a {
    color: #2473a1 !important;
    text-decoration: none;
}

.single-product .woocommerce-tabs .panel a:hover {
    color: #f66f04 !important;
}


/* =========================================================
   UNIFIED TABLE STYLING - specs + shop_attributes identical
   ========================================================= */

.single-product .woocommerce-tabs .panel table {
    width: 100%;
    max-width: 900px;
    margin: 10px auto 0;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.single-product .woocommerce-tabs .panel table thead {
    background: #2473a1;
}

.single-product .woocommerce-tabs .panel table thead th {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px !important;
    text-align: left;
    border: none !important;
}

.single-product .woocommerce-tabs .panel table th,
.single-product .woocommerce-tabs .panel table td {
    padding: 11px 20px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #eee !important;
    border-right: none !important;
    border-left: none !important;
    vertical-align: middle;
}

.single-product .woocommerce-tabs .panel table th {
    font-weight: 600 !important;
    color: #333 !important;
    background: #f7f8fa !important;
    width: 40%;
    text-align: left;
}

.single-product .woocommerce-tabs .panel table td {
    color: #555 !important;
}

.single-product .woocommerce-tabs .panel table tbody tr:nth-child(even) td,
.single-product .woocommerce-tabs .panel table tbody tr:nth-child(even) th {
    background: #fcfcfd !important;
}

.single-product .woocommerce-tabs .panel table tbody tr:hover td,
.single-product .woocommerce-tabs .panel table tbody tr:hover th {
    background: #f0f4f8 !important;
}

/* Remove WC default Additional Info table borders */
.single-product .woocommerce-tabs .panel table.shop_attributes,
.single-product .woocommerce-tabs .panel table.shop_attributes th,
.single-product .woocommerce-tabs .panel table.shop_attributes td {
    border-color: #eee !important;
}

.single-product .woocommerce-tabs .panel table.shop_attributes td p {
    margin: 0 !important;
}

/* Specs table header override to use thead style */
.single-product .woocommerce-tabs .panel table.sunset-specs-table thead th {
    background: #2473a1 !important;
    color: #fff !important;
}


/* =========================================================
   FEATURES CONTENT
   ========================================================= */

.sunset-features-content ol {
    padding-left: 22px;
    margin: 0;
}

.sunset-features-content ol > li {
    margin-bottom: 14px;
    padding-left: 4px;
}

.sunset-features-content ul {
    padding-left: 20px;
    margin-top: 6px;
    list-style: disc;
}

.sunset-features-content ul li {
    margin-bottom: 4px;
}

.sunset-acf-features {
    margin-top: 20px;
}

.sunset-acf-features ul {
    list-style: disc;
    padding-left: 22px;
}

.sunset-acf-features li {
    margin-bottom: 8px;
}


/* =========================================================
   REQUEST MORE INFO BUTTON (in product summary)
   ========================================================= */

.sunset-request-info-btn-wrap {
    margin: 15px 0 20px;
    text-align: left;
}

.sunset-request-info-btn {
    display: inline-block;
    background-color: #f66f04;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700;
    padding: 12px 32px;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    border-radius: 5px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: auto;
    box-sizing: border-box;
}

.sunset-request-info-btn:hover {
    background-color: #2473a1;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* =========================================================
   INQUIRY FORM (inside Request More Info tab)
   ========================================================= */

.sunset-inquiry-form {
    max-width: 600px;
    margin: 0 auto;
}

.sunset-inquiry-form > p {
    color: #666 !important;
    margin-bottom: 22px;
}

/* Two-column form layout */
.sunset-inquiry-form .frm_fields_container {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.sunset-inquiry-form .frm_form_field {
    margin-bottom: 16px !important;
}

.sunset-inquiry-form .frm_form_field.frm6 {
    width: calc(50% - 10px);
    flex: 0 0 calc(50% - 10px);
}

.sunset-inquiry-form .frm_form_field:not(.frm6) {
    width: 100%;
    flex: 0 0 100%;
}

.sunset-inquiry-form .frm_primary_label {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #333 !important;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sunset-inquiry-form input[type="text"],
.sunset-inquiry-form input[type="email"],
.sunset-inquiry-form input[type="tel"],
.sunset-inquiry-form select,
.sunset-inquiry-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background: #fafafa !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    color: #333 !important;
}

.sunset-inquiry-form input:focus,
.sunset-inquiry-form select:focus,
.sunset-inquiry-form textarea:focus {
    border-color: #f66f04 !important;
    outline: none;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(246, 111, 4, 0.1) !important;
}

.sunset-inquiry-form .frm_submit {
    margin-top: 8px;
}

.sunset-inquiry-form .frm_submit button,
.sunset-inquiry-form .frm_button_submit {
    background: #f66f04 !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 5px !important;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
}

.sunset-inquiry-form .frm_submit button:hover,
.sunset-inquiry-form .frm_button_submit:hover {
    background: #2473a1 !important;
    transform: translateY(-1px);
}

/* Success / Error messages */
.sunset-inquiry-form .frm_message,
.sunset-inquiry-form .frm_error_style {
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 15px !important;
    margin-bottom: 15px;
}

.sunset-inquiry-form .frm_message {
    background: #d4edda;
    color: #155724 !important;
    border: 1px solid #c3e6cb;
}

.sunset-inquiry-form .frm_error_style {
    background: #f8d7da;
    color: #721c24 !important;
    border: 1px solid #f5c6cb;
}

.sunset-inquiry-form .frm_error {
    color: #dc3545 !important;
    font-size: 12px !important;
    margin-top: 4px;
}

/* Hide Formidable's screen-reader legend */
.sunset-inquiry-form legend.frm_screen_reader {
    display: none;
}


/* =========================================================
   VIEW PDF BUTTON - 70% bigger
   ========================================================= */

.pdf_meta {
    padding-top: 10px;
    margin-bottom: 15px;
}

.pdf_meta h2 {
    font-size: 27px !important;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    border: none !important;
    padding-bottom: 0 !important;
}

.pdf_meta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bd0e00 !important;
    text-decoration: none;
    transition: opacity 0.3s;
}

.pdf_meta a:hover {
    opacity: 0.7;
}

.pdf_meta a i.fas.fa-file-pdf,
.pdf_meta a i.fa-file-pdf {
    font-size: 42px !important;
}


/* =========================================================
   "DETAILS" BUTTON ON CATEGORY/ARCHIVE PAGES
   ========================================================= */

.sunset-details-btn {
    display: inline-block;
    background-color: #f66f04;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 22px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 5px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.sunset-details-btn:hover {
    background-color: #2473a1;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Hide add-to-cart button site-wide */
.add_to_cart_button,
.ajax_add_to_cart,
a.added_to_cart,
.single_add_to_cart_button {
    display: none !important;
}

/* Price text is already emptied by PHP filter — just hide the empty price spans */
.archive.woocommerce .products .product .price,
.tax-product_cat .products .product .price {
    display: none !important;
}


/* =========================================================
   HIDE ADD TO CART / PRICE (single product)
   ========================================================= */

.single-product .single_add_to_cart_button,
.single-product .quantity,
.single-product form.cart {
    display: none !important;
}


/* =========================================================
   PRODUCT SUMMARY AREA POLISH
   ========================================================= */

.single-product h1.product-title,
.single-product .product-title {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.single-product .product_meta {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.single-product .product_meta a {
    color: #2473a1;
}

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


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media only screen and (max-width: 48em) {
    .single-product .woocommerce-tabs .panel.active {
        padding: 18px 0 20px !important;
    }

    .single-product .woocommerce-tabs ul.tabs {
        display: flex;
        flex-wrap: wrap;
    }

    .single-product .woocommerce-tabs ul.tabs li {
        flex: 1 1 auto;
        text-align: center;
        margin: 0 2px 2px 0;
    }

    .single-product .woocommerce-tabs ul.tabs li a {
        font-size: 12px;
        padding: 10px 12px;
    }

    .sunset-inquiry-form .frm_form_field.frm6 {
        width: 100%;
        flex: 0 0 100%;
    }
}

@media only screen and (max-width: 32em) {
    .single-product .woocommerce-tabs ul.tabs li {
        flex: 1 1 48%;
    }
}
