
/* ——— LUXURY TOGGLE SWITCHES ——— */
.filter-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-toggle + label {
    position: relative;
    display: inline-block;
    padding-left: 70px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: #e0f7fa;
    line-height: 34px;
    transition: color 0.3s ease;
}

/* Track */
.filter-toggle + label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 34px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(0,193,213,0.4);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(6px);
}

/* Thumb */
.filter-toggle + label::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover glow */
.filter-toggle + label:hover::before {
    border-color: #008491;
    box-shadow: 0 0 25px rgba(0,193,213,0.4);
}

/* Checked = ON */
.filter-toggle:checked + label::before {
    background: #008491;
    border-color: #008491;
    box-shadow: 0 0 30px rgba(0,193,213,0.6);
}

.filter-toggle:checked + label::after {
    transform: translateX(26px) translateY(-50%);
    background: white;
    box-shadow: 0 0 20px rgba(0,193,213,0.8);
}

/* Focus */
.filter-toggle:focus + label::before {
    box-shadow: 0 0 0 4px rgba(0,193,213,0.3);
}


.price-slider-container {
    position: relative;
    height: 60px;
}

.price-range {
    position: absolute;
    width: 100%;
    height: 8px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    z-index: 2;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: #008491;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0,193,213,0.6);
    border: 4px solid white;
    transition: all 0.3s ease;
}

.price-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(0,193,213,0.8);
}

