/* ─── Categories Overview ──────────────────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.category-card {
    display: block;
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    text-decoration: none;
    color: #333;
    transition: all .3s;
}
.category-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,.15); }
.category-icon { font-size: 60px; margin-bottom: 20px; }
.category-card h3 { font-size: 22px; margin-bottom: 10px; }
.category-card p  { color: #666; font-size: 14px; margin-bottom: 15px; line-height: 1.6; }
.product-count { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 15px; }
.cat-link { display: block; color: #4CAF50; font-weight: 600; }

/* ─── Product List (Category) ──────────────────────────────────────────────── */
.cat-description { color: #666; font-size: 16px; margin-bottom: 30px; line-height: 1.6; }

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.product-list-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,.07);
    text-decoration: none;
    color: #333;
    transition: all .3s;
    flex-direction: column;
}
.product-list-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.product-list-img {
    height: 180px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-list-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { font-size: 48px; }
.product-list-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-list-info h3 { font-size: 16px; margin-bottom: 8px; }
.product-list-info p  { font-size: 13px; color: #666; flex: 1; }
.product-list-info small { font-size: 12px; color: #aaa; display: block; margin-top: 4px; }
.view-link { margin-top: 12px; color: #4CAF50; font-weight: 600; font-size: 13px; }

/* ─── Product Detail ───────────────────────────────────────────────────────── */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 30px;
    margin-bottom: 50px;
}
.product-main-img { border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,.1); }
.product-main-img img { width: 100%; height: auto; display: block; }
.product-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.product-thumbs .thumb {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
}
.product-thumbs .thumb:hover,
.product-thumbs .thumb.active { border-color: #4CAF50; }
.no-product-img { font-size: 80px; text-align: center; padding: 40px; }

.product-detail-info h2 { font-size: 28px; margin-bottom: 15px; }
.short-desc { color: #666; font-size: 15px; margin-bottom: 20px; line-height: 1.7; }
.product-meta { font-size: 14px; color: #888; margin-bottom: 8px; }

.pallet-info,
.nutrition-table { margin-top: 25px; }
.pallet-info h4,
.nutrition-table h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #4CAF50; }

.product-body {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}
.product-body h2,
.product-body h3 { color: #333; margin: 20px 0 10px; }
.product-body p   { margin-bottom: 14px; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .product-list-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-layout { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 576px) {
    .categories-grid { grid-template-columns: 1fr; }
    .product-list-grid { grid-template-columns: 1fr; }
}
