/* Designer Page Styles */

:root {
    --brand-primary: #9E7FA4;
    --brand-light: #B9A8BF;
    --brand-pale: rgba(158, 127, 164, 0.1);
    --text-dark: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

.select-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.select-card:hover {
    border-color: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.select-card.selected h5 {
    color: var(--brand-primary) !important;
}

.select-card.selected {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px var(--brand-pale);
    transform: translateY(-2px);
}

.designer-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.designer-page.ftco-section {
    padding: 2rem 0 3rem;
}

.designer-options-container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.designer-options-row {
    row-gap: 1rem;
}

.designer-preview-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* The row's flex items default to align-items: stretch, which would force
   this column to match the preview column's height; opt it back out so it
   only takes the height its own content needs. */
.designer-options-column {
    align-self: flex-start;
}

.designer-actions {
    margin-top: 1.5rem;
}

.step-connector {
    width: 80px;
    height: 3px;
    background: var(--border-color);
    margin: 0 1rem;
    position: relative;
    top: -15px;
    transition: background 0.3s ease;
}

.step-connector.done {
    background: var(--brand-primary);
}

.step {
    text-align: center;
    opacity: .4;
}

.step.active,
.step.done {
    opacity: 1;
}

.circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    line-height: 36px;
    margin: 0 auto .5rem;
}

.step.active .circle {
    background: var(--brand-color);
}

.step.done .circle {
    background: #B9A8BF;
}

.step-label {
    font-size: .9rem;
    font-weight: 600;
}

.print-btn input[type="radio"] {
    display: none;
}

.color-swatch {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-swatch.selected {
    box-shadow: 0 0 0 3px #9e7fa4;
    transform: scale(1.05);
}

.quantity-stepper {
    gap: 6px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    padding: 0;
}

.quantity-input {
    width: 60px;
    height: 40px;
    font-weight: 600;
}

.step.clickable {
    cursor: pointer;
}

.step.disabled {
    pointer-events: none;
    opacity: 0.3;
}

.design-hidden {
    display: none;
}

.composite-preview-trigger {
    /* Native button rendering (WebKit/Safari in particular) clips
       absolutely-positioned children — like the side-label badge — to its
       own internal control box regardless of any CSS overflow we set.
       Turning off native appearance stops that clipping. */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    /* Prevent the browser's default click/tap focus ring (shows as a dotted
       outline in Firefox, a solid ring in other browsers) — the intentional,
       accessible ring below still shows for keyboard focus. */
    outline: none;
}

.composite-preview-trigger::-moz-focus-inner {
    border: 0;
}

/* The base rule's outline:none above loses to Bootstrap reboot's
   `button:focus { outline: 5px auto -webkit-focus-ring-color; }` in
   style.css once this button is actually focused (higher specificity wins
   regardless of source order) - showing the browser's native blue/black
   ring after every click (e.g. each zoom-in tap) until focus moves
   elsewhere. This explicit :focus override outranks it while still letting
   :focus-visible show the intentional ring below for keyboard users. */
.composite-preview-trigger:focus:not(:focus-visible) {
    outline: none;
}

.composite-preview-trigger:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 4px;
    border-radius: var(--radius-lg);
}

.composite-preview-dialog {
    width: min(92vw, 920px);
    max-width: 920px;
    margin: 1.75rem auto;
}

.composite-preview-modal-content {
    border: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.composite-preview-modal-header {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.composite-preview-close {
    width: 2.5rem;
    height: 2.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto !important;
    border-radius: 50%;
    opacity: 1;
}

.composite-preview-close:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}

.composite-preview-modal-body {
    padding: 1rem;
    background: #f7f7f7;
}

.composite-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.composite-preview-toolbar.inline-preview-toolbar {
    margin: 0.5rem 0 0;
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 50px;
    background: white;
}

.composite-preview-viewport.inline-preview-viewport {
    --preview-h: clamp(300px, 60vh, 460px);
    height: var(--preview-h);
    max-height: none;
    overflow: hidden;
    /* The base .composite-preview-viewport rule sets this to "contain" for
       the zoomed/pannable state below, but with overflow:hidden here there's
       nothing local to contain — left as "contain" it just swallows the
       wheel event instead of letting it scroll the page. */
    overscroll-behavior: auto;
    border-radius: var(--radius-lg);
    background: white;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (min-width: 992px) {
    .composite-preview-viewport.inline-preview-viewport {
        --preview-h: clamp(440px, 52vh, 580px);
    }
}

.composite-preview-viewport.inline-preview-viewport.is-zoomed {
    overflow: auto;
    /* Now genuinely scrollable (panning the zoomed image), so contain it
       again to stop that pan from also scrolling the page underneath. */
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    align-items: flex-start;
    justify-content: flex-start;
}

.inline-preview-stage {
    min-height: 1px;
}

.composite-preview-zoom-button,
.composite-preview-zoom-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--brand-light);
    border-radius: 50px;
    background: #fff;
    color: var(--brand-primary);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    /* Same as the preview trigger above: suppress the default click/tap
       focus ring (dotted in Firefox) and rely on :focus-visible instead. */
    outline: none;
}

.composite-preview-zoom-button::-moz-focus-inner,
.composite-preview-zoom-level::-moz-focus-inner {
    border: 0;
}

.composite-preview-zoom-level {
    min-width: 5rem;
    font-size: 0.9rem;
}

.composite-preview-zoom-button:hover:not(:disabled),
.composite-preview-zoom-level:hover {
    background: var(--brand-pale);
}

.composite-preview-zoom-button:focus-visible,
.composite-preview-zoom-level:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}

