/* ==========================================
   Green Glow Featured & New Arrivals
   ========================================== */

/* ===== FEATURED SECTION ===== */
.ggn-featured-section {
    width: 100%;
    background: #f8f6f3;
    padding: 70px 40px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 40px;
}

/* ===== NEW ARRIVALS SECTION ===== */
.ggn-new-section {
    width: 100%;
    background: #fff;
    padding: 70px 40px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 40px;
    border-top: 1px solid #e0ded8;
    border-bottom: 1px solid #e0ded8;
}

/* ===== SECTION HEADING ===== */
.ggn-section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.ggn-section-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #5a7d4f;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(90, 125, 79, 0.1);
    padding: 6px 20px;
    border-radius: 20px;
}

.ggn-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #2d3e2b;
    letter-spacing: -0.5px;
    margin: 0;
}

.ggn-section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    margin: 20px auto 0;
}

/* ===== FEATURED GRID (2 Rows = 8 Products) ===== */
.ggn-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

/* ===== NEW ARRIVALS GRID (1 Row = 4 Products) ===== */
.ggn-new-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

/* ===== PRODUCT CARD ===== */
.ggn-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ggn-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ===== FEATURED BADGE ===== */
.ggn-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #c9a961 0%, #b89451 100%);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 3;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

/* ===== NEW BADGE ===== */
.ggn-new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #5a7d4f 0%, #4a6d3f 100%);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 3;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(90, 125, 79, 0.3);
}

/* ===== DISCOUNT BADGE ===== */
.ggn-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 9px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* ===== PRODUCT IMAGE ===== */
.ggn-product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f3f0;
    position: relative;
}

.ggn-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ggn-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== PRODUCT INFO ===== */
.ggn-product-info {
    padding: 22px 20px 24px;
}

/* ===== STAR RATING ===== */
.ggn-product-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ggn-stars {
    display: flex;
    gap: 2px;
}

.ggn-star {
    color: #ffa500;
    font-size: 0.8rem;
}

.ggn-star.empty,
.ggn-star.half {
    color: #ddd;
}

.ggn-review-count {
    font-size: 0.72rem;
    color: #888;
    font-weight: 500;
}

/* ===== PRODUCT NAME ===== */
.ggn-product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3e2b;
    line-height: 1.4;
    margin: 0 0 12px;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ggn-product-name a {
    color: #2d3e2b !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    border-bottom: none !important;
    box-shadow: none !important;
}

.ggn-product-name a:hover {
    color: #5a7d4f !important;
}

/* ===== PRODUCT PRICE ===== */
.ggn-product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.ggn-product-price .price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ggn-product-price ins,
.ggn-product-price .woocommerce-Price-amount {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3e2b;
}

.ggn-product-price del,
.ggn-product-price del .woocommerce-Price-amount {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}

/* ===== ADD TO CART BUTTON ===== */
.ggn-add-cart {
    display: block;
    width: 100%;
    padding: 13px 0;
    background: linear-gradient(135deg, #5a7d4f 0%, #4a6d3f 100%);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 4px 12px rgba(90, 125, 79, 0.2);
}

.ggn-add-cart:hover {
    background: linear-gradient(135deg, #4a6d3f 0%, #3a5d2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 125, 79, 0.3);
}

.ggn-add-cart:active {
    transform: translateY(0);
}

.ggn-add-cart:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.ggn-add-cart.ggn-cart-success {
    background: #4a6d3f !important;
    cursor: default;
}

.ggn-cart-loading {
    font-size: 0.72rem;
}

/* ===== REMOVE ALL UNDERLINES ===== */
.ggn-featured-section a,
.ggn-new-section a,
.ggn-product-card a,
.ggn-product-card a:link,
.ggn-product-card a:visited,
.ggn-product-card a:hover,
.ggn-product-card a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ===== TABLET (1024px and below) ===== */
@media (max-width: 1024px) {
    .ggn-featured-grid,
    .ggn-new-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .ggn-section-title {
        font-size: 2.5rem;
    }
}

/* ===== TABLET SMALL (768px and below) ===== */
@media (max-width: 768px) {
    .ggn-featured-section,
    .ggn-new-section {
        padding: 50px 20px;
    }
    
    .ggn-featured-grid,
    .ggn-new-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .ggn-section-title {
        font-size: 2rem;
    }
    
    .ggn-section-label {
        font-size: 0.7rem;
        padding: 5px 16px;
    }
    
    .ggn-product-name {
        font-size: 0.8rem;
    }
    
    .ggn-product-price ins,
    .ggn-product-price .woocommerce-Price-amount {
        font-size: 0.95rem;
    }
    
    .ggn-add-cart {
        font-size: 0.7rem;
        padding: 11px 0;
    }
}

/* ===== MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    .ggn-featured-section,
    .ggn-new-section {
        padding: 40px 16px;
    }
    
    .ggn-section-heading {
        margin-bottom: 35px;
    }
    
    .ggn-section-title {
        font-size: 1.7rem;
    }
    
    .ggn-featured-grid,
    .ggn-new-grid {
        gap: 14px;
    }
    
    .ggn-product-info {
        padding: 16px 14px 18px;
    }
    
    .ggn-product-name {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }
    
    .ggn-product-price {
        margin-bottom: 12px;
        gap: 8px;
    }
    
    .ggn-product-price ins,
    .ggn-product-price .woocommerce-Price-amount {
        font-size: 0.85rem;
    }
    
    .ggn-product-price del,
    .ggn-product-price del .woocommerce-Price-amount {
        font-size: 0.75rem;
    }
    
    .ggn-add-cart {
        font-size: 0.65rem;
        padding: 10px 0;
        letter-spacing: 1px;
    }
    
    .ggn-featured-badge,
    .ggn-new-badge {
        font-size: 0.6rem;
        padding: 5px 10px;
        top: 12px;
        left: 12px;
    }
    
    .ggn-discount-badge {
        font-size: 0.65rem;
        padding: 5px 8px;
        top: 12px;
        right: 12px;
    }
    
    .ggn-star {
        font-size: 0.72rem;
    }
    
    .ggn-review-count {
        font-size: 0.68rem;
    }
}
