@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

#tv-lightbox .modal-body {
    padding: 10px 25px 25px;
}

#tv-lightbox .modal-header {
    border-bottom: 1px solid #eee;
    padding: 10px 25px;
    background-color: #f8f8f8;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#tv-lightbox .modal-dialog {
    max-width: 900px; /* Increased max-width for sidebar */
    margin: 30px auto;
    justify-content: center;
}

#tv-lightbox .modal-content {
    background: #fdfdfd; /* Soft white */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Softer shadow */
    border: none; /* Remove default border */
    margin-inline: 20px;
}

#tv-lightbox {
    overflow-x: hidden;
    z-index: 50001;
}

#tv-lightbox .modal-header .material-icons {
    color: #ffffff;
    font-size: 21px;
    line-height: 18px;
}

.tv-close-btn {
    cursor: pointer;
    position: absolute;
    right: -16px;
    width: 30px;
    background-color: #6c757d !important; /* Muted grey */
    top: -15px;
    opacity: 1;
    border-radius: 50%;
    height: 30px;
    transition: all .4s ease;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -ms-transition: all .4s ease;
    -o-transition: all .4s ease;
}

.tv-close-btn:hover {
    opacity: .8 !important;
}

.tv-close-btn:focus {
    outline: none;
}

/* New Flexbox layout for modal body */
.tv-modal-body-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Space between sidebar and content */
}

.chart-sidebar {
    flex: 0 0 220px; /* Fixed width for sidebar on desktop */
    background-color: #f5f5f5; /* Light grey */
    border-radius: 3px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03); /* Subtle inner shadow */
}

.measurement-guide-illustration {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.sidebar-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.chart-content {
    flex: 1; /* Takes remaining space */
    min-width: 350px; /* Minimum width for chart content before wrapping */
}

/* Table Styling */
.table.tv-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 3px;
    overflow: hidden; /* Ensures border-radius applies to table */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Soft shadow for table */
    margin-bottom: 0;
}

.table.tv-table thead th {
    background-color: #e0e0e0; /* Light grey header */
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 10px;
    border: 1px solid #d0d0d0 !important; /* Clean grid lines */
    vertical-align: middle;
    text-align: center;
}

.table.tv-table tbody td {
    background-color: #ffffff;
    color: #444;
    font-size: 0.9rem;
    border: 1px solid #e8e8e8 !important; /* Lighter grid lines */
    padding: 12px 10px;
    vertical-align: top;
    text-align: center;
}

.table.tv-table tbody tr:hover {
    background-color: #f9f9f9; /* Subtle hover effect */
}

.tv-description p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Existing styles with minor adjustments */
.tv-chart-link {
    border-radius: 6px; /* Slightly more rounded */
    cursor: pointer;
    clear: both;
    display: inline-block;
    margin: 10px 0;
    padding: 10px 15px; /* Slightly larger padding */
    background-color: #6a99a8; /* Muted blue accent */
    border: none !important;
    color: #fff;
    transition: all .3s ease; /* Faster transition */
    font-size: .95rem; /* Slightly larger font */
    font-weight: 500;
    letter-spacing: .5px; /* Reduced letter spacing */
    text-decoration: none; /* Ensure no underline */
}

.tv-chart-link:hover {
    background-color: #5a8998; /* Darker muted blue on hover */
    border-color: #5a8998;
    opacity: 1; /* Ensure full opacity on hover */
    color: #fff !important;
}

.tv-hidden,
#tv-lightbox .tv-chart-link {
    display: none;
}

#tv-lightbox .tv-chart h1 {
    margin-bottom: 15px;
    font-size: 1.8rem; /* Larger heading */
    color: #333;
}

.chart-list-wrapper {
    display: flex;
    gap: 10px; /* Increased gap */
    flex-wrap: wrap;
}

.modal .modal-title {
    font-size: 1.2rem; /* Slightly larger title */
    color: #232323;
    font-weight: 600;
    text-transform: capitalize;
}

.size-chart-modal .main-tv-heading span,
.size-chart-modal .main-tv-heading {
    font-size: 14px;
}

.size-chart-modal thead tr {
    background-color: #f3f3f3;
}

.size-chart-tabs.tabs .nav-tabs .nav-link.active,
.size-chart-tabs.tabs .nav-tabs .nav-link:hover,
.footer-size-chart-tabs.tabs .nav-tabs .nav-link.active,
.footer-size-chart-tabs.tabs .nav-tabs .nav-link:hover {
    color: #ffffff;
    background-color: #6a99a8; /* Muted blue accent */
    border-color: #6a99a8;
}

.footer-size-chart-tabs.tabs .nav-tabs .nav-link,
.size-chart-tabs.tabs .nav-tabs .nav-link {
    font-size: .95rem; /* Slightly larger font */
    margin-bottom: 0;
    border: 1px solid #e4e4e4;
    border-radius: 6px 6px 0 0; /* More rounded tab corners */
    letter-spacing: .5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
}

