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

/* STAR GOLD EGYPT - WoodMart Luxury Product Card CSS (Revised) */

/* 1. Reset Woodmart Card Basics */
.wd-product.wd-hover-with-fade .wd-product-wrapper,
.wd-product.wd-hover-fw-button .wd-product-wrapper,
.wd-product .wd-product-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

/* Override default woodmart hover effects */
.wd-product.wd-hover-with-fade:hover .product-element-bottom,
.wd-product.wd-hover-fw-button:hover .product-element-bottom {
    transform: none !important;
}
.wd-product.wd-hover-with-fade .product-element-bottom,
.wd-product.wd-hover-fw-button .product-element-bottom {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 0 10px !important;
}

/* Hide the default hover shadow box entirely */
.wd-product-card-bg {
    display: none !important;
    opacity: 0 !important;
}

/* 2. Image Container (The Chic Beige Box) */
.wd-product .wd-product-thumb {
    background-color: #fcfbf9 !important;
    border: 1px solid rgba(0,0,0,0.04) !important;
    padding: 40px !important;
    margin-bottom: 20px !important;
    transition: all 0.5s ease !important;
    overflow: hidden !important;
    position: relative !important;
}

.wd-product:hover .wd-product-thumb {
    background-color: #f4f0ea !important;
    border-color: rgba(205, 164, 94, 0.3) !important;
}

/* Image Zoom Effect */
.wd-product .wd-product-thumb img {
    transition: transform 0.8s ease !important;
}
.wd-product:hover .wd-product-thumb img {
    transform: scale(1.05) !important;
}

/* 3. Text & Typography */
.wd-product .wd-entities-title {
    margin-bottom: 8px !important;
}

.wd-product .wd-entities-title a {
    font-family: 'Playfair Display', serif !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    color: #2a2a2a !important;
    letter-spacing: 0.5px !important;
}

.wd-product .wd-product-cats {
    margin-bottom: 10px !important;
}

.wd-product .wd-product-cats a {
    font-family: 'Jost', sans-serif !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #888 !important;
}

/* 4. The Magic Hover Overlay (Text appearing over image) */
.wd-product .wd-product-card-hover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(253, 252, 251, 0.9) !important;
    backdrop-filter: blur(5px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 30px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(15px) !important;
    transition: all 0.5s ease !important;
    z-index: 10 !important;
    pointer-events: none !important;
    border: none !important;
}

/* Since woodmart puts card-hover in bottom element, we must position the thumb to not hide it, 
   or move card-hover to absolute relative to wrapper */
.wd-product .wd-product-wrapper {
    position: relative !important;
}
.wd-product .product-element-bottom {
    position: static !important; /* allow child absolute to escape to wrapper */
}

/* Limit height to image thumb, approximate with bottom offset */
.wd-product .wd-product-card-hover {
    bottom: auto !important;
    height: calc(100% - 90px) !important; /* height of wrapper minus bottom text */
}

.wd-product:hover .wd-product-card-hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Text inside the hover overlay */
.wd-product .hover-content-inner {
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-size: 16px !important;
    color: #2a2a2a !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* 5. Keep Buttons Above Overlay */
.wd-product .wd-buttons {
    z-index: 20 !important;
    opacity: 0;
    transition: opacity 0.3s;
}
.wd-product:hover .wd-buttons {
    opacity: 1 !important;
}
.wd-product .wd-action-btn > a {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}
.wd-product .wd-action-btn > a:hover {
    background-color: #cda45e !important;
    color: #fff !important;
}

