/* ============ PRINT PAGE STYLES (scoped) ============ */
.sc-print {
    --scc-bg: #fff;
    --scc-border: #e9edf2;
    --scc-muted: #6c7a86;
    --scc-text: #222;
    --scc-blue: #1aa0d6;
    --scc-blue-dark: #168ebe;
    --scc-badge: #41b3e2;
}

/* grid spacing */
.sc-print .sc-grid {
    row-gap: 2rem;
}

/* card: equal height, hover */
.sc-print .sc-card {
    position: relative;
    border: 1px solid var(--scc-border);
    background: var(--scc-bg);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sc-print .sc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

/* image area: fixed height for alignment */
.sc-print .sc-media {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-print .sc-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

/* optional badge */
.sc-print .sc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--scc-badge);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* body layout */
.sc-print .sc-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* single-line title + category with ellipsis */
.sc-print .sc-title,
.sc-print .sc-cat {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-print .sc-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--scc-text);
    margin: 0;
    line-height: 1.2;
}
.sc-print .sc-title a {
    text-decoration: none;
    color: inherit;
}
.sc-print .sc-title a:hover {
    opacity: 0.9;
}
.sc-print .sc-cat {
    color: var(--scc-muted);
    font-size: 0.82rem;
}

/* actions row: price left, View Details right */
.sc-print .sc-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.sc-print .sc-price {
    font-weight: 800;
    color: var(--scc-text);
    white-space: nowrap;
}
.sc-print .sc-price s {
    font-weight: 400;
    color: var(--scc-muted);
    margin-right: 0.4rem;
}
.page-item.active .page-link {
    background-color: #172153;
    border-color: #172153;
}
.sc-print .sc-view {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #172153;
    background: #fff;
    color: #172153;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
}
.sc-print .sc-view:hover {
    background: #172153;
    color: #fff;
}

/* empty state / no image */
.sc-print .sc-empty {
    color: var(--scc-muted);
    text-align: center;
    border: 1px dashed var(--scc-border);
    border-radius: 12px;
    padding: 2.5rem;
    background: #fbfcfe;
}

/* responsive tweaks (keep rows aligned) */
@media (max-width: 991.98px) {
    .sc-print .sc-media {
        height: 200px;
    }
}
@media (max-width: 575.98px) {
    .sc-print .sc-media {
        height: 180px;
    }
}

/* ============ PRINT DETAIL PAGE (scoped) ============ */
.sc-print.sc-print-detail .dp-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.sc-print.sc-print-detail .dp-media {
    background: #f8fafc;
    border: 1px solid var(--scc-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px; /* <= target width */
    height: 500px; /* <= target height */
    padding: 8px;
    margin: 0 auto; /* center in the left column */
}
.sc-print.sc-print-detail .dp-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* keep aspect ratio within the 500x500 box */
    background: #fff;
    border-radius: 8px;
    max-height: none; /* override any earlier max-height */
}
.sc-print.sc-print-detail .dp-head {
    margin-bottom: 0.5rem;
}
.sc-print.sc-print-detail .dp-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--scc-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-print.sc-print-detail .dp-path {
    color: var(--scc-muted);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-print.sc-print-detail .dp-price-row {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sc-print.sc-print-detail .dp-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--scc-text);
    white-space: nowrap;
}
.sc-print.sc-print-detail .dp-price s {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--scc-muted);
    margin-right: 0.5rem;
}
.sc-print.sc-print-detail .dp-cta {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #172153;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.sc-print.sc-print-detail .dp-cta:hover {
    background: var(--scc-blue-dark);
}
.sc-print.sc-print-detail .dp-desc {
    color: var(--scc-text);
}
.sc-print.sc-print-detail .dp-note {
    font-size: 0.82rem;
    color: var(--scc-muted);
    margin-top: 0.5rem;
}

.sc-print.sc-print-detail .dp-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.sc-print.sc-print-detail .dp-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid var(--scc-border);
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.9;
    background: #fff;
}
.sc-print.sc-print-detail .dp-thumb.active {
    outline: 2px solid #172153;
    opacity: 1;
}

/* responsive */
@media (max-width: 991.98px) {
    .sc-print.sc-print-detail .dp-wrap {
        grid-template-columns: 1fr;
    }
    .sc-print.sc-print-detail .dp-media {
        max-width: 440px;
        height: 440px;
    }
}
@media (max-width: 575.98px) {
    .sc-print.sc-print-detail .dp-media {
        max-width: 320px;
        height: 320px;
    }
    .sc-print.sc-print-detail .dp-title {
        font-size: 1.3rem;
    }
    .sc-print.sc-print-detail .dp-price {
        font-size: 1.25rem;
    }
}

