/**
 * Global Sizing Chart Component - Premium Design
 */

/* Section Base */
.sizing-chart-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
    overflow: hidden;
}

/* Hero Header */
.sizing-hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.sizing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(254, 0, 0, 0.03) 10px,
        rgba(254, 0, 0, 0.03) 20px
    );
}

.sizing-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.sizing-subtitle {
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    position: relative;
}

/* Main Container */
.sizing-main-container {
    max-width: 1400px;
    padding: 50px 20px;
}

/* Three Column Layout */
.sizing-three-column {
    display: grid;
    grid-template-columns: 280px 350px 1fr;
    gap: 25px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* Column 1: Image */
.sizing-image-col {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sizing-image-col .measure-visual {
    position: relative;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

.sizing-image-col .measure-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.overlay-badge {
    background: #FE0000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Column 2: Measurements */
.sizing-measure-col {
    padding: 30px 25px;
    border-right: 2px solid #f0f0f0;
}

.sizing-measure-col h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000;
    margin: 0 0 18px 0;
    position: relative;
    padding-bottom: 10px;
}

.sizing-measure-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #FE0000;
    border-radius: 2px;
}

/* Measurement Steps */
.measure-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.measure-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.measure-step:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.step-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.step-info {
    flex: 1;
}

.step-info strong {
    display: block;
    font-size: 0.95rem;
    color: #000;
    margin-bottom: 3px;
    font-weight: 700;
}

.step-info p {
    margin: 0;
    color: #666;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Pro Tip */
.measure-pro-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff9f0;
    border-left: 3px solid #FE0000;
    border-radius: 6px;
}

.measure-pro-tip svg {
    flex-shrink: 0;
}

.measure-pro-tip span {
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Column 3: Size Chart */
.sizing-chart-col {
    display: flex;
    flex-direction: column;
}

.chart-header {
    padding: 30px 30px 25px;
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
}

.chart-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000;
    margin: 0 0 15px 0;
}

/* Size Tabs */
.size-tabs {
    display: flex;
    gap: 10px;
}

.size-tab {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-tab:hover {
    border-color: #FE0000;
    color: #FE0000;
    transform: translateY(-2px);
}

.size-tab.active {
    background: #FE0000;
    color: #fff;
    border-color: #FE0000;
    box-shadow: 0 3px 10px rgba(254, 0, 0, 0.3);
}

/* Size Charts Container */
.size-charts {
    padding: 25px 30px;
    flex: 1;
}

/* Size Chart Tables */
.size-chart-table {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.size-chart-table.active {
    display: block;
}

.size-chart-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.size-chart-table th {
    background: #000;
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.size-chart-table th:first-child {
    border-radius: 8px 0 0 0;
}

.size-chart-table th:last-child {
    border-radius: 0 8px 0 0;
}

.size-chart-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 0.9rem;
}

.size-chart-table td:first-child {
    font-weight: 700;
    color: #000;
}

.size-chart-table tr:hover td {
    background: #f8f9fa;
}

.size-chart-table tr:last-child td {
    border-bottom: none;
}

.size-chart-table tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.size-chart-table tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* Chart Footer */
.chart-footer {
    padding: 20px 30px 25px;
    background: #fff;
    margin-top: auto;
    border-top: 2px solid #f0f0f0;
}

.size-note-modern {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.size-note-modern svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.note-content p {
    margin: 4px 0;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

.note-content strong {
    color: #000;
    font-weight: 700;
}

/* Animations */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sizing-three-column {
        grid-template-columns: 250px 320px 1fr;
        gap: 20px;
    }

    .sizing-image-col .measure-visual {
        min-height: 400px;
    }

    .sizing-measure-col {
        padding: 25px 20px;
    }

    .chart-header,
    .size-charts,
    .chart-footer {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 992px) {
    .sizing-main-container {
        padding: 40px 20px;
    }

    .sizing-three-column {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sizing-image-col .measure-visual {
        min-height: 280px;
    }

    .sizing-measure-col {
        padding: 25px 20px;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
    }

    .sizing-measure-col h3,
    .chart-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .sizing-chart-section {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .sizing-hero {
        padding: 20px 0 !important;
        overflow: hidden !important;
    }

    .sizing-title {
        font-size: 1.4rem !important;
        letter-spacing: 1px !important;
    }

    .sizing-subtitle {
        font-size: 0.85rem !important;
        padding: 0 15px !important;
    }

    .sizing-main-container {
        padding: 25px 12px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .sizing-three-column {
        border-radius: 10px !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05) !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .sizing-image-col {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .sizing-image-col .measure-visual {
        min-height: 180px !important;
        max-width: 100% !important;
    }

    .sizing-measure-col {
        padding: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .sizing-measure-col h3 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    .sizing-measure-col h3::after {
        width: 30px !important;
        height: 2px !important;
    }

    .measure-steps {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    .measure-step {
        padding: 8px !important;
        gap: 8px !important;
        border-radius: 6px !important;
    }

    .step-icon {
        font-size: 1rem !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 4px !important;
    }

    .step-info strong {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
    }

    .step-info p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    .measure-pro-tip {
        padding: 10px !important;
        gap: 8px !important;
    }

    .measure-pro-tip span {
        font-size: 0.7rem !important;
    }

    .measure-pro-tip svg {
        width: 16px !important;
        height: 16px !important;
    }

    .chart-header {
        padding: 15px !important;
    }

    .chart-header h3 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .size-tabs {
        gap: 5px !important;
        flex-wrap: wrap !important;
    }

    .size-tab {
        padding: 5px 12px !important;
        font-size: 0.65rem !important;
        border-width: 1px !important;
    }

    .sizing-chart-col {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .size-charts {
        padding: 15px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }

    .size-chart-table {
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    .size-chart-table table {
        min-width: 400px !important;
    }

    .size-chart-table th {
        padding: 8px 10px !important;
        font-size: 0.7rem !important;
        letter-spacing: 0.5px !important;
    }

    .size-chart-table td {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
    }

    .chart-footer {
        padding: 12px 15px !important;
    }

    .size-note-modern {
        gap: 8px !important;
    }

    .size-note-modern svg {
        width: 16px !important;
        height: 16px !important;
    }

    .note-content p {
        font-size: 0.7rem !important;
        margin: 2px 0 !important;
    }
}

@media (max-width: 480px) {
    .sizing-chart-section {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .sizing-hero {
        padding: 15px 0 !important;
    }

    .sizing-title {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }

    .sizing-subtitle {
        font-size: 0.75rem !important;
    }

    .sizing-main-container {
        padding: 15px 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .sizing-three-column {
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .sizing-image-col .measure-visual {
        min-height: 150px !important;
    }

    .overlay-badge {
        padding: 4px 10px !important;
        font-size: 0.65rem !important;
    }

    .sizing-measure-col {
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .sizing-measure-col h3 {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
    }

    .measure-steps {
        gap: 5px !important;
        margin-bottom: 10px !important;
    }

    .measure-step {
        padding: 6px !important;
        gap: 6px !important;
    }

    .step-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.9rem !important;
    }

    .step-info strong {
        font-size: 0.75rem !important;
    }

    .step-info p {
        font-size: 0.65rem !important;
    }

    .measure-pro-tip {
        padding: 8px !important;
    }

    .measure-pro-tip span {
        font-size: 0.65rem !important;
    }

    .chart-header {
        padding: 12px !important;
    }

    .chart-header h3 {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .size-tabs {
        gap: 4px !important;
    }

    .size-tab {
        flex: 1 !important;
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
        text-align: center !important;
    }

    .sizing-chart-col {
        width: 100% !important;
        max-width: 100% !important;
    }

    .size-charts {
        padding: 12px 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .size-chart-table {
        width: 100% !important;
        overflow-x: auto !important;
    }

    .size-chart-table table {
        min-width: 350px !important;
    }

    .size-chart-table th {
        padding: 5px 6px !important;
        font-size: 0.6rem !important;
    }

    .size-chart-table td {
        padding: 5px 6px !important;
        font-size: 0.65rem !important;
    }

    .chart-footer {
        padding: 10px 12px !important;
    }

    .note-content p {
        font-size: 0.65rem !important;
    }
}

/* CTA Section Styles (if used) */
.size-cta-section {
    text-align: center;
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.size-cta-section h3 {
    font-family: 'Arial Black', 'Arial', sans-serif !important;
    font-size: 1.8rem !important;
    color: #1a1a1a !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-top: 0 !important;
}

.size-cta-section p {
    color: #666 !important;
    font-size: 1.1rem !important;
    margin-bottom: 25px !important;
}

.size-cta-section .cta-buttons {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.size-cta-section .btn {
    padding: 15px 35px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
}

.size-cta-section .btn-primary {
    background: #d61d1d !important;
    color: white !important;
    border: 2px solid #d61d1d !important;
}

.size-cta-section .btn-primary:hover {
    background: #b71c1c !important;
    border-color: #b71c1c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(214, 29, 29, 0.3) !important;
    color: white !important;
}

.size-cta-section .btn-secondary {
    background: white !important;
    color: #d61d1d !important;
    border: 2px solid #d61d1d !important;
}

.size-cta-section .btn-secondary:hover {
    background: #d61d1d !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(214, 29, 29, 0.2) !important;
}
