/**
 * BShape Product Configurator Styles
 * Tabs Responsive + Icons Support
 */

 .bshape-configurator {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Base Price */
.bshape-base-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border-radius: 8px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
}

.bshape-field-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.bshape-price-value {
    font-weight: 700;
    font-size: 20px;
    color: #000;
}

/* Characteristics */
.bshape-characteristics {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.bshape-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.bshape-field {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.bshape-field:last-child {
    border-bottom: none;
}

.bshape-field-value {
    color: #666;
    font-weight: 500;
}

/* ========================================
   TABS NAVIGATION (Desktop) - Minimalista
   ======================================== */

.bshape-configuration-tabs {
    margin: 30px 0;
}

.bshape-tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.bshape-tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 24px;
    background: #000;
    border: 1px solid #000;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover state */
.bshape-tab-btn:hover {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

/* Active state */
.bshape-tab-btn.active {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

/* Ocultar iconos - solo mostrar texto */
.bshape-tab-icon {
    display: none;
}

.bshape-tab-title {
    font-size: 14px;
}

/* ========================================
   TAB PANELS
   ======================================== */

.bshape-tabs-content {
    position: relative;
}

.bshape-tab-panel {
    display: none;
    animation: bshape-fade-in 0.3s ease;
}

.bshape-tab-panel.active {
    display: block;
}

@keyframes bshape-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion Headers (Hidden on desktop) */
.bshape-accordion-header {
    display: none;
}

.bshape-accordion-content {
    padding: 20px 0;
}

/* Ocultar icono del accordion también */
.bshape-accordion-header .bshape-tab-icon {
    display: none;
}

/* ========================================
   FIELD GROUPS
   ======================================== */

.bshape-field-group {
    margin-bottom: 30px;
}

.bshape-field-group:last-child {
    margin-bottom: 0;
}

/* ========================================
   MATERIAL COMBINED (Epoxy + PU en 2 columnas)
   ======================================== */

.bshape-material-combined-group {
    margin-bottom: 30px;
}

.bshape-material-combined-group .bshape-field-label-main {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* Contenedor de 2 columnas */
.bshape-material-columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Cada columna (Epoxy / PU) */
.bshape-material-column {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.bshape-material-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    text-align: center;
}

/* Opciones dentro de cada columna */
.bshape-material-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bshape-material-options .bshape-option-item {
    margin: 0;
}

/* Responsive: En móvil, columnas apiladas */
@media (max-width: 768px) {
    .bshape-material-columns-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.bshape-field-label-main {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

/* ========================================
   TABLA DE MEDIDAS (Special Format)
   ======================================== */

.bshape-medidas-table-container {
    margin-bottom: 35px;
}

.bshape-medidas-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    position: relative;
}

/* Smooth scrolling en mobile */
.bshape-medidas-table-wrapper {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Indicador de scroll en mobile */
@media (max-width: 767px) {
    .bshape-medidas-table-wrapper::after {
        content: '← Desliza →';
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 600;
        pointer-events: none;
        opacity: 0;
        animation: fade-in-out 3s ease-in-out;
    }
    
    @keyframes fade-in-out {
        0% { opacity: 0; }
        20% { opacity: 1; }
        80% { opacity: 1; }
        100% { opacity: 0; }
    }
}

.bshape-medidas-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

/* Table Header */
.bshape-medidas-table thead {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border-bottom: 2px solid #e0e0e0;
}

.bshape-medidas-table thead th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 700;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bshape-medidas-table thead th.bshape-table-select {
    width: 50px;
    padding: 15px 8px;
}

/* Table Body */
.bshape-medidas-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bshape-medidas-table tbody tr:last-child {
    border-bottom: none;
}

.bshape-medidas-table tbody tr:hover {
    background: #fafafa;
}

.bshape-medidas-table tbody tr.selected {
    background: #f0f7ff;
    border-color: #2196F3;
}

.bshape-medidas-table tbody td {
    padding: 16px 12px;
    text-align: center;
    color: #555;
    font-size: 14px;
}

.bshape-medidas-table tbody td strong {
    color: #333;
    font-weight: 600;
}

/* Radio Button Column */
.bshape-table-select {
    width: 50px;
    padding: 16px 8px !important;
}

.bshape-medida-radio-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.bshape-medida-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom Radio Button */
.bshape-radio-custom {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.bshape-medida-radio:checked + .bshape-radio-custom {
    border-color: #2196F3;
    background: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.bshape-medida-radio:checked + .bshape-radio-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.bshape-medida-radio-wrapper:hover .bshape-radio-custom {
    border-color: #999;
    transform: scale(1.1);
}

/* Price Column Styling */
.bshape-table-precio {
    font-weight: 700;
}

.bshape-medida-price {
    color: #27ae60;
    font-size: 15px;
    font-weight: 700;
}

/* Precio base (cuando es 0) - solo guion verde */
.bshape-medida-price.bshape-price-base {
    color: #27ae60;
    font-size: 20px;
    font-weight: 700;
}

/* Selected Row Highlighting */
.bshape-medida-row.selected {
    background: #e3f2fd;
}

.bshape-medida-row.selected td {
    color: #1976D2;
}

/* Mantener precio verde incluso en fila seleccionada */
.bshape-medida-row.selected .bshape-medida-price {
    color: #27ae60 !important;
}

.bshape-medida-row.selected .bshape-medida-price.bshape-price-base {
    color: #27ae60 !important;
}

/* Column Widths (Desktop) */
.bshape-table-ancho,
.bshape-table-alto,
.bshape-table-espesor {
    width: 15%;
}

.bshape-table-volumen {
    width: 18%;
}

.bshape-table-precio {
    width: 20%;
}

/* ========================================
   OPTIONS GRID (General)
   ======================================== */

.bshape-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.bshape-options-grid.with-icons {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.bshape-option-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bshape-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bshape-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
    min-height: 100px;
    gap: 8px;
    height: 100%; /* Asegura altura igual */
}

.bshape-option-item:hover .bshape-option-content {
    border-color: #999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.bshape-option-item.selected .bshape-option-content {
    border-color: #000;
    background: #f8f8f8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

/* Iconos generales (para colas, etc) */
.bshape-option-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bshape-option-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bshape-option-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bshape-option-label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.bshape-option-price {
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
    margin-top: 4px;
}

.bshape-option-price.discount {
    color: #e74c3c;
}

.bshape-option-item.selected .bshape-option-label {
    color: #000;
}

.bshape-option-item.selected .bshape-option-price {
    font-weight: 700;
}

/* ========================================
   ARTE & LOGO GRID (Estilo "Square Tiles")
   ======================================== */

/* Grid específico para Arte / Diseño - 3 columnas */
[data-field="seleccionar_arte"] .bshape-options-grid.with-icons {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

/* Grid específico para Logo - 2 columnas */
[data-field="logo"] .bshape-options-grid.with-icons {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
}

/* Estilo para items de Arte y Logo */
[data-field="seleccionar_arte"] .bshape-option-content,
[data-field="logo"] .bshape-option-content {
    padding: 0 !important; /* Quitamos padding del contenedor principal */
    overflow: hidden; /* Para que la imagen no salga en hover */
    justify-content: flex-start; /* Alineación superior */
    background: #fff;
}

/* CONTENEDOR DE IMAGEN CUADRADO PERFECTO */
[data-field="seleccionar_arte"] .bshape-option-icon,
[data-field="logo"] .bshape-option-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* FUERZA EL CUADRADO */
    margin-bottom: 0;
    position: relative;
    background: #f4f4f4; /* Fondo gris muy claro para diferenciar */
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGEN DENTRO DEL CUADRADO */
[data-field="seleccionar_arte"] .bshape-option-icon img,
[data-field="logo"] .bshape-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Muestra imagen completa sin cortar */
    padding: 10px; /* Margen interno para que el logo "respire" */
    position: absolute;
    top: 0;
    left: 0;
}

/* INFO DEBAJO DE LA IMAGEN */
[data-field="seleccionar_arte"] .bshape-option-info,
[data-field="logo"] .bshape-option-info {
    padding: 12px 10px;
    background: #fff;
    flex-grow: 1; /* Ocupa el espacio restante para igualar alturas */
    justify-content: center;
}

/* Ajustes de texto para Arte/Logo */
[data-field="seleccionar_arte"] .bshape-option-label,
[data-field="logo"] .bshape-option-label {
    font-size: 14px;
    margin-bottom: 0;
}

/* ========================================
   PRICE SUMMARY
   ======================================== */

.bshape-price-summary {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0 20px;
    border: 3px solid #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bshape-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bshape-total-label {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.bshape-total-price {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    transition: all 0.3s ease;
}

.bshape-total-price.price-updated {
    transform: scale(1.08);
    color: #27ae60;
}

/* ========================================
   ACTIONS
   ======================================== */

.bshape-actions {
    margin-top: 20px;
    margin-bottom: 25px;
}

.bshape-add-to-cart-btn {
    width: 100%;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bshape-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #222 0%, #444 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.bshape-add-to-cart-btn:active {
    transform: translateY(0);
}

.bshape-add-to-cart-btn:disabled,
.bshape-add-to-cart-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.bshape-add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bshape-spin 0.6s linear infinite;
}

@keyframes bshape-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* ========================================
   SELECTION SUMMARY (Resumen de configuración)
   ======================================== */

.bshape-selection-summary {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Header del resumen */
.bshape-summary-header {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    padding: 15px 20px;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.bshape-summary-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

/* Contenido del resumen */
.bshape-summary-content {
    padding: 20px;
    text-align: center;
}

/* Mensaje cuando está vacío */
.bshape-summary-empty {
    color: #999;
    font-style: italic;
    margin: 0;
    padding: 10px 0;
    font-size: 14px;
}

/* Lista de selecciones */
.bshape-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    text-align: left;
}

/* Item individual de la lista */
.bshape-summary-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    font-size: 15px;
    line-height: 1.6;
}

.bshape-summary-item:last-child {
    border-bottom: none;
}

.bshape-summary-item:hover {
    background: #fafafa;
}

/* Nombre del campo (característica) */
.bshape-summary-field {
    font-weight: 700;
    color: #333;
    display: inline-block;
    min-width: 150px;
}

/* Valor seleccionado */
.bshape-summary-value {
    color: #666;
    font-weight: 500;
}

/* Animación cuando se actualiza */
.bshape-summary-list.summary-updated {
    animation: bshape-summary-pulse 0.3s ease;
}

@keyframes bshape-summary-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* ========================================
   MESSAGES
   ======================================== */

.bshape-messages {
    margin-top: 15px;
}

.bshape-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: bshape-slide-in 0.3s ease;
    font-weight: 500;
}

@keyframes bshape-slide-in {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bshape-message-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.bshape-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.bshape-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #bee5eb;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .bshape-tab-btn {
        min-width: 130px;
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .bshape-tab-title {
        font-size: 13px;
    }
    
    .bshape-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* Mantener grids específicos en tablet */
    [data-field="seleccionar_arte"] .bshape-options-grid.with-icons {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    [data-field="logo"] .bshape-options-grid.with-icons {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (Accordion Mode)
   ======================================== */

@media (max-width: 767px) {
    .bshape-configurator {
        padding: 20px 15px;
    }
    
    /* Hide tabs navigation on mobile */
    .bshape-tabs-nav {
        display: none;
    }
    
    /* Show accordion headers on mobile - Estilo minimalista */
    .bshape-accordion-header {
        display: block;
        cursor: pointer;
        user-select: none;
    }
    
    .bshape-accordion-title {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        background: #000;
        border: 1px solid #000;
        border-radius: 15px;
        margin: 0 0 12px 0;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }
    
    /* Accordion activo (abierto) */
    .bshape-tab-panel.active .bshape-accordion-title {
        background: #fff;
        color: #000;
        border: 1px solid #000;
    }
    
    /* Ocultar icono en mobile también */
    .bshape-accordion-title .bshape-tab-icon {
        display: none;
    }
    
    .bshape-accordion-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 12px;
    }
    
    .bshape-tab-panel.active .bshape-accordion-arrow {
        transform: rotate(180deg);
    }
    
    /* Accordion content starts hidden */
    .bshape-accordion-content {
        display: none;
        padding: 0 10px 20px;
    }
    
    .bshape-tab-panel.active .bshape-accordion-content {
        display: block;
    }
    
    /* Reset tab panel display */
    .bshape-tab-panel {
        display: block;
        margin-bottom: 15px;
    }
    
    .bshape-tab-panel.active {
        animation: none;
    }
    
    /* Adjust options grid */
    .bshape-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .bshape-options-grid.with-icons {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    /* Mantener grid de 3 columnas para Arte / Diseño en mobile */
    [data-field="seleccionar_arte"] .bshape-options-grid.with-icons {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }
    
    /* Mantener grid de 2 columnas para Logo en mobile */
    [data-field="logo"] .bshape-options-grid.with-icons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    /* Ajustes específicos para Arte/Logo en mobile */
    [data-field="seleccionar_arte"] .bshape-option-info,
    [data-field="logo"] .bshape-option-info {
        padding: 10px 5px;
    }
    
    [data-field="seleccionar_arte"] .bshape-option-icon img,
    [data-field="logo"] .bshape-option-icon img {
        padding: 5px;
    }

    .bshape-option-content {
        padding: 15px 10px;
        min-height: 85px;
    }
    
    .bshape-option-icon {
        width: 50px;
        height: 50px;
    }
    
    .bshape-option-label {
        font-size: 13px;
    }
    
    .bshape-option-price {
        font-size: 12px;
    }
    
    /* Price summary adjustments */
    .bshape-total-price {
        font-size: 26px;
    }
    
    .bshape-add-to-cart-btn {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .bshape-base-price {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Responsive - Tabla de Medidas en Tablet */
@media (max-width: 1024px) {
    .bshape-medidas-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bshape-medidas-table {
        font-size: 13px;
    }
    
    .bshape-medidas-table thead th {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .bshape-medidas-table tbody td {
        padding: 14px 10px;
        font-size: 13px;
    }
    
    .bshape-radio-custom {
        width: 20px;
        height: 20px;
    }
    
    .bshape-medida-radio:checked + .bshape-radio-custom::after {
        font-size: 12px;
    }
}

/* Responsive - Tabla de Medidas en Mobile (mantener formato tabla) */
@media (max-width: 767px) {
    .bshape-medidas-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    .bshape-medidas-table {
        font-size: 12px;
        min-width: 600px; /* Fuerza scroll horizontal */
    }
    
    .bshape-medidas-table thead th {
        padding: 10px 8px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .bshape-medidas-table tbody td {
        padding: 12px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .bshape-table-select {
        padding: 12px 6px !important;
    }
    
    .bshape-radio-custom {
        width: 18px;
        height: 18px;
    }
    
    .bshape-medida-radio:checked + .bshape-radio-custom::after {
        font-size: 11px;
    }
    
    .bshape-medida-price {
        font-size: 13px;
    }
}

/* Mobile muy pequeño */
@media (max-width: 480px) {
    .bshape-medidas-table {
        font-size: 11px;
        min-width: 550px;
    }
    
    .bshape-medidas-table thead th {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .bshape-medidas-table tbody td {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .bshape-radio-custom {
        width: 16px;
        height: 16px;
    }
    
    .bshape-medida-radio:checked + .bshape-radio-custom::after {
        font-size: 10px;
    }
    
    .bshape-medida-price {
        font-size: 13px;
    }
    
    .bshape-medida-price.bshape-price-base {
        font-size: 18px;
    }
    
    /* Ajustes extremos para Grid en pantallas pequeñas */
    [data-field="seleccionar_arte"] .bshape-options-grid.with-icons {
        gap: 10px;
    }
    
    [data-field="logo"] .bshape-options-grid.with-icons {
        gap: 10px;
    }
}

/* Resumen de selecciones en Mobile */
@media (max-width: 767px) {
    .bshape-summary-title {
        font-size: 15px;
    }
    
    .bshape-summary-item {
        padding: 10px 12px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .bshape-summary-field {
        min-width: auto;
        font-size: 14px;
    }
    
    .bshape-summary-value {
        font-size: 14px;
        padding-left: 10px;
    }
}