
.card:not(.product-card),
.btn,
.alert,
.nav-link,
.form-control {
    border-radius: 8px !important;
}


.nav-menu .nav-link,
.btn-group-toggle label.btn,
.btn-custom-group .btn-custom {
    border-radius: 6px !important;
}


.os-button {
    border-radius: 0 !important;  
}


.config-menu {
    border-radius: 0 !important; 
    overflow: hidden;
}


.product-card {
    
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(224,224,224,0.8);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 4px 24px -6px rgba(63,81,181,0.08);
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease-out,
        border-color 0.2s linear;
}


.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(63,81,181,0.4);
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.08),
        0 8px 32px -4px rgba(63,81,181,0.12);
}


.product-card.active {
    background: linear-gradient(145deg, #f8f9ff 0%, #f0f3ff 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(63,81,181,0.1);
}


.product-card .card-header {
    background: linear-gradient(95deg, #f8f9fa 0%, #f1f3f5 100%);
    border-bottom: 1px solid rgba(224,224,224,0.6);
    position: relative;
}


.card-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(63,81,181,0) 0%,
        rgba(63,81,181,0.2) 50%,
        rgba(63,81,181,0) 100%
    );
}


.product-card .card-body {
    background: linear-gradient(
        to bottom,
        rgba(250,250,250,0.6) 0%,
        rgba(255,255,255,0.8) 30%
    );
}



* {
    transition: 
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(63,81,181,0.1);
}


.nav-menu .nav-link:hover:after,
.btn-custom-group .btn-custom:hover {
    opacity: 0.1;
    transform: scale(1.02);
}


@media (max-width: 768px) {
    
    .card:not(.product-card),
    .btn {
        border-radius: 6px !important;
    }
    
    
    .product-card {
        box-shadow: 
            0 2px 6px rgba(0,0,0,0.06),
            0 4px 16px -4px rgba(63,81,181,0.08);
    }
    
    
    .card-header::after {
        left: 16px;
        right: 16px;
    }
}



.menu-card {
    background: #fff;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: none;
    margin-bottom: 24px;
}

.nav-menu, .card-body {
    padding: 24px;
}

