/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

.woocommerce .content_wrapper .column_shop_products ul.products.columns-1 li.product.odd {
    padding-left: 5rem;
    padding-right: calc(26% + 8rem);
    background: #EFEDEC;
    width: 100%;
}

.woocommerce .content_wrapper .column_shop_products ul.products.columns-1 li.product.even {
    padding-right: 5rem;
    padding-left: calc(26% + 8rem);
    width: 100%;
}

@media screen and (min-width: 992px){
    .single-product .mcb-item-product_images-inner{
        min-height: 100vh;
        align-content: center;
    }
}

.mobile-cart-icon{
    display:none;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    #Side_slide .extras .extras-wrapper .header-cart-count{
        position: relative;
        margin-left: initial;
        top: initial;
        text-align: center;
        font-size: initial;
    }
    
    /* Mobile Cart Icon - Fixed Upper Left */
    .mobile-cart-icon {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1002;
        width: 40px;
        height: 40px;
        text-decoration: none;
        color: black;
        border-radius: 30px;
    }
    
    .mobile-cart-icon svg {
        width: 33px;
        height: 33px;
        position: relative;
        top: 3px;
        left: 2px;
        filter: drop-shadow(0px 0px 2px white);
    }
    
    .mobile-cart-icon .header-cart-count {
        position: absolute;
        top: 11px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        width: 26px;
        margin-left: 1px;
        font-size: 10px;
        font-weight: bold;
        line-height: 1;
        pointer-events: none;
        text-align: center;
    }
    
    .mobile-cart-icon .header-cart-count:empty {
        display: none;
    }
    .woocommerce .content_wrapper .column_shop_products ul.products.columns-1 li.product.odd {
        padding-left: 1rem;
        padding-right: 1rem;
        background: #EFEDEC;
        width: 100%;
    }

    .woocommerce .content_wrapper .column_shop_products ul.products.columns-1 li.product.even {
        padding-right: 1rem;
        padding-left: 1rem;
        width: 100%;
    }

    .woocommerce.single-product .mcb-item-product_images-inner {
        padding: 0 !important;
        border-right: 0 !important;
        border-bottom: 2px solid black !important;
        width: 100%;
        transition: all 0.3s ease;
        max-height: none;
        overflow: hidden;
    }

    /* When fixed, make the image smaller and fix to viewport */
    .woocommerce.single-product .mcb-item-product_images-inner.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        max-height: 25vh;
        width: 100% !important;
    }

    /* Scale down the image when fixed */
    .woocommerce.single-product div.product .mcb-item-product_images-inner.is-fixed div.images img {
        max-height: 25vh;
        object-fit: contain;
    }

    .woocommerce.single-product .mcb-item-product_title-inner{
        text-align: left;
    }
}

.post-type-archive-product .products .mfn-li-product-row-price{
    display:none;
    visibility: hidden;
}

.post-type-archive-product.woocommerce ul.products li.product{
    text-align: left;;
}

.post-type-archive-product.woocommerce .mfn-li-product-row-title{
    margin-bottom: 1rem;
}

.post-type-archive-product.woocommerce ul.products li.product .button{
    border-color: black;
    background: transparent;
    border-width: 1px;
    padding: 0.8rem 2rem;
    margin-top: 1.5rem;
}

.post-type-archive-product.woocommerce ul.products li.product .button:hover{
    border-color: black;
    color:black;
}

.post-type-archive-product.woocommerce.columns-1 ul.products li.product, .woocommerce ul.products.columns-1 li.product{
    margin-left:0;
    margin-right:0;
}

.post-type-archive-product.woocommerce .content_wrapper .column_shop_products ul.products.columns-1 li.product{
    padding-top: 2rem;
    padding-bottom: 2rem;
    align-items: start;
    justify-content: start;
}

.post-type-archive-product.woocommerce .content_wrapper .column_shop_products ul.products.columns-1 li.product{
    margin-left: 0 !important;
    margin-right:0 !important;
}

.post-type-archive-product.woocommerce .content_wrapper .column_shop_products ul.products.columns-1 li.odd .mfn-li-product-row-image{
    left: auto;
    right: 5rem;
    width: 26%;
    top: 2rem;
}


.woocommerce .content_wrapper .column_shop_products ul.products.columns-1 li.product.even .mfn-li-product-row-image{
    right:auto;
    left: 5rem;
    width: 26%;
    top: 2rem;
}

#Wrapper .header-cart{
    position: fixed;
    top: 0rem;
    right: 2rem;
    z-index: 9999;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: black;
    background: #ffffff;
    padding: 5px 20px;
    border-radius: 0px 0px 7px 7px;
}

.admin-bar #Wrapper .header-cart{
    top: 32px;
}

#Header #rev_slider_3_1_wrapper .custom.tparrows{
    cursor: pointer;
    background: transparent;
    position: absolute;
    display: block;
    z-index: 1000;
    
    color: black;
    transition: all ease-out 300ms;
}

