/**
 * Homepage Magazine Style
 * 
 * Mobile-First Design for KASETIDEA
 * Traffic Distribution & Affiliate Conversion
 * 
 * @package PlantPedia
 * @version 2.0.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --hp-primary: #27ae60;
    --hp-primary-dark: #1e8449;
    --hp-secondary: #2c3e50;
    --hp-accent: #e74c3c;
    --hp-accent-orange: #f39c12;
    --hp-bg-light: #f8faf9;
    --hp-bg-white: #ffffff;
    --hp-text: #2c3e50;
    --hp-text-light: #7f8c8d;
    --hp-border: #e8e8e8;
    --hp-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --hp-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --hp-radius: 12px;
    --hp-radius-sm: 8px;
    --hp-transition: 0.3s ease;
}

/* ==========================================================================
   Base & Container
   ========================================================================== */

.homepage-magazine {
    background: var(--hp-bg-light);
}

.homepage-magazine .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   Section Header (Shared)
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-secondary);
    margin: 0;
}

.title-icon {
    font-size: 24px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hp-primary);
    text-decoration: none;
    transition: var(--hp-transition);
}

.section-more:hover {
    color: var(--hp-primary-dark);
    transform: translateX(4px);
}

.section-more-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   SECTION 1: Hero Featured
   ========================================================================== */

.hero-featured {
    padding: 20px 0;
    background: var(--hp-bg-white);
}

.hero-grid {
    display: grid;
    gap: 16px;
}

/* Hero Main (Big Left) */
.hero-main {
    position: relative;
    border-radius: var(--hp-radius);
    overflow: hidden;
    background: var(--hp-bg-white);
    box-shadow: var(--hp-shadow);
}

.hero-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-main-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hp-transition);
}

.hero-main:hover .hero-main-image img {
    transform: scale(1.05);
}

.badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-main-content {
    padding: 16px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--hp-bg-light);
    border-radius: 15px;
    font-size: 12px;
    color: var(--hp-secondary);
}

.hero-tag.plant-type {
    background: rgba(39, 174, 96, 0.15);
    color: var(--hp-primary-dark);
}

.hero-tag.difficulty {
    background: rgba(243, 156, 18, 0.15);
    color: #d68910;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.rating-number {
    color: var(--hp-text-light);
    font-size: 13px;
}

.hero-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--hp-accent);
}

.hero-main-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--hp-secondary);
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-review {
    display: inline-block;
    padding: 10px 20px;
    background: var(--hp-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--hp-radius-sm);
    transition: var(--hp-transition);
}

.hero-main:hover .btn-read-review {
    background: var(--hp-primary-dark);
}

/* Hero Side (2 Small Right) */
.hero-side {
    display: grid;
    gap: 16px;
}

.hero-side-item {
    background: var(--hp-bg-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    transition: var(--hp-transition);
}

.hero-side-item:hover {
    box-shadow: var(--hp-shadow-hover);
    transform: translateY(-2px);
}

.hero-side-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.hero-side-image {
    flex-shrink: 0;
    width: 120px;
    height: 100px;
    overflow: hidden;
}

.hero-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-side-content {
    flex: 1;
    padding: 12px 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-rating-small {
    font-size: 12px;
    color: var(--hp-accent-orange);
    margin-bottom: 4px;
}

.hero-side-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-secondary);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-small {
    font-size: 12px;
    color: var(--hp-primary);
    font-weight: 500;
}

/* Desktop Hero Grid */
@media (min-width: 768px) {
    .hero-featured {
        padding: 30px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .hero-main-image {
        aspect-ratio: 16/9;
    }
    
    .hero-main-title {
        font-size: 24px;
    }
    
    .hero-side-image {
        width: 140px;
        height: 110px;
    }
    
    .hero-side-title {
        font-size: 15px;
    }
}

/* ==========================================================================
   SECTION 2: Quick Navigation Bar
   ========================================================================== */

.quick-nav-bar {
    background: var(--hp-bg-white);
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.quick-nav-list {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-nav-list::-webkit-scrollbar {
    display: none;
}

.quick-nav-item {
    flex-shrink: 0;
}

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--hp-bg-light);
    border-radius: 25px;
    text-decoration: none;
    color: var(--hp-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--hp-transition);
}

.quick-nav-link:hover {
    background: var(--hp-primary);
    color: #fff;
}

.quick-nav-highlight {
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-dark));
    color: #fff;
}

