/* ==================== SIM STORE GÓI CƯỚC CSS ==================== */
/* Extends sim-store.css - chỉ thêm phần plan selector & overrides */

/* ---- Plan Area ---- */
.sim-gc-plan-area {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    border: 1px solid #eef1f5;
}

.sim-gc-plan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
}

.sim-gc-plan-header svg {
    color: #005baa;
    flex-shrink: 0;
}

/* ---- Carrier Tabs ---- */
.sim-gc-carrier-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ---- Plan Cards Grid ---- */
.sim-gc-plan-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==================== PLAN CARD - viettelup style ==================== */
.sim-gc-plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 155px;
    padding: 0;
    border: 2px solid #e8edf3;
    border-radius: 14px;
    background: linear-gradient(180deg, #f0f6ff 0%, #fff 50%);
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
    position: relative;
}

.sim-gc-plan-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,91,170,0.12);
}

.sim-gc-plan-card.selected {
    border-color: #005baa;
    background: linear-gradient(180deg, #e0efff 0%, #f0f6ff 50%);
    box-shadow: 0 4px 16px rgba(0,91,170,0.18);
}

/* Card header: plan name + HOT badge */
.sim-gc-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 10px 6px;
    border-bottom: 1px solid rgba(0,91,170,0.08);
}

.sim-gc-plan-name {
    font-size: 15px;
    font-weight: 800;
    color: #1a3a5c;
    letter-spacing: 0.3px;
}

.sim-gc-plan-card.selected .sim-gc-plan-name {
    color: #005baa;
}

/* HOT badge */
.sim-gc-hot {
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff4444, #ff6600);
    color: #fff;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* Hero: DATA amount - prominent display */
.sim-gc-card-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px 6px;
    min-height: 70px;
}

.sim-gc-data-amount {
    font-size: 32px;
    font-weight: 900;
    color: #005baa;
    line-height: 1;
    letter-spacing: -0.5px;
}

.sim-gc-plan-card.selected .sim-gc-data-amount {
    color: #003d7a;
}

.sim-gc-data-unit {
    font-size: 16px;
    font-weight: 800;
    margin-left: 1px;
}

.sim-gc-data-period {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: lowercase;
    margin-top: 2px;
}

.sim-gc-data-text {
    font-size: 14px;
    font-weight: 700;
    color: #005baa;
    text-align: center;
}

/* Data extra info */
.sim-gc-data-extra {
    font-size: 11px;
    color: #666;
    text-align: center;
    padding: 0 8px 4px;
    line-height: 1.3;
}

/* Bonus badges (call, sms) */
.sim-gc-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 4px 8px 8px;
    min-height: 24px;
}

.sim-gc-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #555;
    background: transparent;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-gc-badge svg {
    flex-shrink: 0;
    color: #005baa;
}

.sim-gc-plan-card.selected .sim-gc-badge {
    background: transparent;
    color: #333;
}

/* Price at bottom - always stick to bottom */
.sim-gc-card-price {
    width: 100%;
    text-align: center;
    padding: 8px 8px 10px;
    margin-top: auto;
    border-top: 1px solid rgba(0,91,170,0.08);
    background: rgba(0,91,170,0.02);
}

.sim-gc-price-value {
    font-size: 14px;
    font-weight: 800;
    color: #e53e3e;
}

.sim-gc-plan-card.selected .sim-gc-card-price {
    background: rgba(0,91,170,0.06);
}

/* Selected check icon */
.sim-gc-card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #005baa;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.sim-gc-plan-card.selected .sim-gc-card-check {
    opacity: 1;
    transform: scale(1);
}

/* ---- Plan Loading ---- */
.sim-gc-plan-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #005baa;
    font-size: 14px;
}

/* ---- Table: Gói cước + Ưu đãi column ---- */
.sim-gc-plan-col {
    text-align: left !important;
    max-width: 200px;
}

.sim-gc-plan-col strong {
    display: block;
    font-size: 13px;
    color: #005baa;
    margin-bottom: 2px;
}

.sim-gc-benefits-text {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    white-space: normal;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 991px) {
    /* Plan cards horizontal scroll */
    .sim-gc-plan-cards {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .sim-gc-plan-card {
        flex: 0 0 140px;
        width: 140px;
        scroll-snap-align: start;
    }

    .sim-gc-plan-cards::-webkit-scrollbar {
        height: 4px;
    }

    .sim-gc-plan-cards::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    /* Hide filter toggle button & sidebar */
    .sim-gc-section .sim-filter-toggle-btn {
        display: none !important;
    }

    .sim-gc-section .sim-sidebar-filters {
        display: none !important;
    }

    /* Main content takes full width */
    .sim-gc-section .sim-filter-wrap {
        gap: 0;
    }

    .sim-gc-section .sim-main-content {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .sim-gc-plan-area {
        padding: 12px;
        margin-bottom: 14px;
        border-radius: 8px;
    }

    .sim-gc-plan-header {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .sim-gc-plan-card {
        flex: 0 0 130px;
        width: 130px;
    }

    .sim-gc-card-header {
        padding: 8px 6px 4px;
    }

    .sim-gc-plan-name {
        font-size: 13px;
    }

    .sim-gc-card-hero {
        padding: 10px 6px 4px;
        min-height: 58px;
    }

    .sim-gc-data-amount {
        font-size: 26px;
    }

    .sim-gc-data-unit {
        font-size: 13px;
    }

    .sim-gc-data-period {
        font-size: 11px;
    }

    .sim-gc-badge {
        font-size: 9px;
        padding: 1px 4px;
    }

    .sim-gc-price-value {
        font-size: 12px;
    }

    .sim-gc-card-price {
        padding: 6px 6px 8px;
    }

    .sim-gc-carrier-tabs {
        gap: 6px;
    }

    /* Section near edge-to-edge with small padding */
    .sim-gc-section.sim-filter-section {
        padding-left: 3px;
        padding-right: 3px;
    }

    /* Search box near full width */
    .sim-gc-section .sim-search-field {
        margin-left: 0;
        margin-right: 0;
    }

    .sim-gc-section .sim-search-box {
        border-radius: 6px;
    }

    /* Table near full width */
    .sim-gc-section .sim-table-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .sim-gc-section .sim-table {
        border-radius: 0;
    }

    /* Hide "Gói cước + Ưu đãi" column */
    .sim-gc-plan-col {
        display: none;
    }
}
