/* ================================================================
   PRODUCT DETAIL PAGE — CLEAN STYLESHEET
   ================================================================ */

/* ---------- Layout ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
}

/* ---------- Gallery ---------- */
.product-gallery {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg, #f7f8fa);
    border-radius: var(--radius, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid var(--border-light, #ececec);
    overflow: hidden;
    cursor: crosshair;
    /* Allow vertical page scroll unless magnifier is active */
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

/* When magnifier is active, block all touch gestures on the image */
.gallery-main.zooming {
    touch-action: none;
    cursor: none;
}

/* Carousel: one slide per picture, the track slides sideways */
.gallery-track {
    flex: 0 0 100%;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .28);
    outline-offset: 2px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 7;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .94);
    color: var(--text, #1a1a1a);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .16);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease, background .2s ease, color .2s ease;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-main:hover .gallery-nav,
.gallery-nav:focus-visible { opacity: 1; }

.gallery-nav:hover {
    background: var(--primary, #C2410C);
    color: #fff;
}

.gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 7;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 32px);
    padding: 6px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .1);
}

.gallery-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 99px;
    background: rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.gallery-dot.active {
    width: 18px;
    background: var(--primary, #C2410C);
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

.gallery-main-placeholder {
    font-size: 5rem;
    color: var(--text-muted, #888);
    opacity: 0.3;
}

/* ================================================================
   MAGNIFIER LENS — GPU accelerated
   ================================================================ */
.zoom-lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .18),
        0 10px 30px rgba(0, 0, 0, .32),
        inset 0 0 0 1px rgba(0, 0, 0, .06);
    background: #fff;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    contain: strict;
    z-index: 6;
    transition: opacity .15s ease;
}

.zoom-lens.visible {
    opacity: 1;
    visibility: visible;
}

/* The zoomed image inside the lens */
.zoom-lens-img {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    max-width: none;
    max-height: none;
    image-rendering: -webkit-optimize-contrast;
    display: block;
}

/* On touch devices, make the lens appear instantly (no fade lag);
   arrows stay visible (there is no hover) but smaller — swiping works too */
@media (hover: none), (pointer: coarse) {
    .zoom-lens {
        transition: none;
    }

    .gallery-nav {
        opacity: 1;
        width: 34px;
        height: 34px;
        font-size: .8rem;
    }

    .gallery-prev { left: 6px; }
    .gallery-next { right: 6px; }
}

/* ---------- Gallery thumbs ---------- */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    position: relative;
    flex-shrink: 0;
    padding: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm, 8px);
    background: var(--bg, #f7f8fa);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #888);
    font-size: 1.2rem;
    overflow: hidden;
    transition: border-color .25s ease;
}

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

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary, #C2410C);
}

/* small colour dot: which colour a picture belongs to */
.gallery-thumb-color {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}

