/* ============================================================
   FotoDigital Panel Editor - Wall Art / Pannelli Stampati
   ============================================================ */

:root {
    --pn-primary: #27ae60;
    --pn-primary-hover: #219a52;
    --pn-danger: #e74c3c;
    --pn-topbar-bg: #263238;
    --pn-topbar-height: 56px;
    --pn-canvas-bg: #e8e4df;
    --pn-panel-bg: #ffffff;
    --pn-border: #e0e0e0;
    --pn-text: #333333;
    --pn-text-light: #888888;
    --pn-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pn-radius: 8px;
}

/* ── Reset ── */
.panel-editor-page,
.panel-editor-page *,
.panel-editor-page *::before,
.panel-editor-page *::after {
    box-sizing: border-box !important;
}
.panel-editor-page {
    font-family: var(--pn-font) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--pn-canvas-bg) !important;
    font-size: 13px !important;
    color: var(--pn-text) !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    min-height: 100vh !important;
    max-width: none !important;
}

/* Hide WP theme elements */
.panel-editor-page .wp-site-blocks,
.panel-editor-page .is-layout-constrained,
.panel-editor-page .is-layout-flow,
.panel-editor-page .has-global-padding,
.panel-editor-page > header,
.panel-editor-page > footer,
.panel-editor-page .wp-block-template-part,
.panel-editor-page .wp-block-navigation,
.panel-editor-page .wp-block-header,
.panel-editor-page .wp-block-footer {
    display: none !important;
}
.panel-editor-page a {
    text-decoration: none !important;
    color: inherit;
}
.panel-editor-page svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Fix admin bar offset */
html.admin-bar .panel-editor-page {
    height: calc(100vh - 32px) !important;
}


/* ══════════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════════ */
.pn-topbar {
    height: var(--pn-topbar-height);
    background: var(--pn-topbar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* -- Left: Logo + product name -- */
.pn-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pn-topbar-left img {
    max-height: 32px;
    width: auto;
    display: block;
}
.pn-topbar-left .pn-product-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Center: Format + Options selectors -- */
.pn-topbar-center {
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.pn-selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pn-selector-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* -- Right: Price + CTA -- */
.pn-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.pn-topbar-price {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.pn-format-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.5);
    font-size: 12px;
}
.pn-format-badge {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}


/* ══════════════════════════════════════════════════════════════
   FORMAT / OPTIONS SELECTOR
   ══════════════════════════════════════════════════════════════ */
.pn-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--pn-radius);
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    font-family: var(--pn-font);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    transition: background 0.2s, border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.pn-select:hover {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}
.pn-select:focus {
    border-color: var(--pn-primary);
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.3);
}
.pn-select option {
    background: #263238;
    color: #ffffff;
}


/* ══════════════════════════════════════════════════════════════
   ADD TO CART / BUY BUTTON
   ══════════════════════════════════════════════════════════════ */
.pn-btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pn-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--pn-font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    white-space: nowrap;
}
.pn-btn-buy:hover {
    background: var(--pn-primary-hover);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}
.pn-btn-buy:active {
    transform: scale(0.97);
}
.pn-btn-buy:disabled,
.pn-btn-buy.disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}
.pn-btn-buy:disabled:hover,
.pn-btn-buy.disabled:hover {
    background: #9e9e9e;
    box-shadow: none;
    transform: none;
}
.pn-btn-buy svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
}


/* ══════════════════════════════════════════════════════════════
   MAIN AREA (3-column layout)
   ══════════════════════════════════════════════════════════════ */
.pn-main {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
    background: var(--pn-canvas-bg);
}


/* ══════════════════════════════════════════════════════════════
   UPLOAD PANEL (Left)
   ══════════════════════════════════════════════════════════════ */
.pn-upload-panel {
    width: 260px;
    flex-shrink: 0;
    background: var(--pn-panel-bg);
    border-right: 1px solid var(--pn-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 16px;
}
.pn-upload-panel h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--pn-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    padding: 0;
}

