/* -------------------------
   B2B Variation Table
------------------------- */
.b2b-variation-table-wrapper {
    border: 1px solid #ffcc80;
    background-color: #fffaf0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.b2b-table-header {
    background-color: #fff9f0;
    padding: 10px 15px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    border-bottom: 1px dashed #ffcc80;
}
.b2b-variation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #fde7cb;
}
.b2b-variation-row:last-child {
    border-bottom: none;
}
.b2b-variation-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    flex: 1;
}
.b2b-variation-price {
    font-weight: 700;
    color: #444;
    font-size: 13px;
    flex: 1.5;
    text-align: left;
}
.b2b-variation-price-sub {
    font-weight: 400;
    color: #888;
    font-size: 11px;
}
.b2b-add-btn {
    background-color: #f08621;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 12px;
    transition: all .2s;
}
.b2b-add-btn:hover {
    background-color: #d17218;
    color: #fff;
}
.b2b-total-row {
    background-color: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ffcc80;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}
.b2b-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #f08621;
    border-radius: 4px;
    overflow: hidden;
}
.b2b-qty-btn {
    background-color: #fff;
    color: #f08621;
    border: none;
    padding: 4px 10px;
    font-weight: bold;
    cursor: pointer;
}
.b2b-qty-btn:hover {
    background-color: #fff4ea;
}
.b2b-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #f08621;
    border-right: 1px solid #f08621;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    padding: 4px 0;
    outline: none;
    -moz-appearance: textfield;
}
.b2b-qty-input::-webkit-outer-spin-button,
.b2b-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* -------------------------
   Mixed Box
------------------------- */
.mixed-box-badge {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: #e65100;
}
.mixed-box-badge svg {
    color: #e65100;
}
.mixed-box-contents {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px 16px;
}
.mixed-box-title {
    font-size: 13px;
    font-weight: 600;
}
.mixed-box-items-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mixed-box-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
}
.mixed-box-item-name {
    font-weight: 500;
    color: #333;
}
.mixed-box-item-qty {
    font-weight: 700;
    color: #667eea;
    background: #f0f4ff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
}
.mixed-box-price-summary {
    border-top: 1px solid #eee;
    padding-top: 12px;
}
.mixed-box-price {
    font-size: 18px;
}
.mixed-box-per-box,
.mixed-box-per-piece {
    font-size: 13px;
}

/* Button */
.size-chart-btn {
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.size-chart-btn::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: #2c3e50;
    margin-top: 2px;
    transition: 0.3s;
}

.size-chart-btn:hover {
    color: #000;
}

/* Modal */
.size-chart-modal {
    border-radius: 10px;
    border: none;
    overflow: hidden;
}

/* Header */
.size-chart-header {
    background: #1f2f3e; /* your navbar tone */
    color: #fff;
    padding: 14px 18px;
    border-bottom: none;
}

.size-chart-header h5 {
    font-size: 16px;
    font-weight: 600;
}

/* Close */
.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #fff;
    opacity: 0.8;
}

.close-btn:hover {
    opacity: 1;
}

/* Image */
.size-chart-image-wrap img {
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Table */
.size-chart-table {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.size-chart-table thead {
    background: #f8f9fa;
}

.size-chart-table th {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #555;
    padding: 10px;
}

.size-chart-table td {
    font-size: 13px;
    padding: 10px;
    color: #333;
}

.size-chart-table tbody tr:hover {
    background: #fafafa;
}
.table:not(.table-dark) thead:not(.thead-dark) th {
    color: #fff;
}
/* Note */
.size-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

/* -------------------------
   Suitable For Grid
------------------------- */
.suitable-for-heading {
    color: #333;
    font-size: 16px;
}
.suitable-for-grid {
    row-gap: 20px;
    column-gap: 15px;
}
.suitable-icon-wrapper {
    width: 80px;
}
.sf-icon {
    height: 45px;
    width: 45px;
    color: #f08621;
}
.sf-icon svg {
    filter: drop-shadow(0px 2px 3px rgba(240, 134, 33, 0.2));
    transition: transform .2s ease-in-out;
}
.suitable-icon-wrapper:hover .sf-icon svg {
    transform: scale(1.1);
}
.sf-label {
    font-size: 11px;
    font-weight: 500;
    color: #555;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
}

/* -------------------------
   Suitable For Badges
------------------------- */
.suitable-for-icons-title {
    font-size: 14px;
}
.suitable-for-badge {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 100%);
    border: 1px solid #d0d8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #444;
    transition: all .2s ease;
    cursor: default;
}
.suitable-for-badge:hover {
    background: linear-gradient(135deg, #e2e8ff 0%, #d6dcf4 100%);
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102,126,234,.15);
}
.suitable-for-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}
.suitable-for-icon svg {
    width: 16px;
    height: 16px;
}
.suitable-for-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
}
.suitable-for-icon-fa {
    font-size: 14px;
    color: #667eea;
}
.suitable-for-label {
    font-weight: 500;
    white-space: nowrap;
}

/* -------------------------
   Responsive
------------------------- */
@media (max-width: 768px) {
    .b2b-variation-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .b2b-variation-name,
    .b2b-variation-price {
        flex: 100%;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .mixed-box-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .mixed-box-contents {
        padding: 10px 12px;
    }

    .mixed-box-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    .size-chart-table-frontend th,
    .size-chart-table-frontend td {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .suitable-icon-wrapper {
        width: 65px;
    }

    .sf-icon {
        height: 38px !important;
        width: 38px !important;
    }

    .sf-label {
        font-size: 10px !important;
    }

    .suitable-for-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .suitable-for-icon,
    .suitable-for-icon-img {
        width: 14px;
        height: 14px;
    }
}