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

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%;
}
.post-content img {
    margin: 20px auto;
}

body {
    font-family: 'IBM Plex Sans Thai', 'Be Vietnam Pro', sans-serif;
    color: var(--color-text-secondary);
}

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

.site-footer-logo img,
.site-footer-logo .custom-logo-link img {
    height: 48px;
    width: auto;
}
footer p{
    font-weight: 300!important;
}
/* =========================================
   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
   Using CSS Variables for easy color management
   ========================================= */

/* Primary Buttons */
/* 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: var(--color-primary) !important;
    color: var(--color-text-white) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--color-primary) !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: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
    color: var(--color-text-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px var(--shadow-medium);
}

/* 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: #000000 !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: #333333 !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: #333333 !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-primary) !important;
    outline: none !important;
    ring: 2px solid var(--color-primary) !important;
}

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

.woocommerce-message:before,
.woocommerce-info:before {
    color: var(--color-primary) !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;
}

.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: #333333 !important;
    background-color: white !important;
    border: 1px solid #e6e4db !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: #f0f9f3 !important;
    color: #000000 !important;
    border-color: var(--color-primary) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !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: #000000 !important;
    /* text-accent-black */
    padding: 16px !important;
    /* border-bottom: 2px solid #f0eee6 !important; */
    font-size: 0.95rem !important;
}

.woocommerce table.shop_table td {
    padding: 16px 12px !important;
    border-top: 1px solid #f0eee6 !important;
    font-size: 1rem !important;
    vertical-align: middle !important;
}

/* Product Info */
.woocommerce table.shop_table td.product-name a {
    color: #000000 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.woocommerce table.shop_table td.product-name a:hover {
    color: var(--color-primary) !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: 20px;
}

.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;
    font-weight: 600;
    color: #391d00;
}

.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;
}

/* 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: var(--color-primary) !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: var(--color-primary) !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 var(--color-primary) !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: var(--color-primary) !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: var(--color-primary) !important;
    border-color: var(--color-primary) !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: var(--color-primary) !important;
    border-color: var(--color-primary) !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;
    }
}

/* =========================================
   Header Navigation Styles
   ========================================= */

.nav-link-top {
    transition: color 0.3s ease, font-weight 0.3s ease;
    padding: 8px 16px!important;
    border-radius: 20px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.nav-link-top:hover {
    color: white;
}

.nav-link-top.is-active {
    color: white;
    font-weight: 600;
}

.nav-indicator {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background-color: var(--color-primary) !important;
}

/* Fixed header - always transparent, no scroll effects */
#main-header {
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none !important;
    top: 30px;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}


/* Mobile/tablet header positioning */
@media (max-width: 1023px) {
    #main-header {
        top: 15px !important;
    }

    #main-header.header-scrolled {
        top: 0 !important;
    }
}

/* Header scroll effect - mobile/tablet only */
#main-header.header-scrolled {
    background-color: rgba(75, 184, 105, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 10px 0;
}

/* Admin bar adjustment for fixed header */
.admin-bar #main-header {
    top: 58px;
}


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

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

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

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

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

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

.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;
}

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


/* =========================================
   Box Hover Effect - Green Background
   ========================================= */

.box-hover-green .elementor-widget-icon-box,
.box-hover-green3 > .elementor-element {
    transition: all 0.3s ease !important;
    padding: 20px !important;
    border-radius: 12px !important;
}

.box-hover-green3 > .elementor-element:hover,
.box-hover-green .elementor-widget-icon-box:hover {
    background-color: #4BB869 !important;
}

.box-hover-green .elementor-widget-icon-box:hover .elementor-icon-box-title,
.box-hover-green .elementor-widget-icon-box:hover .elementor-icon-box-description,
.box-hover-green3 > .elementor-element:hover .elementor-icon-box-title,
.box-hover-green3 > .elementor-element:hover .elementor-icon-box-description {
    color: white !important;
}

.box-hover-green .elementor-widget-icon-box:hover .elementor-icon svg,
.box-hover-green .elementor-widget-icon-box:hover .elementor-icon path,
.box-hover-green3 > .elementor-element:hover .elementor-icon svg,
.box-hover-green3 > .elementor-element:hover .elementor-icon path {
    fill: white !important;
    stroke: white !important;
}

/* =========================================
   Box Hover Green 2 Effect
   ========================================= */

.box-hover-green2 .hover-g-wrap > .elementor-element {
    transition: all 0.3s ease !important;
    padding: 0 !important;
    border-radius: 12px !important;
}

.box-hover-green2 .hover-g-wrap > .elementor-element:hover {
    background-color: #4BB869 !important;
}

.box-hover-green2 .hover-g-wrap > .elementor-element:hover .elementor-icon-box-title,
.box-hover-green2 .hover-g-wrap > .elementor-element:hover .elementor-icon-box-description {
    color: white !important;
}

.box-hover-green2 .hover-g-wrap > .elementor-element:hover .elementor-icon svg,
.box-hover-green2 .hover-g-wrap > .elementor-element:hover .elementor-icon path {
    fill: white !important;
    stroke: white !important;
}
/* =========================================
   Box Hover Green 4 Effect
   ========================================= */

.box-hover-green4 > .e-con.e-child {
    transition: all 0.3s ease !important;
    padding: 0 !important;
    border-radius: 22px !important;
}

.box-hover-green4 > .e-con.e-child:hover {
    background-color: #4BB869 !important;
}

.box-hover-green4 > .e-con.e-child:hover .elementor-icon-box-title,
.box-hover-green4 > .e-con.e-child:hover .elementor-icon-box-description {
    color: white !important;
}

.box-hover-green4 > .e-con.e-child:hover .elementor-icon svg,
.box-hover-green4 > .e-con.e-child:hover .elementor-icon path {
    fill: white !important;
    stroke: white !important;
}
#asl-storelocator.asl-cont ul#p-statelist {
    display: flex!important;
    flex-direction: column!important;
    gap: 20px!important;
}
#asl-storelocator.asl-cont .asl-wrapper .sl-main-cont .asl-panel-inner .sl-main-cont-box .sl-list-wrapper .sl-list .sl-item {
    border-radius: 20px;
    margin-right: 10px;
}
#asl-storelocator.asl-cont .sl-main-cont .asl-panel-inner {
    background: #0000 !important;
    border: 0 !important;
    box-shadow: none !important;
}
#asl-storelocator.asl-cont .sl-main-cont .asl-panel {
    border: 0!important;
}
#asl-storelocator.asl-cont .sl-main-cont .asl-panel-inner .Num_of_store {
    display: none!important;
}
#asl-storelocator.asl-cont .asl-map {
    padding-left: 30px;
    border-radius: 20px;
}
#asl-storelocator.asl-cont.asl-template-0 .asl-wrapper .sl-main-cont .btn.btn-asl {
    background: #0000!important;
    border: 0;
    padding: 0 !important;
    color: #4bb869!important;
    margin-top: -5px !important;
    margin-left: -3px;
}
@media (max-width: 768px) {
    #asl-storelocator.asl-cont .asl-map {
        padding-left: 0;
    }
    #asl-storelocator.asl-cont .asl-wrapper .sl-main-cont .asl-panel-inner .sl-main-cont-box .sl-list-wrapper .sl-list .sl-item {
        margin-right: 0!important;
    }
}