@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');

html,
body,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
button,
input,
select,
textarea {
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
}
.woocommerce div.product div.images {
    width: 100%;
}
.faq-answer a {
    color: #e59600;
}
.single-post-content img {
    margin: 20px auto;
}

.form-delivery .ff-el-form-control:focus {
    border-color: #f4d434 !important;
}

.form-delivery .ff_btn_style,
.form-delivery select {
    min-height: 50px;
}
body {
    font-family: 'IBM Plex Sans Thai', 'Be Vietnam Pro', sans-serif;
    color: #4a4536;
    /* text-brown */
}

/* =========================================
   Bottom description typography (scoped)
   ========================================= */
.woo-bottom-description-wrap h2,
.woo-bottom-description-wrap h3,
.woo-bottom-description-wrap h4 {
    line-height: 1.25;
    font-weight: 700;
    color: #2f2a1f;
    margin: 1.25rem 0 0.75rem;
}

.woo-bottom-description-wrap a {
    color: #664225;
    text-decoration: none;
}

.woo-bottom-description-wrap a:hover {
    opacity: 0.9;
}

.woo-bottom-description-wrap h2 {
    font-size: 1.375rem;
}

.woo-bottom-description-wrap h3 {
    font-size: 1.125rem;
}

.woo-bottom-description-wrap h4 {
    font-size: 1.05rem;
}

@media (min-width: 768px) {
    .woo-bottom-description-wrap h2 { font-size: 1.75rem; }
    .woo-bottom-description-wrap h3 { font-size: 1.375rem; }
    .woo-bottom-description-wrap h4 { font-size: 1.125rem; }
}

/* Site Logo Sizing */
.site-header-logo img,
.site-header-logo .custom-logo-link img {
    height: 70px;
    width: auto;
    padding: 10px;
}

.site-footer-logo img,
.site-footer-logo .custom-logo-link img {
    height: 80px;
    width: auto;
}

/* =========================================
   WooCommerce Grid Override - Flexbox 
   ========================================= */

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    /* Gutter compensation */
    padding: 0 !important;
}

/* Remove clearfix pseudos that might interfere */
.woocommerce ul.products:before,
.woocommerce ul.products:after,
.woocommerce-page ul.products:before,
.woocommerce-page ul.products:after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    clear: none !important;
    width: calc(50% - 7px) !important;
    /* Mobile: 2 columns */
    margin: 0 !important;
    padding: 10px !important;
    border: solid 1px #eee !important;
    /* Gutter */
    box-sizing: border-box !important;
}

/* Tablet: 3 Columns */
@media (min-width: 768px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: calc(33.3333% - 15px) !important;
    }
}

/* Desktop: 4 Columns */
@media (min-width: 1024px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: calc(25% - 15px) !important;
    }
}

/* Ensure images fit nicely */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0 !important;
    /* Align with card design */
}

/* Fix product link wrapper to display properly in flex item */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* =========================================
   WooCommerce Colors & Buttons Overrides
   Theme Colors:
   Primary (Yellow): #f4d434
   Accent Brown: #221f10
   Warm Wood: #8b5a2b
   ========================================= */

/* Primary Buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: #f4d434 !important;
    color: #221f10 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    border: 1px solid #f4d434 !important;

    /* FIX: Button Alignment Logic */
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    /* Space between icon and text */
    text-decoration: none !important;
    line-height: 1.25 !important;
}

/* Specific fix for Product Card button to ensure full width block look if needed, 
   but our PHP already sets w-full. The important here ensures flex works inside. */
.woocommerce ul.products li.product .button {
    width: 100% !important;
    margin: 10px 0 0 !important;
}

.woocommerce_before_shop_loop .woocommerce-notices-wrapper {
    display: none !important;
}

.woocommerce_before_shop_loop>p {
    width: 20%;
}

.woocommerce_before_shop_loop>form {
    width: 80%;
    text-align: right;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: #e5c62e !important;
    border-color: #e5c62e !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Disabled buttons */
.woocommerce #respond input#submit:disabled,
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: #e5e7eb !important;
}

/* Product Titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
    color: #221f10 !important;
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem !important;
    margin-top: 10px !important;
}

/* Price Styling */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #ee4d2d !important;
    /* Shopee Red */
    font-weight: 700 !important;
    font-size: 2rem !important;
}

