/* Product Listing Page - Matches Index Design System */

:root {
    --product-gap: clamp(16px, 3vw, 22px);
}

.products-shell {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
}

.products-hero {
    background: linear-gradient(135deg, #f6fbf5 0%, #f0f6ef 60%, #ffffff 100%);
    text-align: center;
}

.hero-content-centered {
    max-width: 840px;
    margin: 0 auto;
}

.hero-content-centered h1 {
    font-size: clamp(30px, 4vw, 42px);
    margin: 12px 0 16px;
    color: var(--herb-900);
}

.hero-content-centered .hero-lede {
    color: #4b5c49;
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(16px, 2vw, 18px);
}

.products-layout {
    padding-top: 0;
    background: radial-gradient(circle at 20% 20%, #f5fbf5 0%, #ffffff 60%, #f7fbf7 100%);
}

.products-content {
    min-width: 0;
    max-width: 980px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 3.5vw, 28px);
    justify-items: center;
}

.no-results {
    border: 1px dashed #d6e6d2;
    border-radius: 16px;
    padding: 24px;
    color: #4b5c49;
    text-align: center;
    font-weight: 600;
    background: #f7fbf7;
}

.product-card {
    background: #ffffff;
    border: 1px solid #edf1eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 272px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.product-media {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    padding: 0;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.product-body {
    padding: 14px;
    display: grid;
    gap: 7px;
    flex: 1;
    text-align: left;
}

.product-title {
    margin: 0;
    color: #121212;
    font-size: 16px;
    line-height: 1.3;
}

.product-title a {
    text-decoration: none;
    color: inherit;
}

.product-category {
    margin: 0;
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 600;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #111;
}

.rating-value {
    color: #111;
    font-weight: 700;
}

.stars {
    color: #ffc107;
    letter-spacing: 0.5px;
}

.product-reviews {
    color: #a0a0a0;
    font-weight: 600;
    font-size: 12px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.product-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.product-old-price {
    font-size: 14px;
    color: #8d8d8d;
    text-decoration: line-through;
    font-weight: 600;
}

.product-charge-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.charge-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #1f3d28;
    background: #ecf7ee;
    border: 1px solid #d4e9d8;
}

.buy-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #f0ca67;
    white-space: nowrap;
}

.buy-now-btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}



/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f3325;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1300;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* Responsive */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .product-card {
        max-width: 252px;
    }

    .product-body {
        padding: 10px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-old-price {
        font-size: 12px;
    }

    .buy-now-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

