/* General Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'NRT', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background: white;
    color: #FF8C00;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #f8f8f8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
}

.section-title h2 {
    font-size: 28px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 3px;
    background: #FF8C00;
}

/* Daily Posts Slideshow Styles */
.daily-posts-section {
    padding: 40px 0;
    background: #fde3cf;
    margin: 30px 0;
    border-radius: 12px;
}

.daily-posts-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slides-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card-featured {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.product-image-featured {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-featured:hover .product-image-featured img {
    transform: scale(1.05);
}

.product-info-featured {
    padding: 20px;
}

.product-title-featured {
    font-size: 22px;
    margin: 0 0 10px;
    color: #2c3e50;
}

.product-description-featured {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price-featured {
    font-size: 24px;
    font-weight: bold;
    color: #FF8C00;
    margin-bottom: 15px;
}

.product-actions-featured {
    display: flex;
    flex-direction: column; /* Set to column to stack buttons */
    gap: 10px; /* Add some space between buttons */
}

.add-to-cart-featured {
    background: #FF8C00;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%; /* Make button take full width */
}

.add-to-cart-featured:hover {
    background: #e67e00;
}

.view-details-featured {
    color: #FF8C00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: center; /* Center the link text */
    padding: 12px 25px; /* Match padding to button */
    border-radius: 6px;
    border: 2px solid #FF8C00; /* Add a border to make it look like a button */
}

.view-details-featured:hover {
    color: #e67e00;
    text-decoration: underline;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 10px;
}

.slider-control {
    background: #FF8C00;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-control:hover {
    background: #e67e00;
    transform: scale(1.1);
}

.slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.indicator.active {
    background: #FF8C00;
    transform: scale(1.2);
}

/* Add a new class to apply the gray background and rounded corners to other sections */
.section-container {
    background-color: #fde3cf;
    border-radius: 12px;
    margin: 30px 0;
    padding: 40px 15px;
}

/* Product Grid Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards on mobile */
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #2c3e50;
}

.product-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FF8C00;
    margin-bottom: 15px;
}

/* Fix for buttons in product cards */
.product-actions {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Add space between them */
}

.add-to-cart {
    background: #FF8C00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center; /* Center the text inside the button */
}

.add-to-cart:hover {
    background: #e67e00;
}

.view-details {
    color: #FF8C00;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center; /* Center the link text */
    padding: 10px 20px; /* Add padding to make it look like a button */
    border-radius: 5px;
    border: 2px solid #FF8C00; /* Add a border to make it look like a button */
}

.view-details:hover {
    color: #e67e00;
    text-decoration: underline;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination-button {
    background: #FF8C00;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.pagination-button:hover {
    background: #e67e00;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 cards on desktop */
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .product-image-featured {
        height: 220px;
    }
    
    .product-title-featured {
        font-size: 20px;
    }
    
    .product-actions-featured {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-to-cart-featured {
        width: 100%;
    }
    
    .view-details-featured {
        width: 100%;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cards on mobile */
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards on very small screens */
    }
    
    .slider-control {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