.woocommerce ul.products li.product .price {
    color: #ee4d2d !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af !important;
    font-size: 0.9em !important;
    opacity: 0.7;
}

/* Sale Badge */
.woocommerce span.onsale {
    background-color: #ef4444 !important;
    /* Red for sale */
    color: white !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    line-height: inherit !important;
    min-height: 2.5em !important;
    min-width: 2.5em !important;
    padding: 0.2rem !important;
    font-size: 0.875rem !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
}

/* Inputs & Quantity */
.woocommerce .quantity .qty {
    border-radius: 6px !important;
    border: 1px solid #e6e4db !important;
    padding: 8px !important;
    color: #4a4536 !important;
    height: 40px !important;
    text-align: center !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border-radius: 6px !important;
    border: 1px solid #e6e4db !important;
    padding: 10px 15px !important;
    color: #4a4536 !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #f4d434 !important;
    outline: none !important;
    ring: 2px solid #f4e07d !important;
}

/* Messages / Alerts */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top: 3px solid #f4d434 !important;
    background-color: #fff9f5 !important;
    color: #4a4536 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-message:before,
.woocommerce-info:before {
    color: #f4d434 !important;
}

.woocommerce-error {
    border-top-color: #ef4444 !important;
}

.woocommerce-error:before {
    color: #ef4444 !important;
}

form#woocommerce-checkout-form-coupon {
    display: flex;
}

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
    padding: 0;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    width: 100%!important;
    gap: 1px!important;
    margin-top: 50px!important;
}



.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    border-radius: 6px !important;
    margin: 0 4px !important;
    padding: 8px 16px !important;
    color: #4a4536 !important;
    background-color: white !important;
    border: 1px solid #e6e4db !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: #fff9f5 !important;
    color: #221f10 !important;
    border-color: #f4d434 !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: #f4d434 !important;
    color: #221f10 !important;
    border-color: #f4d434 !important;
}


.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next{
    padding: 12px!important;
}


/* =========================================
   Cart Table Styling
   ========================================= */

.woocommerce-cart-form {
    background-color: #fff !important;
    padding: 0!important;
    box-shadow: none;
    border: 0;
    margin-bottom: 30px !important;
}

.woocommerce table.shop_table {
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce table.shop_table th {
    font-weight: 700 !important;
    color: #221f10 !important;
    /* text-accent-brown */
    padding: 16px !important;
    /* border-bottom: 2px solid #f0eee6 !important; */
    font-size: 0.95rem !important;
}
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: rgb(206 206 206 / 14%)!important;
}
#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box {
    background-color: #e9e9e9;
}
#add_payment_method #payment div.payment_box::before, .woocommerce-cart #payment div.payment_box::before, .woocommerce-checkout #payment div.payment_box::before{
    border-color: #e9e9e9;
    border-right-color: transparent;
    border-left-color: transparent;
    border-top-color: transparent;
}
.woocommerce-additional-fields > h3 {
    display: none;
}
.woocommerce table.shop_table td {
    padding: 16px 12px !important;
    border-top: 1px solid #f0eee6 !important;
    font-size: 1rem !important;
    vertical-align: middle !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order td {
    border-top: 1px solid 
color-mix(in srgb, currentColor 20%, transparent) !important;
}
/* Product Info */
.woocommerce table.shop_table td.product-name a {
    color: #221f10 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.woocommerce table.shop_table td.product-name a:hover {
    color: #f4d434 !important;
    /* primary */
}

/* Thumbnail */
.woocommerce table.shop_table td.product-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Remove Button */
.woocommerce a.remove {
    color: #ef4444 !important;
    font-weight: bold !important;
    background: #fee2e2 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1 !important;
    transition: all 0.2s !important;
}

.woocommerce a.remove:hover {
    background: #ef4444 !important;
    color: white !important;
}

/* Actions Row (Coupon & Update) */
.woocommerce table.shop_table td.actions {
    padding-top: 24px !important;
    border-top: 2px solid #f0eee6 !important;
}
button#place_order {
    width: 100%;
    margin-top: 10px;
}
p.woocommerce-result-count, form.woocommerce-ordering {
    display: none;
}
.woocommerce nav.woocommerce-pagination{
    margin-top: 40px;
    margin-bottom: 20px;
}
.post-type-archive-product header.woocommerce-products-header {
    display: none;
}
.woocommerce .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.woocommerce .coupon .input-text {
    width: 200px !important;
    margin: 0 !important;
    height: 48px !important;
    border-radius: 8px!important;
}

