/* =================================================================
   LXD Category Page — Product Card Visual Styling
   Matches local prototype typography, alignment, spacing, hover
   Version: 20260214-v7.1
   ================================================================= */

/* ---- Product Card: Image Area ---- */
/* Note: aspect-ratio and background-color come from inline CSS in
   functions.php (1:1, #FCFAF9) which cannot be overridden here.
   We style everything else around that constraint. */

.wd-product .product-element-top {
    overflow: hidden !important;
    margin-bottom: 18px !important;
    position: relative !important;
}

.wd-product .product-element-top img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.7s cubic-bezier(.22, 1, .36, 1), opacity 0.5s !important;
}

.wd-product:hover .product-element-top img {
    transform: scale(1.04) !important;
}

/* ---- Product Card: Badges ---- */
.wd-product .product-labels span {
    font-family: 'Work Sans', 'Helvetica Neue', sans-serif !important;
    font-size: 8.96px !important;
    font-weight: 600 !important;
    letter-spacing: 1.075px !important;
    text-transform: uppercase !important;
    padding: 5px 14px !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
    color: #242424 !important;
    line-height: normal !important;
}

.wd-product .product-labels .onsale {
    background: #FFFFFF !important;
    color: #B08A3A !important;
}

/* ---- Product Card: Hover Buttons (Quick View, Wishlist, etc.) ---- */
.wd-product .wd-buttons {
    opacity: 0 !important;
    transition: opacity 0.35s cubic-bezier(.25, .1, .25, 1) !important;
}

.wd-product:hover .wd-buttons {
    opacity: 1 !important;
}

.wd-product .wd-action-btn {
    font-family: 'Work Sans', 'Helvetica Neue', sans-serif !important;
    font-size: 9.92px !important;
    font-weight: 600 !important;
    letter-spacing: 1.19px !important;
    text-transform: uppercase !important;
    background: rgba(255,255,255,0.95) !important;
    color: #242424 !important;
    border: none !important;
    transition: color 0.2s !important;
}

.wd-product .wd-action-btn:hover {
    color: #B08A3A !important;
}

/* ---- Product Card: Info Section ---- */
.wd-product .product-element-bottom {
    padding: 0 2px !important;
    text-align: left !important;
}

/* Brand / SKU detail line */
.wd-product .product-element-bottom .wd-product-brands a,
.wd-product .product-element-bottom .wd-product-detail {
    font-family: 'Work Sans', 'Helvetica Neue', sans-serif !important;
    font-size: 9.6px !important;
    font-weight: 500 !important;
    letter-spacing: 1.344px !important;
    text-transform: uppercase !important;
    color: #CDA355 !important;
    display: block !important;
    margin-bottom: 6px !important;
}

/* Product Name (h3 wrapper) */
.wd-product .wd-entities-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 19.84px !important;
    font-weight: 500 !important;
    color: #242424 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

/* Product Name (link inside h3) */
.wd-product .wd-entities-title a {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 19.84px !important;
    font-weight: 500 !important;
    color: #242424 !important;
    line-height: 1.3 !important;
    transition: color 0.3s !important;
    text-align: left !important;
}

/* Force title margin in flex context */
.wd-product .product-element-bottom .wd-entities-title {
    margin-bottom: 8px !important;
    width: 100% !important;
}

.wd-product:hover .wd-entities-title a {
    color: #B08A3A !important;
}

/* Price */
.wd-product .price {
    font-family: 'Raleway', 'Helvetica Neue', sans-serif !important;
    font-size: 15.2px !important;
    font-weight: 500 !important;
    color: #242424 !important;
    display: block !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.01em !important;
    text-align: left !important;
}

.wd-product .price del {
    font-weight: 400 !important;
    color: #999999 !important;
    text-decoration: line-through !important;
    margin-right: 8px !important;
    font-size: 0.85rem !important;
}

.wd-product .price ins {
    text-decoration: none !important;
    font-weight: 500 !important;
    color: #242424 !important;
}

/* ---- Product Card: Wrapper — NO translateY hover ---- */
.wd-product .product-wrapper {
    transition: none !important;
}

.wd-product:hover .product-wrapper {
    transform: none !important;
    box-shadow: none !important;
}

/* ---- Swatches alignment ---- */
.wd-product .wd-swatches-grid {
    justify-content: flex-start !important;
}

/* ---- Animation: Staggered Fade-in ---- */
@keyframes lxdFadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.wd-product.product-grid-item {
    animation: lxdFadeInUp 0.5s cubic-bezier(.22, 1, .36, 1) both !important;
}

.wd-product.product-grid-item:nth-child(1) { animation-delay: 0s !important; }
.wd-product.product-grid-item:nth-child(2) { animation-delay: 0.05s !important; }
.wd-product.product-grid-item:nth-child(3) { animation-delay: 0.10s !important; }
.wd-product.product-grid-item:nth-child(4) { animation-delay: 0.15s !important; }
.wd-product.product-grid-item:nth-child(5) { animation-delay: 0.20s !important; }
.wd-product.product-grid-item:nth-child(6) { animation-delay: 0.25s !important; }
.wd-product.product-grid-item:nth-child(7) { animation-delay: 0.30s !important; }
.wd-product.product-grid-item:nth-child(8) { animation-delay: 0.35s !important; }
.wd-product.product-grid-item:nth-child(9) { animation-delay: 0.40s !important; }

/* ---- Sort Bar / Toolbar Refinements ---- */
.woocommerce-result-count {
    font-family: 'Work Sans', 'Helvetica Neue', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #999999 !important;
    letter-spacing: 0.03em !important;
}

.woocommerce-ordering select {
    font-family: 'Work Sans', 'Helvetica Neue', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #555555 !important;
}
