/* =========================================
   SHOP HERO SECTION (Sunny Yellow Premium)
   ========================================= */
/* Styles moved to main.css for global reuse */


/* =========================================
   PRODUCT GRID LAYOUT
   ========================================= */
body.post-type-archive-product,
body.tax-product_cat {
    background-color: #FFFFFF !important;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

.woocommerce ul.products li.product {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    z-index: 5;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 500px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   PREMIUM PRODUCT CARD STYLING
   ========================================= */
/* =========================================
   PREMIUM PRODUCT CARD STYLING (Refined)
   ========================================= */
/* =========================================
   PREMIUM PRODUCT CARD STYLING (Refined)
   ========================================= */
.wd-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #fff;
    border-radius: 16px;
    /* Main Radius */
    overflow: hidden;
    /* Clip Image Corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Single Main Shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Wrapper (Grid Item) overrides - RESET EVERYTHING */
.woocommerce ul.products li.product {
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    /* Transparent wrapper */
    padding: 0 !important;
    /* NO PADDING */
    margin-bottom: 0 !important;
}

.woocommerce ul.products li.product:hover {
    transform: none !important;
    /* Let inner card handle transform */
    box-shadow: none !important;
}

.woocommerce ul.products li.product:hover .wd-product-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Deeper shadow on inner card */
}

/* IMAGE AREA */
.wd-product-image {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    /* Square Aspect Ratio */
    background-color: #f3f4f6;
    /* Placeholder gray */
    margin: 0;
    border-radius: 0 !important;
    /* Flush with card */
    overflow: hidden;
}

.wd-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.woocommerce ul.products li.product:hover .wd-product-image img {
    transform: scale(1.08);
    /* Premium Slow Zoom */
}

/* BADGES - Float on Image */
.wd-card-badge {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    /* Softer rect */
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.wd-card-badge--category {
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    backdrop-filter: blur(4px);
}

.wd-card-badge--sale {
    left: 12px;
    background: #111827;
    /* Dark Badge */
    color: #FFF;
}

/* CONTENT AREA */
.wd-product-details {
    padding: 16px 20px 20px;
    /* Tighter padding (Top, sides, bottom) */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
    background: #fff;
    gap: 12px;
    /* Consistent Gap */
}

/* Title */
.wd-product-title {
    font-size: 1.05rem !important;
    /* Slightly larger */
    line-height: 1.4 !important;
    margin: 0 !important;
    /* Remove margin, use flex gap */
    font-weight: 700 !important;
    color: #111827 !important;
    letter-spacing: -0.01em !important;
    /* Tight & Clean */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    /* Adjusted height */
    text-align: center !important;
}

.wd-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    font-size: inherit !important;
}

.woocommerce ul.products li.product:hover .wd-product-title a {
    color: var(--color-brand-primary, #14B8A6);
}

/* Price Wrapper */
.wd-price-wrapper {
    margin: 0 !important;
    /* Controlled by gap */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.wd-price-wrapper .price {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    /* Horizontal Price */
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wd-price-wrapper del {
    font-size: 0.8rem;
    color: #9CA3AF;
    /* Gray strikethrough */
    font-weight: 400;
    margin-right: 6px;
}

.wd-price-wrapper ins {
    text-decoration: none;
    color: #111827;
    /* Dark highlights */
    font-weight: 700;
}

/* Card CTA (Bottom) */
.wd-card-cta {
    margin-top: auto;
    width: 100%;
    /* Ensure full clickable width area */
    padding-top: 8px;
    /* Slight separation */
}

.wd-btn-view {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px 0 !important;
    background: transparent !important;
    border: 1px solid #111827 !important;
    /* Strong Dark Border */
    color: #111827 !important;
    /* Strong Dark Text */
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

/* Hide any rogue icons/pseudo elements */
.wd-btn-view:after,
.wd-btn-view:before {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products li.product:hover .wd-btn-view {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    /* Click feedback */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}