/* ============================================
   RESPONSIVE PRODUCT CONFIGURATION STYLES
   ============================================ */

.test_container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
}

.test_container .cfg-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
}


/* Configuration Option Groups */
.config-option-group {
    margin-bottom: clamp(20px, 4vw, 30px);
}

.config-option-group h3,
.config-option-group .h3 {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    word-wrap: break-word;
}

/* Dropdown Styling */
.config-option-group select,
.config-option-group .form-control {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: clamp(14px, 2.5vw, 15px);
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.config-option-group select:hover,
.config-option-group .form-control:hover {
    border-color: #00a6ff;
}

.config-option-group select:focus,
.config-option-group .form-control:focus {
    outline: none;
    border-color: #00a6ff;
    box-shadow: 0 0 0 3px rgba(0,166,255,0.1);
}

/* Selected Option Display */
.config-option-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.config-option-selected img {
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    object-fit: contain;
    border-radius: 6px;
}

.config-option-selected .option-name {
    flex: 1;
    min-width: 150px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: clamp(14px, 2.5vw, 16px);
}

.config-option-selected .option-price {
    font-weight: 600;
    color: #1a1a1a;
    font-size: clamp(16px, 3vw, 18px);
    white-space: nowrap;
}


.product-configuration-sidebar-wrapper .panel,
.product-configuration-sidebar-wrapper .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    overflow: hidden;
}

/* Summary Header */
.product-configuration-sidebar-wrapper .panel-heading,
.product-configuration-sidebar-wrapper .card-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: clamp(15px, 3vw, 20px);
}

.product-configuration-sidebar-wrapper .panel-title,
.product-configuration-sidebar-wrapper .h2 {
    font-size: clamp(18px, 3.5vw, 20px);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* Configuration Summary Table */
.config-table {
    margin: 0;
    width: 100%;
    table-layout: fixed;
}

.config-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

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

.config-table tbody td {
    padding: clamp(12px, 2.5vw, 16px) clamp(10px, 3vw, 20px);
    vertical-align: middle;
    word-wrap: break-word;
}

.config-table .config-item-name {
    font-size: clamp(12px, 2.2vw, 14px);
    color: #666;
    margin-bottom: 4px;
}

.config-table .config-item-value {
    font-size: clamp(13px, 2.5vw, 15px);
    color: #1a1a1a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.config-table .config-item-value .fa-check {
    color: #00d084;
    font-size: clamp(14px, 2.8vw, 16px);
}

.config-table .config-item-value .fa-times {
    color: #ccc;
    font-size: clamp(12px, 2.5vw, 14px);
}

.config-table .config-item-price {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    font-size: clamp(14px, 2.8vw, 16px);
}

/* Summary Footer - Total Price */
.config-table tfoot {
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

.config-table tfoot td {
    padding: clamp(15px, 3vw, 20px);
}

.config-table tfoot .price {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    color: #1a1a1a;
}

.config-table tfoot .vat_info {
    margin: 4px 0 0 0;
    font-size: clamp(11px, 2vw, 12px);
}

/* Panel Footer - Add to Cart */
.panel-footer,
.card-footer {
    padding: clamp(15px, 3vw, 20px);
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

/* Quantity Controls */
.qty-wrapper,
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.qty-wrapper button,
.quantity-controls button {
    width: clamp(36px, 8vw, 40px);
    height: clamp(36px, 8vw, 40px);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: clamp(16px, 3vw, 18px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-wrapper button:hover,
.quantity-controls button:hover {
    border-color: #00a6ff;
    color: #00a6ff;
    background: #f0f9ff;
}

.qty-wrapper input,
.quantity-controls input {
    width: clamp(50px, 12vw, 60px);
    height: clamp(36px, 8vw, 40px);
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 500;
}

/* Modal Styling (for popup mode) */
.modal#cfg-container .modal-dialog {
    max-width: min(1200px, 95vw);
}

.modal#cfg-container .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.modal#cfg-container .modal-header {
    padding: clamp(15px, 3vw, 24px) clamp(15px, 4vw, 30px);
    border-bottom: 1px solid #e0e0e0;
}

.modal#cfg-container .modal-title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 600;
    color: #1a1a1a;
}

.modal#cfg-container .modal-body {
    padding: clamp(15px, 4vw, 30px);
}

/* Tab Navigation */
#cfg-modal-tabs.nav {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: clamp(15px, 4vw, 30px);
    gap: clamp(4px, 1vw, 8px);
    flex-wrap: wrap;
}

