:root {
    --prd-ink:      #0f172a;
    --prd-ink-2:    #334155;
    --prd-ink-3:    #64748b;
    --prd-paper:    #f8fafc;
    --prd-paper-2:  #f1f5f9;
    --prd-paper-3:  #e2e8f0;
    --prd-accent:   #2563eb;
    --prd-accent-2: #93c5fd;
    --prd-green:    #16a34a;
    --prd-blue:     #2563eb;
    --prd-radius:   8px;
    --prd-radius-sm: 6px;
    --prd-shadow:    0 1px 4px rgba(15,23,42,0.07);
    --prd-shadow-lg: 0 4px 24px rgba(15,23,42,0.11);
    --prd-t:         0.18s ease;
}

/* ── Fonts ────────────────────────────────────── */

.product-shell,
.product-shell * {
    font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Fraunces only for section titles */
.product-shell .section-title {
    font-family: 'Fraunces', Georgia, serif !important;
}

/* ── Shell ────────────────────────────────────── */

.product-shell {
    background: var(--prd-paper);
    color: var(--prd-ink);
    padding-top: 4.3rem;
}

/* ── Breadcrumb ───────────────────────────────── */

.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--prd-paper-3);
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 11px 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    flex-wrap: wrap;
}

.breadcrumb-inner a {
    color: var(--prd-ink-3);
    text-decoration: none;
    transition: color var(--prd-t);
}

.breadcrumb-inner a:hover { color: var(--prd-ink); }

.breadcrumb-sep { color: var(--prd-paper-3); }

.breadcrumb-current {
    color: var(--prd-ink-2);
    font-weight: 500;
}

/* ── Main grid ────────────────────────────────── */

.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px 0;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 44px;
    align-items: start;
}

.gallery-col {
    position: sticky;
    top: 80px;
}

/* ── Gallery ──────────────────────────────────── */

.main-image-wrap {
    position: relative;
    border-radius: var(--prd-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--prd-paper-3);
    aspect-ratio: 4 / 3;
    padding: 12px;
    box-sizing: border-box;
    cursor: zoom-in;
}

.main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transition: opacity 0.2s ease;
}

.main-image-wrap:hover img { opacity: 0.93; }

.badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prod-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

.badge-free { background: var(--prd-green); }
.badge-sale { background: var(--prd-accent); }
.badge-new  { background: var(--prd-ink-2); }

.img-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15,23,42,0.60);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity var(--prd-t);
}

.main-image-wrap:hover .img-zoom-hint { opacity: 1; }

.thumbs-strip {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--prd-radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--prd-paper-3);
    cursor: pointer;
    background: #fff;
    transition: border-color var(--prd-t);
    flex-shrink: 0;
}

.gallery-thumb:hover { border-color: var(--prd-ink-3); }

.gallery-thumb.active { border-color: var(--prd-ink); }

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.pages-info {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--prd-ink-3);
}

/* ── Buy panel ────────────────────────────────── */

.buy-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--prd-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    text-decoration: none;
}

.product-category-tag:hover { color: var(--prd-ink); }