/* ============ PRINT START PAGE (scoped) ============ */
.sc-print.sc-print-start .sp-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.sc-print.sc-print-start .sp-left h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}
.sc-print.sc-print-start .sp-price {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
}
.sc-print.sc-print-start .sp-desc {
    color: #222;
}

.sc-print.sc-print-start .slots-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.sc-print.sc-print-start .slots-note {
    font-size: 0.85rem;
    color: #6c7a86;
}
.sc-print.sc-print-start .add-slot {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #172153;
    background: #fff;
    color: #172153;
    font-weight: 700;
}
.sc-print.sc-print-start .add-slot:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sc-print.sc-print-start .slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.sc-print.sc-print-start .slot {
    position: relative;
    border: 1px dashed #cfd6de;
    border-radius: 12px;
    min-height: 140px;
    background: #fbfcfe;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.sc-print.sc-print-start .slot:hover {
    background: #f4f8fc;
}
.sc-print.sc-print-start .slot img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}
.sc-print.sc-print-start .slot .slot-label {
    color: #6c7a86;
    font-size: 0.9rem;
    text-align: center;
}
.sc-print.sc-print-start .slot .slot-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #fff;
    border: 1px solid #e9edf2;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa6b2;
}

.sc-print.sc-print-start .actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.sc-print.sc-print-start .btn-next {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #172153;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}
.sc-print.sc-print-start .btn-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.sc-print.sc-print-start .btn-cancel {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #cfd6de;
    background: #fff;
    color: #2a2f36;
}

/* modal library */
.sc-lib .nav-tabs .nav-link {
    font-weight: 700;
}
.sc-lib .lib-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.sc-lib .lib-item {
    border: 1px solid #e9edf2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}
.sc-lib .lib-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.sc-lib .lib-item.active {
    outline: 2px solid #172153;
}
.sc-lib .lib-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.sc-lib .btn-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: #172153;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}
.sc-lib .btn-close2 {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cfd6de;
    background: #fff;
}

/* big preview modal */
.sc-lib-preview img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
@media (max-width: 991.98px) {
    .sc-print.sc-print-start .sp-wrap {
        grid-template-columns: 1fr;
    }
    .sc-print.sc-print-start .slots {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .sc-print.sc-print-start .slots {
        grid-template-columns: 1fr;
    }
}
/* Picker footer pinned + visible buttons */
.sc-lib .modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 1056; /* above body */
}
.sc-lib .btn-select {
    display: inline-block;
}
.sc-lib .btn-select[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================
  PRINT: Product Show page
  Scope with .sc-print-show
  =========================== */

.sc-print-show .ps-wrap {
    display: grid;
    grid-template-columns: 560px 1fr;
    gap: 32px;
    align-items: start;
}

.sc-print-show .ps-card {
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(10, 31, 68, 0.06);
}

.sc-print-show .ps-media {
    padding: 16px;
}

.sc-print-show .ps-img {
    width: 100%;
    max-width: 520px; /* ~500x500 look */
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
    margin-inline: auto;
    transition: transform 0.25s ease;
}
.sc-print-show .ps-media:hover .ps-img {
    transform: scale(1.02);
}

.sc-print-show .ps-summary {
    padding: 8px 8px 8px 0;
}

.sc-print-show h1.ps-title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.sc-print-show .ps-breadcrumbs {
    color: #6b7a90;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.sc-print-show .ps-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 6px;
}

.sc-print-show .ps-badges {
    display: flex;
    gap: 8px;
    margin: 10px 0 14px;
}
.sc-print-show .ps-badge {
    background: #f1f5ff;
    color: #2f80ed;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 999px;
}

.sc-print-show .ps-info-card {
    padding: 20px;
}

.sc-print-show .ps-price-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px 0 16px;
}
.sc-print-show .ps-price {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a1f44;
}

.sc-print-show .btn-buy {
    background: #172153;
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 12px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(47, 128, 237, 0.24);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sc-print-show .btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(47, 128, 237, 0.3);
}
.sc-print-show .btn-buy:active {
    transform: translateY(0);
}

.sc-print-show .ps-desc {
    color: #374151;
    font-size: 1rem;
    line-height: 1.65;
}
.sc-print-show .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2f80ed;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
}
.sc-print-show .back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
    .sc-print-show .ps-wrap {
        grid-template-columns: 1fr;
    }
    .sc-print-show .ps-media {
        order: 2;
    }
    .sc-print-show .ps-summary {
        order: 1;
        padding: 0;
    }
}
@media (max-width: 768px) {
    .sc-print-show .ps-price-cta {
        flex-wrap: wrap;
    }
    .sc-print-show .ps-img {
        max-width: 420px;
    }
}

