/* ========================================================
   MEHROMA EXACT PROTOTYPE MATCH (GRID)
   ======================================================== */

/* 1. Base Grid */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    margin-top: 60px !important;
    padding: 0 !important;
    list-style: none !important;
}
ul.products::before, ul.products::after { display: none !important; }

/* 2. The Card Wrapper */
.product-card {
    background: #131108 !important; /* var(--card) */
    border: 1px solid rgba(201,168,76,0.18) !important;
    transition: border-color 0.3s, transform 0.3s !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.product-card:hover {
    border-color: #8a6f2e !important;
    transform: translateY(-4px) !important;
}

/* 3. Image Area & Badge */
.product-img {
    aspect-ratio: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%) !important;
    position: relative !important;
    overflow: hidden !important;
}
.product-badge {
    position: absolute !important; top: 12px !important; left: 12px !important;
    font-size: 8px !important; letter-spacing: 2px !important; padding: 4px 10px !important;
    background: #c9a84c !important; color: #080808 !important;
    text-transform: uppercase !important; z-index: 2 !important;
}

/* 4. Text Information Area */
.product-info {
    padding: 20px !important;
    border-top: 1px solid rgba(201,168,76,0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.product-notes {
    font-size: 9px !important; letter-spacing: 2px !important;
    color: #c9a84c !important; text-transform: uppercase !important;
    margin-bottom: 8px !important;
}
.product-name {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 20px !important; color: #faf8f3 !important;
    margin: 0 0 4px 0 !important; line-height: 1.2 !important;
    font-weight: 400 !important;
}
.product-size {
    font-size: 10px !important; color: #9e9282 !important;
    letter-spacing: 2px !important; margin-bottom: 16px !important;
    flex-grow: 1 !important; /* Pushes footer to the bottom */
}

/* 5. Footer (Price & Button) */
.product-footer {
    display: flex !important; align-items: center !important;
    justify-content: space-between !important;
}
.product-price {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 22px !important; color: #c9a84c !important;
    margin: 0 !important; border: none !important; padding: 0 !important;
}
.product-price del { font-size: 14px !important; color: #9e9282 !important; margin-right: 8px !important; }
.product-price ins { text-decoration: none !important; }

/* 6. The Perfect '+' Button */
.add-btn {
    width: 36px !important; height: 36px !important;
    border: 1px solid rgba(201,168,76,0.35) !important;
    background: transparent !important; color: #c9a84c !important;
    cursor: pointer !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
    font-size: 18px !important; font-family: sans-serif !important;
    transition: all 0.3s !important; padding: 0 !important;
    border-radius: 0 !important; text-decoration: none !important;
    line-height: 1 !important; margin: 0 !important;
}
.add-btn:hover { background: #c9a84c !important; color: #080808 !important; }

/* 7. Destroy Default Plugin Clutter (Wishlist, Compare, View Cart link) */
ul.products li.product .added_to_cart,
ul.products li.product .yith-wcwl-add-to-wishlist,
ul.products li.product .compare,
ul.products li.product .tinv-wraper { display: none !important; }

/* Responsive */
@media (max-width: 992px) { ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 576px) { ul.products { grid-template-columns: 1fr !important; } }