.quick-nav-highlight:hover {
    background: linear-gradient(135deg, var(--hp-primary-dark), #145a32);
}

.quick-nav-icon {
    font-size: 16px;
}

.quick-nav-count {
    padding: 2px 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 11px;
}

.quick-nav-highlight .quick-nav-count {
    background: rgba(255,255,255,0.2);
}

.quick-nav-badge {
    padding: 2px 6px;
    background: var(--hp-accent);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .quick-nav-list {
        justify-content: center;
        gap: 12px;
    }
    
    .quick-nav-link {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   SECTION 3: Plants Grid
   ========================================================================== */

.section-plants {
    padding: 40px 0;
    background: var(--hp-bg-white);
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.plant-card {
    background: var(--hp-bg-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    border: 1px solid var(--hp-border);
    transition: var(--hp-transition);
}

.plant-card:hover {
    border-color: var(--hp-primary);
    box-shadow: var(--hp-shadow-hover);
    transform: translateY(-4px);
}

.plant-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.plant-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--hp-bg-light);
}

.plant-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hp-transition);
}

.plant-card:hover .plant-card-image img {
    transform: scale(1.08);
}

.plant-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: var(--hp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.plant-card-content {
    padding: 14px;
}

.plant-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-secondary);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plant-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.plant-difficulty,
.plant-sun {
    font-size: 11px;
    color: var(--hp-text-light);
}

.plant-cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--hp-primary);
}

@media (min-width: 640px) {
    .plants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .plants-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .plant-title {
        font-size: 15px;
    }
}

/* ==========================================================================
   SECTION 3: Best Sellers - Product Grid (Original)
   ========================================================================== */

.section-bestsellers {
    padding: 40px 0;
    background: var(--hp-bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--hp-bg-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    border: 1px solid var(--hp-border);
    transition: var(--hp-transition);
}

.product-card:hover {
    border-color: var(--hp-primary);
    box-shadow: var(--hp-shadow-hover);
    transform: translateY(-4px);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--hp-bg-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hp-transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-rating-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.product-card-content {
    padding: 12px;
}

.product-brand {
    display: block;
    font-size: 11px;
    color: var(--hp-text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-secondary);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-accent);
}

.product-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.btn-review,
.btn-buy {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--hp-radius-sm);
    text-decoration: none;
    transition: var(--hp-transition);
}

.btn-review {
    background: var(--hp-bg-light);
    color: var(--hp-secondary);
}

.btn-review:hover {
    background: var(--hp-primary);
    color: #fff;
}

.btn-buy {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .product-title {
        font-size: 14px;
        min-height: 36px;
    }
    
    .btn-review,
    .btn-buy {
        padding: 10px;
        font-size: 13px;
    }
}

/* ==========================================================================
   SECTION 4: Disease Solution Grid
   ========================================================================== */

.section-diseases {
    padding: 40px 0;
    background: linear-gradient(180deg, #fff5f5 0%, var(--hp-bg-light) 100%);
}

.diseases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.disease-card {
    background: var(--hp-bg-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    transition: var(--hp-transition);
}

.disease-card:hover {
    box-shadow: var(--hp-shadow-hover);
    transform: translateY(-4px);
}

.disease-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.disease-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.severity-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.severity-badge.severe,
.severity-badge.high {
    background: #e74c3c;
}

.severity-badge.moderate,
.severity-badge.medium {
    background: #f39c12;
}

.severity-badge.mild,
.severity-badge.low {
    background: #27ae60;
}

.disease-card-content {
    padding: 14px;
}

.disease-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-secondary);
    margin: 0 0 6px;
    line-height: 1.3;
}

