.product-page {
    padding: 30px 15px;
}

.breadcrumb {
    font-size: 11px;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #666;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 0;
    /* Removi padding para o zoom preencher tudo */
    overflow: hidden;
    /* Essencial para o Zoom */
    position: relative;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* Suaviza a entrada/saÃ­da do zoom */
}

.thumbnail-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    position: relative;
    width: 100%;
}

.thumb-nav {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.thumb-nav:hover {
    background: #017aaa;
    color: white;
    border-color: #017aaa;
}

.thumbnail-wrapper {
    flex: 1;
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    min-width: 0; /* IMPEDE O CARROSSEL DE ESTICAR A TELA */
    container-type: inline-size;
}

/* Ocultar barra de rolagem (opcional) */
.thumbnail-wrapper::-webkit-scrollbar {
    display: none;
}
.thumbnail-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.thumbnail-list > img,
.thumbnail-list > .video-thumb {
    flex-shrink: 0;
    /* Calcula a largura exata para caberem 6 na tela visível (5 gaps de 10px) usando Container Queries */
    width: calc((100cqw - 50px) / 6) !important;
    height: calc((100cqw - 50px) / 6) !important;
    object-fit: cover;
    border: 2px solid #eee;
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail-list > .video-thumb {
    transition: var(--transition);
}

.thumbnail-list img.active,
.thumbnail-list img:hover,
.video-thumb.active,
.video-thumb:hover {
    border-color: var(--primary-color) !important;
}

.product-info h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-info .ref {
    font-size: 11px;
    color: #999;
    margin-bottom: 15px;
}

.selection-section {
    margin: 25px 0;
}

.selection-section p {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-box {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    cursor: pointer;
}

.color-box.active {
    border-color: var(--primary-color);
}

.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
}

.size-btn {
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.size-btn.active,
.size-btn:hover {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}


.pricing-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 5px;
}

.price-full {
    font-size: 28px;
    font-weight: 900;
    color: #017aaa;
}

.price-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.purchase-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.qty-selector {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qty-selector input {
    width: 60px;
    height: 50px;
    text-align: center;
    border: 1px solid #ccc;
}

.btn-buy {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 36px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.4px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.3s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
    white-space: nowrap;
    min-width: 200px;
    align-self: flex-end;
    height: 46px;
}

/* Shimmer deslizante */
.btn-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.22) 50%,
        transparent 100%
    );
    transform: skewX(-18deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #16a34a 0%, #14532d 100%);
    transform: translateY(-2px) scale(1.025);
    box-shadow: 0 8px 28px rgba(21, 128, 61, 0.50);
}

.btn-buy:hover::before {
    left: 135%;
}

.btn-buy:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 3px 10px rgba(21, 128, 61, 0.30);
}


.shipping-form {
    display: flex;
    margin-top: 10px;
}

.shipping-form input {
    border: 1px solid #ccc;
    padding: 10px;
    flex-grow: 1;
}

