/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.single-product .cp-secure-payment-img {
    margin-top: 15px;
}

.single-product .cp-secure-payment-img img {
    max-width: 340px;
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   Compact Product Card Buttons
   Theme Color: #41BA90
===================================================== */

.wd-product-wrapper .wd-product-cats {
	display: none;
}

.wd-product-wrapper .wd-add-btn {
	display: none;
}
.wd-loop-builder-off .wd-product .wd-entities-title {
	max-height: 42px;
	overflow: hidden;
}
.wd-product.wd-hover-alt:not(.wd-variation-active):is(.purchasable, .product-type-grouped):hover .swap-elements {
	transform: unset !important;
}

.custom-loop-btns {
    display: flex;
    gap: 7px;
    width: 100%;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
}

/* Common button */
.custom-loop-btns .button,
.custom-loop-btns a.button,
.custom-loop-btns .add_to_cart_button,
.custom-loop-btns .product_type_simple,
.custom-loop-btns .product_type_variable {
    flex: 1 1 0;
    min-width: 0;
    min-height: 30px;
    padding: 5px 7px !important;
    border-radius: 9px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-align: center;
    text-transform: none !important;
    letter-spacing: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none !important;
    /* box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08); */
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
    transition: all 0.22s ease;
    white-space: nowrap;
    overflow: hidden;
}

/* Buy Now - Primary */
.custom-loop-btns .custom-buy-now-btn {
    background: #162555 !important;
    color: #ffffff !important;
}

/* Add to Cart - Soft gray */
.custom-loop-btns .add_to_cart_button,
.custom-loop-btns .product_type_simple,
.custom-loop-btns .product_type_variable {
    background: #f1f3f4 !important;
    color: #222222 !important;
}

/* Add to Cart hover */
.custom-loop-btns .add_to_cart_button:hover,
.custom-loop-btns .product_type_simple:hover,
.custom-loop-btns .product_type_variable:hover {
    background: #e4e7e8 !important;
    color: #111111 !important;
}

/* Buy Now hover */
.custom-loop-btns .custom-buy-now-btn:hover {
    background: #172c6e !important;
    color: #ffffff !important;
}

/* Hover effect */
.custom-loop-btns .button:hover,
.custom-loop-btns a.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.11);
}

/* Click effect */
.custom-loop-btns .button:active,
.custom-loop-btns a.button:active {
    transform: translateY(0);
}