.slider-track {
    position: absolute;
    top: 26px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.slider-fill {
    position: absolute;
    top: 26px;
    height: 8px;
    background: linear-gradient(90deg, #008491, #00eaff);
    border-radius: 4px;
    left: 10%;
    right: 10%;
    transition: all 0.3s ease;
}

.sort-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.sort-btn.active > i{
color: white;


}
.sort-btn:hover {
    opacity: 0.8;
}

/* VISUAL WIDTH FILTER — GORGEOUS & RESPONSIVE */
.width-visual-filter label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.width-visual {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    display:block;
    padding: 2px 4px 0px 4px;
    text-align: center;
    min-width: 85px;
    transition: all 0.25s ease;

}

.width-visual .bar {
    height: 8px;
    background: #007bff;
    margin: 2px auto;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.width-visual .label {
    display: block;
    font-size: 0.85rem;
    color: #212529;
}

.width-visual .range {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;

}

/* Active state */
.width-btn input:checked + .width-visual {
    background: #e3f2fd;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.width-btn input:checked + .width-visual .bar {
    background: #0056b3;
    transform: scaleY(1.2);
}

/* Hover */
.width-btn:hover .width-visual {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* VISUAL REBATE DEPTH FILTER — GORGEOUS & INTUITIVE */
.rebate-visual-filter label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rebate-visual {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2px 4px 0px 4px;
    text-align: center;
    min-width: 85px;
    transition: all 0.25s ease;
    font-weight: 500;
    display:block;
}

.rebate-visual .depth-bar {
    width: 10px;
    background: #28a745;
    margin: 0px auto;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.rebate-visual .label {
    display: block;
    font-size: 0.85rem;
    color: #212529;
    margin-top:5px;
    margin-bottom:5px;
}

.rebate-visual .range {
    display: block;
    font-size: 0.7rem;
    color: #495057;
    font-weight: 600;
}

.rebate-visual .note {
    display: block;
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Active state */
.rebate-btn input:checked + .rebate-visual {
    background: #e8f5e9;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.15);
}

.rebate-btn input:checked + .rebate-visual .depth-bar {
    background: #1e7e34;
    transform: scaleY(1.1);
}

/* Hover */
.rebate-btn:hover .rebate-visual {
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* VISUAL COLOR PALETTE FILTER — PROFESSIONAL & BEAUTIFUL */
.color-palette-filter {
    /*row-gap: 16px;*/
    /*box-shadow: 0 0 20px rgba(0,193,213,0.6);*/
    padding-bottom:4px;
}

.color-swatch {
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;

}

.color-swatch .swatch {
    display:block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 2px;
    border: 3px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
}

.color-swatch .name {
    display: block;
    font-size: 0.75rem;
    color: #444;
}

/* Active state */
.color-swatch input:checked + .swatch {
    transform: scale(1.12);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.3);
    border-color: #007bff;
}

/* Hover */
.color-swatch:hover .swatch {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Special gold & silver gradient shine */
.color-swatch[title*="Gold"] .swatch,
.color-swatch[title*="Silver"] .swatch {
    background-size: 200% 200%;
    animation: shine 6s infinite;
}

@keyframes shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.mixed-swatch {
    width:40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e9ecef;
    position: relative;
    margin: 0 auto 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.mixed-swatch .quarter {
    position: absolute;
    width: 50%; height: 50%;
}
.q1 { background: #d62828; top:0; left:0; }     /* red */
.q2 { background: #fcbf49; top:0; right:0; }    /* yellow */
.q3 { background: #2a9d8f; bottom:0; left:0; }  /* teal */
.q4 { background: #457b9d; bottom:0; right:0; } /* blue */

/* VISUAL PROFILE SHAPE FILTER — CLEAN & INTUITIVE */
.profile-visual-filter label {
    cursor: pointer;
}

.profile-visual {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 4px 4px;
    text-align: center;
    width: 85px;
    display: block;
    transition: all 0.25s ease;

}

.profile-visual svg {
    width: 60px;
    height: 45px;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.profile-visual .label {
    display: block;
    font-size: 0.7rem;
    color: #212529;
}

/* Active state */
.profile-btn input:checked + .profile-visual {
    background: #e3f2fd;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.profile-btn input:checked + .profile-visual svg {
    fill: #0056b3;
}

/* Hover */
.profile-btn:hover .profile-visual {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* VISUAL MATERIAL FILTER — WOOD & METAL */
.material-visual-filter {
    justify-content: flex-start;
}

.material-btn {
    cursor: pointer;
    width: 145px;
}

.material-visual {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 3px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display:block;
    transition: all 0.3s ease;

}

.material-visual .texture {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.15;
}

.wood-grain {
    background: repeating-linear-gradient(
            45deg,
            #8B4513,
            #8B4513 10px,
            #A0522D 10px,
            #A0522D 20px
    );
}

.metal-shine {
    background: linear-gradient(135deg,
    #c0c0c0 0%, #e8e8e8 30%, #ffffff 50%, #e8e8e8 70%, #c0c0c0 100%
    );
    animation: metalShine 8s infinite linear;
}

@keyframes metalShine {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

.material-visual .icon {
    font-size: 2.8rem;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.material-visual .label {
    display: block;
    font-size: 0.75rem;
    color: #212529;
    margin-bottom: 2px;
}

.material-visual .desc {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

/* Active state */
.material-btn input:checked + .material-visual {

    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.material-btn input:checked + .material-visual.wood {
    border-color: #8B4513;
    background: #fdf3e8;
}

.material-btn input:checked + .material-visual.metal {
    border-color: #4682b4;
    background: #f0f8ff;
}

/* Hover */
.material-btn:hover .material-visual {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}




/* VISUAL FINISH FILTER */
.finish-visual-filter {
    row-gap: 16px;
}

.finish-btn {
    cursor: pointer;
}

.finish-visual {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 4px 4px;
    width: 85px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display:block;
    transition: all 0.25s ease;
}

.finish-visual .texture {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.25;
}

/* Individual textures */
.veneer   { background: repeating-linear-gradient(90deg, #8B4513 0px, #A0522D 8px, #8B4513 16px); }
.stain    { background: linear-gradient(135deg, #5D4037 0%, #8B4513 100%); }
.paint    { background: #2c3e50; }
.unfinished { background: repeating-linear-gradient(45deg, #deb887 0px, #f4e4bc 10px, #deb887 20px); }
.foil     { background: linear-gradient(45deg, #bdc3c7, #ecf0f1, #bdc3c7); animation: foilShine 6s infinite; }
.leaf     { background: linear-gradient(45deg, #f9d423, #ffd700, #b8860b); animation: leafShine 8s infinite; }

@keyframes foilShine {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes leafShine {
    0%   { background-position: 0% 0%; }
    100% { background-position: 300% 300%; }
}

.finish-visual .label {
    display: block;
    font-size: 0.75rem;
    line-height:1.1em;
    color: #008491;
    margin-bottom: 0px;
    position: relative;
}

.unfinished .label, .foil .label, .leaf .label{color:#2c3e50;}

.finish-visual .desc {
    display: block;
    font-size: 0.75rem;
    color: #c0c0c0;
    position: relative;
}
.unfinished .desc, .foil .desc, .leaf .desc{color:#4682b4;}
/* Active state */
.finish-btn input:checked + .finish-visual {
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
    border-color: #007bff;
}

.finish-btn input:checked + .finish-visual .texture { opacity: 0.4; }

/* Hover */
.finish-btn:hover .finish-visual {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sort-btn {
    position: relative;
    min-width: 130px;
    font-size:10px;
}

.sort-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.sort-btn.active .sort-arrow {
    font-weight: bold;
    font-size: 1em;
}

/* Hover effect */
.sort-btn:hover .sort-arrow {
    opacity: 0.8;
}

.sort-btn .sort-arrow i {
    font-size: 1.8em;
    font-weight: bold;
    transition: all 0.2s ease;
}

.sort-btn.active {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.sort-btn.active .sort-arrow i {
    color: white !important;   /* white arrow on active blue button */
}

#frame-count-display {
    transition: color 0.3s ease;
}
/* VISUAL PRICE FILTER — LUXURIOUS & FUN */
.price-visual-filter {
    row-gap: 16px;
}

.price-btn {
    cursor: pointer;
}



.price-visual {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 6px 4px 0px 4px;
    width: 85px;
    text-align: center;
    transition: all 0.25s ease;
    display:block;
    position: relative;
    overflow: hidden;
    display:block;
}

.price-visual .coins {

    font-size: 0.75rem;
    line-height: 1;
    display:flex;
    align-content:center;
}

.price-visual .coin {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    margin: 0 0px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: float 4s infinite ease-in-out;
}

.coin.bronze { background: linear-gradient(#cd7f32, #a0522d); color: white; }
.coin.silver { background: linear-gradient(#e0e0e0, #bdbdbd); color: #333; }
.coin.gold   { background: linear-gradient(45deg, #f9d423, #e65c00); color: white; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.price-visual .label {
    display: block;
    font-size: 0.75rem;
    color: #212529;
    margin-bottom: 0px;
}

.price-visual .range {
    font-size: 0.75rem;
    color: #666;
}

/* Active state */
.price-btn input:checked + .price-visual {
    background: #fff8e1;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.price-btn input:checked + .price-visual.all {
    background: #e3f2fd;
    border-color: #007bff;
}

/* Hover */
.price-btn:hover .price-visual {
    transform: translateY(-3px);
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



.glazing-card {
    background: white;
    border: 3px solid transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

.glazing-card:hover {
    /*transform: translateY(-10px);*/
    box-shadow: 0 20px 50px rgba(0,193,213,0.2);
    border-color: rgba(0,193,213,0.3);
}

.glazing-card.selected,
input[type="radio"]:checked + .glazing-card {
    border-color: var(--teal) !important;
    background: linear-gradient(135deg, rgba(0,193,213,0.05), rgba(0,193,213,0.02));
    box-shadow: 0 20px 50px rgba(0,193,213,0.25);
}

/*.frameselected{*/
/*    background:var(--teal)!important;*/
/*}*/

/* ============================================================= */
/* CUSTOM CLASSES FOR THE STUNNING REVIEW / ORDER SUMMARY CARD   */
/* ============================================================= */

.review-card {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* Gradient header */
.card-header.bg-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
}

/* Summary table styling */
.summary-table {
    background: #ffffff;
}
.summary-table .table tbody tr {
    transition: background 0.2s ease;
}
.summary-table .table tbody tr:hover {
    background: #f8f9ff;
}
.summary-table .table tbody tr.border-bottom {
    border-bottom: 1px solid #e2e8f0 !important;
}
.summary-table .table td {
    padding: 0.5rem 0.5rem;
    vertical-align: middle;
}
.summary-table .table td:first-child {
    font-weight: 500;
    color: #64748b;
}
.summary-table .table td:last-child {
    font-weight: 600;
    color: #1e293b;
}





/* Info icons */
.bi-info-circle-fill.text-info {
    color: #0ea5e9 !important;
}

/* Dashed border cards (loyalty + volume discount) */
.bg-gradient {
    background-image: linear-gradient(135deg, var(--tw-gradient-stops));
}

/* Floating animation for coins (if you ever re-use them) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}


.form-floating:not(.form-control:disabled)::before {width:100%;}

/* LUXURY ALERTS — GORGEOUS & ANIMATED */
.beautiful-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    animation: alertSlideIn 0.4s ease-out;
    overflow: hidden;
}

.beautiful-alert::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    border-radius: 1rem 0 0 1rem;
}

.beautiful-alert .icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.beautiful-alert .content {
    flex: 1;
    line-height: 1.4;
}

.beautiful-alert .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.beautiful-alert .btn-close:hover { opacity: 1; }

/* COLOUR VARIANTS */
.beautiful-alert.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
}
.beautiful-alert.success::before { background: #10b981; }
.beautiful-alert.success .icon { color: #10b981; }

.beautiful-alert.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
}
.beautiful-alert.info::before { background: #3b82f6; }
.beautiful-alert.info .icon { color: #3b82f6; }

.beautiful-alert.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
}
.beautiful-alert.warning::before { background: #f59e0b; }
.beautiful-alert.warning .icon { color: #f59e0b; }

.beautiful-alert.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}
.beautiful-alert.danger::before { background: #ef4444; }
.beautiful-alert.danger .icon { color: #ef4444; }

/* Slide-in animation */
@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: auto-dismiss after 5 seconds */
.beautiful-alert[data-dismiss="5000"] {
    animation: alertSlideIn 0.4s ease-out, alertFadeOut 0.6s 4.4s forwards;
}
@keyframes alertFadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
        height: 0;
        padding: 0;
        margin: 0;
    }
}

.card-prod-footer {
    height: 40px;                    /* or whatever height you want */
    line-height: 1.3;
}

.card-prod-footer .d-flex {
    height: 100%;
}

/* Ensures long text never wraps and truncates with ... */
.text-truncate.flex-fill {
    min-width: 0;                    /* This is the magic line for flex + truncate */
}

.elegant-hint {
    background: linear-gradient(135deg, #f0f9ff 0%, #caf3f8 100%);
    border-left: 5px solid #00c3d4;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.elegant-hint:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(14,165,233,0.15);
    transition: all 0.3s ease;
}



.gallery-card {
    aspect-ratio: 1 / 1;
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border-color: #00d0ff;
}

.gallery-card img {
    transition: all 0.4s ease;
}

.gallery-card:hover img {
    filter: brightness(1.2) contrast(1.1);
}

.gallery-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 212, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.gallery-card .overlay i {
    color: white;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Shine effect on header */
.shine-effect {
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 4s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive grid */
@media (min-width: 576px) { .gallery-card { aspect-ratio: 1 / 1; } }
@media (max-width: 575px) { .row.g-4 > .col-6 { flex: 0 0 50%; max-width: 50%; } }

.luxury-accordion .accordion-button {
    border-radius: 0 !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.luxury-accordion .accordion-button:not(.collapsed) {
    box-shadow: inset 0 -3px 0 #fff;
}
.luxury-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.aperture-table {
    border-collapse: separate;
    border-spacing: 0 12px;
}

.aperture-table td {
    border: 1px solid #dee2e6;
    /*border-radius: 10px;*/
    background: #fdfdfd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.aperture-table td:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    background: #fff;
}

.aperture-table .form-control,  #MountOptions .form-control{
    border-radius: 0 6px 6px 0px;
    text-align: center;
    border: 1px solid #008491;
    font-weight: 500;
    color: #008491!important;
}

.aperture-table .input-group-text, #Mounts .input-group-text{
    background: rgba(0, 193, 213, 0.08);
    border: 1px solid #008491;
    font-weight: bold;
    color: #008491!important;
}

.aperture-table .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.aperture-drop-zone {
    /*/ position: relative !important;  !* ← crucial for absolute children to be positioned relative to THIS element *!*/
}
.upload-spinner-container svg {
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.drop-zone {
    cursor: grab;
    touch-action: manipulation; /* improves tap responsiveness */
}
/* Tooltip styling - appears on hover/focus */
.drop-zone.has-tooltip {
    position: relative;
}

.drop-zone.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
    margin-bottom: 10px;
}

.drop-zone.has-tooltip:hover::after,
.drop-zone.has-tooltip:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Optional: small arrow on tooltip */
.drop-zone.has-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-bottom: 4px;
    z-index: 100;
}

.drop-zone.has-tooltip:hover::before,
.drop-zone.has-tooltip:focus::before {
    opacity: 1;
}

.scroll-wrapper {
            /* or whatever your right border is */
    border-radius: 8px;                  /* if you want rounded corners */
    overflow: hidden;                    /* clips inner scrollbar nicely */
    height: 500px;                       /* or whatever fixed/max height */
}

.card-body.scroll-wrapper {
           /* or hidden — but visible is safer here */
    height: auto;               /* let it grow */
    min-height: 200px;          /* optional minimum to avoid collapse too small */
}

.scroll-content {
    height: 100%;
    overflow-y: auto;                    /* scrollbar appears here */
    padding: 16px;                       /* inner spacing */
    box-sizing: border-box;

}

/* Optional: Make scrollbar thinner/more elegant */
.scroll-content::-webkit-scrollbar {
    width: 10px;                         /* thinner scrollbar */
}

.scroll-content::-webkit-scrollbar-track {
    background: #f8f9fa;                 /* light track to blend */
}

.scroll-content::-webkit-scrollbar-thumb {
    background: #a0a0c0;
    border-radius: 5px;
      /* matches wrapper bg for seamless look */
}

/* Optional: make sure images fit nicely inside slides */
/*#prodslider.static-gallery .gallery-item-wrapper {*/
/*    width: auto !important;*/
/*    max-width: 140px !important;*/
/*    max-height: 140px !important;*/
/*}*/

/*#prodslider.static-gallery .gallery-item {*/
/*    width: auto !important;*/
/*    max-width: 140px !important;*/
/*    height: auto;*/
/*    object-fit: cover;*/
/*    border-radius: 12px;*/
/*}*/

.is-invalid {
    border-color: #dc3545 !important;
    background-image: none; /* remove BS validation icons if you want */
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.is-valid {
    border-color: #198754 !important;
}

.is-valid:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02);   /* overshoot upward a bit */
    }
    80% {
        transform: translateY(5px) scale(0.98);     /* small reverse bounce */
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes continuousBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);   /* gentle upward bounce + slight grow */
    }
}