#Header #rev_slider_3_1_wrapper .custom.tparrows:before{
    color:black !important;
    font-size:40px;
}

#Header #rev_slider_3_1_wrapper .custom.tparrows.tp-leftarrow{
    transform: translate(20px, -60px) !important;
}

#Header #rev_slider_3_1_wrapper .custom.tparrows.tp-rightarrow{
    transform: translate(-60px, -60px) !important;
}

#Header #rev_slider_3_1_wrapper .custom.tparrows.tp-leftarrow.rs-touchhover{
    transform: translate(20px, -65px) !important;
    background:transparent !important;
}

#Header #rev_slider_3_1_wrapper .custom.tparrows.tp-rightarrow.rs-touchhover{
    transform: translate(-60px, -65px) !important;
    background:transparent !important;
}
    

#Footer .widgets_wrapper > .container{
    display: flex;
    max-width: 100%;
    margin: 50px 10px;
}

.form-row #frame_height,
.form-row #frame_width {
    background: #ededed !important;
}

#Footer .one-second.column, 
#Footer .one-third.column,
#Footer .one-fourth.column{
    float: none;
    font-size: 14px;
    border-left: 1px solid white;
    margin-left: 10px;
    align-self: start;
}

#Footer .one-fourth.column, .four.columns {
    width: 35%;
}

#Side_slide .extras .extras-wrapper .header-cart-count{
    position: static !important;
    font-size: inherit !important;
    text-align: initial !important;
    margin-left: auto !important;
}

.wpcf7-form .wpcf7-submit{
    background: black;
    color: white;
}

#Footer .mobile-social-links {
    display: none;
}

#Footer .mobile-social-links a {
    display: inline-block;
    color: white;
    font-size: 24px;
    margin: 0 12px;
    transition: opacity 0.3s ease;
}

#Footer .mobile-social-links a:hover {
    opacity: 0.7;
}

#Footer .mobile-social-links a i {
    vertical-align: middle;
}

/* Mobile (max 767px) */
@media screen and (max-width: 767px) {
    #Footer .widgets_wrapper > .container {
        flex-direction: column;
    }

    #Footer .one-second.column, #Footer .one-third.column,
    #Footer .one-fourth.column {
        width: 100%;
        margin-left: 0;
        border-left: 0;
        padding-left: 0;
        margin-bottom: 20px;
    }

    #Footer .one-fourth.column:last-child {
        display: none;
    }

    #Footer .mobile-social-links {
        display: block;
        text-align: center;
        padding: 20px 0;
        margin-top: 10px;
    }

    #Footer .footer-logo {
        position: static;
        text-align: center;
        padding: 0;
    }

    #Footer .footer-logo img {
        max-width: 180px;
        padding: 15px 0;
    }
}

#Footer aside {
    margin: 10px 0 !important;
}

#Footer .footer-logo{
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
}

#Footer .footer-logo img{
    max-height: 100px;
    width: auto;
}

/* Medium-large screens (1024px - 1400px) */
@media screen and (min-width: 1024px) and (max-width: 1400px) {
    #Footer .widgets_wrapper > .container {
        margin: 40px 10px;
    }

    #Footer .one-fourth.column {
        width: 22%;
        font-size: 13px;
        margin-left: 8px;
        padding-left: 8px;
    }

    #Footer .one-fourth.column:first-child {
        width: 28%;
        margin-right: 1.5rem;
    }

    #Footer .footer-logo img {
        max-height: 70px;
    }
}

/* Tablet (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    #Footer .widgets_wrapper > .container {
        flex-direction: column;
    }

    #Footer .one-fourth.column {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    #Footer .one-fourth.column:first-child {
        margin-right: 0;
    }

    /* Hide 4th column (social links text) on tablet */
    #Footer .one-fourth.column:last-child {
        display: none;
    }

    #Footer .footer-logo {
        position: static;
        padding: 0;
        text-align: center;
        transform: none;
    }

    #Footer .footer-logo img {
        max-width: 200px;
        padding: 20px 0px 10px;
    }

    /* Show social icons on tablet */
    #Footer .mobile-social-links {
        display: block;
        text-align: center;
        padding: 15px 0;
        margin-top: 10px;
    }
}

.fiv-title{
    display: inline-block;
    line-height: 1.1rem;
    background: black;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    position: absolute;
    left: 4px;
    bottom: 64px;
    z-index: 9;
    padding: 8px 30px 6px;
    letter-spacing: 2px;
}

.fiv-ctrls{
    
}

.wc-block-components-totals-shipping__via{
    display:none;
}

.header-bottomlogo{
    display:none;
}

.wp-block-woocommerce-empty-cart-block hr + .wp-block-heading{
    display:none;
}