/* Sticky mobile CTA (nice boost to conversions) */
@media (max-width: 640px) {
    .sc-print-show .ps-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        backdrop-filter: saturate(1.2) blur(6px);
        background: rgba(255, 255, 255, 0.92);
        border-top: 1px solid #e6eef5;
        padding: 10px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .sc-print-show .ps-sticky-cta .ps-price {
        font-size: 1.35rem;
    }
    .sc-print-show .ps-sticky-cta .btn-buy {
        padding: 10px 16px;
        border-radius: 10px;
    }rinkware/white-ceramic-mug-11-oz
}

/* optional: nudge any floating “Spin to Win” widget if it overlaps */
.sc-print-show .spin-to-win,
.sc-print-show .wheelio-trigger {
    bottom: 16px !important;
    top: auto !important; /* move to bottom on this page */
}

/* Clean modern card layout */
.sc-print .sc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.sc-print .sc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Image container with white background */
.sc-print .sc-media {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    flex-shrink: 0;
}

.sc-print .sc-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sc-print .sc-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Card body with centered content */
.sc-print .sc-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
    text-align: center;
}

.sc-print .sc-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #172153;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-print .sc-title a {
    color: inherit;
    text-decoration: none;
}

.sc-print .sc-title a:hover {
    color: #2a3a6e;
}

.sc-print .sc-cat {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions section - price LEFT, button RIGHT */
.sc-print .sc-actions {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
}

.sc-print .sc-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #172153;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    line-height: 1;
}

.sc-print .sc-price s {
    font-size: 0.85rem;
    font-weight: 400;
    color: #94a3b8;
    margin-right: 6px;
}

.sc-print .btn-dark {
    background: #172153;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    line-height: 1;
}

.sc-print .btn-dark:hover {
    background: #0f1636;
    color: #fff;
    transform: translateY(-1px);
}

/* Empty state */
.sc-print .sc-empty {
    color: #6c7a86;
    font-size: 0.9rem;
    padding: 32px 16px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #e5eaf0;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sc-print .sc-media {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .sc-print .sc-media {
        height: 160px;
        padding: 16px;
    }

    .sc-print .sc-body {
        padding: 12px;
    }

    .sc-print .sc-price {
        font-size: 1rem;
    }

    .sc-print .sc-actions {
        flex-direction: column;
        gap: 8px;
    }

    .sc-print .sc-price {
        text-align: center;
    }

    .sc-print .btn-dark {
        width: 100%;
    }
}

/* print product detail page */
.product-layout {
    display: grid;
    grid-template-columns: 100px 400px 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Thumbnails */
.thumbnail-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail-item.active {
    border: 2px solid #1e40af;
}

.thumbnail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px; /* padding around image */
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #6c7a86;
}

.thumbnail-item img {
    max-width: 80%; /* image won’t fill completely */
    max-height: 80%; /* keeps it smaller */
    object-fit: contain; /* keep full image visible */
    border-radius: 6px;
}

/* Main Image */
.main-image-column {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 20px;
    background: #fff; /* keeps clean background */
    border: 1px solid #e5e7eb; /* light gray border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* soft 3D shadow */
    transition: box-shadow 0.2s ease;
}

.main-image-column:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.main-image-column img {
    max-width: 90%;
    max-height: 420px; /* smaller image */
    object-fit: contain;
}

/* Info column spacing */
.info-column {
    display: flex;
    flex-direction: column; 
}
.rating-stars {
    color: #fbbf24;
    font-size: 20px;
    letter-spacing: 2px;
}

.product-description {
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and input */
    margin: 12px 0;
}

.quantity-section label {
    font-weight: 600;
    color: #172153; /* or #1f2937 if you prefer */
    font-size: 15px;
    margin: 0; /* Remove bottom margin since flex row */
}

.quantity-section input[type="number"] {
    width: 70px;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    background-color: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.quantity-section input[type="number"]:focus {
    outline: none;
    border-color: #172153;
    box-shadow: 0 0 0 3px rgba(23, 33, 83, 0.1);
}

.quantity-section input[type="number"]:hover {
    border-color: #9ca3af;
}

.price-display {
    font-size: 25px;
    font-weight: 700;
    margin: 6px 0;
}

.price-display s {
    font-size: 18px;
}

.cta-button {
    background: #172153;
    color: white;
    padding: 8px 20px; /* reduced padding for tighter fit */
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block; /* ensures it fits content */
    text-align: center;
    transition: background 0.2s; 
    border: none;
    cursor: pointer;
    width: fit-content; /* ensures button width = text width + padding */
    min-width: unset; /* removes any browser default */
}

.cta-button:hover {
    background: #1ab7ea;
    color: white;
}

.you-may-like {
    margin-top: 50px;
}

.you-may-like h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1f2937;
}

 
.related-product-card {
    padding: 8px;
}
.related-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.related-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.related-product-info {
    padding: 16px;
    text-align: center;
}

.related-product-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 14px;
}

.related-product-brand {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 12px;
}