.shipping-form button {
    background: var(--dark-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

/* SeÃ§Ã£o de Detalhes */
.section-divider {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.section-divider span {
    background: white;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    font-weight: 800;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
}

.description-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

.size-table {
    position: relative;
    margin-top: 40px;
}

.table-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .main-image { height: 360px; }
}

@media (max-width: 599px) {
    .product-page { padding: 20px 0; }
    .main-image   { height: 280px; }

    .thumbnail-list img { width: 60px; height: 60px; }

    .product-info h1 { font-size: 17px; }

    .pricing-box { padding: 18px 14px; }
    .price-full  { font-size: 24px; }

    .purchase-actions {
        flex-direction: column;
        gap: 10px;
    }
    .btn-buy {
        min-width: auto;
        width: 100%;
        font-size: 14px;
        padding: 12px 20px;
    }
    .qty-selector { flex-direction: row; align-items: center; }
    .qty-selector input { width: 50px; height: 44px; }

    .shipping-form { flex-direction: column; gap: 8px; }
    .shipping-form input  { border-radius: 6px; }
    .shipping-form button { padding: 10px; border-radius: 6px; }

    .section-divider { margin: 40px 0 24px; }
    .tabs-header { overflow-x: auto; gap: 16px; }
    .tab-link    { font-size: 12px; white-space: nowrap; }
}

@media (max-width: 479px) {
    .main-image  { height: 230px; }
    .thumbnail-list img { width: 50px; height: 50px; }
    .product-info h1 { font-size: 15px; }
    .breadcrumb  { font-size: 10px; }
}

/* ============================================================
   CUSTOMIZER MODAL — DESIGN RESPONSIVO
   ============================================================ */

/* ---- Wrapper principal do modal ---- */
.cust-modal-content {
    max-width: 1280px;
    width: 96%;
    height: 92vh;
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

/* ---- Header ---- */
.cust-header {
    background: #0f172a;
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cust-header-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cust-close-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.cust-close-btn:hover { background: rgba(255,255,255,0.25); }

/* ---- Body: grid 3 colunas no desktop ---- */
.cust-body {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ---- Coluna Ferramentas (esq) ---- */
.cust-col-tools {
    background: white;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---- Botões de ação (Texto / Logo) ---- */
.cust-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cust-btn-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid;
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 70px;
}
.cust-btn-tool i { font-size: 20px; }
.cust-btn-tool:active { transform: scale(0.96); }

.cust-btn-text {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.cust-btn-text:hover { box-shadow: 0 4px 12px rgba(37,99,235,0.2); }

.cust-btn-logo {
    background: #f0fdfa;
    color: #0d9488;
    border-color: #99f6e4;
}
.cust-btn-logo:hover { box-shadow: 0 4px 12px rgba(13,148,136,0.2); }

/* ---- Botão Desfazer ---- */
.cust-btn-undo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, opacity 0.2s;
    opacity: 0.45;
}
.cust-btn-undo:not(:disabled):hover {
    background: #e2e8f0;
    color: #1e293b;
}
.cust-btn-undo:disabled { cursor: not-allowed; }

/* ---- Coluna Resumo/Ícones (dir) ---- */
.cust-col-summary {
    background: white;
    border-left: 1px solid #e2e8f0;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---- Painel de edição do elemento selecionado ---- */
.cust-editor-panel {
    background: #f8fafc;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.cust-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cust-editor-label {
    font-weight: 800;
    font-size: 12px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cust-delete-btn {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}
.cust-delete-btn:hover { background: #fca5a5; }

.cust-textarea {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.cust-textarea:focus { outline: none; border-color: #2563eb; }

.cust-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cust-font-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Item individual de fonte no picker */
.cust-font-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    transition: background 0.15s;
    user-select: none;
}
.cust-font-item:last-child { border-bottom: none; }
.cust-font-item:hover { background: #f0f9ff; }
.cust-font-item.cust-font-active {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    padding-left: 9px;
}
.cust-font-preview {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    color: #1e293b;
}
.cust-font-name {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Campo de busca (fontes e ícones) ---- */
.cust-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.cust-search-icon {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
}
.cust-search-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px 8px 30px;
    font-size: 12px;
    font-family: inherit;
    color: #334155;
    background: white;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.cust-search-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #f8faff;
}
.cust-search-input::placeholder { color: #94a3b8; }

.cust-section-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cust-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 2px;
}

/* Quando na coluna direita, grid ocupa o espaço disponível */
.cust-icons-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 8px;
}
.cust-icons-right .cust-icon-grid {
    flex: 1;
    max-height: none;   /* remove limite fixo — a coluna já limita */
    grid-template-columns: repeat(3, 1fr); /* 3 colunas na lateral direita */
    overflow-y: auto;
}

/* Item individual de ícone */
.cust-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 4px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    text-align: center;
    min-height: 80px;  /* mais alto para caber nome em 2 linhas */
}
.cust-icon-item:hover {
    border-color: #2563eb;
    background: #f0f9ff;
    transform: scale(1.04);
}
.cust-icon-item:active { transform: scale(0.97); }
.cust-icon-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.cust-icon-item span {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    word-break: break-word;
    /* Permite até 2 linhas, trunca com … se passar */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    max-width: 100%;
}

/* ---- Canvas central ---- */
.cust-canvas-area {
    background: #cbd5e1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#cust-canvas {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    max-width: 100%;
    max-height: 100%;
}

/* ---- Coluna Resumo (dir) ---- */
.cust-col-summary {
    background: white;
    border-left: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cust-summary-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cust-summary-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.cust-tip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.cust-tip i { flex-shrink: 0; margin-top: 2px; }

.cust-finish-wrapper {
    margin-top: 20px;
}

.cust-finish-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(34,197,94,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cust-finish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.45);
}
.cust-finish-btn:active { transform: scale(0.98); }

/* ---- Barra inferior mobile — oculta no desktop ---- */
.cust-mobile-bar { display: none; }

/* ---- Overlay de confirmação de saída ---- */
.cust-confirm-overlay {
    position: absolute;
    inset: 0;
    z-index: 200;
    background: rgba(15,23,42,0.80);
    backdrop-filter: blur(6px);
    display: none;          /* controlado via JS com flex */
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}
.cust-confirm-overlay[style*="flex"] { display: flex !important; }

.cust-confirm-box {
    background: white;
    border-radius: 18px;
    padding: 32px 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.cust-confirm-icon {
    width: 64px;
    height: 64px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
}
.cust-confirm-title {
    font-size: 19px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px;
}
.cust-confirm-text {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 22px;
    line-height: 1.6;
}
.cust-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.cust-btn-back {
    padding: 12px 20px;
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.cust-btn-back:hover { background: #e2e8f0; }

.cust-btn-exit {
    padding: 12px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.cust-btn-exit:hover { background: #dc2626; }

/* ============================================================
   CUSTOMIZER — RESPONSIVO MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Modal ocupa a tela toda */
    .cust-modal-content {
        width: 100%;
        height: 100dvh;   /* dvh = desconsidera barra do browser */
        max-width: 100%;
        border-radius: 0;
    }

    /* 1 coluna: canvas em cima, painel embaixo */
    .cust-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        overflow: hidden;
    }

    /* Canvas ocupa o máximo disponível */
    .cust-canvas-area {
        grid-row: 1;
        grid-column: 1;
        min-height: 240px;
        padding: 10px;
    }

    /* Coluna de ferramentas: drawer animado que desliza de baixo */
    .cust-col-tools {
        grid-row: 2;
        grid-column: 1;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        max-height: 48vh;
        overflow-y: auto;
        padding: 14px 16px;
        gap: 14px;
        /* Começa oculto via classe JS */
        display: none;
    }
    .cust-col-tools.cust-tab-active {
        display: flex;
    }

    /* Coluna de resumo: drawer alternado */
    .cust-col-summary {
        grid-row: 2;
        grid-column: 1;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        max-height: 48vh;
        overflow-y: auto;
        padding: 14px 16px;
        display: none;
    }
    .cust-col-summary.cust-tab-active {
        display: flex;
    }

    /* Botões de ação: tamanho maior para toque */
    .cust-btn-tool {
        min-height: 64px;
        font-size: 13px;
        padding: 12px 6px;
    }
    .cust-btn-tool i { font-size: 22px; }

    /* Lista de fontes menor em mobile */
    .cust-font-list { max-height: 120px; }

    /* Ícones com grid mais apertado */
    .cust-icon-grid {
        grid-template-columns: repeat(4, 1fr);
        max-height: 150px;
    }

    /* Resumo de dicas: layout horizontal compacto */
    .cust-summary-tips { flex-direction: column; gap: 8px; }
    .cust-tip { padding: 9px 11px; font-size: 12px; }

    /* Botão finalizar no mobile */
    .cust-finish-btn { padding: 14px; font-size: 14px; }
    .cust-finish-wrapper { margin-top: 10px; }

    /* Barra mobile: visível */
    .cust-mobile-bar {
        display: flex;
        align-items: center;
        background: #0f172a;
        padding: 0 8px;
        height: 60px;
        gap: 6px;
        flex-shrink: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .cust-mobile-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: none;
        border: none;
        color: rgba(255,255,255,0.55);
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
        padding: 6px;
        border-radius: 8px;
        transition: color 0.2s, background 0.2s;
        height: 48px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .cust-mobile-tab i { font-size: 18px; }
    .cust-mobile-tab.active,
    .cust-mobile-tab:hover {
        color: white;
        background: rgba(255,255,255,0.12);
    }

    .cust-mobile-finish-btn {
        flex: 2;
        background: linear-gradient(135deg, #22c55e, #16a34a);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        box-shadow: 0 4px 14px rgba(34,197,94,0.4);
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .cust-mobile-finish-btn:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(34,197,94,0.3);
    }

    /* Overlay de confirmação sem border-radius em mobile */
    .cust-confirm-overlay { border-radius: 0; }
    .cust-confirm-box { padding: 24px 20px; }
    .cust-confirm-actions { flex-direction: column; }
    .cust-btn-back, .cust-btn-exit { width: 100%; padding: 14px; }
}

@media (max-height: 600px) and (max-width: 768px) {
    /* Telas muito pequenas (landscape) */
    .cust-canvas-area { min-height: 160px; }
    .cust-col-tools, .cust-col-summary { max-height: 40vh; }
    .cust-mobile-bar { height: 52px; }
}
