/* ============================================
   Prolrey Biotech — Products Page Stylesheet
   ============================================ */

/* ---------- Hero Section ---------- */
.product-hero {
    margin-top: var(--nav-h);
    padding: 72px 0 64px;
    background: var(--bg-light);
    background-image: url('ASSETS/IMAGES/Product%20CenterBg.jpg');
    background-size: 110% auto;
    background-position: center;
    overflow: hidden;
}

.product-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.product-hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.product-hero-sub {
    font-size: 18px;
    color: var(--red);
    font-weight: 500;
}

.product-hero-img {
    flex-shrink: 0;
    width: 380px;
    position: relative;
}

.product-hero-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,0.08));
}

/* ---------- Filter Bar ---------- */
.product-filter-section {
    padding: 40px 0 24px;
    background: var(--bg-white);
}

.product-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.product-filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
}

.product-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e6e6e6;
    background: var(--bg-white);
    color: var(--gray);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.product-tab:hover:not(.active) {
    border-color: rgba(229,57,53,0.4);
    color: var(--dark);
}

.product-tab.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.tab-num {
    font-family: var(--font-num);
    font-size: 12px;
    font-weight: 700;
    opacity: 0.85;
}

.product-search {
    position: relative;
    width: 240px;
    flex-shrink: 0;
}

.product-search input {
    width: 100%;
    padding: 12px 44px 12px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--bg-light);
    outline: none;
    transition: border-color var(--transition);
}

.product-search input:focus {
    border-color: var(--red);
}

.product-search input::placeholder {
    color: var(--gray-light);
}

.product-search svg {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-light);
    pointer-events: none;
}

/* ---------- Product Grid ---------- */
.product-list {
    padding: 32px 0 80px;
    background: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-list-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
}

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

.product-list-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, #F5F7FA 0%, #EBEEF3 100%);
    background-image: url('ASSETS/PRODUCT/HotProductsBG.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
}

.product-list-card-img img {
    max-width: 75%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.06));
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

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

.product-list-card.hidden {
    display: none;
}

/* Empty state when no products match filter */
.product-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: var(--gray-light);
    font-size: 15px;
}

.product-list-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 2px dotted rgba(0,0,0,0.06);
}

.product-list-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

/* Small button variant */
.btn-sm {
    padding: 10px 28px;
    font-size: 13px;
    border-radius: 6px;
}

/* ---------- Distributors CTA ---------- */
.distributors-cta {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.distributors-cta::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -60px;
    width: 500px;
    height: 500px;
    background: url('ASSETS/IMAGES/OurPartnershipEcosystem1.jpg') center/cover no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.distributors-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.distributors-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.distributors-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.distributors-cta-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.distributors-cta-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.distributors-cta-text p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* Dark button variant */
.btn-dark {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
    border-radius: 50px;
}

.btn-dark:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .product-hero { padding: 48px 0; }
    .product-hero-inner { flex-direction: column; text-align: center; gap: 32px; }
    .product-hero-text h1 { font-size: 36px; }
    .product-hero-img { width: 280px; }

    .product-filter { flex-direction: column; align-items: stretch; gap: 16px; }
    .product-filter-tabs { justify-content: flex-start; }
    .product-search { width: 100%; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .distributors-cta-inner { flex-direction: column; text-align: center; }
    .distributors-cta-left { flex-direction: column; }
}

@media (max-width: 640px) {
    .product-hero { padding: 36px 0; }
    .product-hero-text h1 { font-size: 28px; }
    .product-hero-img { width: 220px; }
    .product-tab { font-size: 14px; padding: 9px 16px; }

    .product-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

    .product-list { padding: 24px 0 56px; }
    .distributors-cta { padding: 56px 0; }
}
