/* Zazzle-inspired POD product detail */
.pd-zazzle { padding: 20px 0 48px; background: #f7f7f5; }
.pd-zazzle .pd-breadcrumb { margin-bottom: 12px; font-size: 13px; }
.pd-zazzle .pd-breadcrumb a { color: #64748b; text-decoration: none; }
.pd-zazzle .pd-breadcrumb a:hover { color: #111827; }

.pd-z-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
}
.pd-z-gallery-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.pd-z-gallery-stack { min-width: 0; overflow-anchor: none; }
.pd-z-special-instruction {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--secondary, #245dea);
    color: #fff;
    line-height: 1.55;
    font-size: clamp(16px, 4.2vw, 18px);
    font-weight: 600;
}
.pd-z-special-text {
    display: block;
    word-break: break-word;
}
@media (max-width: 991px) {
    .pd-z-layout { grid-template-columns: 1fr; }
    .pd-z-gallery-row {
        display: flex;
        flex-direction: column;
    }
    .pd-z-gallery-main { order: 1; }
    .pd-z-buy { order: 3; }
    .pd-z-special-instruction {
        font-size: clamp(15px, 4vw, 17px);
        padding: 12px 16px;
    }
}

.pd-z-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 991px) {
    .pd-z-thumbs {
        flex-direction: row;
        flex-wrap: nowrap;
        order: 2;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overflow-anchor: none;
    }
    .pd-z-thumbs .pd-z-thumb {
        scroll-snap-align: start;
        width: 72px;
        height: 72px;
    }
}
.pd-z-thumb {
    width: 64px; height: 64px; border: 2px solid #e5e7eb; border-radius: 10px;
    background: #f8fafc; padding: 0; overflow: hidden; cursor: pointer; position: relative;
    flex-shrink: 0;
}
.pd-z-thumb img, .pd-z-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-z-thumb.active { border-color: #1d4ed8; box-shadow: 0 0 0 1px #1d4ed8; }
.pd-z-thumb .pd-z-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(15,23,42,.35); color: #fff; font-size: 18px;
}

.pd-z-main--pod-wm { position: relative; }
.pd-pod-wm {
    position: absolute; inset: 0; pointer-events: none; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: clamp(18px, 4vw, 32px); letter-spacing: .04em;
    color: rgba(36, 93, 234, .18); transform: rotate(-18deg); user-select: none;
}
.pd-z-main {
    background: #f3f4f6; border-radius: 12px; min-height: 360px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    position: relative;
    overflow-anchor: none;
}
.pd-z-main img, .pd-z-main video { max-width: 100%; max-height: 520px; object-fit: contain; }
.pd-z-main iframe { width: 100%; border: 0; border-radius: 8px; }
.pd-z-main--video-landscape > .pd-z-video-wrap iframe {
    aspect-ratio: 16 / 9;
}

.pd-z-main--video {
    background: #0f172a;
    min-height: 280px;
    padding: 10px;
}
.pd-z-main--video-landscape {
    background: #111827;
}
.pd-z-main--video-reel {
    background: #000;
    justify-content: center;
    padding: 8px;
}
.pd-z-video-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.pd-z-video-wrap iframe,
.pd-z-video-wrap video {
    border: 0;
    border-radius: 12px;
    display: block;
    background: #000;
}
.pd-z-video-wrap--landscape iframe,
.pd-z-video-wrap--landscape video {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 520px;
}
.pd-z-video-wrap--reel iframe,
.pd-z-video-wrap--reel video {
    width: min(100%, 380px);
    aspect-ratio: 9 / 16;
    height: auto;
    max-height: min(78vh, 680px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.pd-z-video-fs {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.pd-z-video-wrap--reel:fullscreen,
.pd-z-video-wrap--reel:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-z-video-wrap--reel:fullscreen iframe,
.pd-z-video-wrap--reel:fullscreen video,
.pd-z-video-wrap--reel:-webkit-full-screen iframe,
.pd-z-video-wrap--reel:-webkit-full-screen video {
    width: min(100vw, calc(100vh * 9 / 16));
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: 9 / 16;
    border-radius: 0;
}
.pd-z-thumb .pd-z-thumb-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: #fff;
    font-size: 20px;
}
.pd-z-thumb--reel .pd-z-play {
    background: rgba(15, 23, 42, 0.45);
}
@media (max-width: 767px) {
    .pd-z-main--video {
        min-height: 0;
        padding: 0;
        background: #000;
    }
    .pd-z-main--video-reel {
        padding: 0;
        border-radius: 12px;
    }
    .pd-z-video-wrap--reel {
        width: 100%;
    }
    .pd-z-video-wrap--reel iframe,
    .pd-z-video-wrap--reel video {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 9 / 16;
        max-height: min(88dvh, 760px);
        height: auto;
        border-radius: 12px;
    }
    .pd-z-video-wrap--landscape iframe,
    .pd-z-video-wrap--landscape video {
        max-height: 56vw;
        min-height: 200px;
    }
    .pd-z-main--video-reel img,
    .pd-z-main--video-reel video {
        max-height: none;
    }
}

.pd-z-3d-stage { perspective: 1000px; }
.pd-z-3d-stage.is-3d .pd-z-main-figure,
.pd-z-3d-stage.is-3d #mainImg {
    transform: rotateY(-24deg) rotateX(8deg);
    transition: transform 0.45s ease;
    box-shadow: 12px 16px 32px rgba(15, 23, 42, 0.18);
}
.pd-z-3d-stage.is-3d .pd-z-main {
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
}
.pd-z-zoom-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 4;
}

.pd-z-buy h1 { font-size: clamp(1.25rem, 4vw, 1.45rem); font-weight: 800; color: #111827; margin: 0 0 8px; line-height: 1.3; }
.pd-z-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.pd-z-price--right {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin: 0;
    text-align: right;
    gap: 4px;
}
.pd-z-price--right .now { font-size: clamp(1.45rem, 5vw, 1.75rem); line-height: 1.1; }
.pd-z-price-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.pd-z-price .now { font-size: 1.6rem; font-weight: 800; color: #111827; }
.pd-z-price .was { font-size: 1rem; color: #94a3b8; text-decoration: line-through; }
.pd-z-price .save { font-size: 12px; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 2px 8px; border-radius: 999px; }

.pd-z-buy-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.pd-z-buy-meta__left {
    flex: 1 1 150px;
    min-width: 0;
}
.pd-z-buy-meta__price {
    flex: 0 0 auto;
    margin-left: auto;
}
.pd-z-stock {
    font-size: clamp(13px, 3.5vw, 14px);
    line-height: 1.4;
    margin-bottom: 8px;
}

.pd-z-designer { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.pd-z-designer strong { color: #1d4ed8; }

.pd-z-rating { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.pd-z-rating .stars { color: #f59e0b; margin-right: 4px; }

.pd-z-actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.pd-z-actions--compact {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    margin: 14px 0 10px;
}
.pd-z-btn-cart-icon {
    flex: 0 0 52px;
    width: 52px;
    min-height: 52px;
    background: var(--secondary, #245dea);
    color: var(--section-btn-text, #fff);
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.pd-z-btn-cart-icon:hover {
    background: var(--section-nav-bg, #1a49c7);
    color: var(--section-btn-text, #fff);
}
.pd-z-btn-cart-icon:disabled { opacity: .5; cursor: not-allowed; }
.pd-z-btn-order {
    flex: 1 1 auto;
    min-height: 52px;
    background: var(--secondary, #245dea);
    color: var(--section-btn-text, #fff);
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: clamp(14px, 3.8vw, 16px);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.pd-z-btn-order:hover {
    background: var(--section-nav-bg, #1a49c7);
    color: var(--section-btn-text, #fff);
}
.pd-z-btn-order:disabled { opacity: .5; cursor: not-allowed; }
.pd-z-btn-cart {
    background: var(--secondary, #245dea);
    color: var(--section-btn-text, #fff);
    border: none; border-radius: 10px;
    font-weight: 800; padding: 14px 18px; font-size: 15px; cursor: pointer;
}
.pd-z-btn-cart:hover {
    background: var(--section-nav-bg, #1a49c7);
    color: var(--section-btn-text, #fff);
}
.pd-z-btn-cart:disabled { opacity: .5; cursor: not-allowed; }
.pd-z-btn-edit {
    background: #1e3a5f; color: #fff; border: none; border-radius: 10px;
    font-weight: 800; padding: 14px 18px; font-size: 15px; text-align: center;
    text-decoration: none; display: block;
}
.pd-z-btn-edit:hover { background: #172554; color: #fff; }
.pd-z-btn-create {
    background: #fff; color: #1e3a5f; border: 2px solid #1e3a5f; border-radius: 10px;
    font-weight: 800; padding: 12px 18px; font-size: 14px; text-align: center;
    text-decoration: none; display: block;
}
.pd-z-btn-create:hover { background: #eff6ff; color: #1e3a5f; }

.pd-z-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pd-z-qty--inline {
    margin-bottom: 0;
    gap: 10px;
}
.pd-z-qty-label {
    font-weight: 700;
    font-size: clamp(13px, 3.5vw, 14px);
    color: #334155;
}
.pd-z-qty .qty-wrap {
    display: inline-flex; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden;
}
.pd-z-qty button {
    width: 40px; height: 40px; border: none; background: #f8fafc; font-weight: 700; cursor: pointer;
    font-size: 16px;
}
.pd-z-qty input {
    width: 44px; border: none; text-align: center; font-weight: 700; outline: none; font-size: 15px;
}
@media (max-width: 575px) {
    .pd-z-buy-meta {
        padding: 12px;
    }
    .pd-z-buy-meta__price {
        width: 100%;
        margin-left: 0;
    }
    .pd-z-price--right {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-end;
        width: 100%;
    }
    .pd-z-price--right .now {
        margin-left: auto;
    }
    .pd-z-actions--compact {
        position: sticky;
        bottom: 0;
        z-index: 20;
        background: #fff;
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
        margin-bottom: 0;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }
    .pd-z-btn-cart-icon,
    .pd-z-btn-order {
        min-height: 48px;
    }
    .pd-z-btn-cart-icon {
        flex-basis: 48px;
        width: 48px;
    }
}

.pd-z-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pd-z-swatch {
    width: 36px; height: 36px; border-radius: 50%; border: 2px solid #e5e7eb;
    cursor: pointer; padding: 0; position: relative;
}
.pd-z-swatch.active { border-color: #1d4ed8; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1d4ed8; }
.pd-z-swatch[data-color="White"], .pd-z-swatch[data-color="Natural"], .pd-z-swatch[data-color="Clear"] {
    background: #fff; border-color: #cbd5e1;
}
.pd-z-label { font-size: 12px; font-weight: 700; color: #64748b; margin-bottom: 4px; display: block; }
.pd-z-section { margin-bottom: 14px; }
.pd-z-size-select { max-width: 220px; }

.pd-z-badge-pod {
    display: inline-block; background: #eff6ff; color: #1d4ed8; font-size: 11px;
    font-weight: 800; padding: 3px 8px; border-radius: 6px; margin-bottom: 8px;
}

.pd-z-tabs { margin-top: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; }
.pd-z-tabs .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 2px solid #e5e7eb;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pd-z-tabs .nav-tabs::-webkit-scrollbar {
    display: none;
    height: 0;
}
.pd-z-tabs .nav-tabs .nav-item {
    flex: 0 0 auto;
}
.pd-z-tabs .nav-tabs .nav-link {
    font-size: clamp(16px, 4.2vw, 18px);
    font-weight: 700;
    color: #111827;
    padding: 12px 20px;
    border: none;
    border-radius: 10px 10px 0 0;
    line-height: 1.3;
    white-space: nowrap;
}
.pd-z-tabs .nav-tabs .nav-link:hover {
    color: #374151;
    border-color: transparent;
}
.pd-z-tabs .nav-tabs .nav-link.active {
    color: var(--secondary, #245dea);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-color: #fff;
    margin-bottom: -2px;
}
.pd-z-tabs .nav-tabs .nav-link.active:hover {
    color: var(--section-nav-bg, #1a49c7);
}
.pd-z-tabs .tab-content {
    padding-top: 8px;
}
.pd-z-tabs .tab-content,
.pd-z-tabs .rich-content {
    font-size: clamp(15px, 3.8vw, 17px);
    line-height: 1.7;
    color: #1e293b;
}
.pd-z-tabs .rich-content p,
.pd-z-tabs .rich-content li {
    font-size: inherit;
    line-height: inherit;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
}
@media (max-width: 575px) {
    .pd-z-tabs { padding: 14px; }
    .pd-z-tabs .nav-tabs {
        gap: 2px;
    }
    .pd-z-tabs .nav-tabs .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}
.pd-z-related { margin-top: 28px; }
.pd-z-related-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.pd-z-related-head h3 { font-weight: 800; margin: 0; }
.pd-z-related-more {
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}
.pd-z-related-more:hover { text-decoration: underline; }
.pd-z-related-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.pd-z-related-scroll::-webkit-scrollbar { height: 6px; }
.pd-z-related-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.pd-z-related-item {
    flex: 0 0 220px;
    scroll-snap-align: start;
    max-width: 220px;
}
.pd-z-related-item > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
}
@media (min-width: 768px) {
    .pd-z-related-item { flex-basis: 240px; max-width: 240px; }
}

.pd-z-highlights {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0 14px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.pd-z-highlight-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    font-size: clamp(14px, 3.8vw, 15px);
    line-height: 1.55;
    color: #1e293b;
    animation: pdHighlightIn .45s ease both;
}
.pd-z-highlight-row:last-child { border-bottom: 0; }
.pd-z-highlight-row::before {
    content: '▸';
    color: #64748b;
    flex-shrink: 0;
    font-size: 12px;
    margin-top: 2px;
}
.pd-z-highlight-text {
    flex: 1;
    min-width: 0;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
}
@keyframes pdHighlightIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Transfer design → other products (Zazzle-style) */
.pd-transfer {
    margin-top: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 16px 18px;
}
.pd-transfer-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 0 4px;
}
.pd-transfer-head h3 {
    font-size: 1.15rem; font-weight: 800; color: #111827; margin: 0;
}
.pd-transfer-head .pd-transfer-powered {
    font-size: 12px; color: #94a3b8; font-weight: 600;
}
.pd-transfer-scroller {
    display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.pd-transfer-scroller::-webkit-scrollbar { height: 6px; }
.pd-transfer-scroller::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.pd-transfer-card {
    flex: 0 0 148px; scroll-snap-align: start;
    text-decoration: none; color: inherit; text-align: center;
}
.pd-transfer-card:hover .pd-transfer-visual { border-color: #1d4ed8; box-shadow: 0 6px 18px rgba(29,78,216,.12); }
.pd-transfer-visual {
    position: relative; width: 100%; aspect-ratio: 1;
    border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
    background: #f8fafc; transition: .15s;
}
.pd-transfer-visual img.pd-transfer-mockup {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.pd-transfer-visual .pd-transfer-design {
    position: absolute; left: 50%; top: 42%;
    width: 38%; height: 38%; object-fit: contain;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
    pointer-events: none;
}
.pd-transfer-card span {
    display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #334155;
}
.pd-transfer-all {
    flex: 0 0 148px; scroll-snap-align: start;
    border: 1px dashed #cbd5e1; border-radius: 12px;
    background: #f8fafc; text-decoration: none; color: #1e293b;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 16px 12px; min-height: 148px; text-align: center;
}
.pd-transfer-all:hover { border-color: #1d4ed8; background: #eff6ff; color: #1d4ed8; }
.pd-transfer-all .pd-transfer-icons { display: flex; gap: 8px; font-size: 20px; color: #64748b; }
.pd-transfer-all strong { font-size: 14px; font-weight: 800; }
.pd-transfer-all small { font-size: 11px; color: #94a3b8; font-weight: 600; }
@media (max-width: 576px) {
    .pd-transfer-card, .pd-transfer-all { flex-basis: 132px; }
}

/* POD template layout preview (PDP) */
.pd-z-media-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pd-z-media-tab {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
}
.pd-z-media-tab.active {
    border-color: #1d4ed8;
    background: #eff6ff;
    color: #1d4ed8;
}
.pd-z-template-preview {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px;
    min-height: 360px;
}
.pd-tpl-preview-root { width: 100%; }
.pd-tpl-preview-stage {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
}
.pd-tpl-mockup {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
}
.pd-tpl-print-area {
    position: absolute;
    border: 2px dashed rgba(245, 158, 11, 0.85);
    background: rgba(245, 158, 11, 0.06);
    pointer-events: none;
    border-radius: 4px;
}
.pd-tpl-slots { position: absolute; inset: 0; pointer-events: none; }
.pd-tpl-slot {
    position: absolute;
    border: 2px solid rgba(37, 99, 235, 0.85);
    background: rgba(37, 99, 235, 0.12);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
    text-align: center;
    padding: 4px;
    transform-origin: center center;
    overflow: hidden;
}
.pd-tpl-slot--text {
    border-color: rgba(124, 58, 237, 0.85);
    background: rgba(124, 58, 237, 0.1);
    color: #5b21b6;
}
.pd-tpl-slot i { font-size: 16px; opacity: 0.85; }
.pd-tpl-caption { padding: 0 4px; }

.pd-selected-design {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 12px;
    padding: 8px 10px;
    border: 1px solid #c7d7fb;
    background: #f4f7ff;
    border-radius: 12px;
}
.pd-selected-design img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.pd-selected-design__text { flex: 1; min-width: 0; line-height: 1.25; }
.pd-selected-design__label {
    display: block;
    font-size: 11px;
    color: #4b5563;
    font-weight: 600;
}
.pd-selected-design__text strong {
    font-size: 14px;
    color: #1a49c7;
}
.pd-selected-design__change,
.pd-selected-design__clear {
    border: 0;
    background: transparent;
    color: #245dea;
    font-weight: 700;
    font-size: 13px;
    padding: 4px;
}
.pd-selected-design__clear { color: #6b7280; font-size: 20px; line-height: 1; }

.pd-more-designs__hint {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 12px;
}
.pd-more-designs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pd-more-designs__card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.pd-more-designs__card.is-selected {
    border-color: #245dea;
    box-shadow: 0 0 0 2px rgba(36, 93, 234, 0.18);
}
.pd-more-designs__media {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #f3f4f6;
    aspect-ratio: 1;
    overflow: hidden;
}
.pd-more-designs__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-more-designs__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px;
}
.pd-more-designs__code {
    font-size: 12px;
    font-weight: 800;
    color: #111827;
    word-break: break-all;
}
.pd-more-designs__pick {
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    background: #245dea;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
}
@media (min-width: 768px) {
    .pd-more-designs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .pd-more-designs__code { font-size: 13px; }
}
@media (min-width: 1100px) {
    .pd-more-designs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pd-design-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pd-design-lightbox[hidden] { display: none !important; }
.pd-design-lightbox__panel {
    width: min(96vw, 720px);
    max-height: 92vh;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pd-design-lightbox__panel img {
    width: 100%;
    max-height: calc(92vh - 72px);
    object-fit: contain;
    background: #000;
}
.pd-design-lightbox__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    z-index: 2;
}
.pd-design-lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
}
.pd-design-lightbox__bar strong {
    font-size: 15px;
    color: #111827;
    word-break: break-all;
}
.pd-design-lightbox__select {
    border: 0;
    border-radius: 10px;
    background: #245dea;
    color: #fff;
    font-weight: 800;
    padding: 10px 14px;
    white-space: nowrap;
}
body.pd-design-lb-open { overflow: hidden; }


