/* ==========================================================================
   Unified Products, Layout & Cards UI - Vercel / Vue3 Aurora Style Theme
   ========================================================================== */

/* 1. Root Variables & Design Tokens (Consistent across all turns) */
:root {
    --primary: #42d392;
    --primary2: #647eff;
    --bg: #020617;
    --card: rgba(15, 23, 42, 0.62);
    --card-hover: rgba(30, 41, 59, 0.75);
    --text: #ffffff;
    --sub: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(66, 211, 146, 0.4);
    --radius: 20px;
    --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Global Layout & Banner Overrides */
.products-gray-wrap {
    background: var(--bg);
    min-width: 1240px;
}

.products-wrap {
    margin: 0 auto;
    padding-top: 40px;
    width: 1240px;
    min-width: 1240px;
    height: auto;
    clear: both;
    overflow: hidden;
}

.products-banner-buttons {
    height: 80px;
    margin-bottom: 14px;
    padding: 0 34px;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    box-sizing: border-box;
    font-size: 0;
    border-radius: 12px;
}

.products-banner-buttons .banner-desc {
    float: left;
    margin-top: 28px;
    font-size: 16px;
    color: var(--text);
    line-height: 24px;
    font-weight: 700;
}

.products-banner-buttons .banner-buttons {
    float: right;
    margin-top: 22px;
}

/* 3. Products Navigation Sidebar (Glassmorphism Upgrade) */
.products-nav {
    float: left;
    width: 268px;
    z-index: 0;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 50px;
    overflow: hidden;
}

.products-nav.fixed {
    position: fixed;
    top: 80px;
}

.products-nav > ul {
    border-right: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.products-nav > ul li {
    position: relative;
    height: 62px;
    padding: 14px 0 14px 60px;
    line-height: 32px;
    background: transparent;
    transition: var(--transition);
}

.products-nav > ul li a {
    display: block;
    font-size: 16px;
    color: var(--sub);
    text-decoration: none;
    transition: var(--transition);
}

.products-nav > ul li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.products-nav > ul li:hover a {
    color: var(--text);
}

.products-nav > ul li:after {
    position: absolute;
    left: 13px;
    bottom: 0;
    display: block;
    content: '';
    width: 231px;
    height: 1px;
    background: var(--border);
}

.products-nav > ul li:last-child {
    border-bottom: none;
}

.products-nav > ul li:last-child:after {
    content: none;
}

.products-nav > ul li.active {
    width: 268px;
    border-right: 2px solid var(--primary);
    background: linear-gradient(90deg, rgba(66, 211, 146, 0.05) 0%, rgba(100, 126, 255, 0.1) 100%);
}

.products-nav > ul li.active a {
    color: var(--text);
    font-weight: 700;
}

/* Secondary Navigation Items */
li.second {
    height: auto !important;
    background: transparent !important;
}

.products-secondary {
    position: relative !important;
    height: 52px !important;
    padding: 0px 0 0px 80px !important;
    line-height: 52px !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.product_second {
    border-bottom: 1px solid var(--border);
    width: 185px;
}

.product_second a {
    color: var(--sub) !important;
    font-size: 14px !important;
}

.product_second.active a,
.second .text-white {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Nav Icons */
.products-nav > ul li:before {
    float: left;
    margin: 0px 0 0 -34px;
    width: 6px;
    height: 6px;
    border-radius: 4px;
    content: "\e62c";
    font-family: "kymb";
    display: block;
    transition: transform 0.2s;
    font-size: 18px;
    font-weight: bold;
    color: var(--sub);
}

.products-secondary:before {
    float: left;
    margin: 23px 0 0 -34px !important;
    content: "" !important;
    font-family: "kymb";
    display: block;
    transition: transform 0.2s;
    font-size: 15px;
    color: #fff;
    left: 0;
    background: var(--primary2);
    border-radius: 2px !important;
}

li#open {
    background: linear-gradient(90deg, var(--primary2) 0%, #3b52d4 100%);
}

li#open:after {
    background: var(--primary2) !important;
}

li#open a {
    color: #fff;
    font-weight: 700;
}

.products-secondary:before,
li#open:before {
    content: "\e612";
    font-weight: bold;
    font-size: 20px;
    color: #fff;
}

/* 4. Column Headers */
.column-header {
    cursor: pointer;
    position: relative;
    padding: 16px 24px;
    color: var(--text);
    border-radius: 12px;
    margin-bottom: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
}

.column-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.column-header p {
    font-size: 14px;
    color: var(--sub);
    margin: 0;
}

.column-header .column-pic {
    position: absolute;
    height: 88px;
    bottom: 10px;
    right: 10px;
    opacity: 0.8;
}

/* 5. Product Grid & SMC Cards */
.col-sm-product {
    width: calc((100% - 47px) / 3);
    margin-bottom: 16px;
    margin-right: 20px;
    display: inline-block;
    vertical-align: top;
}

.product_card > div:nth-child(3n+3) {
    margin-right: -12px;
}

.smc-card.card-md:first-child {
    margin-left: 0;
}

.smc-card {
    position: relative;
    background: var(--card);
    box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    text-align: left;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.smc-card.card-md:hover {
    background: var(--card-hover);
    border: 1px solid var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.4), 0 0 20px rgba(66, 211, 146, 0.1);
}

.smc-card:before {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    border-radius: 0 0 4px 4px;
    left: 24px;
    top: 0;
}

.smc-card .card-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 10px 2px 17px;
    background: rgba(100, 126, 255, 0.15);
    border: 1px solid rgba(100, 126, 255, 0.3);
    border-radius: 20px;
    font-size: 12px;
    line-height: 22px;
    font-weight: 600;
    color: #818cf8;
}

