@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//metromed.bd/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.4.1") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//metromed.bd/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//metromed.bd/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//metromed.bd/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//metromed.bd/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//metromed.bd/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//metromed.bd/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//metromed.bd/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//metromed.bd/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-text-font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #767676;
	--wd-text-font-size: 14px;
	--wd-title-font: var(--wd-text-font);
	--wd-title-font-weight: 600;
	--wd-title-color: #242424;
	--wd-entities-title-font: var(--wd-title-font);
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: var(--wd-text-font);
	--wd-widget-title-font: var(--wd-title-font);
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: var(--wd-text-font);
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(31,185,174);
	--wd-alternative-color: rgb(140,198,63);
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: rgb(31,185,174);
	--btn-accented-bgcolor-hover: rgb(22,156,146);
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 0px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 35px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 35px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--wd-brd-radius: 5px;
}

@media (min-width: 1222px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: #0a0a0a;
}

/* Dynamic Grid Layout - Supports any column number without breaking */
.custom-products-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
    grid-template-columns: repeat(var(--desktop-cols, 4), 1fr);
}

/* Product Card Base */
.custom-p-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.custom-p-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* Image Wrapper */
.custom-p-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f9f9f9;
}
.custom-p-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

/* 12-24 Badge moved to Bottom-Left */
.custom-delivery-badge {
    position: absolute;
    bottom: 12px; /* Positioned at the bottom instead of top */
    left: 12px;
    background: #eef2f7;
    color: #1e293b;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

/* Product Info */
.custom-p-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title strictly 1 line */
.custom-p-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-p-title a {
    color: #1a1a1a;
    text-decoration: none;
}

/* Pricing Style */
.custom-p-price {
    font-size: 16px;
    margin-bottom: 15px;
}
.custom-p-price del {
    color: #000000 !important; /* Cut price black */
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.6;
}
.custom-p-price ins {
    color: #1FB9AE !important; /* Sale price brand color */
    font-weight: 700;
    text-decoration: none;
}

/* Actions Row */
.custom-p-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    position: relative;
}

/* Custom Add to Cart Button & Hover Effect */
.custom-p-action-row .custom-add-to-cart-btn {
    flex-grow: 1;
    background-color: #1FB9AE !important; 
    color: #ffffff !important;
    text-align: center;
    height: 38px !important; /* Explicit desktop height */
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    text-transform: uppercase;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box !important;
    transition: background-color 0.25s ease-in-out, opacity 0.25s ease-in-out !important;
}
.custom-p-action-row .custom-add-to-cart-btn:hover {
    background-color: #169C92 !important; /* Requested hover color */
    opacity: 1 !important;
}

.custom-p-action-row .added_to_cart {
    display: none !important;
}

/* Quantity Selector & Centering text */
.custom-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 38px !important; /* Matches desktop button height */
    box-sizing: border-box !important;
}
.custom-qty-selector .qty-btn {
    background: #f8fafc;
    border: none;
    width: 28px;
    height: 100%;
    font-size: 16px;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.custom-qty-selector .qty-btn:hover { background: #e2e8f0; }

.custom-qty-selector .qty-input {
    width: 35px !important;
    height: 100% !important;
    text-align: center !important; /* Forces text center alignment */
    border: none !important;
    border-left: 1px solid #cbd5e1 !important;
    border-right: 1px solid #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 !important; /* Overrides theme input padding pushing the number */
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

/* Desktop text labels toggle */
.custom-add-to-cart-btn .lbl-desktop { display: inline-block; }
.custom-add-to-cart-btn .lbl-mobile { display: none; }

/* ==========================================================
   MOBILE RESPONSIVE STYLES (Fixed Height & 2 Columns)
   ========================================================== */
@media (max-width: 767px) {
    .custom-products-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
    }
    .custom-p-info {
        padding: 10px !important; 
    }
    .custom-p-title {
        font-size: 13px !important; 
    }
    .custom-p-price {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    .custom-p-price del {
        font-size: 11px !important;
    }
    .custom-delivery-badge {
        bottom: 6px !important; /* Keeps badge at bottom on mobile */
        left: 6px !important;
        padding: 4px 6px !important;
        font-size: 9px !important;
    }
    .custom-p-action-row {
        gap: 5px !important;
    }
    
    /* Strict matching height for button and quantity box on mobile */
    .custom-p-action-row .custom-add-to-cart-btn {
        height: 34px !important; 
        padding: 0 6px !important;
        font-size: 11px !important;
    }
    .custom-qty-selector {
        height: 34px !important; 
    }
    .custom-qty-selector .qty-btn {
        width: 24px !important;
        font-size: 13px !important;
    }
    .custom-qty-selector .qty-input {
        width: 26px !important;
        font-size: 12px !important;
    }
    
    /* Text toggle for mobile */
    .custom-add-to-cart-btn .lbl-desktop { display: none !important; }
    .custom-add-to-cart-btn .lbl-mobile { display: inline-block !important; }
}