#cfg-modal-tabs .nav-item {
    flex: 1 1 auto;
    min-width: fit-content;
}

#cfg-modal-tabs .nav-link {
    padding: clamp(10px, 2.5vw, 14px) clamp(12px, 3vw, 20px);
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    border-radius: 8px 8px 0 0;
    font-size: clamp(13px, 2.5vw, 15px);
    white-space: nowrap;
}

#cfg-modal-tabs .nav-link:hover {
    color: #00a6ff;
    background: #f0f9ff;
}

#cfg-modal-tabs .nav-link.active {
    color: #00a6ff;
    border-bottom-color: #00a6ff;
    background: #f0f9ff;
}

#cfg-modal-tabs .nav-link i {
    margin-right: clamp(4px, 1.5vw, 8px);
}

#cfg-modal-tabs .cfg-tab-total {
    flex: 0 0 auto;
    padding: clamp(10px, 2.5vw, 14px) clamp(15px, 3vw, 24px);
    background: #f8f9fa;
    border-radius: 8px;
    pointer-events: none;
}

#cfg-modal-tabs .cfg-tab-total #cfg-price {
    font-size: clamp(16px, 3.5vw, 20px);
    color: #1a1a1a;
}

/* Footnote */
.cfg-footnote {
    padding: clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 20px);
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
    color: #666;
    font-size: clamp(12px, 2.2vw, 14px);
}

.footnote-reference {
    color: #00a6ff;
    font-weight: 600;
}

/* Config Options List Styling */
.cfg-group-list-wrapper {
    width: 100%;
    max-width: 100%;
}

.cfg-group {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: clamp(20px, 4vw, 32px);
    text-decoration: none !important;
}

.cfg-group.visited {
    border-left: none;
}

/* Group Heading */
.cfg-group .hr-sect,
.cfg-group .h3 {
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
    word-wrap: break-word;
}

/* Group Info Badge */
.cfg-group-info {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.cfg-group-info.sticky-top {
    position: static !important;
}

.cfg-group-info .badge {
    position: relative;
    z-index: 1;
    font-size: clamp(11px, 2vw, 12px);
    padding: 6px clamp(12px, 2.5vw, 16px);
    font-weight: 500;
    border-radius: 20px;
    background: #fafdff;
    color: #656565;
    border: 0.75px solid #cfcfcf !important;
}

/* Group Description */
.group-description {
    margin-bottom: 6px;
}

.group-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: clamp(13px, 2.5vw, 15px);
}

/* Config Item Cards (Radio/Checkbox) */
.config-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 2.5vw, 16px);
    padding: clamp(15px, 3vw, 20px);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.config-item:hover {
    border-color: #00a6ff;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,166,255,0.15);
}

.config-item.active {
    border-color: #00a6ff;
    background: #e3f2fd;
}

.config-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.config-item.disabled:hover {
    border-color: #e0e0e0;
    transform: none;
    box-shadow: none;
}

/* Checkmark Badge */
.config-item .badge-circle {
    position: absolute;
    top: clamp(12px, 2.5vw, 16px);
    right: clamp(12px, 2.5vw, 16px);
    width: clamp(24px, 5vw, 28px);
    height: clamp(24px, 5vw, 28px);
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 2.5vw, 14px);
    transition: all 0.2s ease;
}

