/* Reset margin and padding */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Remove space above navbar */
.navbar {
    margin-top: 0;
    padding-top: 0;
}

.traditional-sweets {
    padding: 2rem 0;
    background-color: #fff8f8;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.sweets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Common card styles */
.card, .sweet-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

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

/* Image styles */
.card-img-top, .sweet-card img {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

/* Card body styles */
.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title, .sweet-card h3 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-text, .sweet-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.btn-primary {
    background-color: #ff6b6b !important;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: #ff5252 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Enhanced Responsive Styles */
@media (max-width: 1200px) {
    .card-img-top, .sweet-card img {
        height: 280px;
    }
    
    .sweets-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 991px) {
    .sweets-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .card-img-top, .sweet-card img {
        height: 260px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .traditional-sweets {
        padding: 1.5rem 0;
    }
    
    .sweets-container {
        gap: 1rem;
    }
    
    .card-img-top, .sweet-card img {
        height: 240px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title, .sweet-card h3 {
        font-size: 1.1rem;
    }
    
    .card-text, .sweet-card p {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .card-img-top, .sweet-card img {
        height: 220px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title, .sweet-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .card-text, .sweet-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .price {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .btn-primary {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
} 