.product-title-main {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.4px;
    color: var(--prd-ink);
    font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stars {
    color: #b45309;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.rating-val {
    font-weight: 600;
    font-size: 13px;
    color: var(--prd-ink-2);
}

.rating-count-link {
    color: var(--prd-ink-3);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.rating-count-link:hover { color: var(--prd-ink); }

.grade-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.grade-tag {
    background: var(--prd-paper-2);
    border: 1px solid var(--prd-paper-3);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    color: var(--prd-ink-3);
    font-weight: 500;
    letter-spacing: 0.1px;
}

.grade-tag-printable {
    background: var(--prd-paper-2);
    border-color: var(--prd-paper-3);
    color: var(--prd-ink-2);
    font-weight: 600;
}

.grade-tag-digital {
    background: var(--prd-paper-2);
    border-color: var(--prd-paper-3);
    color: var(--prd-ink-3);
}

.grade-tag-free {
    background: var(--prd-paper-2);
    border-color: var(--prd-paper-3);
    color: var(--prd-ink-2);
    font-weight: 600;
}

.grade-tag-premium {
    background: var(--prd-paper-2);
    border-color: var(--prd-paper-3);
    color: var(--prd-ink-3);
}

/* ── Price card ───────────────────────────────── */

.price-card {
    background: #fff;
    border: 1px solid var(--prd-paper-3);
    border-radius: var(--prd-radius);
    padding: 20px;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.price-main {
    font-size: 32px;
    font-weight: 600;
    color: var(--prd-ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', sans-serif !important;
}

.price-main.free-price {
    color: var(--prd-green);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-strike {
    font-size: 17px;
    color: var(--prd-ink-3);
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.price-save {
    background: var(--prd-paper-2);
    border: 1px solid var(--prd-paper-3);
    color: var(--prd-ink-2);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.2px;
}

.price-note {
    font-size: 11px;
    color: var(--prd-ink-3);
    margin-top: 3px;
}

.cta-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* ── Buttons ──────────────────────────────────── */

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: var(--prd-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--prd-t);
    text-decoration: none;
    letter-spacing: 0.1px;
}

.btn-buy {
    background: var(--prd-ink);
    color: #fff;
}

.btn-buy:hover { background: #1e293b; }

.btn-download {
    background: var(--prd-green);
    color: #fff;
}

.btn-download:hover { opacity: 0.88; color: #fff; }

.btn-wishlist {
    width: 100%;
    height: 42px;
    border-radius: var(--prd-radius-sm);
    border: 1px solid var(--prd-paper-3);
    background: #fff;
    font-size: 13px;
    color: var(--prd-ink-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--prd-t);
    font-weight: 500;
}

.btn-wishlist:hover {
    border-color: var(--prd-ink-3);
    color: var(--prd-ink);
}

.btn-wishlist.active {
    border-color: var(--prd-ink);
    color: var(--prd-ink);
    background: var(--prd-paper-2);
}

/* ── Sign-in nudge ────────────────────────────── */

.signin-nudge {
    background: var(--prd-paper-2);
    border: 1px solid var(--prd-paper-3);
    border-radius: var(--prd-radius-sm);
    padding: 16px;
    text-align: center;
    margin-top: 4px;
}

.signin-nudge p {
    font-size: 13px;
    color: var(--prd-ink-2);
    margin-bottom: 12px;
}

.signin-nudge-btns {
    display: flex;
    gap: 8px;
}

.signin-nudge-btns a {
    flex: 1;
    height: 36px;
    border-radius: var(--prd-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--prd-t);
}

.signin-nudge-btns a:first-child {
    background: var(--prd-ink);
    color: #fff;
}

.signin-nudge-btns a:last-child {
    background: var(--prd-green);
    color: #fff;
}

.signin-nudge-btns a:hover { opacity: 0.86; }

/* ── Trust row ────────────────────────────────── */

.trust-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--prd-ink-3);
    font-weight: 500;
    letter-spacing: 0.1px;
}

.trust-item svg { color: var(--prd-green); flex-shrink: 0; }

/* ── Below-fold grid ──────────────────────────── */

.product-below {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 44px;
    align-items: start;
}

/* ── Tabs ─────────────────────────────────────── */

.tabs-wrap { margin-top: 36px; }

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--prd-paper-3);
}

.tab-btn {
    padding: 10px 18px;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--prd-ink-3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--prd-t);
    letter-spacing: 0.1px;
}

.tab-btn:hover { color: var(--prd-ink); }

.tab-btn.active {
    color: var(--prd-ink);
    border-bottom-color: var(--prd-ink);
}

.tab-panel {
    display: none;
    padding: 24px 0;
}

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

/* ── Prose ────────────────────────────────────── */

.description-prose {
    font-size: 15px;
    line-height: 1.75;
    color: var(--prd-ink-2);
}

.description-prose h2,
.description-prose h3 {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 500;
    color: var(--prd-ink);
    margin: 24px 0 10px;
}

.description-prose h2 { font-size: 20px; }
.description-prose h3 { font-size: 17px; }
.description-prose p  { margin-bottom: 14px; }

.description-prose ul,
.description-prose ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.description-prose li  { margin-bottom: 6px; }

.description-prose strong {
    color: var(--prd-ink);
    font-weight: 600;
}

.whats-inside {
    background: var(--prd-paper-2);
    border-radius: var(--prd-radius);
    border: 1px solid var(--prd-paper-3);
    padding: 20px 24px;
    margin: 20px 0;
}

.whats-inside h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--prd-ink-3);
    margin-bottom: 14px;
}