.composite-preview-zoom-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.composite-preview-viewport {
    width: 100%;
    max-height: calc(100vh - 14rem);
    overflow: auto;
    overscroll-behavior: contain;
}

.composite-preview-stage {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* When zoomed, JS sets an explicit (larger than the viewport) pixel size
       here so the viewport has room to scroll. Without flex-shrink:0 the flex
       layout would squeeze it back down to fit, which desyncs the scrollable
       area from what's actually rendered and crops the image off-center. */
    flex-shrink: 0;
}

.composite-preview-composition {
    position: relative;
    display: block;
    line-height: 0;
    transform-origin: center;
    cursor: zoom-in;
    user-select: none;
    flex-shrink: 0;
    /* Fallback ratio (matches the most common product photo, 1028x1235);
       overridden per-image via inline style once the real image loads. */
    --preview-ratio: 0.8324;
    aspect-ratio: var(--preview-ratio);
    width: min(100%, calc(var(--preview-h, 420px) * var(--preview-ratio)));
    max-width: 100%;
}

.composite-preview-composition--zoom-max {
    cursor: zoom-out;
}

.tshirt-preview-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.tshirt-base.img-fluid {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.composite-preview-product {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 10rem);
    object-fit: contain;
}

.composite-preview-design {
    position: absolute;
    z-index: 2;
    left: 50%;
    width: auto;
    height: auto;
    max-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.composite-preview-composition--front .composite-preview-design {
    top: 50%;
    max-width: 35%;
}

.composite-preview-composition--back .composite-preview-design {
    top: 45%;
    max-width: 38%;
}

@media (max-width: 576px) {
    .composite-preview-dialog {
        width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .composite-preview-modal-body {
        padding: 0.5rem;
    }

    .composite-preview-product {
        max-height: calc(100vh - 11rem);
    }

    .composite-preview-viewport {
        max-height: calc(100vh - 11rem);
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

#tshirtCarousel .carousel-control-prev-icon,
#tshirtCarousel .carousel-control-next-icon {
    filter: none;
    background-size: 100% 100%;
}

#tshirtCarousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%239E7FA4' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0L1.25 4l4 4 1-1-3-3 3-3-1-1z'/%3e%3c/svg%3e");
}

#tshirtCarousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%239E7FA4' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1 1 3 3-3 3 1 1 4-4-4-4z'/%3e%3c/svg%3e");
}

/* Modern Preview Card */
.modern-preview-card {
    background: white;
    /* Same card border treatment as the "Choose Image Style" cards */
    border: 3px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-preview-card:hover {
    border-color: var(--brand-light);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.preview-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-light) 100%);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.preview-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
}