.disease-excerpt {
    font-size: 12px;
    color: var(--hp-text-light);
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.disease-cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--hp-accent);
}

@media (min-width: 768px) {
    .diseases-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .disease-title {
        font-size: 15px;
    }
}

/* ==========================================================================
   SECTION 5: Products Grid (6 items)
   ========================================================================== */

.section-products {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--hp-bg-light) 0%, #fff 100%);
}

.products-grid-6 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .products-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ==========================================================================
   SECTION 6: Care Guides Grid
   ========================================================================== */

.section-guides {
    padding: 40px 0;
    background: var(--hp-bg-white);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.guide-card {
    background: var(--hp-bg-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    border: 1px solid var(--hp-border);
    transition: var(--hp-transition);
}

.guide-card:hover {
    border-color: #3498db;
    box-shadow: var(--hp-shadow-hover);
    transform: translateY(-4px);
}

.guide-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.guide-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--hp-bg-light);
}

.guide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hp-transition);
}

.guide-card:hover .guide-card-image img {
    transform: scale(1.05);
}

.guide-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.guide-badge.difficulty-green {
    background: #27ae60;
}

.guide-badge.difficulty-yellow {
    background: #f39c12;
}

.guide-badge.difficulty-red {
    background: #e74c3c;
}

.guide-card-content {
    padding: 14px;
}

.guide-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-secondary);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-meta {
    margin-bottom: 8px;
}

.guide-time {
    font-size: 12px;
    color: var(--hp-text-light);
}

.guide-cta {
    font-size: 12px;
    font-weight: 600;
    color: #3498db;
}

@media (min-width: 768px) {
    .guides-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .guide-title {
        font-size: 15px;
    }
}

/* ==========================================================================
   SECTION 5: Latest Knowledge (Original - Deprecated)
   ========================================================================== */

.section-knowledge {
    padding: 40px 0;
    background: var(--hp-bg-white);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.knowledge-card {
    background: var(--hp-bg-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    border: 1px solid var(--hp-border);
    transition: var(--hp-transition);
}

.knowledge-card:hover {
    border-color: var(--hp-primary);
    box-shadow: var(--hp-shadow-hover);
}

.knowledge-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.knowledge-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.knowledge-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hp-transition);
}

.knowledge-card:hover .knowledge-card-image img {
    transform: scale(1.05);
}

.type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.type-badge.type-plant {
    background: var(--hp-primary);
}

.type-badge.type-guide {
    background: #3498db;
}

.knowledge-card-content {
    padding: 14px;
}

.knowledge-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-secondary);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.difficulty-badge {
    display: inline-block;
    font-size: 11px;
    margin-bottom: 6px;
}

.knowledge-cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--hp-primary);
}

@media (min-width: 768px) {
    .knowledge-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .knowledge-title {
        font-size: 15px;
    }
}

/* ==========================================================================
   SECTION 6: CTA Box
   ========================================================================== */

.section-cta {
    padding: 40px 0;
    background: linear-gradient(135deg, #e8f8f5 0%, #d5f5e3 100%);
}

.cta-box {
    background: var(--hp-bg-white);
    border-radius: var(--hp-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--hp-shadow);
}

.cta-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-secondary);
    margin: 0 0 8px;
}

.cta-text {
    font-size: 14px;
    color: var(--hp-text-light);
    margin: 0 0 20px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--hp-radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--hp-transition);
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-dark));
    color: #fff;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-cta-secondary {
    background: var(--hp-bg-light);
    color: var(--hp-secondary);
    border: 1px solid var(--hp-border);
}

.btn-cta-secondary:hover {
    border-color: var(--hp-primary);
    color: var(--hp-primary);
}

@media (min-width: 768px) {
    .cta-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 40px;
    }
    
    .cta-content {
        flex: 1;
    }
    
    .cta-text {
        margin-bottom: 0;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-actions {
        flex-direction: row;
    }
}

/* ==========================================================================
   Placeholder Images
   ========================================================================== */

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-size: 48px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .quick-nav-bar,
    .section-cta {
        display: none;
    }
    
    .homepage-magazine section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========================================
   Homepage Product Cards (v1.3.8)
   - Matching Archive Style
   ======================================== */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

