/* assets/css/gifting.css */

:root {
    --gift-red: #D32F2F;
    --gift-gold: #C5A028;
    --gift-bg: #fff5f5; /* Light pinkish background for gifting */
    --text-dark: #2d1a05;
    --text-gray: #666;
    --border-color: #f0e0e0;
}

body {
    padding-top: 160px;
    background-color: var(--gift-bg);
}

/* Hero / Banner Section */
.gifting-hero {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.7)), url('../../assets/images/gift-bg-pattern.png'); /* Optional pattern */
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--gift-red);
    margin-bottom: 10px;
}

.page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Bubbles (Rectangular for Gifting) */
.category-bubbles {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.bubble-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    width: 140px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bubble-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.15);
    border-color: var(--gift-red);
}

.bubble-icon {
    font-size: 2rem;
    color: var(--gift-gold);
    margin-bottom: 10px;
}

.bubble-text {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-pill, .sort-by {
    padding: 8px 20px;
    border: 1px solid var(--gift-gold);
    background: #fff;
    color: var(--text-dark);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pill.active, .filter-pill:hover {
    background: var(--gift-red);
    color: #fff;
    border-color: var(--gift-red);
}

.sort-by { margin-left: auto; }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--gift-gold);
}

.product-image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
}

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

.product-card:hover .product-image { transform: scale(1.1); }

.ribbon {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--gift-red);
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}

.wishlist-icon {
    position: absolute; top: 10px; right: 10px;
    font-size: 1.2rem; color: #ccc;
    cursor: pointer; z-index: 2; transition: 0.3s;
}
.wishlist-icon:hover { color: var(--gift-red); }

.product-info { padding: 15px; text-align: center; }

.product-title {
    font-size: 1rem; font-weight: 600;
    color: var(--text-dark); margin-bottom: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.product-price {
    font-size: 1.1rem; font-weight: 700; color: var(--gift-red);
}

/* Promo Cards */
.gift-promo-card {
    grid-column: span 2;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%; min-height: 350px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
    background-size: cover; background-position: center;
}

.gift-promo-card::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 1;
}

.promo-content { position: relative; z-index: 2; padding: 30px; }

.promo-title {
    font-family: 'Cinzel', serif; font-size: 2rem; margin-bottom: 10px;
}

.promo-btn {
    background: #fff; color: var(--gift-red);
    padding: 10px 25px; border-radius: 25px;
    text-decoration: none; font-weight: bold;
    margin-top: 15px; display: inline-block;
    transition: 0.3s;
}

.promo-btn:hover { background: var(--gift-gold); color: #fff; }

/* Responsive */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .gift-promo-card { grid-column: span 2; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .gift-promo-card { grid-column: span 1; }
}