/* ============================================================
   Product Detail Page
   ============================================================ */
.product-detail-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    align-items: start;
}

.product-info .kicker {
    margin-bottom: 8px;
}

.product-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    margin: 12px 0 8px;
    color: var(--text);
}

.product-info .chip-row {
    margin-bottom: 12px;
}

.product-description {
    font-size: 16px;
    line-height: 26px;
    color: var(--muted);
}

.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-1);
    margin: 16px 0;
}

.product-price del {
    color: var(--muted);
    font-weight: 400;
    font-size: 18px;
}

/* Savings badge */
.savings-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    background: rgba(0, 163, 42, 0.1);
    color: #00a32a;
    font-size: 13px;
    font-weight: 700;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
}

.stock-status.in-stock {
    color: #00a32a;
}

.stock-status.out-of-stock {
    color: var(--danger);
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    align-items: center;
}

.qty-input {
    max-width: 100px;
}

/* Gallery image hover zoom */
.product-gallery-main {
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.product-gallery-main img {
    transition: transform 0.5s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.product-gallery-main:hover img {
    transform: scale(1.08);
}

.product-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.product-thumb {
    width: 64px;
    height: 64px;
    border: 2px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--brand-1);
    transform: scale(1.05);
}

.product-trust-signals {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    transition: color 0.2s;
}

.trust-signal:hover {
    color: var(--brand-1);
}

.product-story {
    font-size: 16px;
    line-height: 28px;
    color: var(--muted);
    max-width: 80ch;
}

/* Related products */
.related-products {
    border-top: 1px solid var(--line);
    padding-top: 40px;
    margin-top: 20px;
}

/* Rating stars */
.rating {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin-bottom: 10px;
}

.star {
    font-size: 16px;
}

.star.filled {
    color: var(--brand-2);
}

.star.empty {
    color: var(--line);
}

@media (min-width: 780px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Tabbed Content Sections ---- */
.product-tabs-section {
    max-width: 800px;
}

.product-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--line);
    margin-bottom: 24px;
}

.product-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
}

.product-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--brand-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-tab:hover {
    color: var(--text);
}

.product-tab.active {
    color: var(--brand-1);
}

.product-tab.active::after {
    transform: scaleX(1);
}

.product-tab-panel {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

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

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-tab-panel p {
    font-size: 16px;
    line-height: 28px;
    color: var(--muted);
}

/* Nutrition list */
.nutrition-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nutrition-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.nutrition-list li:last-child {
    border-bottom: none;
}

.nutrition-key {
    font-weight: 600;
    color: var(--text);
}

.nutrition-val {
    color: var(--muted);
}

/* Gallery thumbs strip */
.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}