/*
 * Product page, everything below the product: description, reviews,
 * related products and the comparison band. Loaded only by product.blade.php.
 * Brand tokens follow the homepage kit in custom.css: #111 ink, #555 body,
 * #c9a96e gold, Playfair Display headings.
 */

/* ---------- Shared ---------- */
.sc-pdp-block {
    max-width: 1180px;
    margin: 0 0 48px;
    padding: 36px 12px 0;
    border-top: 1px solid #eee;
}
.sc-pdp-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 400;
    color: #111;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 20px;
}
.sc-pdp-btn-outline,
.sc-pdp-btn-solid {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 13px 26px;
    border: 1px solid #111;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.sc-pdp-btn-outline { background: #fff; color: #111; }
.sc-pdp-btn-outline:hover { background: #111; color: #fff; }
.sc-pdp-btn-solid { background: #111; color: #fff; }
.sc-pdp-btn-solid:hover { background: #333; border-color: #333; color: #fff; }
.sc-pdp-btn-solid:disabled { opacity: 0.6; cursor: default; }
.sc-pdp-stars { display: inline-flex; gap: 2px; color: #111; font-size: 0.8rem; line-height: 1; }
.sc-pdp-stars .bi-star { color: #ccc; }

/* ---------- Description ---------- */
.sc-pdp-copy { color: #444; font-size: 0.97rem; line-height: 1.75; }
.sc-pdp-copy p { margin: 0 0 14px; max-width: 68ch; }
.sc-pdp-copy h3 {
    font-family: inherit;
    font-size: 0.72rem !important; /* beats .fs-5 on older descriptions */
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #111;
    margin: 26px 0 12px;
}
.sc-pdp-copy a { color: #111; text-decoration: underline !important; text-underline-offset: 3px; }
.sc-pdp-copy a:hover { color: #000; }
.sc-pdp-copy ul { margin: 0 0 14px; padding-left: 1.1rem; }
.sc-pdp-copy li { margin-bottom: 6px; }
.sc-pdp-copy img { border-radius: 8px; }

/* New descriptions: .pd-story (prose) next to a .pd-specs card */
.pd-story > :first-child,
.pd-specs > :first-child { margin-top: 0; }
.pd-specs {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px 26px 18px;
    align-self: start;
}
.pd-specs dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); margin: 0 0 6px; }
.pd-specs dt,
.pd-specs dd { padding: 9px 0; border-bottom: 1px solid #ececec; margin: 0; }
.pd-specs dt { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #888; padding-top: 12px; }
.pd-specs dd { color: #222; font-size: 0.92rem; line-height: 1.55; }
.pd-specs dl > :nth-last-child(-n+2) { border-bottom: 0; }
.pd-specs ul { font-size: 0.92rem; line-height: 1.6; }
@media (min-width: 992px) {
    .sc-pdp-copy--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
}

/* Older descriptions: Bootstrap cards, list groups and centred copy.
   Restyled to match the details card above, the markup is untouched. */
.sc-pdp-copy .text-center { text-align: left !important; }
.sc-pdp-copy .justify-content-center { justify-content: flex-start !important; }
.sc-pdp-copy .container { max-width: none; padding: 0; margin: 0 !important; }
.sc-pdp-copy .mt-5 { margin-top: 8px !important; }
.sc-pdp-copy .card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
}
.sc-pdp-copy .card-body { padding: 24px 26px 14px; }
.sc-pdp-copy .card-body > h3:first-child { margin-top: 0; }
.sc-pdp-copy .list-group { border-radius: 0; margin-bottom: 14px; padding-left: 0; }
.sc-pdp-copy .list-group > li { list-style: none; }
.sc-pdp-copy .list-group-item {
    border: 0;
    border-bottom: 1px solid #ececec;
    border-radius: 0 !important;
    background: transparent;
    padding: 8px 0;
    margin: 0;
    color: #222;
    font-size: 0.92rem;
    line-height: 1.5;
}
.sc-pdp-copy .list-group-item:last-child { border-bottom: 0; }
.sc-pdp-copy .list-group-item + .list-group-item { border-top-width: 0; }
.sc-pdp-copy .list-group-item.fw-bold {
    font-size: 0.68rem;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    border-bottom: 1px solid #ddd;
}
.sc-pdp-copy .card p.m-0 { margin-bottom: 6px !important; font-size: 0.92rem; color: #333; }

/* ---------- Reviews ---------- */
.sc-pdp-reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.sc-pdp-reviews-head .sc-pdp-title { margin-bottom: 8px; }
.sc-pdp-rating { display: flex; align-items: center; gap: 10px; }
.sc-pdp-rating-value { font-size: 1.45rem; font-weight: 600; color: #111; line-height: 1; }
.sc-pdp-rating .sc-pdp-stars { font-size: 0.9rem; }
.sc-pdp-rating-count { font-size: 0.85rem; color: #777; }
.sc-pdp-review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.sc-pdp-review {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 22px 22px 18px;
}
.sc-pdp-review-text { margin: 0; color: #333; font-size: 0.95rem; line-height: 1.65; flex: 1 1 auto; }
.sc-pdp-review-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-pdp-review-photos a { display: block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #f4f4f4; }
.sc-pdp-review-photos img { width: 100%; height: 100%; object-fit: cover; }
.sc-pdp-review-meta { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
.sc-pdp-review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f4ead7;
    color: #b8924f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.sc-pdp-review-who { display: flex; flex-direction: column; line-height: 1.3; }
.sc-pdp-review-who strong { font-size: 0.88rem; color: #111; font-weight: 600; }
.sc-pdp-review-who time { font-size: 0.78rem; color: #888; }
.sc-pdp-reviews-empty {
    margin: 0;
    padding: 28px 20px;
    border: 1px dashed #ddd;
    border-radius: 10px;
    text-align: center;
    color: #777;
    font-size: 0.95rem;
}

/* Review form */
.sc-review-modal .modal-content { border: 0; border-radius: 12px; }
.sc-review-modal .modal-header { border-bottom: 1px solid #f0f0f0; padding: 20px 24px; }
.sc-review-modal .modal-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 1.35rem; color: #111; }
.sc-review-modal .modal-body { padding: 20px 24px 24px; }
.sc-review-modal .form-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #555; margin-bottom: 6px; }
.sc-review-modal .form-control { border-radius: 8px; border-color: #ddd; font-size: 0.95rem; }
.sc-review-modal .form-control:focus { border-color: #111; box-shadow: none; }
.sc-star-picker { display: flex; gap: 4px; }
.sc-star-pick { background: none; border: 0; padding: 2px; font-size: 1.6rem; line-height: 1; color: #ddd; cursor: pointer; }
.sc-star-pick.is-on { color: #111; }
.sc-star-pick:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; border-radius: 4px; }

/* ---------- Related products ---------- */
.sc-pdp-related { padding: 24px 0 8px; }
.sc-pdp-related-block { margin-bottom: 40px; }
.sc-pdp-related-block .sc-index-section-label { margin-bottom: 6px; }
@media (max-width: 575.98px) {
    /* custom.css makes .custom-col-6-mobile full width on phones; two per row reads better here */
    .sc-pdp-related .custom-col-6-mobile { width: 50% !important; }
    /* the card's "Includes" pill uses inline styles sized for a full-width card */
    .sc-pdp-related .custom-col-6-mobile .rounded-pill { gap: 4px !important; padding: 2px 8px !important; font-size: 10px !important; }
    .sc-pdp-related .custom-col-6-mobile .rounded-pill img { width: 15px !important; height: 15px !important; }
    /* lifestyle photos inside older descriptions: two per row instead of four full-width ones */
    .sc-pdp-copy [class*="col-"]:has(> img) { flex: 0 0 auto; width: 50%; }
}

/* ---------- Comparison band ---------- */
.sc-pdp-why { background: #FAF8F5; padding: 80px 0; }
.sc-pdp-why-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: center;
}
.sc-pdp-why-badge { display: block; width: 84px; height: 84px; object-fit: contain; margin-bottom: 18px; }
.sc-pdp-why-title,
.sc-pdp-why-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.sc-pdp-why-title { font-size: 2.3rem; margin: 0 0 16px; }
.sc-pdp-why-subtitle { font-size: 1.7rem; margin: 0 0 24px; }
.sc-pdp-why-desc { color: #555; font-size: 1rem; line-height: 1.75; margin: 0 0 28px; max-width: 440px; }
.sc-pdp-why-help { margin: 20px 0 0; font-size: 0.9rem; color: #555; }
.sc-pdp-why-help a { color: #111; text-decoration: underline !important; text-underline-offset: 3px; }
.sc-pdp-why-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sc-pdp-why-col { border-radius: 12px; padding: 28px 26px 22px; display: flex; flex-direction: column; }
.sc-pdp-why-col--others { background: #fff; border: 1px solid #e8e4dc; }
.sc-pdp-why-col--us { background: #111; color: #fff; }
.sc-pdp-why-col-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #ddd;
}
.sc-pdp-why-col--us .sc-pdp-why-col-head { border-bottom-color: #c9a96e; }
.sc-pdp-why-col-name { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.sc-pdp-why-col--others .sc-pdp-why-col-name { color: #888; }
.sc-pdp-why-col-sub { font-size: 0.72rem; color: #aaa; }
.sc-pdp-why-col ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1 1 auto; }
.sc-pdp-why-col li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.45; margin-bottom: 11px; }
.sc-pdp-why-col li i { flex-shrink: 0; width: 14px; margin-top: 3px; font-size: 0.8rem; }
.sc-pdp-why-col--others li { color: #888; }
.sc-pdp-why-col--others li i { color: #c4c4c4; }
.sc-pdp-why-col--us li { color: #f2f2f2; }
.sc-pdp-why-col--us li i { color: #c9a96e; }
.sc-pdp-why-verdict { margin: 0; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.sc-pdp-why-col--others .sc-pdp-why-verdict { color: #aaa; }
.sc-pdp-why-col--us .sc-pdp-why-verdict { color: #c9a96e; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .sc-pdp-why { padding: 56px 0; }
    .sc-pdp-why-grid { grid-template-columns: 1fr; gap: 36px; }
    .sc-pdp-why-title { font-size: 1.9rem; }
}
@media (max-width: 575px) {
    .sc-pdp-block { padding-top: 28px; margin-bottom: 36px; }
    .sc-pdp-title { font-size: 1.4rem; }
    .pd-specs,
    .sc-pdp-copy .card-body { padding: 20px 18px 12px; }
    .pd-specs dl { grid-template-columns: 82px minmax(0, 1fr); }
    .sc-pdp-reviews-head { align-items: flex-start; }
    .sc-pdp-reviews-head .sc-pdp-btn-outline { width: 100%; text-align: center; }
    .sc-pdp-review-list { grid-template-columns: 1fr; }
    .sc-pdp-why-cols { grid-template-columns: 1fr; }
    .sc-pdp-why-col { padding: 24px 20px 18px; }
}
