/* Product detail pages */

.peptide-browser-card,
.pen-product-card,
.peptide-card,
.product-card {
    cursor: pointer;
}

.product-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    padding: 20px 0 24px;
    transition: color .15s;
}

.back-link:hover {
    color: #2563eb;
}

.product-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
    }
}

.product-main-img {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.product-main-img-placeholder i {
    font-size: 56px;
}

.product-cat-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 4px;
    padding: 3px 10px;
    display: inline-block;
    margin-bottom: 12px;
}

.product-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 8px;
}

.product-subtitle {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.product-benefit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.product-benefit-tag {
    font-size: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 12px;
    color: #334155;
}

.product-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.quick-info-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #334155;
}

.quick-info-chip i {
    color: #2563eb;
    font-size: 14px;
}

.product-tabs {
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    gap: 0;
    margin-bottom: 28px;
}

.product-tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    display: flex;
    align-items: center;
    gap: 7px;
}

.product-tab-btn:hover {
    color: #2563eb;
}

.product-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: block;
}

.supplier-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.supplier-table {
    width: 100%;
    border-collapse: collapse;
}

.supplier-table thead th {
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.supplier-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.supplier-table tbody tr:last-child td {
    border-bottom: none;
}

.supplier-table tbody tr:hover td {
    background: #fafafa;
}

.supplier-table tbody tr.out-of-stock td {
    opacity: .55;
}

.supplier-logo-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.supplier-initial {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.supplier-name-text {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.supplier-country {
    font-size: 11px;
    color: #94a3b8;
}

.variant-strength {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.variant-volume {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.variant-price-zar {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.variant-price-usd {
    font-size: 12px;
    color: #94a3b8;
}

.stock-badge-in,
.stock-badge-out,
.stock-badge-low {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.stock-badge-in {
    background: #dcfce7;
    color: #15803d;
}

.stock-badge-out {
    background: #fee2e2;
    color: #dc2626;
}

.stock-badge-low {
    background: #fef3c7;
    color: #b45309;
}

.btn-variant-cart {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s;
}

.btn-variant-cart:hover {
    background: #1d4ed8;
}

.btn-variant-cart:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.no-variants-msg {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
}

.detail-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.detail-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.detail-section-title i {
    color: #2563eb;
}

.detail-section-title.amber i {
    color: #d97706;
}

.detail-section p {
    font-size: 14px;
    color: #334155;
    line-height: 1.75;
    margin: 0;
}

.detail-section ul {
    padding-left: 18px;
    margin: 0;
}

.detail-section ul li {
    font-size: 14px;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 4px;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .info-boxes {
        grid-template-columns: 1fr;
    }
}

.info-box {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.info-box-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 5px;
}

.info-box-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.info-box-value.blue {
    color: #2563eb;
}

.supplier-color-0 { background: #dbeafe; color: #1d4ed8; }
.supplier-color-1 { background: #d1fae5; color: #065f46; }
.supplier-color-2 { background: #fce7f3; color: #9d174d; }
.supplier-color-3 { background: #fef3c7; color: #92400e; }
.supplier-color-4 { background: #ede9fe; color: #5b21b6; }
.supplier-color-5 { background: #fee2e2; color: #991b1b; }
.supplier-color-6 { background: #cffafe; color: #0e7490; }
.supplier-color-7 { background: #fef9c3; color: #854d0e; }
.supplier-color-8 { background: #f0fdf4; color: #14532d; }
.supplier-color-9 { background: #f5f3ff; color: #4c1d95; }
.supplier-color-10 { background: #fff7ed; color: #9a3412; }
