/* ============================================================
   VARAD SEEDS — Products Page Styles (products.css)
   Only loaded on products.html
   ============================================================ */

/* ==================== PRODUCTS SECTION ==================== */
.products {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-cream), var(--bg-light));
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

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

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.new { background: var(--secondary-green); }

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-overlay a {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    transition: var(--transition);
    transform: translateY(20px);
}

.product-card:hover .product-overlay a { transform: translateY(0); }

.product-overlay a:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.product-info { padding: 25px; }

.product-info h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: var(--transition);
}

.product-card:hover .product-info h3 { color: var(--primary-green); }

.product-info .variety {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
}

.product-rating { display: flex; gap: 3px; }
.product-rating i { color: var(--accent-yellow); font-size: 0.9rem; }

/* ==================== CATALOG MODAL (Chilli-style) ==================== */
.modal-content.modal-wide {
    max-width: 1100px;
    width: 95%;
}

.chilli-modal { padding: 30px; }

.chilli-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.chilli-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-green);
}

.chilli-sub {
    color: var(--text-light);
    margin-top: 4px;
    font-size: 0.95rem;
}

.chilli-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.chilli-card {
    background: var(--bg-cream);
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.chilli-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.chilli-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.chilli-card .cc-body { padding: 14px 16px; }
.chilli-card .cc-body h4 { margin: 0 0 6px; color: var(--text-dark); }
.chilli-card .cc-body p { margin: 0; color: var(--text-light); font-size: 0.9rem; }

.chilli-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
    margin-top: 10px;
    align-items: start;
}

.chilli-detail-left {
    background: var(--bg-light);
    border: 1px solid #eee;
    border-radius: 18px;
    overflow: hidden;
}

.chilli-detail-left img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #fff;
    display: block;
}

.chilli-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
}

/* Modal entry motion */
.modal.active .modal-content {
    animation: chilliPop 220ms ease-out;
}

@keyframes chilliPop {
    from { transform: scale(0.94) translateY(10px); opacity: 0.2; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ==================== PRODUCTS RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .chilli-grid { grid-template-columns: repeat(2, 1fr); }
    .chilli-detail { grid-template-columns: 1fr; }
    .chilli-detail-left img { height: 320px; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .chilli-grid { grid-template-columns: 1fr; }
}
 
