/* --- RESET Y VARIABLES --- */
:root {
    --primary-green: #2e7d32;
    --light-green-bg: #e8f5e9;
    --secondary-red: #c62828;
    --accent-orange: #ff9800;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-gray: #f8f8f8;
    --white: #ffffff;
    --border-radius: 12px;
  
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cart-icon {
    position: relative;
    font-size: 20px;
    color: var(--text-dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-red);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 2px 6px;
}

.user-actions {
    display: flex;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}

.user-actions span {
    cursor: pointer;
}

/* --- HERO BANNER --- */
.hero {
    background: linear-gradient(135deg, #1b5e20 0%, #004d40 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* --- INTRO SECTION --- */
.intro {
    padding: 40px 0;
    text-align: center;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}





/* --- CATEGORIES --- */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 25px;
    background-color: var(--primary-green);
    border-radius: 4px;
}



.category-card {
    text-align: center;
    background: var(--bg-gray);
    padding: 15px 10px;
    border-radius: var(--border-radius);
    transition: transform 0.2s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
    margin: 0 auto 10px auto;
}

.category-card span {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

/* --- OFFERS GRID --- */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.offer-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-color: #eee;
    height: 250px;
    transition: transform 0.3s;
}

.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-card:hover  {
    transform: scale(1.01);
}

.offer-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- TIPS --- */
.tips-section {
    background-color: var(--bg-gray);
    padding: 40px 0;
    margin-bottom: 40px;
}

.tips-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tip-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tip-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 24px;
    color: white;
}

.tip-icon.green { background-color: #81c784; }
.tip-icon.yellow { background-color: #ffb74d; }
.tip-icon.red { background-color: #ef5350; }
.tip-icon.dark-green { background-color: #2e7d32; }

.tip-card h3 { font-size: 1rem; margin-bottom: 10px; }
.tip-card p { font-size: 0.9rem; color: var(--text-gray); }

@media screen and (max-width: 480px) {
    .offers-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; 
    }
}