.related-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-product-price {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

.related-customize-btn {
    background: #172153;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .thumbnail-column {
        flex-direction: row;
        order: 2;
    }

    .thumbnail-item {
        width: 80px;
    }

    .main-image-column {
        order: 1;
    }

    .info-column {
        order: 3;
    }
}
 
.thumbnail-column {
  max-width: 420px; /* keeps row from stretching too wide */
}

.thumbnail-column .owl-carousel .item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.thumbnail-item {
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #6c7a86;
  transition: all 0.2s ease;
}

.thumbnail-item.active {
  border: 2px solid #1e40af;
}

.thumbnail-item img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 6px;
} 


/* try to restore native spinners (override resets) */
.quantity-input,
input[type="number"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
}

/* Webkit/Blink pseudo-elements */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: auto !important;
  display: inline-block !important;
  opacity: 1 !important;
} 

.btn-customize {
    background: #172153;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    line-height: 1;
}

.btn-customize:hover {
    background: #1ab7ea;
    color: #fff;
    transform: translateY(-1px);
}

 /* =========================
   DESKTOP THUMBNAILS (Vertical)
   ========================= */
  .thumbnail-column {
    width: 100px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .thumb-viewport {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
    position: relative;
  }

  .thumbnail-item {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    flex: 0 0 auto;
    overflow: hidden;
  }

  .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .thumbnail-item.active {
    border-color: #1ab7ea;
    box-shadow: 0 2px 6px rgba(26, 183, 234, 0.12);
  }

  /* up/down buttons */
  .thumb-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #fff;
    color: #374151;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .thumb-btn:hover:not(:disabled) {
    background: #1ab7ea;
    color: #fff;
  }

  /* =========================
   MOBILE/TABLET (Horizontal)
   ========================= */
  @media (max-width: 1023px) {
    .product-layout {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .main-image-column {
      order: 1;
      width: 100%;
      text-align: center;
    }

    .thumbnail-column {
      order: 2;
      width: 100%;
      display: flex;
      flex-direction: row !important;
      align-items: center;
      justify-content: center;
      margin-top: 12px;
      gap: 10px;
    }

    /* Hide vertical buttons, show left/right instead */
    .thumb-btn.thumb-up,
    .thumb-btn.thumb-down {
      display: none;
    }

    .thumb-btn.thumb-left,
    .thumb-btn.thumb-right {
      display: inline-flex;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: 1px solid #ddd;
      background: #fff;
      font-weight: 700;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      transition: all 0.25s ease;
      color: #374151;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .thumb-btn.thumb-left:hover,
    .thumb-btn.thumb-right:hover {
      background: #1ab7ea;
      color: #fff;
    }

    .thumb-viewport {
      flex: 1;
      display: flex;
      flex-direction: row;
      overflow-x: auto;
      overflow-y: hidden;
      gap: 8px;
      max-height: none;
      padding: 6px 0;
      scroll-behavior: smooth;
    }

    .thumbnail-item {
      width: 70px;
      height: 70px;
      flex: 0 0 auto;
    }

    .thumb-viewport::-webkit-scrollbar {
      display: none;
    }
  }

  /* Desktop: vertical arrows full width */
@media (min-width: 1024px) {
  .thumb-btn.thumb-up,
  .thumb-btn.thumb-down {
    width: 100%;       /* full width of thumbnail column */
    height: 30px;      /* you can adjust height */
    border-radius: 8px;
    margin: 4px 0;
    font-size: 16px;
  }
}

/* Mobile: horizontal arrows full height */
@media (max-width: 1023px) {
  .thumb-btn.thumb-left,
  .thumb-btn.thumb-right {
    width: 36px;       /* width can stay small */
    height: 100%;      /* full height of thumbnail row */
    border-radius: 8px;
    font-size: 16px;
  }

  /* make thumbnail-column a row with arrows outside viewport */
  .thumbnail-column {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .thumb-left {
    margin-right: 4px;
  }

  .thumb-right {
    margin-left: 4px;
  }

  .thumb-viewport {
    flex: 1;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    scroll-behavior: smooth;
    max-height: none;
  }
}

.thumb-btn:disabled {
  background: #e5e7eb;  /* light grey */
  color: #9ca3af;       /* grey text */
  cursor: not-allowed;
  box-shadow: none;
}

.thumb-btn:disabled:hover {
  background: #e5e7eb;
  color: #9ca3af;
}

/* Desktop thumbnails */
@media (min-width: 1024px) {
  .thumb-viewport {
    overflow-y: auto;   /* allow vertical scroll */
    overflow-x: hidden;
    max-height: 315px;  /* or whatever your layout allows */
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;  
}

  .thumb-viewport::-webkit-scrollbar {
    width: 6px;
  }
  .thumb-viewport::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
  }
}