.nav-section {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-label {
    color: #333;
    font-size: 14px;
    margin-right: 30px;
    min-width: 70px;
}

.nav-tips {
    margin-top: 4px;
    color: #999;
    font-size: 12px;
    padding-left: 100px;
}

.nav-section + .nav-tips {
    margin-bottom: 16px;
}


.nav-menu .nav-pills {
    margin: 0;
    flex: 1;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-menu .nav-link {
    color: var(--text-color);
    padding: 6px 15px;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 0;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.nav-menu .nav-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-menu .nav-link:hover:after {
    opacity: 0.1;
}

.nav-menu .nav-link.active:after {
    opacity: 0;
}

.nav-menu .nav-link.active {
    background: var(--primary-color);
    background: var(--gradient-primary);
    color: var(--primary-text);
    box-shadow: 0 2px 6px rgba(63, 81, 181, 0.2);
    transition: all 0.3s ease;
}


.sub-nav {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-nav .nav-link {
    font-size: 13px;
    padding: 6px 15px;
    background: #f5f5f5;
    border-radius: 0;
}

.sub-nav .nav-link.active {
    background: var(--primary-color);
    background: var(--gradient-primary);
    color: var(--primary-text);
    box-shadow: 0 2px 6px rgba(63, 81, 181, 0.2);
}


.products-section {
    display: flex;
    align-items: flex-start;
}

.products-section .nav-label {
    padding-top: 15px;
}

.products-section .row {
    flex: 1;
    margin-right: 0;
    margin-left: 0;
}

.product-card {
    height: auto;
    min-height: 100%;
    border: 1px solid #e6e6e6;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f5f5f5;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    opacity: 1;
    background: #fff;
}

.product-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    background: #fff;
    opacity: 1;
}

.product-card .card-header {
    padding: 16px;
    background: linear-gradient(90deg, #e9e9e9 0%, #d8d8d8 100%);
    border-bottom: 1px solid #e6e6e6;
    transition: all 0.3s ease;
}

.product-card.active .card-header {
    background: var(--primary-color);
    background: var(--gradient-primary);
}

.product-card.active .product-info h5 {
    color: #fff;
}

.product-card.active .product-icon {
    color: #fff;
    opacity: 1;
}

.product-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.product-icon {
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.8;
}

.product-info {
    flex: 1;
}

.product-info h5 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: normal;
}

.product-card .card-body {
    padding: 16px;
    border-radius: 0 0 4px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-text {
    margin-bottom: 0;
    flex: 1;
}

.product-card pre {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.desc-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.desc-label {
    color: #666;
    text-align: left;
}

.desc-value {
    color: #333;
    text-align: right;
}

.desc-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.color-999 {
    color: #999;
}

.col-sm-2-4 {
    position: relative;
    width: 100%;
    padding-right: 16px;
    padding-left: 0;
    margin-bottom: 16px;
}


@media (min-width: 1400px) {
    .col-sm-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}


@media (min-width: 1200px) and (max-width: 1399px) {
    .col-sm-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}


@media (min-width: 768px) and (max-width: 1199px) {
    .col-sm-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}


@media (min-width: 576px) and (max-width: 767px) {
    .col-sm-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 8px;
        padding-left: 8px;
    }
    
    .row {
        margin-right: -8px;
        margin-left: -8px;
    }
}


@media (max-width: 575px) {
    .col-sm-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }
}


@media (max-width: 1199px) {
    .product-card {
        height: auto;
    }
    
    .product-card .card-header {
        padding: 12px;
    }
    
    .product-card .card-body {
        padding: 12px;
    }
    
    .product-icon {
        font-size: 20px;
    }
    
    .product-info h5 {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .product-card {
        height: auto;
        min-height: auto;
    }
    
    .product-card .card-header {
        padding: 10px;
    }
    
    .product-card .card-body {
        padding: 10px;
    }
    
    .product-icon {
        font-size: 18px;
    }
    
    .product-info h5 {
        font-size: 13px;
    }
    
    .product-description {
        font-size: 12px;
    }
}


@media (max-width: 575px) {
    .product-card {
        margin-bottom: 10px;
    }
    
    .product-description {
        max-height: none;
        overflow-y: visible;
    }
}


.product-description,
.stock-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}


.config-section .btn-group-toggle {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: auto;
}


.menu-card .card-body .config-section .btn-group-toggle label.btn.btn-primary.btn-sm {
    float: none;
    margin: 0 10px 10px 0 !important;
    color: #333 !important;
    padding: 6px 15px;
    border-radius: 0 !important;
    font-size: 14px;
    transition: all 0.3s;
    background: #f5f5f5 !important;
    border: none !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 75px !important;
    justify-content: center;
}

.menu-card .card-body .config-section .btn-group-toggle label.btn.btn-primary.btn-sm:hover {
    color: var(--primary-color) !important;
    background-color: var(--primary-light) !important;
}

.menu-card .card-body .config-section .btn-group-toggle label.btn.btn-primary.btn-sm.active {
    background: var(--primary-color) !important;
    background: var(--gradient-primary) !important;
    color: var(--primary-text) !important;
    box-shadow: 0 2px 6px rgba(63, 81, 181, 0.2);
}


.menu-card .card-body .config-section .btn-group-toggle .btn input[type="radio"] {
    position: absolute;
    clip: rect(0,0,0,0);
    pointer-events: none;
}


.menu-card .card-body .config-section .btn-group-toggle .btn img {
    margin-right: 5px;
    vertical-align: middle;
    height: 20px;
}


.btn-group-toggle {
    display: inline-flex !important;
    flex-wrap: wrap !important;
}

.btn-group-toggle > .btn {
    flex: 0 0 auto;
}


.btn-custom-group {
    margin: 0;
    flex: 1;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.btn-custom-group .btn-custom {
    color: var(--text-color);
    padding: 6px 15px;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
    background: #f5f5f5;
    min-width: 75px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-custom-group .btn-custom:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.btn-custom-group .btn-custom.active {
    background: var(--primary-color);
    background: var(--gradient-primary);
    color: var(--primary-text);
    box-shadow: 0 2px 6px rgba(63, 81, 181, 0.2);
    border: none;
}


.btn-group > .btn-group:not(:last-child) > .btn, 
.btn-group > .btn:not(:last-child):not(.dropdown-toggle),
.btn-group > .btn-group:not(:first-child) > .btn, 
.btn-group > .btn:not(:first-child) {
    border-radius: 0 !important;
    margin-left: 0 !important;
}

.cycle-select-discount {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 5px;
    font-size: 12px;
    color: #e64a19;
    background-color: rgba(230, 74, 25, 0.1);
    border-radius: 3px;
}


.range-group {
    display: flex;
    align-items: center;
    flex: 1;
}

.os-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}


.input-group {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.input-group .flex-grow-1 {
    flex: 1;
    min-width: 0; 
}

.input-group .form-control {
    width: 100%;
}

.input-group .btn-light {
    flex-shrink: 0;
    padding: 6px 12px;
    height: 36px;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.config-section { 
    padding: 10px 0; 
}


.btn-primary.btn-sm { 
    margin-right: 10px; 
    transition: all 0.3s; 
}

.btn-primary.btn-sm:not(.active) { 
    background-color: #fff; 
    color: #2948DF; 
    border-color: #ddd; 
}

.btn-primary.btn-sm:hover:not(.active) { 
    border-color: #2948DF; 
}

.btn-primary.btn-sm.active { 
    background-color: #2948DF; 
    border-color: #2948DF; 
}


.configoption_range {
    -webkit-appearance: none;
    appearance: none;
    width: calc(100% - 100px);
    height: 4px;
    margin-right: 10px;
    background: #e9ecef;
    border-radius: 2px;
    outline: none;
    position: relative;
    top: 2px;
}

.configoption_range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(63, 81, 181, 0.2);
    position: relative;
    top: -6px;
}

.configoption_range::-webkit-slider-runnable-track {
    height: 4px;
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--value-percent, 0%), #e9ecef var(--value-percent, 0%), #e9ecef 100%);
    border-radius: 2px;
}

.configoption_range_val {
    width: 80px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 0;
    font-size: 14px;
    color: #495057;
    text-align: center;
    transition: all 0.3s;
}

.configoption_range_val:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}


.range-group {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.range-group .ml-2 {
    color: #666;
    font-size: 13px;
}


.form-control {
    display: block;
    width: 100%;
    padding: 0.47rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.input-group .form-control {
    flex: 1;
    margin-right: 10px;
    border-radius: 0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-light);
}

.form-control.is-invalid {
    border-color: #f46a6a;
    padding-right: calc(1.5em + 0.94rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.235rem) center;
    background-size: calc(0.75em + 0.47rem) calc(0.75em + 0.47rem);
}


.btn-light {
    color: #495057;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    padding: 0.47rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.input-group .btn-light {
    border: 1px solid #ced4da;
    background-color: #fff;
    color: var(--text-color);
    border-radius: 0;
}

.btn-light:hover {
    color: #495057;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.input-group .btn-light:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.position-relative {
    position: relative !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}


.config-dropdown {
    position: relative;
    display: inline-block;
    min-width: 120px;
    width: auto;
}

.config-button {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #dee2e6;
    border-radius: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    position: relative;
    color: #666;
    white-space: nowrap;
}

.config-button:hover {
    border-color: var(--primary-color);
}

.config-button:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -2px;
    border-width: 4px;
    border-style: solid;
    border-color: #666 transparent transparent transparent;
}

.config-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    width: auto;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.config-menu.show {
    display: block;
}

.config-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.config-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.config-item[data-selected="true"] {
    background-color: var(--primary-light);
    color: var(--primary-color);
}


.config-panel {
    padding: 15px;
    background: #fff;
}

.config-panel-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.config-panel-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
}

.config-panel-label {
    width: auto;
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
}

.config-panel-value {
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.cart-panel {
    padding: 15px;
    background: #fff;
}

.cart-panel-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.cart-panel-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
}

.cart-panel-label {
    width: auto;
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
}

.cart-panel-value {
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.panel-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px;
    padding: 0 15px;
}


.panel-content {
    max-height: calc(70vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}


.os-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.os-button {
    position: relative;
    width: 140px;
    background: #fff;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s;
}

.os-button:hover {
    border-color: var(--primary-color);
}

.os-button.active {
    border-color: var(--primary-color);
}

.os-main {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    color: #666;
}

.os-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.os-name {
    font-size: 14px;
}

.os-version {
    width: 100%;
}

.version-button {
    width: 100%;
    padding: 8px 16px;
    background: #fff;
    border: none;
    border-top: 1px solid #dee2e6;
    text-align: left;
    position: relative;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.version-button .button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.version-arrow {
    border-width: 4px;
    border-style: solid;
    border-color: #666 transparent transparent transparent;
    margin-left: 8px;
    flex-shrink: 0;
}

.version-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 160px;
    overflow-y: auto;
    width: 100%;
}

.version-menu::-webkit-scrollbar {
    width: 6px;
}

.version-menu::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.version-menu::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

.version-menu.show {
    display: block;
}

.version-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 40px;
    display: flex;
    align-items: center;
    white-space: normal;
    word-break: break-all;
    line-height: 1.4;
}

.version-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.version-item[data-selected="true"] {
    background-color: var(--primary-light);
    color: var(--primary-color);
}


.product-card.active .card-header,
.os-main {
    background: var(--primary-color);
    background: var(--gradient-primary);
}

.os-main {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    color: #666;
}

.os-button.active .os-main {
    background: var(--primary-color);
    background: var(--gradient-primary);
    color: var(--primary-text);
}


.fixed-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 998;
}

.menu-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.price-info {
    text-align: left;
    flex: 1;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.price-action-group {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.fixed-bottom-menu .container {
    margin-right: -15px;
}

.price-display .label {
    color: #666;
}

.price-display .currency {
    color: rgb(255, 102, 0);
}

.price-display .amount {
    color: rgb(255, 102, 0);
    font-size: 20px;
    font-weight: bold;
}

.price-display .cycle {
    color: #666;
}

.price-notes {
    margin-left: 8px;
}

.note-line {
    color: #999;
    font-size: 10px;
    line-height: 1.2;
}


.bottom-sheet {
    position: fixed;
    bottom: 58px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0;
    z-index: 1050;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.bottom-sheet.show {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-body {
    max-height: calc(70vh - 120px);
    overflow-y: auto;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch;
}

.bottom-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 58px;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
}

.bottom-sheet-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-header {
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    text-align: center;
}

.bottom-sheet-header h5 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    display: inline-block;
}


.cart-items {
    padding: 0 15px;
}

.cart-item-row {
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-info {
    flex: 1;
    margin-right: 20px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-config-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.cart-item-config {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.config-name {
    color: #999;
    margin-right: 4px;
}

.config-value {
    color: #333;
}

.cart-item-price {
    margin-left: 20px;
    white-space: nowrap;
}

.price-value {
    color: rgb(255, 102, 0);
    font-weight: 500;
}

.cart-total {
    margin-top: 15px;
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-info {
    font-size: 14px;
    color: #666;
}

.total-price {
    font-size: 16px;
    font-weight: 500;
}


.empty-cart {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-cart i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 8px;
}

.empty-cart p {
    color: #999;
    margin: 0;
}


.delete-btn {
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
    border-radius: 4px;
}

.delete-btn:hover {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
}


.confirm-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.confirm-dialog {
    background: #fff;
    border-radius: 0;
    width: 300px;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.2s;
}

.confirm-dialog-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.confirm-dialog-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.confirm-dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-dialog-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.confirm-dialog-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.confirm-dialog-btn-cancel:hover {
    background: #e8e8e8;
}

.confirm-dialog-btn-confirm {
    background: #ff4d4f;
    color: #fff;
}

.confirm-dialog-btn-confirm:hover {
    background: #ff7875;
}

.confirm-dialog-backdrop.show {
    opacity: 1;
}

.confirm-dialog-backdrop.show .confirm-dialog {
    transform: translateY(0);
}


@media (max-width: 768px) {
    
    .products-section {
        flex-direction: column;
        width: 100%;
    }

    .products-section .nav-label {
        width: 100%;
        padding-top: 0;
        margin-bottom: 10px;
        font-weight: 500;
    }

    .products-section .row {
        width: 100%;
        margin: 0;
    }

    
    .nav-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-label {
        margin-right: 0;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .nav-section .nav-pills,
    .nav-section .btn-group-toggle,
    .nav-section .os-buttons,
    .nav-section .range-group {
        width: 100%;
    }

    .nav-tips {
        padding-left: 0;
        margin-top: 8px;
        font-size: 12px;
    }

    .fixed-bottom-menu {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 10px 0;
    }

    .fixed-bottom-menu .menu-content {
        padding: 0 15px;
    }

    .fixed-bottom-menu .price-action-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .fixed-bottom-menu .price-info {
        flex: 1;
    }

    .fixed-bottom-menu .price-display {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 2px;
    }

    .fixed-bottom-menu .label {
        font-size: 12px;
        color: #666;
    }

    .fixed-bottom-menu .currency {
        font-size: 14px;
        color: var(--primary-color);
    }

    .fixed-bottom-menu .amount {
        font-size: 20px;
        font-weight: bold;
        color: var(--primary-color);
    }

    .fixed-bottom-menu .cycle {
        font-size: 12px;
        color: #666;
    }

    .fixed-bottom-menu .price-notes {
        display: none;
    }

    .fixed-bottom-menu .action-buttons {
        display: flex;
        align-items: center;
    }

    .fixed-bottom-menu .btn-outline-primary {
        display: none;
    }

    .fixed-bottom-menu .btn-primary {
        padding: 8px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .input-group {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .input-group .form-control {
        font-size: 13px;
        padding: 6px 10px;
        height: 32px;
    }

    .input-group .btn-light {
        width: 28px;
        height: 28px;
        padding: 2px;
        min-width: 28px;
    }

    .input-group .btn-light i {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .fixed-bottom-menu .menu-content {
        padding: 0 10px;
    }

    .fixed-bottom-menu .amount {
        font-size: 18px;
    }

    .fixed-bottom-menu .btn-primary {
        padding: 6px 15px;
        font-size: 13px;
    }

    .input-group .btn-light {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }

    .input-group .btn-light i {
        font-size: 13px;
    }
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 14px;
    padding: 0 16px;
    border-radius: 0;
    font-weight: 400;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: var(--primary-text);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}


.me-2 {
    margin-right: 0.5rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.position-relative {
    position: relative !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.fixed-bottom-menu .action-buttons .btn-outline-primary {
    color: var(--text-color);
    background: #f5f5f5;
    border: none;
    padding: 6px 15px;
    font-size: 13px;
    border-radius: 0;
    transition: all 0.3s;
    margin: 0;
    min-width: auto;
}

.fixed-bottom-menu .action-buttons .btn-outline-primary:hover,
.fixed-bottom-menu .action-buttons .btn-outline-primary:focus {
    color: var(--primary-color);
    background-color: var(--primary-light);
    border: none;
}

.fixed-bottom-menu .action-buttons .btn-outline-primary:active {
    background-color: var(--primary-medium);
    color: var(--primary-color);
    border: none;
}

.fixed-bottom-menu .action-buttons .btn-primary {
    background: var(--primary-color);
    background: var(--gradient-primary);
    color: var(--primary-text);
    border: none;
    padding: 6px 15px;
    font-size: 13px;
    border-radius: 0;
    transition: all 0.3s;
    margin: 0;
    min-width: auto;
    box-shadow: 0 2px 6px rgba(63, 81, 181, 0.2);
}

.fixed-bottom-menu .action-buttons .btn-primary:hover,
.fixed-bottom-menu .action-buttons .btn-primary:focus {
    opacity: 0.9;
}

.fixed-bottom-menu .action-buttons .btn-primary:active {
    opacity: 0.8;
}


.loading-mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
}

.loading-spinner i {
    font-size: 24px;
    margin-bottom: 8px;
}

.loading-spinner span {
    font-size: 14px;
}


.products-section,
.config-section {
    position: relative;
}


.vertical-menu {
    display: none !important;
}


.vertical-menu-btn {
    display: none !important;
}


.main-content {
    margin-left: 0 !important;
}




.header-page-title-box {
    margin-left: 0 !important;
}

.product-card {
    
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(224,224,224,0.6);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.24s ease-out;
    overflow: hidden;
    position: relative;
}


.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.08),
        0 8px 24px -12px rgba(63,81,181,0.12);
    border-color: rgba(63,81,181,0.3);
}


.product-card.active {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(
        to right,
        rgba(63,81,181,0.02) 0%,
        rgba(63,81,181,0.01) 100%
    );
}


.product-card .card-header {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(224,224,224,0.4);
    padding: 20px;
    position: relative;
}

.card-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(63,81,181,0) 0%,
        rgba(63,81,181,0.2) 50%,
        rgba(63,81,181,0) 100%
    );
}


.product-card .card-body {
    padding: 20px;
    background: linear-gradient(
        to bottom,
        rgba(250,250,250,0.6) 0%,
        rgba(255,255,255,0.8) 30%
    );
}

.desc-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(224,224,224,0.2);
}


@media (max-width: 768px) {
    .product-card {
        margin: 8px 0;
        border-radius: 8px !important;
    }
    
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }
    
    .card-header,
    .card-body {
        padding: 16px;
    }
}