.config-item.active .badge-circle {
    background: #00d084;
}

/* Recommendation Badge */
.config-item.bg-recommendation {
    border-color: #ffd700;
    background: #fffbf0;
}

.config-item.bg-recommendation::before {
    content: "Empfohlen";
    position: absolute;
    top: -10px;
    left: clamp(15px, 3vw, 20px);
    background: #ffd700;
    color: #000;
    padding: 4px clamp(8px, 2vw, 12px);
    border-radius: 12px;
    font-size: clamp(10px, 1.8vw, 11px);
    font-weight: 600;
    text-transform: uppercase;
}

/* Hidden Radio/Checkbox Inputs */
.cfg-swatch {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Item Image */
.config-item-image {
    flex-shrink: 0;
    width: clamp(60px, 12vw, 80px);
    height: clamp(60px, 12vw, 80px);
}

.config-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Item Content */
.config-item-content {
    flex: 1;
    min-width: 0;
    padding-right: clamp(30px, 6vw, 40px);
}

.config-item-name {
    font-size: clamp(14px, 2.8vw, 16px);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    word-wrap: break-word;
}

.config-item-description {
    font-size: clamp(13px, 2.4vw, 14px);
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.config-item-price {
    font-size: clamp(16px, 3.2vw, 18px);
    font-weight: 700;
    color: #1a1a1a;
}

.config-item-price .price-discount {
    font-size: clamp(12px, 2.5vw, 14px);
    color: #e74c3c;
    margin-left: 8px;
    text-decoration: line-through;
}

.config-item-price .price-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-size: clamp(11px, 2vw, 12px);
    margin-left: 8px;
}

/* Quantity Input for Items */
.config-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.config-item-quantity label {
    font-size: clamp(13px, 2.5vw, 14px);
    color: #666;
    margin: 0;
}

.config-item-quantity input {
    width: clamp(60px, 12vw, 70px);
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: clamp(13px, 2.5vw, 14px);
}

/* Dropdown Style Config Items */
.config-option-dropdown {
    margin-bottom: 6px;
}

.config-option-dropdown .custom-select {
    width: 100%;
    padding: clamp(10px, 2vw, 12px) clamp(35px, 7vw, 40px) clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
    border: 0.75px solid #ebebeb;
    border-radius: 10px;
    font-size: clamp(13px, 2.5vw, 15px);
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right clamp(12px, 2.5vw, 16px) center;
    background-size: clamp(12px, 2.5vw, 14px);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.config-option-dropdown .custom-select:hover {
    border-color: #00cfe8;
    background-color: #f0f9ff;
}

.config-option-dropdown .custom-select:focus {
    outline: none;
    border-color: #0095e8;
    box-shadow: 0 0 0 3px rgba(0,166,255,0.15);
    background-color: #fff;
}

/* Dropdown Item Details (Collapsed) */
.cfg-drpdwn-item {
    padding: clamp(10px, 3vw, 12px);
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #00cfe8;
    margin-top: 10px;
}

.cfg-drpdwn-item.show {
    animation: slideDown 0.3s ease;
}

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

/* Error Messages */
.js-cfg-group-error,
.box_error {
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    font-size: clamp(13px, 2.4vw, 14px);
    margin-bottom: 16px;
    word-wrap: break-word;
}

/* Sticky Bottom (Finish Button) */
.sticky-bottom {
    position: sticky;
    bottom: 0;
    padding: clamp(15px, 3vw, 20px) 0;
    background: linear-gradient(to top, #fff 80%, transparent);
    margin-top: clamp(20px, 4vw, 30px);
    z-index: 10;
}

.sticky-bottom .nav {
    display: flex;
    justify-content: center;
}

.sticky-bottom .btn {
    padding: clamp(12px, 2.5vw, 14px) clamp(30px, 6vw, 40px);
    font-size: clamp(14px, 2.8vw, 16px);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sticky-bottom .btn-secondary {
    background: #00a6ff;
    border-color: #00a6ff;
    color: #fff;
}

.sticky-bottom .btn-secondary:hover:not(:disabled) {
    background: #0095e8;
    border-color: #0095e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,166,255,0.3);
}

.sticky-bottom .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Stock Status */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: clamp(11px, 2vw, 12px);
    font-weight: 500;
    margin-top: 8px;
}

.stock-status.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.stock-status i {
    font-size: clamp(9px, 1.8vw, 10px);
}

/* Simplified dropdown item display */
.cfg-item-simple-display {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 16px);
    flex-wrap: wrap;
}

.cfg-item-simple-display .cfg-item-thumb {
    width: clamp(50px, 10vw, 60px);
    height: clamp(50px, 10vw, 60px);
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.cfg-item-simple-display .cfg-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2.5vw, 16px);
    min-width: 0;
    flex-wrap: wrap;
}

.cfg-item-simple-display .config-item-name {
    font-size: clamp(14px, 2.8vw, 16px);
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    min-width: 120px;
    word-wrap: break-word;
}

.cfg-item-simple-display .config-item-price {
    font-size: clamp(16px, 3.2vw, 18px);
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

/* ============================================
   CONFIGURATION SUMMARY ITEMS
   ============================================ */

.cfg-item-konfiguration {
    padding: clamp(10px, 2vw, 14px) clamp(12px, 3vw, 16px) !important;
    background: #f8f9fa;
    border-radius: clamp(8px, 1.5vw, 10px);
    border-left: clamp(3px, 0.5vw, 4px) solid #00ed04;
    margin-top: clamp(8px, 1.5vw, 12px);
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    width: 100%;
}

.cfg-item-konfiguration [class*="col-"] {
    padding: clamp(4px, 1vw, 6px) clamp(6px, 1.5vw, 8px) !important;
    display: flex;
    align-items: center;
}

.cfg-item-konfiguration .text-nowrap-util {
    font-weight: 600;
    font-size: clamp(14px, 2.8vw, 15px);
    color: #333;
    white-space: nowrap;
}

.cfg-item-konfiguration .word-break {
    font-size: clamp(14px, 2.8vw, 15px);
    color: #1a1a1a;
    word-break: break-word;
    line-height: 1.4;
}

.cfg-item-konfiguration .cfg-price {
    font-weight: 700;
    font-size: clamp(14px, 3vw, 16px);
    color: #00ed04;
    text-align: right;
    white-space: nowrap;
}

.cfg-item-konfiguration.show {
    animation: slideDownSmooth 0.3s ease;
}

@keyframes slideDownSmooth {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


    /* Ascundem grupurile de tip "pas" atunci când trebuie */
    .cfg-group-step.cfg-group-step--hidden {
        display: none !important;
    }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop (1200px and up) */

    .cfg-group-list-wrapper {
        max-width: 100%;
    }
    
    .cfg-group-info.sticky-top {
        position: static !important;
    }
    /* Group Info Badge - Fix pentru inline styles */
.cfg-group-info {
    position: static !important;
    top: auto !important;
    margin-bottom: 12px;
}

.cfg-group-info .badge {
    position: relative;
    z-index: 1;
    font-size: clamp(11px, 2vw, 12px);
    padding: 6px clamp(12px, 2.5vw, 16px);
    font-weight: 500;
    border-radius: 20px;
    background: #fafdff;
    color: #656565;
    border: 0.75px solid #cfcfcf !important;
}

/* Forțează poziționarea normală în fluxul documentului */
.cfg-group-info[style*="top"] {
    top: auto !important;
    position: static !important;
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    #cfg-container {
        padding: 0 10px;
    }

    
    #cfg-modal-tabs .nav-link-text {
        display: none;
    }
    
    #cfg-modal-tabs .nav-link i {
        margin-right: 0;
    }
    
    .cfg-group {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .config-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .config-item-content {
        padding-right: 30px;
        width: 100%;
    }
    
    .config-item .badge-circle {
        top: 10px;
        right: 10px;
    }
    
    .config-item-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }
    
    .config-table tbody td {
        display: block;
        width: 100%;
        padding: 10px 15px;
    }
    
    .config-table .config-item-price {
        text-align: left;
        margin-top: 5px;
    }
    
    .modal#cfg-container .modal-dialog {
        margin: 0.5rem;
    }
    
    .cfg-item-konfiguration {
        padding: 10px 12px !important;
    }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {

    
    .config-item {
        gap: 10px;
        padding: 12px;
    }
    
    .config-item.bg-recommendation::before {
        font-size: 9px;
        padding: 3px 8px;
        left: 12px;
    }
    
    .cfg-item-simple-display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cfg-item-simple-display .cfg-item-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cfg-item-simple-display .config-item-name {
        width: 100%;
    }
    
    .qty-wrapper,
    .quantity-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    #cfg-modal-tabs.nav {
        gap: 4px;
    }
    
    #cfg-modal-tabs .nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    #cfg-modal-tabs .cfg-tab-total {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .cfg-item-konfiguration {
        padding: 8px 10px !important;
    }
    
    .cfg-item-konfiguration [class*="col-"] {
        padding: 3px 5px !important;
        font-size: 13px;
    }
}