.inside-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 0;
    margin: 0;
}

.inside-list li {
    font-size: 13px;
    color: var(--prd-ink-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.inside-list li::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--prd-ink-3);
    flex-shrink: 0;
}

/* ── Ratings aside ────────────────────────────── */

.ratings-aside {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ratings-card {
    background: #fff;
    border: 1px solid var(--prd-paper-3);
    border-radius: var(--prd-radius);
    padding: 20px;
}

.ratings-summary {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--prd-paper-3);
}

.ratings-big-num {
    font-size: 52px;
    font-weight: 300;
    line-height: 1;
    color: var(--prd-ink);
    font-family: 'Inter', sans-serif !important;
    font-variant-numeric: tabular-nums;
}

.ratings-meta { flex: 1; }

.ratings-meta .stars {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.ratings-meta .total {
    font-size: 12px;
    color: var(--prd-ink-3);
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.rating-bar-label {
    color: var(--prd-ink-3);
    width: 20px;
    text-align: right;
    flex-shrink: 0;
}

.rating-bar-track {
    flex: 1;
    height: 4px;
    background: var(--prd-paper-3);
    border-radius: 2px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--prd-ink-3);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.rating-bar-count {
    color: var(--prd-ink-3);
    width: 20px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Review actions ───────────────────────────── */

.write-review-btn {
    width: 100%;
    height: 40px;
    border-radius: var(--prd-radius-sm);
    border: 1px solid var(--prd-paper-3);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--prd-ink);
    cursor: pointer;
    transition: all var(--prd-t);
    letter-spacing: 0.1px;
}

.write-review-btn:hover {
    border-color: var(--prd-ink);
    background: var(--prd-paper-2);
}

.review-form-wrap {
    background: var(--prd-paper-2);
    border: 1px solid var(--prd-paper-3);
    border-radius: var(--prd-radius);
    padding: 20px;
    display: none;
}

.review-form-wrap.open { display: block; }

.review-form-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--prd-ink);
    letter-spacing: -0.1px;
    font-family: 'Inter', sans-serif !important;
}

.form-field { margin-bottom: 14px; }

.form-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--prd-ink-3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--prd-paper-3);
    border-radius: var(--prd-radius-sm);
    padding: 9px 12px;
    font-size: 13px;
    color: var(--prd-ink);
    background: #fff;
    outline: none;
    transition: border-color var(--prd-t);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--prd-ink-3);
    box-shadow: 0 0 0 2px rgba(15,23,42,0.06);
}

.form-field textarea {
    resize: vertical;
    min-height: 88px;
}

.char-counter {
    text-align: right;
    font-size: 11px;
    color: var(--prd-ink-3);
    margin-top: 4px;
}

.star-picker {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 26px;
    color: var(--prd-paper-3);
    cursor: pointer;
    transition: color var(--prd-t);
    line-height: 1;
}

.star:hover,
.star.lit { color: #b45309; }

.rating-text {
    margin-top: 6px;
    font-size: 12px;
    color: var(--prd-ink-3);
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.form-submit {
    flex: 1;
    height: 40px;
    background: var(--prd-ink);
    color: #fff;
    border: none;
    border-radius: var(--prd-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--prd-t);
}

.form-submit:hover { background: #1e293b; }

.form-cancel {
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--prd-paper-3);
    border-radius: var(--prd-radius-sm);
    font-size: 13px;
    color: var(--prd-ink-2);
    cursor: pointer;
    transition: border-color var(--prd-t);
}

.form-cancel:hover { border-color: var(--prd-ink-3); }

/* ── Reviews list ─────────────────────────────── */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.review-item {
    padding: 16px;
    border: 1px solid var(--prd-paper-3);
    border-radius: var(--prd-radius);
    background: #fff;
}

/* Row 1: name + date */
.review-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--prd-ink);
}

.review-date {
    font-size: 11px;
    color: var(--prd-ink-3);
    white-space: nowrap;
}

/* Row 2: stars + grade badge */
.review-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.review-stars {
    color: #b45309;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
}

