/* ============================================================
   EXACT3D PLAYER — THEME 3  maincss_theme3.css  v2
   Visual base: current installation (index_en.php / maincss.css)
     - White body, wide canvas (4fr 1fr)
     - Horizontal icons bar: fixed bottom-left
     - Animation controls: below canvas, centered
     - Accordion material groups with + expand button
     - Mobile hamburger
   Engine: theme2 (all new system CSS included)
   ============================================================ */

:root {
    --primary-color:    #2196F3;
    --secondary-color:  #FFC107;
    --background-color: #FFFFFF;
    --surface-color:    #F5F5F5;
    --text-primary:     #212121;
    --text-secondary:   #757575;
    --accent-color:     #FF5722;
    --button-bg:        #2196F3;
    --button-text:      #FFFFFF;
    --panel-bg:         #FFFFFF;
    --font-family:      'al2', sans-serif;
    --font-size-base:   14px;
    --font-size-header: 18px;
    --font-size-button: 14px;
    --panel-width:      340px;
    --toolbar-height:   60px;
}

@font-face {
    font-family: "al2";
    src: url(libs/AeonikPro-Light.woff2) format("truetype");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: white;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    overflow: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-family); font-weight: 200; }
h2 { font-size: 13px; font-weight: 700; }
div { font-family: var(--font-family); }

::-webkit-scrollbar { width: 4px; background: white; }
::-webkit-scrollbar-thumb { background: lightgray; border-radius: 10px; }

/* ── GRID (old theme proportions) ── */
.containerMAIN {
    display: grid;
    grid-template-columns: 4fr var(--panel-width);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}
@media only screen and (min-width: 601px) and (max-width: 1100px) {
    .containerMAIN { grid-template-columns: 3fr var(--panel-width); }
}
@media only screen and (max-width: 600px) {
    .containerMAIN { grid-template-columns: auto; }
}

/* ── CANVAS AREA ── */
.canvas-area {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ── VENDOR LOGO ── */
.canvas-logo {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}
.canvas-logo img { width: 110px; display: block; }

/* ── UNITY CANVAS ── */
#unidm-container {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}
#unidm-canvas { width: 100% !important; height: 100% !important; }

/* ── LOADER WRAP (blur overlay — theme2 style) ── */
.animationLoaderWrap {
    display: none;
    position: absolute;
    top: 50%;
    left: 48.8%;
    transform: translate(-50%, -50%);
}

/* ── LOADING BAR ── */
#unidm-loading-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    display: none;
}
#unidm-progress-bar-empty { background: rgba(0,0,0,0.1); border-radius: 4px; height: 4px; }
#unidm-progress-bar-full  { background: #000; height: 4px; border-radius: 4px; width: 0%; transition: width 0.3s; }
#loading-container {
    position: absolute;
    top: 55%;
    left: 49.8%;
    transform: translate(-50%,-50%);
    font-size: 13px;
}

/* ── NUDGE ── */
.handPointerNudge {
    position: absolute;
    top: 67%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 50px;
    color: grey;
    opacity: 0.6;
    display: none;
    pointer-events: none;
    animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge {
    0%   { left: 50%; }
    31%  { left: 48%; }
    71%  { left: 52%; }
    100% { left: 50%; }
}

/* ── EXACT3D WATERMARK ── */
#exact-logo { position: absolute; right: 1%; bottom: 10px; opacity: 0.06; }
#exact-logo img { width: 96px; }

/* ── ANIMATION CONTROLS — centered within canvas-area ── */
.animation-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 11px 31px;
    background: #FFF;
    border: 1px solid #ddd;
    border-radius: 80px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    width: fit-content;
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
}
@media only screen and (max-width: 600px) {
    .animation-controls { bottom: 110px; }
}
.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}
.control-btn:hover  { background: rgba(0,0,0,0.05); transform: scale(1.05); }
.control-btn:active { transform: scale(0.95); background: rgba(0,0,0,0.1); }

