/* --- Homepage Redesign --- */

:root {
    --h-primary-color: #2a6f47; /* A rich, natural green */
    --h-secondary-color: #f2a900; /* A warm, golden accent */
    --h-light-bg: #f9f9f9;
    --h-dark-text: #333;
    --h-light-text: #666;
    --h-white: #fff;
    --h-border: #e0e0e0;
    --h-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* --- General --- */
.home-section {
    padding: 60px 0;
}

.home-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.home-section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--h-dark-text);
    margin-bottom: 10px;
}

.home-section-title p {
    font-size: 1.1rem;
    color: var(--h-light-text);
    max-width: 600px;
    margin: 0 auto;
}


/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(to right, #eaf5f0, #f9f9f9);
    padding: 80px 0;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.hero-content .sub-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--h-primary-color);
    margin-bottom: 15px;
}

.hero-content .main-heading {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--h-dark-text);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .description {
    font-size: 1.1rem;
    color: var(--h-light-text);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btn {
    background-color: var(--h-primary-color);
    color: var(--h-white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #1e5234;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: var(--h-shadow);
    z-index: 1;
}

.hero-bg-shape {
    position: absolute;
    width: 120%;
    height: 120%;
    background-color: var(--h-primary-color);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

/* --- Featured Categories --- */
.featured-categories {
    background-color: var(--h-light-bg);
}

.category-card {
    background: var(--h-white);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--h-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.category-card-image {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--h-light-bg);
}

.category-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--h-dark-text);
    margin-top: auto;
}

/* --- Deal of the Day --- */
.deal-product-card {
    background: var(--h-white);
    border-radius: 15px;
    box-shadow: var(--h-shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 30px;
}

.deal-product-image {
    flex: 0 0 40%;
    position: relative;
}

.deal-product-image img {
    width: 100%;
    border-radius: 10px;
}

.deal-product-info {
    flex: 1;
}

.deal-product-info .sub-title {
    color: var(--h-secondary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.deal-product-info .product-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--h-dark-text);
    margin-bottom: 15px;
}

.deal-product-info .product-price .current-price {
    color: var(--h-primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.deal-product-info .product-price .old-price {
    margin-left: 15px;
    text-decoration: line-through;
    color: var(--h-light-text);
}

.deal-product-info .countdown-timer {
    margin: 20px 0;
}

/* --- General Product Card (for recent products etc.) --- */
.g-product-card {
    background: var(--h-white);
    border-radius: 15px;
    box-shadow: var(--h-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.g-product-card:hover {
    transform: translateY(-5px);
}

.g-product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.g-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.g-product-card:hover .g-product-image img {
    transform: scale(1.05);
}

.g-product-info {
    padding: 20px;
}

.g-product-info .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--h-dark-text);
    margin-bottom: 10px;
    display: block;
}

.g-product-info .product-price .current-price {
    color: var(--h-primary-color);
    font-weight: 700;
}

.g-product-info .product-price .old-price {
    margin-left: 10px;
    text-decoration: line-through;
    color: var(--h-light-text);
    font-size: 0.9rem;
}

.g-product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.g-product-card:hover .g-product-actions {
    transform: translateX(0);
}

.g-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--h-white);
    border: 1px solid var(--h-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h-dark-text);
    transition: all 0.3s ease;
}

.g-action-btn:hover {
    background: var(--h-primary-color);
    color: var(--h-white);
    border-color: var(--h-primary-color);
}

/* --- Testimonials --- */
.testimonials-section {
    background-color: var(--h-light-bg);
}

.testimonial-card {
    background: var(--h-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--h-shadow);
    text-align: center;
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--h-primary-color);
    opacity: 0.2;
    margin-bottom: 15px;
}

.testimonial-card .review-text {
    font-style: italic;
    color: var(--h-light-text);
    margin-bottom: 20px;
}

.testimonial-card .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
}

.testimonial-card .author-name {
    font-weight: 700;
    color: var(--h-dark-text);
}

/* --- Blog Section --- */
.blog-card {
    background: var(--h-white);
    border-radius: 15px;
    box-shadow: var(--h-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content .blog-date {
    font-size: 0.9rem;
    color: var(--h-light-text);
    margin-bottom: 10px;
}

.blog-card-content .blog-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--h-dark-text);
    line-height: 1.4;
}

/* Responsive Adjustments */

/* Large tablets and small desktops */
@media (max-width: 1199px) {
    .hero-content .main-heading {
        font-size: 3.2rem;
    }
    
    .home-section {
        padding: 50px 0;
    }
    
    .deal-product-info .product-name {
        font-size: 1.75rem;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-content .main-heading {
        font-size: 2.8rem;
    }
    
    .hero-content .description {
        margin: 0 auto 30px;
    }
    
    .hero-image-container {
        margin-top: 40px;
    }
    
    .hero-main-img {
        max-width: 350px;
    }
    
    .deal-product-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .deal-product-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .home-section-title h2 {
        font-size: 2.2rem;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content .main-heading {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-content .sub-heading {
        font-size: 1rem;
    }
    
    .hero-content .description {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    .home-section {
        padding: 40px 0;
    }

    .category-card {
        padding: 10px;
    }

    .category-card-image {
        height: 70px;
        width: 70px;
        border-width: 2px;
    }
    
    .category-card h5 {
        font-size: 0.9rem;
        margin-top: 8px;
    }

    .home-section-title h2 {
        font-size: 1.8rem;
    }
    
    .home-section-title p {
        font-size: 1rem;
    }

    .g-product-card {
        margin-bottom: 15px;
    }
    
    .g-product-info {
        padding: 15px;
    }
    
    .g-product-info .product-name {
        font-size: 1rem;
    }
    
    .deal-product-card {
        padding: 20px;
    }
    
    .deal-product-info .product-name {
        font-size: 1.5rem;
    }
    
    .deal-product-info .product-price .current-price {
        font-size: 1.5rem;
    }
    
    /* Hide action buttons on mobile for better UX */
    .g-product-actions {
        transform: translateX(0);
        opacity: 0.9;
    }
}

/* Small mobile devices */
@media (max-width: 575px) {
    .hero-content .main-heading {
        font-size: 1.8rem;
    }
    
    .home-section-title h2 {
        font-size: 1.5rem;
    }
    
    .category-card-image {
        height: 60px;
        width: 60px;
    }
    
    .category-card h5 {
        font-size: 0.85rem;
    }
}