.smc-card .card-tag:before {
    position: absolute;
    top: 10px;
    left: 8px;
    content: '';
    width: 5px;
    height: 5px;
    background: var(--primary2);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary2);
}

.smc-card.card-md .card-top {
    margin: 0 24px;
    padding: 36px 0 16px 0;
    border-bottom: 1px solid var(--border);
}

.smc-card .card-top .title {
    font-size: 18px;
    font-weight: 700;
    line-height: 32px;
    color: var(--text);
}

.smc-card .card-top .desc {
    display: inline-block;
    margin-top: 4px;
    color: var(--sub);
    font-size: 14px;
    line-height: 24px;
}

.smc-card.card-md .card-content {
    margin: 0 24px;
    padding: 16px 0;
}

.card-content li {
    height: 36px;
    line-height: 36px;
    font-size: 13.5px;
    color: var(--sub);
}

.smc-card .card-bottom {
    width: 100%;
}

.smc-card .card-bottom .bottom-wrap {
    border-top: 1px solid var(--border);
}

.smc-card.card-md .card-bottom .bottom-wrap.label-tags {
    height: 82px;
    padding: 22px 0;
    margin: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.smc-card .card-bottom .bottom-wrap .price-detail {
    display: inline-block;
    font-size: 12px;
    color: var(--sub);
}

.smc-card .card-bottom .bottom-wrap .price-detail .font-num {
    font-size: 26px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.smc-card .card-bottom .bottom-wrap .price-detail .desc {
    display: inline-block;
    line-height: 17px;
    color: var(--sub);
}

/* 6. Buttons & Badges */
.button-base {
    display: inline-block;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    border-radius: 10px;
    transition: var(--transition);
    height: 38px;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(66, 211, 146, 0.2);
}

.button-base:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 211, 146, 0.4);
    color: #fff;
    text-decoration: none;
}

a.button-base.button-radius-4.button-blueborder.h34-border.ml16 {
    border: 1px solid var(--primary2);
    background: rgba(100, 126, 255, 0.1);
    color: #fff;
    margin-right: 0;
    box-shadow: none;
}

a.button-base.button-radius-4.button-blueborder.h34-border.ml16:hover {
    background: var(--primary2);
    border-color: var(--primary2);
    box-shadow: 0 4px 15px rgba(100, 126, 255, 0.3);
}

a.button-base.button-yellowgradient.h34.no {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: none;
    cursor: not-allowed;
}