/* Icons */
.custom-btn-icon {
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.custom-cart-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Remove default margin */
.custom-loop-btns .button {
    margin: 0 !important;
}

/* Loading state */
.custom-loop-btns .loading {
    opacity: 0.7;
    pointer-events: none;
}

/* =====================================================
   Mobile Fix
===================================================== */

@media (max-width: 767px) {
    .custom-loop-btns {
        gap: 5px;
        margin-top: 8px;
    }

    .custom-loop-btns .button,
    .custom-loop-btns a.button,
    .custom-loop-btns .add_to_cart_button,
    .custom-loop-btns .product_type_simple,
    .custom-loop-btns .product_type_variable {
        min-height: 34px;
        padding: 8px 5px !important;
        border-radius: 8px !important;
        font-size: 10.8px !important;
        gap: 3px;
        box-shadow: 0 4px 9px rgba(0, 0, 0, 0.07);
    }

    .custom-btn-icon {
        font-size: 11px;
    }

    .custom-cart-icon svg {
        width: 12px;
        height: 12px;
    }
}

/* Extra small mobile */
@media (max-width: 380px) {
    .custom-loop-btns {
        gap: 4px;
    }

.custom-loop-btns .button, 
.custom-loop-btns a.button,
 .custom-loop-btns .add_to_cart_button, 
 .custom-loop-btns .product_type_simple, 
 .custom-loop-btns .product_type_variable {
	min-height: 24px !important;
	padding: 7px 4px !important;
	font-size: 9px !important;
}

    .custom-btn-icon,
    .custom-cart-icon {
        display: none;
    }
}


/* responsive============ */

@media (max-width: 676px) {
    .woocommerce-checkout-review-order-table .checkout-product-image img {
        width: 48px;
        height: 48px;
    }

    .woocommerce-checkout-review-order-table .checkout-product-with-image {
        gap: 8px;
    }

.wd-loop-builder-off .wd-product .wd-entities-title {
	max-height: 30px;
	overflow: hidden;
	line-height: 1.1;
}
.wd-product.wd-hover-alt .wrap-price {
	flex-wrap: wrap;
	font-size: 12px;
}
.custom-cta-buttons--grid {
	margin-top: 12px !important;
}
}




/*=============== for blog post ==============*/

.custom-blog-filter-wrap {
    width: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-blog-tabs {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

    .custom-blog-tab {
        border: 1px solid #d7dbe3;
        background: #ffffff;
        color: #111827;
        padding: 7px 14px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: 0.2px;
        cursor: pointer;
        transition: all .2s ease;
        min-height: 32px;
    }

.custom-blog-tab.active,
.custom-blog-tab:hover {
    background: #5d3f2c;
    border-color: #5d3f2c;
    color: #ffffff;
}

.custom-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.custom-blog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s ease;
}

.custom-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}



.custom-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.custom-blog-card:hover .custom-blog-image img {
    transform: scale(1.04);
}

.custom-blog-badge {
	position: absolute;
	bottom: 0;
	left: 0;
	background: #5d3f2c;
	color: #ffffff;
	padding: 6px 10px;
	border-radius: 0 50px 0px 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.2px;
}

.custom-blog-content {
	padding: 10px;
}

.custom-blog-content h3 {
	margin: 0 0 7px;
	font-size: 19px;
	line-height: 1.15;
	font-weight: 500;
	letter-spacing: -0.2px;
	min-height: 43px;
    overflow: hidden;
}

.custom-blog-content h3 a {
    color: #111827;
    text-decoration: none;
    transition: color .2s ease;
}

.custom-blog-content h3 a:hover {
    color: #5d3f2c;
}

.custom-blog-content p {
	margin: 0 0 22px;
	font-size: 13.5px;
	line-height: 1.25;
	font-weight: 400;
	color: #303a47;
	margin-bottom: 10px;
}

.custom-blog-meta {
	border-top: 1px solid #473710;
	padding-top: 10px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: #6b7280;
	font-size: 11px;
	font-weight: 400;
}

.custom-blog-image {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1.25; /* width:height = 2:1 */
    overflow: hidden;
}

@media (max-width: 1024px) {
    .custom-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .custom-blog-tabs {
        justify-content: flex-start;
        gap: 5px;
        margin-bottom: 30px;
    }

  .custom-blog-tab {
	padding: 2px 5px;
	font-size: 9px;
	min-height: 23px;
}

    .custom-blog-grid {
        grid-template-columns: 1fr;
    }

    .custom-blog-image {
        aspect-ratio: 1 / 1.5;
    }

   .custom-blog-content {
	padding: 7px;
}

 .custom-blog-content h3 {
	font-size: 14px;
	line-height: 1.1;
    min-height: 25px;
}

  .custom-blog-content p {
	font-size: 11px;
}

.custom-blog-meta {
	flex-direction: inherit;
	gap: 2px;
}
.custom-blog-meta {
	padding-top: 6px;
	font-size: 7px;
	font-weight: 400;
}

    .custom-blog-image {
        aspect-ratio: 2 /1 !important;
    }

.custom-blog-badge {
	padding: 4px 9px;
	font-size: 10px;
}
.custom-blog-grid {
	gap: 6px !important;
}

.custom-blog-tabs {
	justify-content: center;
}

}


/* Shop page========== */

.archive .product_list_widget > li .wd-entities-title {
	margin-bottom: 4px;
	font-size: inherit;
	max-height: 35px;
	overflow: hidden;
	line-height: 1.15;
	font-weight: 400;
}

.archive  .product_list_widget > li .widget-product-img {
	flex: 0 0 auto;
	overflow: hidden;
	margin-inline-end: 15px;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
	border-radius: 5px;
}


/* footer========== */

@media (max-width: 767px) {
  .wd-copyrights.wd-layout-two-columns {
    text-align: center;
    font-size: 9px;
    padding: 5px;

  }
  .main-footer .wd-image.text-left {
	text-align: center;
}

  .main-footer .elementor-1033 .elementor-element.elementor-element-7341eac img {
	height: 50px;
	width: 50px;
}
 .main-footer .footer-sidebar.widget-area.wd-grid-g {
	padding-top: 15px;
    font-size: 11px;
}
 .main-footer .wd-list.color-scheme-.wd-fontsize-xs.wd-type-image.wd-style-default.text-left {
	font-size: 11px;
}
 .main-footer .widget-title {
	font-size: 12px !important;
}

}