@media screen and (min-width:1240px) {
    #Header_creative{
        display: flex;
        flex-direction: column;
    }
    .creative-wrapper{
        flex:1;
    }
    .header-bottomlogo{
        display:block;
        background: black;
        width: 100%;
        align-self: end;
    }

    .header-bottomlogo img{
        max-width: 100px;
        margin: 0px auto;
        display: block;
        padding: 5px 20px;
    }
    .header-bottomlogo > div{
        text-align: center;
        font-size: 0.7rem;
        color: white;
        padding: 5px 10px 20px;
        text-transform: uppercase;
    }
}

/* Header cart - only show on desktop screens 1240px and up */
@media (max-width: 1239px) {
    #Wrapper .header-cart {
        display: none !important;
    }
}

/* Mobile responsive styles for footer logo and columns */
@media (max-width: 768px) {
    #Footer .widgets_wrapper > .container {
        flex-direction: column;
        margin: 20px 10px;
    }
    
    #Footer .one-second.column {
        border-left: none;
        border-bottom: 1px solid white;
        margin-left: 0;
        margin-bottom: 20px;
        padding-bottom: 20px;
        width: 100% !important;
    }
    
    #Footer .one-second.column:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    #Footer .footer-logo {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        text-align: center;
        margin-bottom: 20px;
        order: -1;
    }
    
    #Footer .footer_copy {
        display: flex;
        flex-direction: column;
    }
    
    #Footer .footer_copy .container .column {
        display: flex;
        flex-direction: column;
    }
    
    #Footer .footer-logo img {
        max-height: 80px;
    }
}

.container-img-fit img{
    object-fit: contain;
}

#Header_creative #Top_bar {
    background-image: unset;
    background-color: black;
}

/* Product right column alignment */
.column_product_cart_button {
    text-align: right;
}

.column_product_cart_button .mcb-column-inner {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.mfn-product-add-to-cart {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.woocommerce .mfn-variations-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

#Subheader:after{
    box-shadow:none !important;
}

@media screen and (max-width: 767px){
    #Subheader{
        padding: 3rem 0 2rem;
    }
}

.woocommerce .mfn-variations-wrapper .mfn-vr {
    flex-direction: column;
    align-items: flex-end !important;
    width: 100%;
    text-align: right;
    padding: 1rem 0 3rem;
    border:none;
}

.single-product.woocommerce .mfn-variations-wrapper .mfn-vr ul.mfn-vr-options.mfn-vr-image li a{
    height:auto;
}

.single-product.woocommerce .mfn-variations-wrapper .mfn-vr ul.mfn-vr-options.mfn-vr-image li a img{
    height:auto !important;
    width: auto;
    max-width: 100px;
}

.single-product.woocommerce div.product div.images img{
    max-height: calc(100vh - 150px);
    object-fit: contain;
}

.woocommerce .mfn-variations-wrapper .mfn-vr label {
    align-self: flex-end;
    margin-right:0;
}

.woocommerce .mfn-variations-wrapper .mfn-vr .mfn-vr-options {
    justify-content: flex-end;
    margin-right: -14px;
}

.variations_form .variations {
    width: 100%;
}

.variations_form .variations tbody tr {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
}

.variations_form .variations tbody tr th.label {
    order: 2;
    margin-left: 10px;
    margin-right: 0;
    text-align: right;
}

.variations_form .variations tbody tr td.value {
    order: 1;
    text-align: right;
}

.opening-dimensions {
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 0px;
}

.opening-dimensions .form-row {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
}

