/* ============================================
   NEW GRID LAYOUT (MATCHING PRODUCT CARDS)
   ============================================ */

/* Main Packages Grid Container */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Package Card Base (Matched to .product-card) */
.package-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card:hover {
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper (Matched to .product-image-wrapper) */
.package-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--cream, #F5F3F0) 0%, #f8f6f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.package-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card:hover .package-image {
    transform: scale(1.05);
    /* Gentle zoom specific to Scentopia */
}

/* Package Content (Matched to .product-info) */
.package-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0;
}

/* Title (Matched to .product-name) */
.package-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    color: var(--charcoal, #1E1E1E);
    min-height: 4rem;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 600;
}

/* Discount Badge specific to Bundle layout */
.package-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--terracotta, #D17B61);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 5;
}

/* Top Rated Badge */
.package-top-rated {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 45%, #b38728 50%, #fbf5b7 55%, #aa771c 100%);
    background-size: 200% 200%;
    color: #000;
    padding: 6px 15px;
    border-radius: 40px;
    font-weight: 950;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(179, 135, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: goldMovement 4s infinite linear, badgePulse 2.5s infinite ease-in-out;
}

.package-top-rated i {
    font-size: 0.85rem;
}

/* Prices (Matched to .price-section) */
.package-prices {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.package-old-price {
    text-decoration: line-through;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}

.package-new-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e63946;
}

/* Button (Matched to .add-to-cart-btn) */
.package-btn {
    background: var(--charcoal, #1E1E1E);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    margin-top: auto;
    /* Push to bottom */
}

.package-btn:hover {
    background: var(--terracotta, #D17B61);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}