.home-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #2ECC40;
}

.home-product-link {
    display: block;
    text-decoration: none;
}

.home-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.05);
}

.home-product-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2ECC40;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.home-product-category {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #2ECC40;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
}

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

.home-product-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    align-self: flex-start;
}

.home-product-brand .brand-label {
    padding: 0.35rem 0.6rem;
    background: #64748b;
    color: #fff;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-product-brand .brand-name {
    padding: 0.35rem 0.75rem;
    color: #334155;
    font-weight: 600;
    background: #f8fafc;
}

.home-product-chemical {
    margin-bottom: 0.5rem;
}

.home-product-chemical .chemical-badge {
    font-size: 0.6875rem !important;
}

.home-product-chemical .chemical-badge span {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.6875rem !important;
}

.home-product-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.625rem;
    flex-grow: 1;
}

.home-product-title a {
    color: inherit;
    text-decoration: none;
}

.home-product-title a:hover {
    color: #2ECC40;
}

.home-product-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: none;
}

.home-product-price {
    font-size: 1.75rem;
    font-weight: 900;
    color: #2ECC40;
    white-space: nowrap;
}

.home-product-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.home-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
}

.home-buy-btn.tiktok {
    background: #000;
}

.home-buy-btn.tiktok svg {
    width: 20px;
    height: 20px;
}

.home-buy-btn.shopee {
    background: #EE4D2D;
}

.home-buy-btn.lazada {
    background: #F57224;
}

.home-buy-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Responsive - Tablet */
@media (min-width: 768px) {
    .home-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .home-product-info {
        padding: 1.25rem;
    }
    
    .home-product-title {
        font-size: 1rem;
        min-height: 2.8rem;
    }
    
    .home-product-price {
        font-size: 2rem;
    }
    
    .home-buy-btn {
        width: 52px;
        height: 52px;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .home-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .home-product-info {
        padding: 1.25rem;
    }
    
    .home-product-title {
        font-size: 1.0625rem;
    }
}

/* Responsive - Mobile Small */
@media (max-width: 374px) {
    .home-products-grid {
        gap: 8px;
    }
    
    .home-product-info {
        padding: 0.75rem;
    }
    
    .home-product-brand .brand-label,
    .home-product-brand .brand-name {
        padding: 0.25rem 0.4rem;
        font-size: 0.5625rem;
    }
    
    .home-product-title {
        font-size: 0.8125rem;
        min-height: 2.25rem;
    }
    
    .home-product-price {
        font-size: 1.375rem;
    }
    
    .home-buy-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .home-product-buttons {
        gap: 6px;
    }
}

/* ========================================
   SEO Sections for Homepage (v1.4.0)
   ======================================== */

/* --- Quick Menu Description --- */
.quick-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.menu-desc {
    display: block;
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.3;
    max-width: 100px;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .menu-desc {
        display: none;
    }
}

/* --- SEO Intro Section --- */
.seo-intro-section {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.seo-intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-intro-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
}

.seo-intro-title {
    font-size: 1.5rem;
    color: #1e3a2f;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.4;
}

.seo-intro-title .highlight {
    color: #2ECC40;
}

.seo-intro-text {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.seo-intro-text strong {
    color: #2ECC40;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    .seo-intro-section {
        padding: 30px 15px;
    }
    
    .seo-intro-icon {
        font-size: 2.5rem;
    }
    
    .seo-intro-title {
        font-size: 1.25rem;
    }
    
    .seo-intro-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* --- SEO Footer Section --- */
.seo-footer-section {
    background: #f8fafc;
    padding: 40px 20px;
    border-top: 1px solid #e5e7eb;
}

.seo-footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.seo-footer-title {
    font-size: 1rem;
    color: #374151;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.seo-footer-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
}

.seo-footer-text .keyword {
    color: #059669;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    .seo-footer-section {
        padding: 30px 15px;
    }
    
    .seo-footer-text {
        font-size: 0.8rem;
        text-align: left;
    }
}
