
/* ============================================
   GRID LAYOUTS
   ============================================ */
.products-grid-unified {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .products-grid-unified {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .products-grid-unified {
        grid-template-columns: 1fr;
    }
}

/* Swiper slide adjustment */
.swiper-slide .product-card-unified {
    height: 100%;
}

/* ============================================
   SHOWCASE CARD ADJUSTMENTS
   Para cards dentro de carrosseis
   ============================================ */
.showcase-card.product-card-unified {
    min-width: 200px;
    max-width: 280px;
}

.showcase-card .product-info {
    padding: 12px;
}

.showcase-card .product-actions {
    padding: 0 12px 12px;
}

@media (max-width: 768px) {
    .showcase-card.product-card-unified {
        min-width: 160px;
        max-width: 200px;
    }
}

/* ============================================
   UPDATED PRODUCT CARD STYLES (MATCHING REFERENCE)
   ============================================ */

/* Reset some default styles */
.product-card-unified {
    background-color: #ffffff;
    border-radius: 12px; /* Increased radius */
    overflow: hidden;
 box-shadow: 0px 0px 81px 5px rgba(0,0,0,0.48);
-webkit-box-shadow: 0px 0px 81px 5px rgba(0,0,0,0.48);
-moz-box-shadow: 0px 0px 81px 5px rgba(0,0,0,0.48);
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border for definition */
    transition: all 0.3s ease;
    height: 100%; /* Ensure full height in grid */
    display: flex;
    flex-direction: column;
}

.product-card-unified:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.25); /* Very visible hover shadow */
    transform: translateY(-5px);
    border-color: transparent; /* Remove border visual on hover for cleaner shadow */
}

.product-card-unified .product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ensure items stack properly */
    gap: 4px;
}

.product-card-unified .product-name {
    font-size: 0.95rem;
    color: #555; /* Slightly gray based on reference */
    font-weight: 400; /* Regular weight */
    margin-bottom: 8px;
    height: 40px; /* Limit height for 2 lines */
    overflow: hidden;
    line-height: 1.3;
}

/* Discount Badge */
.product-card-unified .discount-badge-card {
    color: #22c55e; /* Vibrant Green */
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 2px;
    display: block;
}

/* Pricing Layout */
.product-card-unified .product-pricing {
    margin-top: 4px;
    margin-bottom: 12px;
}

.product-card-unified .price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card-unified .price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.product-card-unified .price-old {
    text-decoration: line-through;
    color: #a3a3a3; /* Lighter gray */
    font-size: 0.95rem;
    font-weight: 500;
}

/* Button Styles */
.product-card-unified .product-actions-modern {
    padding: 0 16px 16px;
    display: block; /* Override flex if present */
}

.product-card-unified .btn-buy-product {
    background-color: #22c55e; /* Vibrant Green */
    color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card-unified .btn-buy-product:hover {
    /* Keep background same but add opacity */
    background-color: #22c55e;
    opacity: 0.75;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.product-card-unified .btn-buy-product i {
    font-size: 1.1rem;
    margin-left: 4px;
    color: #fff; /* Ensure icon is white */
}

.product-card-unified .btn-buy-product span {
    color: #fff; /* Ensure text is white */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card-unified .product-info {
        padding: 12px;
    }
    .product-card-unified .product-actions-modern {
        padding: 0 12px 12px;
    }
    .product-card-unified .price-current {
        font-size: 1.3rem;
    }
    .product-card-unified .btn-buy-product {
        padding: 10px;
        font-size: 0.9rem;
    }
}
