/* eSIM Product Grid 4951 */

.epg-4951-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Section Title */
.epg-4951-section-title {
    margin-top: 0;
    margin-bottom: 24px;
    color: #1a1a2e;
    line-height: 1.3;
}

/* Grid Mode */
.epg-4951-grid {
    display: grid;
    gap: 16px;
}

.epg-4951-cols-1 { grid-template-columns: repeat(1, 1fr); }
.epg-4951-cols-2 { grid-template-columns: repeat(2, 1fr); }
.epg-4951-cols-3 { grid-template-columns: repeat(3, 1fr); }
.epg-4951-cols-4 { grid-template-columns: repeat(4, 1fr); }
.epg-4951-cols-5 { grid-template-columns: repeat(5, 1fr); }
.epg-4951-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .epg-4951-cols-t-1 { grid-template-columns: repeat(1, 1fr); }
    .epg-4951-cols-t-2 { grid-template-columns: repeat(2, 1fr); }
    .epg-4951-cols-t-3 { grid-template-columns: repeat(3, 1fr); }
    .epg-4951-cols-t-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .epg-4951-cols-m-1 { grid-template-columns: repeat(1, 1fr); }
    .epg-4951-cols-m-2 { grid-template-columns: repeat(2, 1fr); }
    .epg-4951-cols-m-3 { grid-template-columns: repeat(3, 1fr); }
}

/* List Mode */
.epg-4951-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.epg-4951-mode-list .epg-4951-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.epg-4951-mode-list .epg-4951-header {
    flex: 0 0 200px;
    border-radius: 0;
    border-right: 1px solid #e5e7eb;
    padding-right: 16px;
}

.epg-4951-mode-list .epg-4951-table {
    flex: 1;
}

.epg-4951-mode-list .epg-4951-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.epg-4951-mode-list .epg-4951-divider {
    display: none;
}

@media (max-width: 767px) {
    .epg-4951-mode-list .epg-4951-card {
        flex-direction: column;
        align-items: stretch;
    }
    .epg-4951-mode-list .epg-4951-header {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 12px;
    }
}

/* Card */
.epg-4951-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.epg-4951-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Header */
.epg-4951-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
}

.epg-4951-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.epg-4951-flag-placeholder {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.epg-4951-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    word-break: break-word;
}

/* Divider */
.epg-4951-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0;
}

/* Table */
.epg-4951-table {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.epg-4951-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.epg-4951-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    white-space: nowrap;
}

.epg-4951-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

.epg-4951-price ins {
    text-decoration: none;
}

.epg-4951-price del {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

/* Button */
.epg-4951-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #2563eb;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    margin-top: auto;
}

.epg-4951-btn:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Empty */
.epg-4951-empty {
    text-align: center;
    color: #6b7280;
    padding: 32px;
}

/* Pagination */
.epg-4951-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.epg-4951-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.epg-4951-pagination .page-numbers.current,
.epg-4951-pagination .page-numbers:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Slider Mode */
.epg-4951-slider {
    position: relative;
    overflow: hidden;
}

.epg-4951-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.epg-4951-slider-track .epg-4951-card {
    flex: 0 0 auto;
}

.epg-4951-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s, box-shadow 0.2s;
    color: #374151;
}

.epg-4951-arrow:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.epg-4951-prev { left: 8px; }
.epg-4951-next { right: 8px; }

.epg-4951-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.epg-4951-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
}

.epg-4951-dot.active {
    background: #2563eb;
    transform: scale(1.3);
}