/* ---------- Info Panel ---------- */
.product-detail-info h1 {
    font-size: 1.8rem;
    margin: 8px 0 12px;
    line-height: 1.3;
    color: var(--text, #1a1a1a);
}

.stock-status {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}

.stock-status.in-stock  { color: var(--primary, #C2410C); }
.stock-status.out-stock { color: #c62828; }

.product-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.short-desc {
    color: var(--text-muted, #888);
    font-size: 0.92rem;
}

.product-detail-info .product-rating,
.review-header .product-rating {
    display: inline-flex;
    gap: 3px;
    font-size: 0.9rem;
}

.product-detail-info .product-rating i,
.review-header .product-rating i {
    color: var(--warning);
}

.product-detail-info .product-rating i {
    font-size: 0.85rem;
}

.product-detail-info .product-rating i.off,
.review-header .product-rating i.off {
    color: var(--border);
}

.product-detail-info .product-rating span,
.review-header .product-rating span {
    margin-left: 6px;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-detail-price .current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary, #C2410C);
}

.product-detail-price .original {
    text-decoration: line-through;
    color: var(--text-muted, #888);
}

.product-detail-price .save {
    background: #F1F5F9;
    color: #C2410C;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.product-short-desc {
    color: var(--text-light, #555);
    line-height: 1.7;
    margin-bottom: 24px;
}

.option-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text, #1a1a1a);
}

.option-label .selected-color-name {
    font-weight: 500;
    color: var(--text-light, #666);
}

/* ---------- Size ---------- */
.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.size-option {
    padding: 10px 18px;
    border: 1.5px solid var(--border, #dcdcdc);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.size-option.active,
.size-option:hover {
    border-color: var(--primary, #C2410C);
    background: var(--primary-light, #F1F5F9);
    color: var(--primary, #C2410C);
}

.size-option .price {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ---------- Colors ---------- */
.product-detail-info .color-filters {
    gap: 10px;
    margin-bottom: 24px;
}

.product-detail-info .color-swatch {
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    transition: border-color .25s ease, transform .25s ease;
}

.product-detail-info .color-swatch.is-light {
    border-color: var(--border);
}

.product-detail-info .color-swatch.active,
.product-detail-info .color-swatch:hover {
    border-color: var(--primary, #C2410C);
    transform: scale(1.1);
}

/* ---------- Quantity ---------- */
.qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.qty-selector button {
    width: 40px;
    height: 40px;
    background: var(--bg, #f7f8fa);
    color: var(--text, #1a1a1a);
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: background .2s ease;
}

.qty-selector button:hover {
    background: var(--border, #dcdcdc);
}

.qty-selector input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
}

/* ---------- Actions ---------- */
.product-detail-actions {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.product-detail-actions .btn-add-cart {
    flex: 1 1 auto;
}

.product-detail-actions .btn-wishlist {
    flex: 0 0 auto;
    min-width: 56px;
    transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.product-detail-actions .btn-wishlist i {
    transition: transform .25s ease, color .25s ease;
}

.product-detail-actions .btn-wishlist:hover i {
    transform: scale(1.15);
}

.product-detail-actions .btn-wishlist.active {
    background: #fff0f0;
    border-color: #e53935;
    color: #e53935;
}

.product-detail-actions .btn-wishlist.active i {
    color: #e53935;
}

.product-perks {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted, #888);
}

.product-perks i {
    color: var(--primary, #C2410C);
    margin-right: 4px;
}

.product-features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light, #555);
}

.product-features-list i {
    color: var(--primary, #C2410C);
    flex-shrink: 0;
}

/* ================================================================
   TABS
   ================================================================ */
.product-tabs {
    margin-top: 48px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border-light, #ececec);
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-nav button {
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted, #888);
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .25s ease, border-color .25s ease;
}

.tab-nav button.active,
.tab-nav button:hover {
    color: var(--primary, #C2410C);
    border-bottom-color: var(--primary, #C2410C);
}

.tab-content {
    display: none;
    animation: fadeIn .3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tab-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text, #1a1a1a);
}

.tab-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text, #1a1a1a);
}

.tab-subtitle:first-of-type { margin-top: 0; }

.tab-text {
    line-height: 1.8;
    color: var(--text-light, #555);
}

/* ---------- Additional Info Table ---------- */
.info-table-wrap {
    max-width: 640px;
    border-radius: var(--radius, 12px);
    overflow: hidden;
    border: 1px solid var(--border-light, #ececec);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.info-table tr {
    border-bottom: 1px solid var(--border-light, #ececec);
    transition: background .15s ease;
}

.info-table tr:last-child { border-bottom: none; }

.info-table tr:hover { background: var(--bg, #f7f8fa); }

.info-table th {
    text-align: left;
    padding: 14px 20px;
    width: 40%;
    background: #fafafa;
    color: var(--text, #1a1a1a);
    font-weight: 600;
    font-size: 0.88rem;
    vertical-align: middle;
}

.info-table td {
    padding: 14px 20px;
    color: var(--text-light, #555);
    vertical-align: middle;
}

.info-table tr:hover th { background: #f2f2f2; }

.out-stock-text { color: #c62828; font-weight: 600; }

/* ================================================================
   REVIEWS
   ================================================================ */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #F8FAFC 100%);
    border-radius: var(--radius, 12px);
    border: 1px solid var(--border-light, #ececec);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.reviews-summary strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary, #C2410C);
    line-height: 1;
}

.reviews-summary span {
    font-size: 0.95rem;
    color: var(--text-muted, #888);
}

.no-reviews {
    color: var(--text-light, #555);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: #fff;
    border-radius: var(--radius, 12px);
    padding: 20px 24px;
    border: 1px solid var(--border-light, #ececec);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.review-item:hover {
    border-color: var(--primary-light, #F1F5F9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-light, #ececec);
}

.review-header strong {
    font-size: 0.95rem;
    color: var(--text, #1a1a1a);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.review-header .product-rating i {
    font-size: 0.78rem;
}

.review-date {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    margin-left: auto;
    background: var(--bg, #f7f8fa);
    padding: 4px 10px;
    border-radius: 20px;
}

.review-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0;
    color: var(--text, #1a1a1a);
}

.review-comment {
    color: var(--text-light, #555);
    line-height: 1.65;
    margin: 0;
    font-size: 0.92rem;
}

/* ---------- Review Form ---------- */
.review-form {
    background: #fff;
    border: 1px solid var(--border-light, #ececec);
    border-radius: var(--radius, 12px);
    padding: 28px;
    margin-top: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.review-form h4 {
    font-size: 1.15rem;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light, #ececec);
    color: var(--text, #1a1a1a);
}

.review-form .form-group { margin-bottom: 18px; }

.review-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text, #1a1a1a);
}

.review-form .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border, #dcdcdc);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.92rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.review-form .form-control:focus {
    outline: none;
    border-color: var(--primary, #C2410C);
    box-shadow: 0 0 0 3px var(--primary-light, #F1F5F9);
}

.review-form textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.login-to-review {
    margin-top: 20px;
    color: var(--text-light, #555);
}

.login-to-review a {
    color: var(--primary, #C2410C);
    font-weight: 600;
    text-decoration: none;
}

/* ================================================================
   STAR RATING PICKER
   ================================================================ */
.star-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 6px 0;
}

.star-picker input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.star-picker label {
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    color: #ddd;
    transition: color .15s ease, transform .15s ease;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-picker label i { pointer-events: none; }

.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label {
    color: #ffc107;
}

.star-picker label:hover { transform: scale(1.15); }

.star-picker input:focus-visible + label {
    outline: 2px solid var(--primary, #C2410C);
    outline-offset: 2px;
    border-radius: 4px;
}

.star-picker-label {
    margin-left: 12px;
    font-size: 0.88rem;
    color: var(--text-muted, #888);
    font-weight: 500;
    transition: color .2s ease;
}

.star-picker-label.active {
    color: var(--primary, #C2410C);
    font-weight: 600;
}

/* ================================================================
   RELATED PRODUCTS
   ================================================================ */
.related-products-section {
    margin-top: 64px;
    padding-bottom: 40px;
}

.related-products-section .section-header {
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light, #ececec);
}

.related-products-section .section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 16px;
    color: var(--text, #1a1a1a);
}

.related-products-section .section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--primary, #C2410C);
    border-radius: 2px;
}

.related-products-section .section-link {
    color: var(--primary, #C2410C);
    font-size: 0.92rem;
    gap: 8px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--primary-light, #F1F5F9);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.related-products-section .section-link:hover {
    background: var(--primary, #C2410C);
    color: #fff;
    transform: translateX(3px);
}

.related-products-section .section-link i {
    transition: transform .25s ease;
}
.section-link:hover i { transform: translateX(3px); }

.related-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.related-products-section .product-card {
    background: #fff;
    border: 1px solid var(--border-light, #ececec);
    border-radius: var(--radius, 12px);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
    display: flex;
    flex-direction: column;
}

.related-products-section .product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}

.related-products-section .product-image {
    aspect-ratio: 1;
    background: var(--bg, #f7f8fa);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-products-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .4s ease;
}

.related-products-section .product-card:hover .product-image img {
    transform: scale(1.05);
}

.related-products-section .product-image-placeholder {
    font-size: 2.5rem;
    color: var(--text-muted, #888);
    opacity: .3;
}

.related-products-section .product-info {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-products-section .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-card .product-title a {
    color: var(--text, #1a1a1a);
    text-decoration: none;
}

.product-card .product-title a:hover {
    color: var(--primary, #C2410C);
}

.related-products-section .product-desc {
    font-size: 0.82rem;
    color: var(--text-muted, #888);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.product-card .product-price .current {
    font-weight: 700;
    color: var(--primary, #C2410C);
    font-size: 1rem;
}

.product-card .product-price .original {
    text-decoration: line-through;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
}

.product-card .product-actions {
    margin-top: 8px;
}

/* ================================================================
   WISHLIST TOAST
   ================================================================ */

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 992px) {
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery { position: static; }

    .gallery-main {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-thumbs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        width: fit-content;
        max-width: min(100%, 500px);
        margin: 0 auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-thumbs::-webkit-scrollbar { display: none; }

    .product-features-list { grid-template-columns: 1fr; }

    .info-table-wrap { max-width: 100%; }

    .zoom-lens {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 640px) {
    .product-detail-info h1 { font-size: 1.4rem; }

    .product-detail-price .current { font-size: 1.6rem; }

    .tab-nav button {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .gallery-main-image { padding: 12px; }

    .product-detail-actions { flex-direction: column; }

    .product-detail-actions .btn-add-cart,
    .product-detail-actions .btn-wishlist {
        width: 100%;
    }

    .related-products-section .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .related-products-section .section-header h2 {
    font-size: 1.2rem;
}

    .related-products-section .section-link {
    font-size: 0.85rem;
    padding: 6px 12px;
}

    .review-item,
    .review-form { padding: 16px; }

    .reviews-summary {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .info-table th,
    .info-table td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .star-picker label { font-size: 1.4rem; }

    .star-picker-label {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    

    /* Magnifier stays active on mobile — press & hold to zoom */
    .gallery-main {
        cursor: default;
    }

    .zoom-lens {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }
}

@media (max-width: 420px) {
    .tab-nav button {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .qty-selector button {
        width: 34px;
        height: 34px;
    }

    .qty-selector input {
        width: 44px;
        height: 34px;
    }
}

/* product page spacing helpers (replace inline styles) */
.product-page-top { padding-top: 20px; }
.product-detail-info .badge-bestseller { display: inline-block; margin-bottom: 12px; }
.option-label.option-label--flush { margin: 0; }