/* Fix Coupon Button */
.woocommerce .coupon .button {
    height: 48px !important;
    padding: 0 24px !important;
    margin: 0 !important;
}

/* Update Cart Button - usually disabled, make it subtle */
.woocommerce button[name="update_cart"] {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
}

.woocommerce button[name="update_cart"]:hover {
    background-color: #e5e7eb !important;
}

/* =========================================
   Cart Totals (Collaterals) Styling
   ========================================= */

.cart-collaterals {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 450px !important;
    /* Limit width */
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e6e4db !important;
}

.woocommerce div.product form.cart {
    margin-top: 0;
}

.set-min-qty-notice {
    font-size: 0.875rem;
    color: #6b4824;
    margin-bottom: 0.75rem;
}

.set-min-qty-notice p {
    margin: 0;
}

.set-min-qty-notice p + p {
    margin-top: 0.25rem;
    color: #4b5563;
}

.set-min-qty-notice__line-link {
    color: #f48739;
    font-weight: 600;
    text-decoration: none;
}

.set-min-qty-notice__line-link:hover {
    text-decoration: underline;
}

.cart-collaterals .cart_totals h2 {
    font-size: 1.5rem !important;
    color: #221f10 !important;
    margin-bottom: 0 !important;
    font-weight: 600 !important;
    padding-bottom: 10px !important;
    display: inline-block !important;
}

.cart-collaterals .shop_table {
    border: none !important;
    width: 100% !important;
    margin-bottom: 24px !important;
}

.cart-collaterals .shop_table th {
    font-weight: 600 !important;
    color: #6b4824 !important;
    padding: 12px 0 !important;
    border-top: 1px solid #f0eee6 !important;
    width: 40% !important;
}

.cart-collaterals .shop_table td {
    text-align: right !important;
    padding: 12px 0 !important;
    border-top: 1px solid #f0eee6 !important;
    font-weight: 600 !important;
}

/* Order Total Row */
.cart-collaterals .shop_table tr.order-total th,
.cart-collaterals .shop_table tr.order-total td {
    border-top: 2px solid #221f10 !important;
    /* Darker line for total */
    color: #221f10 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    padding-top: 20px !important;
}

.cart-collaterals .shop_table tr.order-total td .amount {
    color: #8b5a2b !important;
    /* Warm wood color for price */
}

/* Proceed to Checkout Button Container */
.wc-proceed-to-checkout {
    margin-top: 20px !important;
    padding: 0 !important;
}

/* The Button itself is already styled by general overrides, 
   but specific tweaks here for full width */
.wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    font-size: 1.125rem !important;
    padding: 16px !important;
}

.woocommerce div.product .product_title {
    font-size: 32px;
    line-height: 32px;
    font-weight: 600;
    margin-bottom: -3px;
}

.woocommerce .woocommerce-ordering select {
    padding: 5px;
    font-size: 14px;
    border: solid 1px #dedede;
    border-radius: 4px;
    max-width: 125px;
}

section.related.products>h2 {
    font-size: 23px;
        color: #6b4824;
    font-weight: 600;
    margin-bottom: 5px;
}
body.woocommerce-cart .woocommerce-message {
    margin: 0;
}


body.woocommerce-cart button[name="update_cart"] {
    display: none!important;
}

@media (max-width: 767px) {
    .woocommerce_before_shop_loop>p {
        width: 70%;
    }

    .woocommerce_before_shop_loop>form {
        width: 40%;
    }
    

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        gap: 14px !important;
    }

    .woocommerce div.product .product_title {
        font-size: 24px;
    }

    .woocommerce ul.products li.product .button {
        padding: 8px 0 !important;
        font-size: 0.9rem;
    }

    .woocommerce ul.products li.product .button svg {
        width: 15px;
    }
}

/* =========================================
   Fix Cart Page Layout with Notices
   ========================================= */

/* Force notices wrapper to take full width and not break flex layout */
.woocommerce-cart .woocommerce-notices-wrapper {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-top: 15px;
    margin-bottom: 0 !important;
}

/* Ensure the main woocommerce container wraps properly */
.woocommerce-cart .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