.review-grade-badge {
    display: inline-block;
    background: var(--prd-paper-2);
    border: 1px solid var(--prd-paper-3);
    border-radius: 3px;
    padding: 2px 7px;
    font-size: 10px;
    color: var(--prd-ink-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Row 3: comment text */
.review-text {
    font-size: 13px;
    color: var(--prd-ink-2);
    line-height: 1.7;
    margin: 0;
}

.review-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.review-act-btn {
    font-size: 12px;
    color: var(--prd-ink-3);
    background: #fff;
    border: 1px solid var(--prd-paper-3);
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 500;
    transition: color var(--prd-t);
}

.review-act-btn:hover {
    color: var(--prd-ink);
    background: var(--prd-paper-2);
    border-color: var(--prd-ink-3);
}
.review-act-btn.delete     { color: #dc2626; border-color: rgba(220,38,38,0.35); }
.review-act-btn.delete:hover {
    background: rgba(220,38,38,0.08);
    border-color: rgba(220,38,38,0.55);
    opacity: 1;
}

.empty-reviews {
    text-align: center;
    padding: 28px 18px;
    background: #fff;
    border: 1px solid var(--prd-paper-3);
    border-radius: var(--prd-radius);
}

.empty-title {
    font-size: 17px;
    color: var(--prd-ink);
    margin-bottom: 6px;
    font-weight: 600;
}

.empty-text {
    margin: 0;
    color: var(--prd-ink-3);
    font-size: 13px;
}

/* ── Related products ─────────────────────────── */

.related-section {
    background: var(--prd-paper-2);
    border-top: 1px solid var(--prd-paper-3);
    padding: 52px 24px 64px;
}

.related-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: var(--prd-ink);
}

.section-link {
    font-size: 12px;
    color: var(--prd-ink-3);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--prd-t);
}

.section-link:hover { color: var(--prd-ink); text-decoration: underline; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.rel-card {
    background: #fff;
    border-radius: var(--prd-radius);
    border: 1px solid var(--prd-paper-3);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow var(--prd-t), border-color var(--prd-t);
}

.rel-card:hover {
    box-shadow: var(--prd-shadow-lg);
    border-color: #d1d9e6;
}

.rel-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--prd-paper-2);
    position: relative;
}

.rel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.rel-card:hover .rel-card-img img { opacity: 0.90; }

.rel-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--prd-green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.rel-card-body { padding: 12px; }

.rel-card-cat {
    font-size: 10px;
    color: var(--prd-ink-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.rel-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    color: var(--prd-ink);
}

.rel-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rel-card-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--prd-ink);
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', sans-serif !important;
}

.rel-card-price.free {
    font-size: 11px;
    font-weight: 700;
    color: var(--prd-green);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: 'Inter', sans-serif !important;
}

.rel-card-stars {
    font-size: 11px;
    color: #b45309;
}

/* ── Modals ───────────────────────────────────── */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.hidden { display: none; }

.lightbox-img-wrap {
    position: relative;
    max-width: 80vw;
    max-height: 85vh;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--prd-radius);
    display: block;
}

.lightbox-btn,
.lightbox-close {
    position: fixed;
    background: rgba(255,255,255,0.10);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--prd-t);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
}

.lightbox-btn.prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.lightbox-btn.next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.lightbox-btn:hover,
.lightbox-close:hover { background: rgba(255,255,255,0.20); }

.edit-review-modal-card {
    position: relative;
    background: #fff;
    border-radius: var(--prd-radius);
    padding: 24px;
    width: min(520px, calc(100vw - 32px));
    box-shadow: var(--prd-shadow-lg);
}

.modal-close-top {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    color: var(--prd-ink-3);
    font-size: 22px;
    cursor: pointer;
    transition: color var(--prd-t);
}

.modal-close-top:hover { color: var(--prd-ink); }

/* ── Sticky buy bar (mobile) ──────────────────── */

.sticky-buy-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--prd-paper-3);
    padding: 12px 16px;
    z-index: 90;
    gap: 12px;
    align-items: center;
    box-shadow: 0 -2px 12px rgba(15,23,42,0.08);
}

.sticky-buy-bar .price-main { font-size: 20px; }

.sticky-buy-bar .btn-primary {
    flex: 1;
    height: 44px;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 960px) {
    .product-page,
    .product-below {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-col { position: static; }

    .related-grid { grid-template-columns: repeat(2, 1fr); }

    .sticky-buy-bar { display: flex; }

    body { padding-bottom: 80px; }
}

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

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

    .product-page,
    .product-below { padding: 16px 16px 0; }

    .breadcrumb-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}