a.button-base.button-yellowgradient.h34.no:hover {
    transform: none;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.original_price {
    font-size: 13px;
    display: grid;
    color: #f87171;
    font-weight: 400;
    text-decoration: line-through;
}

.price-detaily {
    display: inline-block;
    font-size: 12px;
    color: var(--sub);
    font-weight: 400;
}

/* 7. Product Configuration & Summary Tables */
.configoption_form {
    width: 1240px;
    margin: 50px auto 0;
}

.card-back {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.card-title-h4 {
    height: 60px;
    border-bottom: 1px solid var(--border);
}

.title-h4 {
    padding: 0px 20px;
    color: var(--text);
    line-height: 60px;
    font-weight: 700;
}

.configoption_total {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
}

table.table.mb-5.mt-2.ordersummary tr {
    border-bottom: 1px solid var(--border);
    margin: 10px 0px 10px 20px;
    height: 40px;
    line-height: 40px;
    color: var(--sub) !important;
}

hr {
    border-top: 1px solid var(--border);
}

.mobile-hide td.color-999 {
    color: var(--sub);
    font-size: 15px;
    font-weight: 600;
}

td.font-weight-bold.text-dark.text-right {
    font-size: 24px;
    font-weight: 700;
    margin-right: 8px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

button#addToCartBtn {
    margin: 0px;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    height: 40px;
    line-height: 38px;
    padding: 0px 20px;
    color: #fff;
    border: none;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    box-shadow: 0 4px 15px rgba(66, 211, 146, 0.3);
    transition: var(--transition);
}

button#addToCartBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 211, 146, 0.5);
}

/* 8. Form Controls & Dropdowns Overrides */
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle,
.btn-custom-group .active {
    background: linear-gradient(90deg, rgba(66, 211, 146, 0.2), rgba(100, 126, 255, 0.2)) !important;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 0 15px rgba(66, 211, 146, 0.2) !important;
    color: #fff !important;
}

.bootstrap-select > .dropdown-toggle {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.btn-primary {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.btn-group-sm > .btn,
.btn-sm {
    padding: 5px 20px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.45rem;
}

.was-validated .custom-control-input:valid ~ .custom-control-label::before {
    background-color: rgba(66, 211, 146, 0.2);
    border-color: var(--primary);
}

.bootstrap-select.is-valid .dropdown-toggle,
.was-validated .bootstrap-select select:valid + .dropdown-toggle {
    border-color: var(--primary) !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
    display: block;
    width: 100%;
    padding: 0.47rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.05);
    background-clip: padding-box;
    border: 1px solid var(--primary);
    border-radius: 10px;
    background-position-y: 50%;
    background-position-x: calc(100% - 11px);
    background-repeat: no-repeat;
    padding-right: 24px;
}

.cycle-select-discount {
    position: absolute;
    top: -10px;
    right: 0;
    display: inline-block;
    padding: 0px 8px;
    height: 18px;
    background: linear-gradient(90deg, #ff6b6b, #f87171);
    border-radius: 6px 6px 6px 0px;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 18px;
    box-shadow: 0 2px 6px rgba(248, 113, 113, 0.4);
}

.error-tip {
    color: #f87171;
    margin: 0;
    padding: 0;
    line-height: 36px;
    display: none;
    font-size: 13px;
}

input::-webkit-input-placeholder,
input:-moz-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder {
    color: #64748b !important;
}

.btn-custom {
    width: 72px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    line-height: 30px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--sub);
}

/* 9. Range Slider (Neon Glow Track) */
input[type='range'] {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 24px;
    background-color: #fff;
    cursor: pointer;
    border: 3px solid var(--primary2);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(100, 126, 255, 0.5);
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    border-color: var(--primary);
}

input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 18px;
    background-color: #fff;
    cursor: pointer;
    border: 3px solid var(--primary2);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(100, 126, 255, 0.5);
}

.range_none {
    position: absolute;
    height: 6px;
    display: block;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 3px;
    cursor: not-allowed;
}

/* 10. Empty States */
.no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    margin-top: 20px;
    background: var(--card);
    box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.empty p {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--sub);
    padding: 12px 40px;
    font-size: 14px;
    border-radius: 10px;
}

/* 11. Responsive Layout Overrides */
@media all and (max-width: 768px) {
    img.products {
        height: 280px;
        width: 120%;
    }

    h1.banner-title {
        font-size: 20px;
        margin-top: 0px;
        display: inline-block;
        border-left: 3px solid var(--primary);
        padding-left: 14px;
        color: var(--text);
    }

    .index-banner-top {
        margin: 105px 0;
        z-index: 99;
        position: absolute;
        padding: 0px 80px 0 20px;
    }

    .index-banner-top p {
        text-align: left;
        font-size: 14px;
        color: var(--sub);
    }

    .products-gray-wrap {
        background: var(--bg);
        min-width: 100%;
        padding: 0 10px;
    }

    .products-wrap {
        margin: 0 auto;
        padding-top: 40px;
        width: 100%;
        min-width: 100%;
        height: auto;
        clear: both;
        overflow: hidden;
    }

    .products-nav {
        float: left;
        width: 100%;
        z-index: 0;
        background: var(--card);
        margin-bottom: 30px;
    }

    .products-nav > ul li.active {
        width: 100%;
        border-right: 2px solid var(--primary);
    }

    .products-nav > ul li:after {
        position: absolute;
        left: 13px;
        bottom: 0;
        display: block;
        content: '';
        width: 90%;
        height: 1px;
        background: var(--border);
    }

    .config-content-parent.product_card {
        width: 100%;
        float: right;
    }

    .col-sm-product {
        width: 100%;
        margin-bottom: 24px;
        margin-right: 0;
        display: block;
    }

    .no-data {
        margin-top: 0px;
    }

    .configoption_form {
        width: 100%;
        padding: 0 10px;
    }
}