/* Cart form takes 65% width */
.woocommerce-cart .woocommerce-cart-form {
    flex: 0 1 calc(65% - 15px) !important;
    min-width: 0 !important;
}

/* Cart totals takes 35% width */
.woocommerce-cart .cart-collaterals {
    flex: 0 1 calc(35% - 15px) !important;
    min-width: 0 !important;
    width: auto !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    position: sticky !important;
    top: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Force cart form to not take full width */
.woocommerce-cart-form {
    margin-bottom: 0 !important;
}



    ul.page-numbers li {
        list-style: none;
    }

    .page-numbers:not(.next):not(.prev) {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        background-color: white;
        border: 1px solid #e6e4db;
        color: #4a4a4a;
        font-weight: 700;
        transition: all 0.2s;
        text-decoration: none;
    }

    .page-numbers.current,
    .page-numbers li:hover a {
        background-color: #f4d434 !important;
        border-color: #f4d434 !important;
        color: #5d4037 !important;
    }

        /* Custom styles for pagination to match theme */
    ul.page-numbers {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
        justify-content: center;
        background: #0000!important;
        border: 0!important;
    }
    ul.page-numbers:hover{
        background: #0000!important;
        border: 0!important;
    }

    .page-numbers.dots {
        color: #a0a0a0;
        padding: 0 0.5rem;
    }

/* Responsive - Stack on Mobile */
@media (max-width: 991px) {
    .woocommerce-cart .woocommerce {
        flex-direction: column !important;
    }
    
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    .woocommerce-cart .cart-collaterals .cart_totals {
        position: static !important;
        max-width: 100% !important;
    }
}

/* =========================================
   Quantity Input with +/- Buttons
   ========================================= */

.quantity-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e6e4db !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: white !important;
}

.quantity-wrapper .qty-btn {
    width: 36px !important;
    height: 40px !important;
    background: #f8f8f8 !important;
    border: none !important;
    color: #4a4536 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.quantity-wrapper .qty-btn:hover {
    background: #f4d434 !important;
    color: #221f10 !important;
}

.quantity-wrapper .qty-btn:active {
    background: #e5c62e !important;
}

.quantity-wrapper .qty-btn:disabled {
    background: #f0f0f0 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
}

.quantity-wrapper .qty {
    width: 60px !important;
    height: 40px !important;
    border: none !important;
    border-left: 1px solid #e6e4db !important;
    border-right: 1px solid #e6e4db !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #221f10 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    background: white !important;
    -moz-appearance: textfield !important;
    line-height: 40px !important;
    box-sizing: border-box !important;
}