.preview-body {
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Overlaid on top of the t-shirt image instead of its own row, to save
   vertical space in the preview panel. */
.preview-side-label {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin: 0;
}

/* Shape/sizing come from Bootstrap's .badge.badge-pill (same classes as
   the "Unisex" info badge on the main product list), with the same
   font-size bump that badge uses inline — the stock .badge size (75%) is
   too small sitting on the image. Color uses the site's brand purple
   instead of that badge's default Bootstrap "info" cyan. */
.side-badge {
    font-size: medium;
    background-color: var(--brand-primary);
    color: white;
}

/* Options Section (standalone card, used outside the designer step-2 layout) */
.options-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.options-section:hover {
    box-shadow: var(--shadow-lg);
}

/* Combined Options Card — sized to its own content (see
   .designer-options-column) rather than stretched to match the Preview
   card. All option groups (print side, style, color, size) live inside as
   one panel, divided by hairlines instead of stacking as separate cards;
   price is pinned to the bottom as a visually distinct summary footer. */
.modern-options-card {
    background: white;
    /* Same card border treatment as the "Choose Image Style" cards */
    border: 3px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modern-options-card:hover {
    border-color: var(--brand-light);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.options-card-body {
    padding: 1rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.options-group + .options-group {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.options-card-footer {
    padding: 0.85rem 1rem;
    background: var(--brand-pale);
    border-top: 2px solid var(--border-color);
}

.designer-add-to-cart-btn {
    margin-top: 0.75rem;
}

/* Guests get "Sign in to add to cart" instead of Add to cart */
.designer-guest-note {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.designer-guest-note i {
    color: var(--brand-primary);
}

.designer-guest-register {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.designer-guest-register a {
    color: var(--brand-primary);
    font-weight: 600;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header i {
    color: var(--brand-primary);
    font-size: 1rem;
}

.section-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Modern Toggle Group */
.modern-toggle-group {
    display: flex;
    gap: 0.5rem;
}

.modern-toggle-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

/* Hide radio buttons inside toggle buttons */
.modern-toggle-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modern-toggle-btn:hover {
    border-color: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.modern-toggle-btn.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px var(--brand-pale);
}

/* Color Swatches Grid */
.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
}

.modern-color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.modern-color-swatch:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.modern-color-swatch.selected {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px var(--brand-pale);
    transform: scale(1.15);
}

/* Size Dropdown */
.modern-select-wrapper {
    position: relative;
    width: fit-content;
    justify-self: start;
}

.modern-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    min-width: 82px;
    padding: 0.35rem 2.2rem 0.35rem 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-select:hover {
    border-color: var(--brand-light);
}

.modern-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px var(--brand-pale);
}

.modern-select-icon {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    color: var(--brand-primary);
    font-size: 0.8rem;
    pointer-events: none;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.price-row-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-row-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.price-row-total .price-row-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.price-row-total .price-row-value {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--brand-primary);
}

/* Size row: label + guide link stacked in a narrow left column, the
   dropdown filling the rest — the same one-line, shared-column-width
   pattern as the Print Side / Fabric / Color rows. */
.studio-size-group {
    display: grid;
    grid-template-columns: 128px 1fr;
    align-items: center;
    column-gap: 0.6rem;
}

.size-group-label-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.studio-size-group .section-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    overflow: hidden;
}

.studio-size-group .section-label {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Size Guide Link */
.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.size-guide-link:hover {
    color: var(--brand-light);
    gap: 0.5rem;
}

.size-guide-link i {
    font-size: 1rem;
}

/* Size Guide Container */
.size-guide-container {
    margin-top: 1rem;
    padding: 1.25rem;
    background: var(--brand-pale);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand-primary);
}

.size-guide-container table {
    width: 100%;
    font-size: 0.9rem;
}

.size-guide-container th {
    color: var(--brand-primary);
    font-weight: 700;
    padding: 0.5rem;
}

.size-guide-container td {
    padding: 0.5rem;
    color: var(--text-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .designer-page.ftco-section {
        padding: 1rem 0 2rem;
    }

    .designer-stepper {
        margin-bottom: 1rem;
    }

    .designer-options-container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .modern-toggle-group {
        flex-direction: column;
    }

    .color-swatches-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }

    .options-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .modern-preview-card {
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }

    /* Ensure options column doesn't overlap preview */
    .col-12.col-lg-6 {
        position: relative;
        clear: both;
    }

    /* Add margin between stacked columns */
    .designer-options-row .col-12 + .col-12 {
        margin-top: 0;
    }
}

/* Clickable design images */
.designer-image-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.designer-image-clickable:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(158, 127, 164, 0.4);
}

/* Circular floating nav buttons over the preview image */
.studio-carousel {
    position: relative;
}


.studio-carousel .carousel-control-prev,
.studio-carousel .carousel-control-next {
    width: 36px;
    height: 36px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    opacity: 1;
}

.studio-carousel .carousel-control-prev {
    left: 0.5rem;
}

.studio-carousel .carousel-control-next {
    right: 0.5rem;
}

.studio-carousel .carousel-control-prev-icon,
.studio-carousel .carousel-control-next-icon {
    width: 10px;
    height: 10px;
}

/* Preview card footer: Print Side + Color swatches */
.preview-footer {
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
}

/* Keep the Print Side, Fabric and Color labels on the same row as their
   options at every screen size (this used to be mobile-only), and give
   every row an identical label/options column width (a shared grid track)
   so all three rows line up symmetrically. */
.studio-print-side-group,
.studio-fabric-group,
.studio-color-group {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: center;
    column-gap: 0.6rem;
}

.studio-print-side-group .section-header,
.studio-fabric-group .section-header,
.studio-color-group .section-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    overflow: hidden;
}

.studio-print-side-group .section-label,
.studio-fabric-group .section-label,
.studio-color-group .section-label {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Smaller Print Side / Fabric buttons so each row stays as compact as
   the Color row's options column. */
.studio-print-side-group .modern-toggle-group,
.studio-fabric-group .modern-toggle-group {
    display: flex;
    flex-direction: row;
    gap: 0.35rem;
}

.studio-print-side-group .modern-toggle-btn,
.studio-fabric-group .modern-toggle-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    gap: 0.3rem;
}

.studio-fabric-group .toggle-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Give the swatches the rest of the row so every color fits without
   scrolling or overlapping the label. */
.studio-color-group .color-swatches-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.4rem;
    min-width: 0;
}

.studio-color-group .color-swatch-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: 32px;
}


/* ================= SHIRT PREVIEW (step 1) =================
   The selected gallery design on the shirt, placed like step 2 and the cart
   (.designer-image-front/back position it over the photo). */
.shirt-preview-modal .modal-dialog {
    max-width: 520px;
}

.shirt-preview-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
}

.shirt-preview-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-light) 100%);
    border: none;
}

.shirt-preview-header .modal-title {
    color: white;
    font-weight: 700;
}

.shirt-preview-header .close {
    color: white;
    opacity: 1;
}

.shirt-preview-stage {
    position: relative;
    line-height: 0;
    margin: 0 auto;
    max-width: 380px;
    border-radius: 12px;
    background: #f7f5f8;
}

.shirt-preview-base {
    display: block;
    width: 100%;
    height: auto;
}

.shirt-preview-sides {
    justify-content: center;
    margin-top: 1rem;
}

.shirt-preview-note {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.shirt-preview-footer {
    border-top: none;
    justify-content: space-between;
}

/* The designer's page heading (step 1): what the page is for, for people and search engines */
.designer-page-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    text-align: center;
    text-wrap: balance;
}

/* The generator under the heading keeps its own large top margin otherwise */
.designer-page-title ~ .mt-5 {
    margin-top: 1.25rem !important;
}
