
#pf-shirt-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
#pf-store-link-hint {
    text-align: center;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    line-height: 1.5;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
#pf-store-link-hint a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#pf-store-link-hint a:hover { color: #ff2439; }

#pf-shirt-modal-overlay.active { display: flex; }

#pf-shirt-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 860px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    font-family: 'Montserrat', sans-serif;
    -webkit-overflow-scrolling: touch;
    padding-top: 44px;
    padding-bottom: 60px;
}
#pf-shirt-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    background: #000; border: none; border-radius: 50%;
    font-size: 16px; cursor: pointer;
    color: #fff; line-height: 1; padding: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#pf-shirt-close:hover { background: #333; }

/* ── Shared accent font — used for the product title and grid card labels ── */
.pf-accent-font {
    font-family: 'pixelframe', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.95;
}

/* ── Top area: image column + info column, side by side ── */
#pf-top-columns {
    display: flex;
    gap: 28px;
    margin-bottom: 8px;
    align-items: flex-start;
}
#pf-image-col { flex: 0 0 46%; max-width: 46%; }
#pf-info-col  { flex: 1 1 auto; min-width: 0; padding-top: 6px; }

#pf-modal-title {
    font-size: 30px;
    margin: 0 0 14px;
    color: #111 !important;
}

#pf-product-description {
    font-size: 14px; font-weight: 500; color: #333;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3; margin: 0 0 14px;
}

#pf-product-material {
    font-size: 13px; font-weight: 500; color: #444;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

@media (max-width: 620px) {
    #pf-top-columns { gap: 14px; }
    #pf-modal-title { font-size: 22px; }
    #pf-product-description { font-size: 12px; margin-bottom: 10px; }
    .pf-info-section-label { font-size: 10px; }
    #pf-product-material { font-size: 11px; }
}

/* ── Mockup area: full-width image, controls overlaid bottom-right ── */
#pf-mockup-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: #fff; border-radius: 12px;
    overflow: hidden; display: flex;
    align-items: center; justify-content: center;
    position: relative;
}
#pf-mockup-canvas {
    width: 100%; height: 100%;
    object-fit: contain; display: none;
    cursor: grab; touch-action: none;
}
#pf-mockup-canvas.visible  { display: block; }
#pf-mockup-canvas.dragging { cursor: grabbing; }

/* ── Overlay controls — bottom-right corner of the image, don't affect
   the image's own width ── */
#pf-image-overlay-controls {
    position: absolute; right: 10px; bottom: 10px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 3;
}
#pf-drag-hint {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; font-size: 8px; color: #444;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; letter-spacing: 0.2px;
    line-height: 1.25; text-transform: uppercase;
    background: rgba(255,255,255,0.9); border-radius: 8px;
    padding: 6px 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
#pf-drag-hint svg { width: 18px; height: 18px; margin-bottom: 4px; color: #ff2439; }

/* ── Magnifier button — overlaid below the drag hint ── */
#pf-zoom-btn {
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(255,255,255,0.9); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
#pf-zoom-btn:hover { color: #ff2439; }
#pf-zoom-btn svg { width: 16px; height: 16px; }

/* ── Lightbox (enlarged mockup), same structure as multi-checkout's ── */
#pf-lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 100000;
    align-items: center; justify-content: center;
    padding: 24px; box-sizing: border-box;
}
#pf-lightbox.pf-visible { display: flex; }
#pf-lightbox img {
    max-width: 100%; max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
#pf-lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none;
    color: #fff; font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
#pf-lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* ── Placement disclaimer — lives in the info column on desktop, next to
   the material text (per the reference mockup); naturally flows below it
   when the columns stack on narrow screens. ── */
#pf-placement-note {
    text-align: center; font-size: 11px; color: #777;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; margin: 10px 0 0;
    font-style: italic; line-height: 122%;
}

/* ── Compact drag hint shown only on mobile, alongside the disclaimer,
   instead of the overlay version used on desktop ── */
#pf-drag-hint-mobile {
    display: none;
}

@media (max-width: 620px) {
    #pf-image-overlay-controls #pf-drag-hint { display: none; }
    #pf-drag-hint-mobile {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        font-size: 11px; font-weight: 700; text-transform: uppercase;
        color: #111;
        font-family: 'Montserrat', sans-serif;
		        margin: 10px 14px 6px;
        line-height: 123%;
    }
    #pf-drag-hint-mobile svg { width: 18px; height: 18px; color: #ff2439; flex-shrink: 0; }
}