/* ── FULLSCREEN (bottom-right of canvas) ── */
.fullScreenHide { display: none; }
@media only screen and (min-width: 769px) {
    .fullScreenHide {
        display: flex;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.9);
        border: 1px solid #ddd;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100;
        color: #555;
        font-size: 16px;
        transition: all 0.2s;
    }
    .fullScreenHide:hover { background: black; color: white; border-color: black; }
}

/* ── TOP RIGHT BUTTON ROW: Dimensions | Ruler | Fullscreen ── */
.canvas-ruler {
    position: absolute;
    top: 16px;
    right: 60px;
    z-index: 100;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}
.canvas-ruler:hover, .canvas-ruler.active { background: black; color: white; border-color: black; }

.dimIcon {
    position: absolute;
    top: 16px;
    right: 104px;
    z-index: 100;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}
.dimIcon:hover { background: black; color: white; border-color: black; }
.dimIcon i { font-size: 16px; }

.ruler-instructions {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(20,20,20,0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    font-size: 13px;
    padding: 12px 20px;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    z-index: 200;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.ruler-instructions.visible { transform: translateY(0); }
.ruler-instructions-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ruler-step { font-weight: 600; letter-spacing: 0.3px; }
.ruler-hint { opacity: 0.75; font-size: 12px; }
.ruler-divider { opacity: 0.25; }
.ruler-close {
    cursor: pointer;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.15s;
}
.ruler-close:hover { opacity: 1; background: rgba(255,255,255,0.1); }

/* ── SPEED DIAL ── */
.speed-dial {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 999;
}
.sd-items {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.sd-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    position: relative;
}
.sd-item.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sd-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s, transform 0.15s;
    position: relative;
    z-index: 2;
}
.sd-btn:hover { background: #333; transform: scale(1.08); }
.sd-btn.active-sub { background: #444; }

/* 3D sub options */
.sd-sub {
    position: absolute;
    left: 58px;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    display: flex;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.sd-sub.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.sd-sub-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 20px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 700;
    transition: background 0.15s;
}
.sd-sub-btn:hover { background: #444; }

/* Trigger button */
.sd-trigger {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background 0.15s;
    z-index: 10;
}
.sd-trigger:hover { background: #333; }
.sd-trigger.open { transform: rotate(45deg); }

/* ── RIGHT PANEL ── */
.right-panel {
    position: relative;
    height: 100vh;
    background-color: #FFF;
    border-left: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Inner scrollable container */
.container {
    background-color: #FFF;
    position: relative;
    flex: 1;          /* ← takes all remaining space */
    height: 0;        /* ← flex+overflow trick — forces scroll within flex */
    overflow-y: auto;
    width: 100%;
    transition: opacity 1s;
}
@media only screen and (max-width: 768px) {
    .container {
        position: relative;
    }
}

/* ── MOBILE HAMBURGER ── */
@media only screen and (min-width: 769px) {
    .menuBu  { display: none; }
    .closeBu { display: none; }
}
.menuBuTe { display: flex; align-items: center; }

/* ── FORM ── */
form.form_container { padding: 15px; margin-right: 4px; }
@media only screen and (max-width: 600px) { form.form_container { padding: 15px 15px 0 15px; } }
.form_container input, .decorFloor input { display: none; }

/* ── MODEL TITLE ── */
p.modelName {
    font-size: 24px !important;
    font-weight: 700;
    padding: 0 5px;
    margin-top: 20px;
}
.pliroforiesModel { padding: 13px 5px; font-size: 14px; }
.pliroforiesConf {
    font-size: 12px;
    text-align: justify;
    padding: 13px 5px;
    width: 86%;
    margin: 15px auto 0;
}

/* ── ACCORDIONS ── */
.accordion-section {
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.accordion-header {
    width: 100%;
    background: transparent;
    border: 1px solid #c1c1c1;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    outline: none;
    border-radius: 12px;
    padding: 16px 15px;
    gap: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.accordion-header:focus,
.accordion-header:focus-visible,
.accordion-header:active {
    outline: none;
    box-shadow: none;
}
.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.accordion-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.25s ease-in-out;
    transform: rotate(-90deg);
    flex-shrink: 0;
}
.accordion-section.open .accordion-arrow { transform: rotate(0deg); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.2s cubic-bezier(0.4, 0, 1, 1),
    padding 0.2s cubic-bezier(0.4, 0, 1, 1);
}
.accordion-content.open {
    max-height: 800px;
    padding: 10px 15px 16px;
    transition: max-height 0.4s cubic-bezier(0, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0, 0, 0.2, 1);
}
.accordion-section.open {
    border-color: #c1c1c1;
    box-shadow: rgba(0,0,0,0.12) 0px 0px 12px 4px;
}
.accordion-section.open .accordion-header {
    border-color: transparent;
    border-bottom-color: #ebebeb;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.accordion-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}
.accordion-section.open .accordion-count-badge { background: rgba(0,0,0,0.85); color: white; }


/* Hover shadow on closed sections */
.accordion-section:not(.open):hover {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 12px 4px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
    rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
}

/* Round bottom corners of content when open */
.accordion-section.open .accordion-content {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.accordion-section:not(.open):hover .accordion-header {
    border-color: transparent;
}
.accordion-section:not(.open):hover {
    border-color: #c1c1c1;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 0px 12px 4px;
}

/* ── TEXTURE GRID ── */
section.plan { display: table; width: 100%; }

.overMaterials {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
}
@media only screen and (max-width: 600px) { .overMaterials { width: 93vw; } }

/* Labels hidden by default — JS reveals with .open class on + click */
.form_container label.col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 65px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 2px;
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 0.4s, transform 0.4s;
    background: transparent;
}
/* Revealed label */
.form_container label.col.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.form_container label.col img {
    width: 59px;
    height: 59px;
    border-radius: 4px;
    display: block;
}
.form_container label.col .tex-name {
    font-size: 9px;
    color: #555;
    text-align: center;
    max-width: 63px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.form_container label.col:hover { border-color: #bbb; }
.form_container input:checked + label.col {
    outline: 2px solid #000 !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    border-radius: 6px;
}

/* ── PLUS SYMBOL (expand textures) ── */
.plus-symbol {
    cursor: pointer;
    display: none;
    width: 59px;
    height: 59px;
    background-color: #ccc;
    text-align: center;
    line-height: 56px;
    font-size: 30px;
    margin-top: 4px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ── SELECTED TEXTURE LABEL ── */
.selectedTextureType {
    font-size: 12px;
    text-align: end;
    color: #888;
    padding: 2px 0 8px 0;
}

/* ── DIMENSIONS ── */
.distaseisGrammikoImage { width: 90%; padding: 14px; }
.distaseisGrammikoButton {
    background-color: white;
    color: black;
    border: 1px solid black;
    width: 34%;
    padding: 6px 10px;
    text-align: center;
    margin: 5px 7px;
    display: inline-flex;
    justify-content: center;
    border-radius: 100px;
    cursor: pointer;
    font-size: 13px;
}
.distaseisGrammikoButton.checked { background-color: black; color: white; }
.distaseisGrammikoWrapper { text-align: center; padding-bottom: 16px; }
.distaseisGrammikoAllDimensions { display: flex; justify-content: center; padding-bottom: 16px; font-size: 13px; color: #555; }

/* ── PART GROUP (client-specific) ── */
.part-group { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
.part-option {
    /*border: 1px solid transparent;*/
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}
.part-option {
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 2px;
}
.part-option.active {
    outline: 2px solid #000;
    border-radius: 6px;
}
.part-option img { max-width: 63px; height: auto; display: block; }
.part-option.active { pointer-events: none; }
.part-option.active::after { content: none !important; }

/* ── FLOOR DECORATION (client-specific) ── */
.decorFloor input { display: none; }
.decorFloor label { position: relative; cursor: pointer; border: 2px solid transparent; box-sizing: border-box; display: block; padding: 2px; }
.decorFloor label img { border: 1px solid black; width: 59px; height: 59px; border-radius: 6px; }
.decorFloor input:checked + label { outline: 2px solid #000 !important; border-radius: 6px; }

/* ── LANG SWITCHER ── */
.langSwitcher {
    font-size: 14px; color: black;
    width: 34px; height: 34px;
    border: solid 1px black;
    display: inline-flex; justify-content: center; align-items: center;
    border-radius: 100px; cursor: pointer;
}
.langWrap { text-align: end; position: absolute; z-index: 999999; right: 13px; top: 13px; }

/* ── OVERVIEW ── */
.overview-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.overview-part { font-weight: 600; color: #555; font-size: 12px; }
.overview-thumb { width: 44px; border-radius: 4px; object-fit: cover; border: 1px solid #eee; }
.overview-thumb-placeholder { width: 44px; height: 44px; background: #f0f0f0; border-radius: 4px; }
.overview-send-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; background: black; color: white;
    border: none; border-radius: 6px; cursor: pointer;
    font-family: var(--font-family); font-size: 14px;
}
.overview-send-btn:hover { background: #333; }
.overview-value-wrap { display: flex; align-items: center; gap: 8px; }
.overview-row-total {
    border-top: 2px solid #333;
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 15px;
}

/* ── CAMERA TOGGLE ── */
.camera-toggle {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 300; display: none;
    background: white; border: 1px solid #ddd; border-radius: 40px;
    padding: 6px; gap: 4px; align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
body.is-touch-device .camera-toggle { display: none !important; }
.toggle-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: none; border-radius: 30px;
    background: transparent; cursor: pointer;
    font-family: var(--font-family); font-size: 13px; color: #555;
}
.toggle-btn svg { width: 18px; height: 18px; }
.toggle-btn.active { background: black; color: white; }
.toggle-pill { position: absolute; top: 6px; border-radius: 30px; background: black; transition: all 0.25s; z-index: -1; }
.toggle-divider { width: 1px; height: 24px; background: #eee; }
.mode-dot { display: none; }

/* ── MODAL QR ── */
#qrModal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal-content { background: white; padding: 20px; border-radius: 10px; text-align: center; max-width: 80%; }
#qrCode { margin: 20px auto; display: flex; justify-content: center; }
.close-btn { margin-top: 10px; padding: 8px 15px; background: white; color: black; border-radius: 5px; cursor: pointer; border: 1px solid black; }
.generate-btn { margin-top: 10px; padding: 8px 15px; background: black; color: white; border: none; border-radius: 5px; cursor: pointer; }

/* ── THEME2 MODALS ── */
.t2-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
.t2-modal-card { background: white; border-radius: 12px; width: 90%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.t2-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; font-weight: 600; font-size: 16px; }
.t2-modal-x { background: none; border: none; font-size: 18px; cursor: pointer; color: #888; padding: 0; }
.t2-modal-x:hover { color: #000; }
.t2-modal-body { padding: 20px; }
.t2-modal-sub { color: #666; font-size: 13px; margin-bottom: 16px; }
.t2-field-group { margin-bottom: 14px; }
.t2-field-label { display: block; font-size: 12px; color: #666; margin-bottom: 4px; font-weight: 500; }
.t2-field-input { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-family: var(--font-family); font-size: 14px; outline: none; }
.t2-field-input:focus { border-color: #999; }
.t2-field-textarea { resize: vertical; min-height: 80px; }
.t2-field-select { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-family: var(--font-family); font-size: 14px; background: white; cursor: pointer; outline: none; }
.t2-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.t2-btn-primary { padding: 10px 24px; background: black; color: white; border: none; border-radius: 6px; cursor: pointer; font-family: var(--font-family); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.t2-btn-primary:hover { background: #333; }
.t2-btn-secondary { padding: 10px 24px; background: white; color: black; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-family: var(--font-family); font-size: 14px; }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inq-captcha-row { display: flex; align-items: center; gap: 12px; }
.inq-captcha-input { width: 100px !important; }
.inq-error { color: #c00; font-size: 13px; padding: 8px; background: #fff0f0; border-radius: 4px; }
.inq-success { text-align: center; padding: 20px; }
.inq-success-icon { font-size: 40px; color: green; margin-bottom: 12px; }
.inq-success-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.inq-success-sub { color: #666; font-size: 14px; margin-bottom: 16px; }
.t2-ai-loading { display: flex; align-items: center; gap: 12px; padding: 14px; background: #f9f9f9; border-radius: 8px; }
.t2-ai-result-img { width: 100%; border-radius: 8px; display: block; }
.t2-ai-result-caption { font-size: 12px; color: #888; margin-top: 6px; text-align: center; }

/* ── SHARE POPUP ── */
.share-popup { position: fixed; bottom: 100px; left: 80px; background: white; border: 1px solid #ddd; border-radius: 10px; padding: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 9999; min-width: 280px; }
.share-popup-close { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 16px; cursor: pointer; color: #888; }
.share-popup-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.share-popup-label { font-size: 12px; color: #888; margin-bottom: 10px; }
.share-popup-row { display: flex; gap: 6px; }
.share-popup-input { flex: 1; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; outline: none; }
.share-popup-copy { padding: 7px 14px; background: black; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 12px; }
.share-popup-copied { font-size: 12px; color: green; margin-top: 6px; }

/* ── PACKSHOT ── */
.packshot-overlay { position: fixed; inset: 0; background: white; z-index: 9000; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.packshot-btn { padding: 10px 20px; background: black; color: white; border: none; border-radius: 6px; cursor: pointer; font-family: var(--font-family); font-size: 14px; }
.packshot-btn.secondary { background: white; color: black; border: 1px solid #ddd; }
.packshotIcon { cursor: pointer; }

/* ── MOBILE ── */
@media only screen and (max-width: 768px) {

    /* Full screen canvas */
    .containerMAIN {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    .canvas-area {
        height: 100vh;
        grid-column: 1;
        grid-row: 1;
    }

    /* Panel: hidden by default, shown when .mobile-open added by JS */
    .right-panel {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100vw;
        height: 100vh;
        border-left: none;
        border-top: none;
        z-index: 9999;
        background: white;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .right-panel.mobile-open {
        opacity: 1;
        visibility: visible;
    }
    .right-panel .container {
        height: 100vh;
        overflow-y: scroll;
    }

    /* Hamburger: fixed bottom center */
    .menuBu {
        position: fixed !important;
        width: 81%;
        left: 50%;
        bottom: 10%;
        transform: translate(-50%, -50%);
        cursor: pointer;
        background-color: black;
        z-index: 999;
        color: white;
        font-size: 16px;
        padding: 8px 15px;
        display: inline-flex !important;
        justify-content: center;
        border-radius: 50px;
    }
    i.fa.fa-bars { padding: 1px 10px; font-size: 22px; }

    /* Close button */
    .closeBu {
        display: block !important;
        position: absolute;
        right: 16px;
        top: 16px;
        font-size: 20px;
        cursor: pointer;
        z-index: 999;
        padding: 8px;
    }

    /* Ruler: move to top-left to avoid lang switcher (top-right) */
    .canvas-ruler {
        top: 12px;
        right: auto;
        left: 12px;
        width: 32px;
        height: 32px;
    }

    /* Icons: horizontal row, centered, above hamburger */
    .speed-dial {
        left: 50%;
        transform: translateX(-50%);
        bottom: 90px;
    }

    /* Hamburger: fixed bottom center */
    .menuBu {
        position: fixed !important;
        width: 60%;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
        cursor: pointer;
        background-color: black;
        z-index: 999;
        color: white;
        font-size: 16px;
        padding: 12px 20px;
        display: inline-flex !important;
        justify-content: center;
        border-radius: 50px;
        gap: 10px;
        align-items: center;
    }
    i.fa.fa-bars { padding: 0; font-size: 18px; }

    /* Hide lang switcher when panel is open */
    .right-panel.mobile-open ~ .langWrap,
    .right-panel.mobile-open + .langWrap {
        display: none;
    }

    /* Close button — top-right, clear and tappable */
    .closeBu {
        display: block !important;
        position: fixed;
        right: 16px;
        top: 16px;
        font-size: 18px;
        cursor: pointer;
        z-index: 1000;
        width: 36px;
        height: 36px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: black;
        color: white;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .dimIcon {
        position: fixed !important;
        top: 12px;
        left: 12px;
        right: auto !important;
        width: 34px;
        height: 34px;
        z-index: 999;
    }

    /* Hide top buttons on mobile */
    .canvas-ruler { display: none !important; }

    /* Hide speed dial items not needed on mobile */
    .sd-mobile-hide { display: none !important; }

    /* Speed dial — bottom left */
    .speed-dial {
        left: 10px;
        transform: none;
        bottom: 26px;
    }

    /* Animation controls */
    .animation-controls { bottom: 100px; }

    /* Hide fullscreen on mobile */
    .fullScreenHide { display: none !important; }
}


/* modules */
.module-row {
    display: flex; align-items: center; padding: 10px 8px;
    border-bottom: 1px solid #eee; cursor: pointer; font-size: 14px;
    border-radius: 8px; transition: background 0.15s; gap: 10px;
}
.module-row:last-child { border-bottom: none; }
.module-row:hover { background: #f5f5f5; }
.module-checkbox { display: none; }
.module-row::before {
    content: ''; width: 18px; height: 18px; min-width: 18px;
    border: 2px solid #ccc; border-radius: 4px; background: white; transition: all 0.15s;
}
.module-row:has(.module-checkbox:checked) { background: #f0ede8; }
.module-row:has(.module-checkbox:checked)::before {
    background: #333; border-color: #333;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1,5 4,9 11,1' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 10px;
}
.module-row-label { flex: 1; display: flex; flex-direction: column; }
.module-row-desc { color: var(--text-secondary, #888); font-size: 11px; margin-top: 2px; }
.module-row-price { font-weight: 600; color: var(--primary-color, #000); white-space: nowrap; font-size: 13px; }

.price-cart-block {
    flex-shrink: 0;   /* ← never squished */
    padding: 16px 20px;
    border-top: 2px solid #e0e0e0;
    background: #fff;
}
.price-display { font-size: 32px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary, #000); }
.add-to-cart-btn {
    width: 100%; padding: 16px; border-radius: 999px; border: none;
    background: #d9cfc1; color: #000;
    font-size: 14px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
}
.add-to-cart-btn:hover { opacity: 0.85; }
.price-fineprint { font-size: 12px; color: #888; margin-top: 14px; line-height: 1.5; }
/***** size accirdion ******/
.size-selector { display: flex; gap: 12px; padding: 12px 4px; }
.size-option { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.size-option input[type="radio"] { display: none; }
.size-btn {
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid #ccc; display: flex; align-items: center;
    justify-content: center; font-weight: 600; font-size: 16px;
    transition: all 0.15s; background: white;
}
.size-option:has(input:checked) .size-btn {
    background: #333; color: white; border-color: #333;
}
.size-desc { font-size: 11px; color: #888; text-align: center; }
.size-table { margin: 8px 4px 12px; font-size: 13px; }
.size-table-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.size-table-row.header { font-weight: 600; color: #555; }
.size-table-row:last-child { border-bottom: none; }

.post-cart-btns { display: flex; flex-direction: column; gap: 8px; }
.go-to-cart-btn { background: #333 !important; color: #fff !important; }