/* Upload zone */
.pn-upload-zone {
    border: 2px dashed var(--pn-border);
    border-radius: var(--pn-radius);
    padding: 30px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 180px;
    justify-content: center;
}
.pn-upload-zone:hover {
    border-color: var(--pn-primary);
    background: rgba(39, 174, 96, 0.04);
}
.pn-upload-zone.dragover {
    border-style: solid;
    border-color: var(--pn-primary);
    background: rgba(39, 174, 96, 0.08);
}
.pn-upload-zone .pn-upload-icon {
    width: 48px;
    height: 48px;
    color: var(--pn-text-light);
    transition: color 0.2s;
}
.pn-upload-zone:hover .pn-upload-icon {
    color: var(--pn-primary);
}
.pn-upload-zone .pn-upload-text {
    font-size: 13px;
    color: var(--pn-text-light);
    line-height: 1.5;
}
.pn-upload-zone .pn-upload-text strong {
    color: var(--pn-primary);
    font-weight: 600;
}
.pn-upload-zone .pn-upload-hint {
    font-size: 11px;
    color: #aaaaaa;
}

/* Upload zone - has photo state */
.pn-upload-zone.has-photo {
    border-style: solid;
    border-color: var(--pn-border);
    padding: 12px;
    min-height: 0;
}
.pn-upload-zone.has-photo:hover {
    border-color: var(--pn-primary);
}

/* Photo preview inside upload zone */
.pn-photo-preview {
    position: relative;
    width: 100%;
    border-radius: calc(var(--pn-radius) - 2px);
    overflow: hidden;
}
.pn-photo-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--pn-radius) - 2px);
}
.pn-photo-preview .pn-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: calc(var(--pn-radius) - 2px);
}
.pn-photo-preview:hover .pn-photo-overlay {
    opacity: 1;
}
.pn-photo-overlay .pn-btn-change {
    background: #ffffff;
    color: var(--pn-text);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--pn-font);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.pn-photo-overlay .pn-btn-change:hover {
    background: #f0f0f0;
}

/* Hidden file input */
.pn-upload-panel input[type="file"] {
    display: none;
}


/* ══════════════════════════════════════════════════════════════
   CANVAS PREVIEW AREA (Center) - Wall Art Preview
   ══════════════════════════════════════════════════════════════ */
.pn-preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    gap: 16px;
    /* Wall texture background */
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.3) 0%, transparent 70%),
        linear-gradient(180deg, #e8e4df 0%, #ddd8d0 100%);
}

/* Panel frame - simulates wall-mounted panel */
.pn-panel-frame {
    position: relative;
    background: #ffffff;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.06),
        0 12px 40px rgba(0,0,0,0.12),
        0 -2px 0 rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s ease, height 0.4s ease, border-radius 0.4s ease, clip-path 0.4s ease;
    flex-shrink: 0;
}
/* Panel edge/depth effect */
.pn-panel-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255,255,255,0.8);
    pointer-events: none;
    z-index: 5;
    transition: border-radius 0.4s ease;
}
.pn-panel-frame:hover {
    box-shadow:
        0 6px 10px rgba(0,0,0,0.08),
        0 16px 50px rgba(0,0,0,0.16),
        0 -2px 0 rgba(0,0,0,0.02);
}