#pf-mockup-spinner {
    position: absolute; display: flex; flex-direction: column;
    align-items: center; gap: 10px; color: #444;
    font-size: 12px; font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-align: center; padding: 0 16px;
}
.pf-spin-ring {
    width: 34px; height: 34px;
    border: 3px solid #e8e8e8;
    border-top-color: #ff2439;
    border-radius: 50%;
    animation: pf-rotate 0.75s linear infinite;
}
@keyframes pf-rotate { to { transform: rotate(360deg); } }
#pf-mockup-spinner-msg { font-size: 11px; color: #555; font-family: 'Montserrat', sans-serif; line-height: 1.5; }
#pf-mockup-err { display: none; color: #ff2439; font-size: 12px; font-weight: 600; text-align: center; padding: 16px; font-family: 'Montserrat', sans-serif; }

/* ── Product grid — replaces the old pill selector. Categorized into
   sections (Apparel / Posters and more), each with its own View More —
   same structure as the product-mode page's grid, just narrower. ── */
#pf-product-types { margin-bottom: 20px; }
.pf-category-section { margin-bottom: 20px; }
.pf-category-section:last-child { margin-bottom: 0; }
.pf-product-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 620px) {
    .pf-product-types-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .pf-product-card { padding: 4px 4px 6px; }
    .pf-product-card-label { font-size: 9px; }
}
.pf-view-more-wrap { display: flex; justify-content: center; margin-top: 14px; }
.pf-view-more-btn {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.6px; color: #111; background: #fff;
    border: 2px solid #111; border-radius: 999px; padding: 8px 22px;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.pf-view-more-btn:hover { background: #111; color: #fff; }
.pf-product-card {
    border: 2px solid #e0e0e0; border-radius: 10px;
    padding: 8px 8px 10px; cursor: pointer;
    background: #fff; text-align: center;
    transition: border-color 0.15s;
    display: flex; flex-direction: column; align-items: center;
}
.pf-product-card:hover { border-color: #ff2439; }
.pf-product-card.active { border-color: #ff2439; box-shadow: 0 0 0 1.5px #ff2439; }
.pf-product-card-thumb-wrap {
    width: 100%; aspect-ratio: 1; background: #f4f4f4;
    border-radius: 6px; overflow: hidden; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
}
.pf-product-card-thumb-wrap canvas { width: 100%; height: 100%; }
.pf-product-card-label {
    font-size: 12px; color: #111; line-height: 1.05;
}

/* ── "Product" heading above the grid ── */
.pf-label {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.7px; color: #111; margin-bottom: 12px;
}

/* ── Shared header style for Material / Color / Size in the info column ── */
.pf-info-section-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.6px; color: #111;
    font-family: 'Montserrat', sans-serif;
    margin: 16px 0 3px;
}
.pf-info-section-label:first-of-type { margin-top: 0; }
.pf-label-value { font-weight: 500; text-transform: none; letter-spacing: 0; color: #555; }

#pf-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
}
.pf-swatch {
    width: 26px; height: 26px;
    border-radius: 50%; cursor: pointer;
    border: 3px solid transparent;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    transition: transform 0.15s;
    flex-shrink: 0;
}
.pf-swatch:hover { transform: scale(1.1); }
.pf-swatch.active { box-shadow: 0 0 0 2.5px #ff2439, 0 1px 5px rgba(0,0,0,0.2); }

/* Native color-wheel input — used instead of swatches for products with
   no fixed palette (posters, magnets, yard sign). Cross-browser sizing/
   padding on <input type="color"> is inconsistent, hence the webkit/moz
   rules to strip the default border/padding so it reads as a clean color
   circle rather than a boxy native control — same treatment as the
   product-mode page's .pf-pm-color-wheel. */
.pf-color-wheel {
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    border: 3px solid rgba(0,0,0,0.15); box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    padding: 0; background: none; flex-shrink: 0;
}
.pf-color-wheel::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.pf-color-wheel::-webkit-color-swatch { border: none; border-radius: 50%; }
.pf-color-wheel::-moz-color-swatch { border: none; border-radius: 50%; }

#pf-sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-size {
    padding: 6px 11px !important; margin: 0 !important;
    border: 2px solid #e0e0e0 !important; border-radius: 8px !important;
    box-sizing: border-box !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important; font-weight: 700 !important;
    cursor: pointer; background: #fff !important; color: #333 !important;
    outline: none !important;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pf-size:hover { border-color: #ff2439 !important; }
.pf-size.active { border-color: #ff2439 !important; background: #fff5f5 !important; color: #ff2439 !important; box-shadow: 0 0 0 1.5px #ff2439; }
.pf-size.pf-size-unavailable {
    position: relative;
    color: #ccc; border-color: #eee; background: #fafafa;
    cursor: not-allowed; pointer-events: none;
}
.pf-size.pf-size-unavailable::before,
.pf-size.pf-size-unavailable::after {
    content: ''; position: absolute; left: 10%; right: 10%; top: 50%;
    height: 1.5px; background: #ccc;
}
.pf-size.pf-size-unavailable::before { transform: translateY(-50%) rotate(16deg); }
.pf-size.pf-size-unavailable::after  { transform: translateY(-50%) rotate(-16deg); }

/* ── Price ── */
#pf-price { text-align: center; margin-bottom: 16px; }
#pf-price strong { font-size: 42px; color: #111; display: block; margin-bottom: 2px; }
#pf-price span { font-size: 13px; color: #111; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; font-family: 'Montserrat', sans-serif; }

/* ── Buttons — same font-size/weight for both; padding (height) and color are the only differences ── */
#pf-continue-btn, #pf-addcart-btn {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    border-radius: 10px; cursor: pointer;
    transition: background 0.2s, transform 0.1s, border-color 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
#pf-continue-btn { padding: 22px; background: #dff74b; color: #000; border: none; }
#pf-continue-btn:hover:not(:disabled) { background: #c8e000; transform: translateY(-1px); }
#pf-continue-btn:disabled { background: #e8e8e8; color: #999; cursor: not-allowed; transform: none; }

/* ── Add to Cart (TEST) ── */
#pf-addcart-btn {
    padding: 13px; margin-top: 10px;
    background: #fff; color: #111;
    border: 2px solid #111;
}
#pf-addcart-btn:hover:not(:disabled) { background: #f4f4f4; transform: translateY(-1px); }
#pf-addcart-btn:disabled { border-color: #e8e8e8; color: #999; cursor: not-allowed; transform: none; }
#pf-addcart-btn.pf-added:disabled { background: #f4f4f4; border-color: #ccc; color: #555; }

/* ── Inline button spinner (shared by both action buttons) ── */
.pf-btn-spin {
    width: 15px; height: 15px;
    border: 2px solid rgba(0,0,0,0.25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: pf-rotate 0.7s linear infinite;
    flex-shrink: 0;
    display: none;
}
button.pf-btn-loading .pf-btn-spin { display: inline-block; }

/* ── "Please wait" notices under each action button ── */
.pf-wait-note {
    display: none;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    margin-top: 8px;
    line-height: 1.4;
}
.pf-wait-note.pf-wait-note-visible { display: block; }

/* ── Cart toast (TEST) ── */
#pf-cart-toast {
    position: fixed;
    left: 50%; bottom: 28px;
    transform: translate(-50%, 16px);
    background: #111; color: #fff;
    padding: 14px 20px; border-radius: 10px;
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99999;
    white-space: nowrap;
}
#pf-cart-toast.pf-toast-in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#pf-cart-toast a {
    color: #dff74b; text-decoration: none; font-weight: 700;
    border-bottom: 1px solid transparent; transition: border-color 0.15s;
}
#pf-cart-toast a:hover { border-color: #dff74b; }
@media (max-width: 480px) {
    #pf-cart-toast { left: 14px; right: 14px; transform: translateY(16px); white-space: normal; }
    #pf-cart-toast.pf-toast-in { transform: translateY(0); }
}

/* ── Checkout error ── */
#pf-checkout-err {
    background: #fff2f3; border: 1.5px solid #ff2439; border-radius: 8px;
    padding: 10px 14px; color: #cc0000; font-size: 12px; font-weight: 600;
    margin-top: 12px; font-family: 'Montserrat', sans-serif; display: none;
    text-align: center;
}

/* ── Trigger button ── */
.pf-shirt-trigger {
    width: 100%;
    padding: 12px 16px;
    background: #ff2439;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; line-height: 1.3;
	max-width: 286px;
	transition: transform 0.1s;
}
.pf-shirt-trigger:hover { background: #cc1428; transform: scale(1.05); }
.pf-shirt-trigger-main { font-size: 14px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.pf-shirt-trigger-sub  { font-size: 12px; font-weight: 500; text-transform: none; }

@media (max-width: 480px) { #pf-shirt-modal { padding: 20px 14px; padding-top: 44px; padding-bottom: 110px; } }
