/* ============================================================
   PeptideCO — Product Catalog Styles (Supplements & Cosmetics)
   ============================================================ */

/* ── Page hero ── */
.catalog-hero {
    background: #f0f4f8;
    padding: 48px 0 36px;
    border-bottom: 1px solid #e2e8f0;
}
.catalog-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    color: #2563eb; text-transform: uppercase; margin-bottom: 10px;
}
.catalog-heading {
    font-size: 36px; font-weight: 800; color: #0f172a;
    line-height: 1.15; margin-bottom: 10px;
}
.catalog-sub { font-size: 15px; color: #64748b; max-width: 580px; }

/* ── Search + filter bar ── */
.filter-bar {
    background: #fff; border-bottom: 1px solid #e2e8f0;
    padding: 14px 0; position: sticky; top: 56px; z-index: 50;
}
.search-wrap { position: relative; }
.search-wrap .bi-search {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); color: #94a3b8; font-size: 15px;
}
.catalog-search {
    width: 100%; padding: 10px 14px 10px 40px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; color: #0f172a; outline: none;
    transition: border-color .15s;
}
.catalog-search:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }

/* Category pills */
.cat-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill {
    padding: 6px 14px; border-radius: 20px; font-size: 13px;
    font-weight: 500; cursor: pointer; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; transition: all .15s;
    white-space: nowrap; text-decoration: none; display: inline-block;
}
.cat-pill:hover { border-color: #2563eb; color: #2563eb; }
.cat-pill.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ── Product card ── */
.product-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
    height: 100%; transition: box-shadow .2s, transform .15s;
}
.product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* Product image area */
.product-img-area {
    background: #f8fafc; height: 160px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; flex-shrink: 0;
}
.product-img-area img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform .3s;
}
.product-card:hover .product-img-area img { transform: scale(1.04); }
.product-img-placeholder {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100%; color: #cbd5e1;
    gap: 6px;
}
.product-img-placeholder i { font-size: 32px; }
.product-img-placeholder span { font-size: 11px; }

/* NEW badge overlay */
.new-badge {
    position: absolute; top: 10px; left: 10px;
    background: #ef4444; color: #fff; font-size: 10px;
    font-weight: 700; padding: 3px 8px; border-radius: 4px;
    letter-spacing: .5px;
}

/* Card body */
.product-card-body {
    padding: 14px 16px; flex: 1; display: flex; flex-direction: column;
}
.product-cat-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 6px;
}
.product-cat-label {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; background: #f1f5f9;
    color: #64748b; border-radius: 4px; padding: 2px 7px;
}
.product-price {
    font-size: 15px; font-weight: 800; color: #0f172a;
}
.product-name {
    font-size: 14px; font-weight: 700; color: #0f172a;
    margin-bottom: 4px; line-height: 1.35;
}
.product-strength {
    font-size: 12px; color: #2563eb; font-weight: 600; margin-bottom: 4px;
}
.product-qty {
    font-size: 12px; color: #64748b; margin-bottom: 6px;
}
.product-desc {
    font-size: 12px; color: #64748b; line-height: 1.5;
    margin-bottom: 10px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer {
    border-top: 1px solid #f1f5f9; padding-top: 10px;
    margin-top: auto;
}
.btn-cart {
    width: 100%; background: #2563eb; color: #fff; border: none;
    padding: 9px; border-radius: 7px; font-size: 13px;
    font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .15s;
}
.btn-cart:hover { background: #1d4ed8; }

/* ── Results count ── */
.results-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.results-count { font-size: 14px; color: #64748b; }

/* ── Empty state ── */
.empty-state {
    text-align: center; padding: 60px 20px; color: #94a3b8;
}
.empty-state i { font-size: 48px; display: block; margin-bottom: 12px; }

/* ── Admin table ── */
.admin-table-wrap {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; overflow: hidden;
}
.admin-table-wrap table { width: 100%; border-collapse: collapse; }
.admin-table-wrap thead th {
    background: #f8fafc; padding: 11px 16px;
    font-size: 11px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: .5px;
    border-bottom: 1px solid #e2e8f0; text-align: left;
}
.admin-table-wrap tbody td {
    padding: 13px 16px; font-size: 14px; color: #334155;
    border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.admin-table-wrap tbody tr:last-child td { border-bottom: none; }
.admin-table-wrap tbody tr:hover td { background: #fafafa; }

/* ── Admin form sections ── */
.form-section {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 26px; margin-bottom: 20px;
}
.form-section-title {
    font-size: 15px; font-weight: 700; color: #0f172a;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .catalog-heading { font-size: 26px; }
    .product-img-area { height: 130px; }
}