/* Force center alignment for all quantity inputs */
input.qty,
input[type="number"].qty {
    text-align: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.woocommerce div.product form.cart .quantity input.qty,
.woocommerce .quantity input.qty {
    text-align: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.quantity-wrapper .qty::-webkit-outer-spin-button,
.quantity-wrapper .qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.quantity-wrapper .qty:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Override old quantity styling */
.woocommerce .quantity .qty {
    border: none !important;
    height: 40px !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .quantity-wrapper .qty-btn {
        width: 32px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    
    .quantity-wrapper .qty {
        width: 50px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
}

/* =========================================
   Single Product Page Quantity Input Center
   ========================================= */

.single-product .quantity input.qty,
.woocommerce div.product form.cart .quantity input[type="number"] {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* =========================================
   Continue Shopping Button
   ========================================= */

.wc-proceed-to-checkout .continue-shopping {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1rem !important;
    padding: 14px !important;
    transition: all 0.3s !important;
}

.wc-proceed-to-checkout .continue-shopping:hover {
    background: #f8f8f5 !important;
    border-color: #f4d434 !important;
    color: #221f10 !important;
}

/* =========================================
   WooCommerce Product Gallery Thumbnails Gap
   ========================================= */

.woocommerce div.product div.images .flex-control-thumbs {
    display: flex !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    margin: 0 !important;
    width: calc(25% - 7.5px) !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: 6px !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover {
    opacity: 0.8 !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    border: 2px solid #f4d434 !important;
}

/* =========================================
   Custom Pagination Navigation Styling
   ========================================= */

/* Main navigation container */
.navigation.flexgap-2 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    margin: 40px 0 !important;
    padding: 20px 0 !important;
}

/* Nav links wrapper */
.navigation .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* All page number links and buttons */
.navigation .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 9999px !important;
    background-color: white !important;
    border: 1px solid #e6e4db !important;
    color: #4a4536 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

/* Hover state for page numbers */
.navigation .page-numbers:hover:not(.current):not(.dots) {
    background-color: #fff9f5 !important;
    border-color: #f4d434 !important;
    color: #221f10 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Current/Active page */
.navigation .page-numbers.current {
    background-color: #f4d434 !important;
    border-color: #f4d434 !important;
    color: #221f10 !important;
    font-weight: 700 !important;
    cursor: default !important;
    box-shadow: 0 2px 4px rgba(244, 212, 52, 0.3) !important;
}

/* Dots separator */
.navigation .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    color: #9ca3af !important;
    cursor: default !important;
    pointer-events: none !important;
    font-weight: 700 !important;
}

/* Previous and Next buttons */
.navigation .page-numbers.prev,
.navigation .page-numbers.next {
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    gap: 0.5rem !important;
}

.navigation .page-numbers.prev:hover,
.navigation .page-numbers.next:hover {
    background-color: #f4d434 !important;
    border-color: #f4d434 !important;
    color: #221f10 !important;
    transform: translateY(-2px) !important;
}

/* Arrow icons in prev/next */
.navigation .page-numbers .mr-2,
.navigation .page-numbers .ml-2 {
    display: inline-block !important;
    transition: transform 0.2s !important;
}

.navigation .page-numbers.prev:hover .mr-2 {
    transform: translateX(-2px) !important;
}

.navigation .page-numbers.next:hover .ml-2 {
    transform: translateX(2px) !important;
}

/* Screen reader text (accessibility) */
.navigation .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .navigation .page-numbers {
        min-width: 2rem !important;
        height: 2rem !important;
        padding: 0.375rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    .navigation .page-numbers.prev,
    .navigation .page-numbers.next {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .navigation.flexgap-2 {
        gap: 0.375rem !important;
        margin: 30px 0 !important;
    }
    
    .navigation .nav-links {
        gap: 0.375rem !important;
    }
}

/* Tablet responsive */
@media (min-width: 641px) and (max-width: 1024px) {
    .navigation .page-numbers {
        min-width: 2.25rem !important;
        height: 2.25rem !important;
        font-size: 0.9rem !important;
    }
}



/* WPT Hover Effect for Images */
.wpt-hover {
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.wpt-hover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px; /* rounded-lg equivalent */
}

.wpt-hover:hover img {
    transform: scale(1.05);
}

/* Optional: Add overflow hidden to container */
.wpt-hover .image-container {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Text styling for hover effect */
.wpt-hover .wpt-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
    color: #6b4824; /* text-[#6b4824] */
    transition: color 0.3s ease;
}

.wpt-hover:hover .wpt-title {
    color: #f4d434; /* primary color - adjust as needed */
}

/* Alternative version with more dramatic effect */
.wpt-hover-dramatic img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    filter: brightness(1) saturate(1);
}

.wpt-hover-dramatic:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Smooth version for subtle effect */
.wpt-hover-smooth img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease-out;
    border-radius: 8px;
}

.wpt-hover-smooth .elementor-image-box-img:hover a > img {
    transform: scale(1.03);
}

.wpt-hover-smooth .elementor-image-box-title{
    -o-transition: all .2s;
    -webkit-transition: all .2s;
    transition: all .2s;
}



    /* Product Variations Styling */
    .woocommerce div.product form.cart .variations {
        margin-bottom: -10px;
        padding: 1rem;
    }
    
    .woocommerce div.product form.cart .variations td {
        padding: 0.5rem 0;
        border: none;
        vertical-align: middle;
    }
    
    .woocommerce div.product form.cart .variations td.label {
        font-weight: 600;
        padding-right: 1rem;
        width: auto;
    }
    
    .woocommerce div.product form.cart .variations td.value {
        width: 100%;
    }
    
    .woocommerce div.product form.cart .variations select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #e6e4db;
        border-radius: 0.5rem;
        background-color: white;
        font-size: 1rem;
        color: #6b4824;
    }
    
    .woocommerce div.product form.cart .variations select:focus {
        outline: none;
        border-color: #f4d434;
        box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    }
    
    /* Quantity Input Styling */
    .woocommerce div.product form.cart div.quantity {
        margin-bottom: 1rem;
    }
    
    .woocommerce div.product form.cart div.quantity .qty {
        width: 4rem;
        text-align: center;
        padding: 0.75rem;
        border: 1px solid #e6e4db;
        border-radius: 0.5rem;
        font-weight: 600;
    }
    
    /* Add to Cart Button Styling */
    .woocommerce div.product form.cart .single_add_to_cart_button {
        width: 100%;
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: 9999px;
        border: none;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 20px;
    }
    
    .woocommerce div.product form.cart .single_add_to_cart_button:hover {
        transform: translateY(-1px);
    }
    
    .woocommerce div.product form.cart .single_add_to_cart_button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .woocommerce div.product form.cart .variations tr {
    display: flex !important;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}
    
    /* Price Display */
    .woocommerce div.product p.price {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
    }
    
    .woocommerce div.product p.price del {
        opacity: 0.6;
        margin-right: 0.5rem;
    }
    
    .woocommerce div.product p.price ins {
        text-decoration: none;
    }
    
    /* Variation Reset Link */
    .woocommerce div.product form.cart .reset_variations {
    text-decoration: none;
    font-size: 0.775rem;
    margin-left: 0;
    background: #0000!important;
    color: rgb(217, 14, 0);
    padding: 1px 6px;
    border-radius: 5px;
    font-weight: 500;
    }
    
    .woocommerce div.product form.cart .reset_variations:hover {
        text-decoration: underline;
    }
    
    /* Out of Stock Message */
    .woocommerce div.product .stock.out-of-stock {
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .woocommerce div.product .stock.in-stock {
        color: #059669;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    .product-summary ul {
    list-style: disc;
    margin-left: 20px;
}
    /* Responsive */
    @media (max-width: 768px) {
        .woocommerce div.product form.cart .variations {
            padding: 0.75rem;
        }
        
        .woocommerce div.product form.cart .variations td.label {
            display: block;
            padding-bottom: 0.25rem;
            padding-right: 0;
        }
        
        .woocommerce div.product form.cart .variations td.value {
            display: block;
        }
    }


/* .reviews-swiper .swiper-wrapper {
    justify-content: center;
} */

/* =========================================
   Post Content Headings Styling
   ========================================= */

body.single-post .post-content h1 {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    margin: 2rem 0 1rem 0 !important;
    line-height: 1.2 !important;
}

body.single-post .post-content h2 {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    margin: 1.75rem 0 0.5rem 0 !important;
    line-height: 1.3 !important;
}

body.single-post .post-content h3 {
    font-size: 1.375rem !important;
    font-weight: 600 !important;
    margin: 1.5rem 0 0.5rem 0 !important;
    line-height: 1.4 !important;
}

body.single-post .post-content h4 {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    margin: 1.25rem 0 0.5rem 0 !important;
    line-height: 1.4 !important;
}

body.single-post .post-content h5 {
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin: 1rem 0 0.5rem 0 !important;
    line-height: 1.5 !important;
}

body.single-post .post-content h6 {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin: 0.75rem 0 0.5rem 0 !important;
    line-height: 1.5 !important;
}

.woo-bottom-description-wrap {
    margin-bottom: 50px;
}

/* Mobile responsive headings */
@media (max-width: 768px) {
    body.single-post .post-content h1 {
        font-size: 2rem !important;
    }
    
    body.single-post .post-content h2 {
        font-size: 1.75rem !important;
    }
    
    body.single-post .post-content h3 {
        font-size: 1.375rem !important;
    }
    
    body.single-post .post-content h4 {
        font-size: 1.125rem !important;
    }
    
    body.single-post .post-content h5 {
        font-size: 1rem !important;
    }
    
    body.single-post .post-content h6 {
        font-size: 0.875rem !important;
    }
}

/* Mini cart dropdown alignment on mobile */
@media (max-width: 640px) {
    .mini-cart-dropdown {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 4.4rem !important; /* header height (h-18) */
        width: auto !important;
        max-width: 100vw !important;
        margin-top: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0 !important;
    }
}

/* iOS Safari: background-attachment: fixed is unreliable; ensure image still displays */
@supports (-webkit-touch-callout: none) {
    .locations-bg-fixed {
        background-attachment: scroll !important;
    }
}