.opening-dimensions .form-row label {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.opening-dimensions .form-row .woocommerce-input-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.opening-dimensions .form-row input {
    text-align: center;
    width: 100%;
    padding: 5px 5px;
}

.custom-dimensions {
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 0px;
}

.custom-dimensions .form-row {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
}

.custom-dimensions .form-row label {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.custom-dimensions .form-row .woocommerce-input-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.custom-dimensions .form-row input {
    text-align: center;
    width: 100%;
    padding: 5px 5px;
    background-color: #EDEDED;
    cursor: not-allowed;
}

.price-calculator {
    text-align: right;
    width: 100%;
}

.single_variation_wrap {
    width: 100%;
    text-align: right;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    align-items: flex-end;
    width: 100%;
    justify-content: right;
}

.quantity {
    margin-bottom: 10px;
}

.single_add_to_cart_button {
    align-self: flex-end;
}

.mcb-item-product_title-inner{
    text-align:right;
}

/* Product page section wrapper styles - desktop only */
@media (min-width: 769px) {
    .wp-singular.single-product .section_wrapper {
        max-width: none;
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

/* Mobile responsive styles for product alignment */
@media (max-width: 768px) {
    .column_product_cart_button {
        text-align: left;
    }

    .column_product_cart_button .mcb-column-inner {
        align-items: flex-start;
    }

    .mfn-product-add-to-cart {
        align-items: flex-start;
    }

    .woocommerce .mfn-variations-wrapper {
        align-items: flex-start;
    }

    .woocommerce .mfn-variations-wrapper .mfn-vr {
        align-items: flex-start !important;
        text-align: left;
    }

    .woocommerce .mfn-variations-wrapper .mfn-vr label {
        align-self: flex-start;
    }

    .woocommerce .mfn-variations-wrapper .mfn-vr .mfn-vr-options {
        justify-content: flex-start;
    }

    .variations_form .variations tbody tr {
        justify-content: flex-start;
        text-align: left;
    }

    .variations_form .variations tbody tr th.label {
        order: 1;
        margin-left: 0;
        margin-right: 10px;
        text-align: left;
    }

    .variations_form .variations tbody tr td.value {
        order: 2;
        text-align: left;
    }

    .opening-dimensions {
        text-align: left;
        justify-content: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .opening-dimensions .form-row {
        text-align: left;
        align-items: flex-start;
        min-width: auto;
        width: 100%;
    }

    .opening-dimensions .form-row label {
        text-align: left;
        margin-bottom: 5px;
    }

    .opening-dimensions .form-row .woocommerce-input-wrapper {
        justify-content: flex-start;
    }

    .opening-dimensions .form-row input {
        text-align: left;
        max-width: 100%;
    }

    .custom-dimensions {
        text-align: left;
        justify-content: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .custom-dimensions .form-row {
        text-align: left;
        align-items: flex-start;
        min-width: auto;
        width: 100%;
    }

    .custom-dimensions .form-row label {
        text-align: left;
        margin-bottom: 5px;
    }

    .custom-dimensions .form-row .woocommerce-input-wrapper {
        justify-content: flex-start;
    }

    .custom-dimensions .form-row input {
        text-align: left;
        max-width: 100%;
    }

    .price-calculator {
        text-align: left;
    }

    .single_variation_wrap {
        text-align: left;
    }

    .woocommerce-variation-add-to-cart {
        align-items: flex-start;
    }

    .single_add_to_cart_button {
        align-self: flex-start;
    }
}

/* Custom Product Grid Layout */
.fineline-custom-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fineline-product-item {
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;

}

.post-type-archive .fineline-product-item{
    aspect-ratio: unset;
    margin-bottom: 2rem;
    
}

.post-type-archive .fineline-product-item a{
    text-decoration: none !important;
}

.fineline-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fineline-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fineline-product-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    padding: 20px;
}

.post-type-archive .fineline-product-image{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
    height: 100%;
    width: 100%;
    
}

.post-type-archive .fineline-product-image img{
    aspect-ratio: 1;
}

.fineline-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fineline-product-info {
    padding: 25px;
    text-align: left;
    background: #fff;
}

.fineline-product-title {
    font-size: 24px;
    margin: 0 0 0px 0;
    color: #333;
    line-height: 1.3;
    text-align:center;
}

.fineline-product-price {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

/* Static product styling */
.fineline-static-product .fineline-product-info {
    background: white;
}

.fineline-static-product:hover .fineline-product-info {
    background: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fineline-custom-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }

    .fineline-product-item {
        aspect-ratio: 1.2;
    }

    .fineline-product-title {
        font-size: 20px;
    }

    .fineline-product-price {
        font-size: 16px;
    }

    .fineline-product-info {
        padding: 20px;
    }
}

/* Hide default WooCommerce shop elements when using custom grid */
.fineline-custom-product-grid ~ .woocommerce-result-count,
.fineline-custom-product-grid ~ .woocommerce-ordering,
.page .fineline-custom-product-grid + .woocommerce-pagination {
    display: none;
}

#Footer .one-second.column, #Footer .one-third.column:first-child,
#Footer .one-second.column, #Footer .one-fourth.column:first-child {
    margin-right: 4rem;
}

/* Add to Cart Success Popup - Small corner notification */
#fineline-cart-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

#fineline-cart-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.cart-popup-overlay {
    /* Remove overlay since we don't want modal behavior */
    display: block;
}

.cart-popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    width: 290px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    position: relative;
}

.cart-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 2px;
}

.cart-popup-close:hover {
    color: #333;
}

.cart-popup-message h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    padding-right: 20px;
}

.cart-popup-message p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.cart-popup-actions {
    display: flex;
    gap: 10px;
}

.cart-popup-checkout-btn {
    background: #333;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease;
    flex: 1;
    text-align: center;
}

.cart-popup-checkout-btn:hover {
    background: #000;
    color: white;
    text-decoration: none;
}

.cart-popup-continue-btn {
    background: transparent;
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #fineline-cart-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .cart-popup-content {
        width: auto;
        max-width: 100%;
    }

    .cart-popup-actions {
        flex-direction: column;
        gap: 8px;
    }
}