/* Offers specific styles */
.offers-body {
    background-color: var(--bg-main);
    color: var(--text-main);
}

.offers-container {
    padding-top: 2rem; /* Adjusted for sticky nav */
    padding-bottom: 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.offers-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.offers-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.offers-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Menu */
.filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.filter-btn {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-main);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

/* Product Card */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 215, 96, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-price {
    display: none;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-btn {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* Ingredients Modal (Dialog) */
.ingredients-modal {
    margin: auto;
    padding: 0;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    background: rgba(10, 15, 12, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    box-shadow: 0 0 30px rgba(30, 215, 96, 0.2);
    width: 90%;
    max-width: 400px;
}

.ingredients-modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.ingredients-modal .modal-content {
    padding: 2rem;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-menu {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        padding: 0 1rem;
    }
}