/* Extra Small Mobile (below 400px) */
@media (max-width: 399px) {
    .config-option-selected {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .config-option-selected .option-name,
    .config-option-selected .option-price {
        width: 100%;
    }
    
    .sticky-bottom .btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Extra Small Mobile - Configuration Items */
@media (max-width: 375px) {
    .cfg-item-konfiguration {
        padding: 8px 10px !important;
    }
    
    .cfg-item-konfiguration [class*="col-"] {
        padding: 3px 5px !important;
    }
    
    .cfg-item-konfiguration .text-nowrap-util,
    .cfg-item-konfiguration .word-break,
    .cfg-item-konfiguration .cfg-price {
        font-size: 13px;
    }
}

/* Tablets - Configuration Items */
@media (min-width: 768px) and (max-width: 991px) {
    .cfg-item-konfiguration {
        padding: 12px 14px !important;
    }
}

/* Desktop - Configuration Items */
@media (min-width: 992px) {
    .cfg-item-konfiguration {
        padding: 14px 16px !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .config-item {
        touch-action: manipulation;
    }
    
    .config-item:active {
        transform: scale(0.98);
    }
    
    .config-option-dropdown .custom-select,
    .qty-wrapper button,
    .quantity-controls button {
        min-height: 44px;
    }
    
    .sticky-bottom .btn {
        min-height: 48px;
    }
}

/* Print Styles */
@media print {
    .sticky-bottom,
    .cfg-group-info .badge,
    .config-item .badge-circle {
        display: none;
    }
    
    .config-item {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .cfg-group {
        page-break-after: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .config-item {
        border-width: 3px;
    }
    
    .config-item:hover,
    .config-item.active {
        border-width: 4px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .config-item,
    .config-option-dropdown .custom-select,
    .sticky-bottom .btn,
    .cfg-drpdwn-item,
    .cfg-item-konfiguration {
        transition: none;
        animation: none;
    }
    
    .config-item:hover {
        transform: none;
    }
}


    .cfg-group-step.cfg-group-step--hidden {
        display: none !important;
    }


/* Asigurăm full-width pentru configuratorul din listă */
#product-configurator,
.cfg-group-list-wrapper,
.test_container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Nu lăsăm nimic să îl împingă în dreapta */
#product-configurator,
.cfg-group-list-wrapper,
.test_container {
    float: none;
    text-align: left;
}

#product-configurator,
.cfg-group-list-wrapper,
.test_container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    float: none;
    text-align: left;
}