/* Shape variations */
.pn-panel-frame.shape-circle {
    border-radius: 50%;
}
.pn-panel-frame.shape-circle::before {
    border-radius: 50%;
}
.pn-panel-frame.shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.pn-panel-frame.shape-hexagon::before {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.pn-panel-frame.shape-octagon {
    clip-path: polygon(29.3% 0%, 70.7% 0%, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0% 70.7%, 0% 29.3%);
}
.pn-panel-frame.shape-octagon::before {
    clip-path: polygon(29.3% 0%, 70.7% 0%, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0% 70.7%, 0% 29.3%);
}

/* Framed panel style (quadro con cornice) */
.pn-panel-frame.has-frame {
    border: 12px solid #333;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.06),
        0 12px 40px rgba(0,0,0,0.15),
        inset 0 0 6px rgba(0,0,0,0.1);
}
.pn-panel-frame.has-frame::before {
    border: 1px solid rgba(255,255,255,0.15);
}
.pn-panel-frame.has-frame.frame-nero { border-color: #2c2c2c; }
.pn-panel-frame.has-frame.frame-bianco { border-color: #f5f5f5; box-shadow: 0 4px 6px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.12), inset 0 0 6px rgba(0,0,0,0.05); }
.pn-panel-frame.has-frame.frame-legno { border-color: #8B6914; background-image: none; }

.pn-canvas-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pn-panel-frame canvas {
    display: block;
}

/* Placeholder overlay */
.pn-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    color: var(--pn-text-light);
    pointer-events: none;
    z-index: 2;
}
.pn-placeholder h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 4px;
    color: var(--pn-text);
}
.pn-placeholder p {
    font-size: 13px;
    margin: 0;
}
.pn-placeholder-icon {
    opacity: 0.3;
}

/* Panel info below the frame */
.pn-panel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pn-panel-info-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--pn-text);
}
.pn-panel-info-size {
    font-size: 11px;
    color: var(--pn-text-light);
}


/* ══════════════════════════════════════════════════════════════
   TOOLS PANEL (Right)
   ══════════════════════════════════════════════════════════════ */
.pn-tools-panel {
    width: 220px;
    flex-shrink: 0;
    background: var(--pn-panel-bg);
    border-left: 1px solid var(--pn-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0;
}

/* Section inside tools panel */
.pn-tools-section {
    padding: 16px;
    border-bottom: 1px solid var(--pn-border);
}
.pn-tools-section:last-child {
    border-bottom: none;
}
.pn-tools-section h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--pn-text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 12px 0;
    padding: 0;
}

/* -- Zoom slider -- */
.pn-zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pn-zoom-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--pn-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.pn-zoom-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--pn-primary);
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.pn-zoom-row input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--pn-primary-hover);
    transform: scale(1.15);
}
.pn-zoom-row input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--pn-primary);
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.pn-zoom-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--pn-text);
    min-width: 38px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 3px 6px;
}

/* -- Rotate / Flip buttons -- */
.pn-rotate-row {
    display: flex;
    gap: 8px;
}
.pn-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--pn-border);
    border-radius: var(--pn-radius);
    background: #ffffff;
    color: var(--pn-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: var(--pn-font);
}
.pn-btn-icon:hover {
    background: #f5f5f5;
    border-color: var(--pn-primary);
    color: var(--pn-primary);
}
.pn-btn-icon:active {
    background: #eeeeee;
}
.pn-btn-icon svg {
    width: 18px;
    height: 18px;
}

/* -- Center / Flip button -- */
.pn-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--pn-border);
    border-radius: var(--pn-radius);
    background: #ffffff;
    color: var(--pn-text);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--pn-font);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pn-btn-outline:hover {
    background: #f5f5f5;
    border-color: var(--pn-primary);
    color: var(--pn-primary);
}
.pn-btn-outline:active {
    background: #eeeeee;
}
.pn-btn-outline svg {
    width: 14px;
    height: 14px;
}

/* -- Background color swatches -- */
.pn-color-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}
.pn-color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    outline: none;
    padding: 0;
}
.pn-color-swatch:hover {
    transform: scale(1.12);
    border-color: rgba(0, 0, 0, 0.15);
}
.pn-color-swatch.active {
    border-color: var(--pn-primary);
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.3);
}
.pn-color-swatch[data-color="#ffffff"],
.pn-color-swatch[data-color="white"] {
    border-color: var(--pn-border);
}