/*custom scrollbar start*/
.size-chart-modal::-webkit-scrollbar {
    height: 5px;
}

.size-chart-modal::-webkit-scrollbar-track {
    background: #e4e4e4;
}

.size-chart-modal::-webkit-scrollbar-thumb {
    background: #c5bcbc;
    transition: all .4s ease;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -ms-transition: all .4s ease;
    -o-transition: all .4s ease;
}

.size-chart-modal::-webkit-scrollbar-thumb:hover {
    background: #ada8a8;
}
/*custom scrollbar end*/

.footer-size-chart-tabs.tabs .tab-pane,
.size-chart-tabs.tabs .tab-pane {
    padding-top: 0;
}

.footer-size-chart-tabs .nav.nav-tabs,
.size-chart-tabs .nav.nav-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* Increased gap */
}

.footer-size-chart-tabs .nav-tabs .nav-item+.nav-item,
.size-chart-tabs .nav-tabs .nav-item+.nav-item {
    margin-left: 0;
}

/*chart popups tpl start*/
.table > thead > tr > th {
    border-block-width: 2px;
    border-top: 2px solid #d3d3d3 !important;
    padding: .75rem;
}

.tab-content {
    margin-top: 0;
}
.size-chart-tabs .tab-content,
.footer-size-chart-tabs .tab-content{
    margin-top: 10px;
}
.size-chart-tabs .table.tv-table,
.footer-size-chart-tabs .table.tv-table{
    box-shadow: none;
}

.nav-tabs > li > a {
    font-size: 20px;
    padding: 0;
    margin-bottom: 10px;
    cursor: inherit;
    color: #000;
}

.nav-tabs > li > a:hover {
    border-color: transparent;
}

.nav > li > a:hover,
.nav > li > a:focus {
    text-decoration: none;
    background-color: transparent;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: #777777;
    background-color: transparent;
    border: none;
    border-bottom-color: transparent;
    cursor: default;
}

.table tbody > tr > td {
    padding: 12px 10px;
}
@media(min-width: 992px) {
    #product .pb-left-column.col-md-5 {
        width: 33.33% !important;
    }

    #product .pb-center-column.col-sm-4 {
        width: 41.6666% !important;
        padding: 0;
    }
}

@media(max-width: 991px) {
    .pb-left-column,
    .pb-right-column,
    .pb-center-column {
        width: 100%;
    }

    .tv-container {
        width: 100%;
    }

    .footer-size-chart-tabs.tabs .nav-tabs .nav-link,
    .size-chart-tabs.tabs .nav-tabs .nav-link {
        font-size: .8rem;
        padding: 3px 5px;
    }

    .tv-modal-body-flex {
        flex-direction: column; /* Stack sidebar and content on smaller screens */
    }

    .chart-sidebar {
        flex: 0 0 auto; /* Allow sidebar to take full width */
        width: 100%;
    }
}

@media(max-width: 767px) {
    .tv-chart-link {
        font-size: .8rem;
        padding: 3px 9px;
    }

    #tv-lightbox .modal-header .material-icons {
        font-size: 19px;
        line-height: 15px;
    }

    .tv-close-btn {
        right: -9px;
        width: 26px;
        height: 26px;
    }
}

@media(max-width: 575px) {
    .tv-container {
        width: 100%;
    }

    .modal .modal-title {
        font-size: .9rem;
        margin: 0;
    }

    .tv-description p {
        font-size: .8rem;
    }

    .size-chart-modal .main-tv-heading span,
    .size-chart-modal .main-tv-heading {
        font-size: 13px;
    }

    #tv-lightbox .modal-header {
        padding: 8px;
    }

    .table.tv-table td,
    .table.tv-table th {
        font-size: 14px;
    }
}

@media(max-width: 480px) {
    .tv-container {
        width: 100%;
    }

    .table.tv-table td,
    .table.tv-table thead th {
        font-size: 12px;
        padding: 5px;
    }

    #tv-lightbox .tv-chart h1 {
        font-size: 18px;
    }
}

@media(max-width: 400px) {
    .tabs {
        padding: 10px;
    }

    .tv-container {
        width: 100%;
    }
}

@media(max-width: 330px) {
    .table.tv-table thead th {
        padding: 2px;
    }

    .psc-close {
        right: 0;
    }

    .tv-container {
        width: 100%;
    }

    .tvchart-content,
    .tv-th span {
        font-size: 11px;
    }
}

#gear-right {
    z-index: -1;
}
.modal-open {
    overflow: hidden !important;
}

.table-responsive {
    display: inline-grid;
    width: 100%;
    max-width: 100%;
    min-height: 0%;
    overflow: auto;
}