/* Custom color picker */
.pn-color-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.pn-color-custom label {
    font-size: 11px;
    color: var(--pn-text-light);
    white-space: nowrap;
}
.pn-color-custom input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--pn-border);
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
    background: #ffffff;
}
.pn-color-custom input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.pn-color-custom input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}


/* ══════════════════════════════════════════════════════════════
   LOADING OVERLAY
   ══════════════════════════════════════════════════════════════ */
.pn-loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.pn-loading.active {
    opacity: 1;
    visibility: visible;
}
.pn-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: pn-spin 0.8s linear infinite;
}
.pn-loading-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

@keyframes pn-spin {
    to { transform: rotate(360deg); }
}


/* ══════════════════════════════════════════════════════════════
   GENERIC UTILITIES
   ══════════════════════════════════════════════════════════════ */
.pn-hidden {
    display: none !important;
}

/* General button reset */
.panel-editor-page button {
    font-family: var(--pn-font);
}


/* ══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING (panels)
   ══════════════════════════════════════════════════════════════ */
.pn-upload-panel::-webkit-scrollbar,
.pn-tools-panel::-webkit-scrollbar {
    width: 5px;
}
.pn-upload-panel::-webkit-scrollbar-track,
.pn-tools-panel::-webkit-scrollbar-track {
    background: transparent;
}
.pn-upload-panel::-webkit-scrollbar-thumb,
.pn-tools-panel::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}
.pn-upload-panel::-webkit-scrollbar-thumb:hover,
.pn-tools-panel::-webkit-scrollbar-thumb:hover {
    background: #aaaaaa;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE - Tablet (under 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .pn-main {
        flex-direction: column;
    }

    .pn-upload-panel {
        width: 100%;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid var(--pn-border);
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        overflow-y: visible;
        overflow-x: auto;
    }
    .pn-upload-panel h3 {
        margin: 0;
        white-space: nowrap;
    }
    .pn-upload-zone {
        min-height: 0;
        padding: 12px 20px;
        flex-direction: row;
        min-width: 200px;
    }
    .pn-upload-zone .pn-upload-icon {
        width: 28px;
        height: 28px;
    }

    .pn-preview-area {
        flex: 1;
        padding: 16px;
    }

    .pn-tools-panel {
        width: 100%;
        flex-shrink: 0;
        border-left: none;
        border-top: 1px solid var(--pn-border);
        flex-direction: row;
        overflow-y: visible;
        overflow-x: auto;
        padding: 0;
    }
    .pn-tools-section {
        border-bottom: none;
        border-right: 1px solid var(--pn-border);
        min-width: 160px;
        padding: 12px 16px;
    }
    .pn-tools-section:last-child {
        border-right: none;
    }

    /* Topbar adjustments */
    .pn-topbar-center {
        position: static;
        transform: none;
    }
    .pn-select {
        min-width: 120px;
    }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE - Mobile (under 768px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --pn-topbar-height: 48px;
    }

    .pn-topbar {
        padding: 0 12px;
        gap: 8px;
        flex-wrap: wrap;
        height: auto;
        min-height: var(--pn-topbar-height);
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .pn-topbar-left .pn-product-name {
        display: none;
    }
    .pn-topbar-center {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .pn-selector-group label {
        display: none;
    }
    .pn-select {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 30px 6px 10px;
    }
    .pn-topbar-price {
        font-size: 14px;
    }
    .pn-btn-buy {
        padding: 8px 14px;
        font-size: 11px;
    }

    /* Panels full-width, stacked */
    .pn-upload-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    .pn-upload-zone {
        flex-direction: column;
        min-width: 0;
    }

    .pn-preview-area {
        padding: 12px;
    }

    .pn-tools-panel {
        flex-direction: column;
    }
    .pn-tools-section {
        border-right: none;
        border-bottom: 1px solid var(--pn-border);
        min-width: 0;
        width: 100%;
    }
    .pn-tools-section:last-child {
        border-bottom: none;
    }
}
