/**shop css**/
/* =============================================================================
   eSIM Wizard Shop — esim-shop.css
   Place in: wp-content/themes/astra-child/assets/css/esim-shop.css
   Enqueued via functions.php
   ============================================================================= */

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
    --esim-purple:   #7C5CFC;
    --esim-pink:     #E040A0;
    --esim-blue:     #4FC3F7;
    --esim-gradient: linear-gradient(135deg, #7C5CFC 0%, #C850A0 60%, #E040A0 100%);
    --esim-gradient-hover: linear-gradient(135deg, #6B4EE8 0%, #B8469A 60%, #CC3590 100%);
    --esim-text:     #0F0F14;
    --esim-mid:      #4A4A5A;
    --esim-light:    #8A8AA0;
    --esim-border:   #E4E4F0;
    --esim-surface:  #F7F7FC;
    --esim-purple-tint: #F0EBFF;
    --esim-white:    #FFFFFF;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
}

/* ── Wrap ───────────────────────────────────────────────────────────────────── */
.esim-wizard-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px 80px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--esim-text);
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.esim-hero {
    text-align: center;
    padding: 52px 24px 44px;
}
.esim-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--esim-purple);
    background: var(--esim-purple-tint);
    border-radius: var(--radius-pill);
    padding: 5px 16px;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.esim-hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--esim-gradient);
    flex-shrink: 0;
}
.esim-hero__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--esim-text);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.esim-hero__gradient {
    background: var(--esim-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.esim-hero__sub {
    font-size: 16px;
    color: var(--esim-mid);
    margin: 0 auto;
    max-width: 440px;
    line-height: 1.6;
}

/* ── Stepper ────────────────────────────────────────────────────────────────── */
.esim-stepper {
    margin-bottom: 44px;
}
.esim-stepper__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.esim-step-item {
    display: flex;
    align-items: center;
}
.esim-step-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--esim-border);
    background: var(--esim-white);
    transition: all 0.3s ease;
}
.esim-step-bubble.active {
    border-color: var(--esim-purple);
    background: var(--esim-purple-tint);
}
.esim-step-bubble.done {
    border-color: rgba(124,92,252,0.3);
    background: #F8F6FF;
}
.esim-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--esim-surface);
    color: var(--esim-mid);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}
.esim-step-bubble.active .esim-step-num {
    background: var(--esim-gradient);
    color: #fff;
}
.esim-step-bubble.done .esim-step-num {
    background: rgba(124,92,252,0.15);
    color: var(--esim-purple);
}
.esim-step-num__check { display: none; }
.esim-step-num__n     { display: block; }
.esim-step-bubble.done .esim-step-num__check { display: block; }
.esim-step-bubble.done .esim-step-num__n     { display: none; }

.esim-step-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--esim-mid);
    white-space: nowrap;
}
.esim-step-bubble.active .esim-step-label { color: var(--esim-purple); }
.esim-step-bubble.done .esim-step-label   { color: var(--esim-purple); }

.esim-step-connector {
    width: 40px;
    height: 1.5px;
    background: var(--esim-border);
    flex-shrink: 0;
    transition: background 0.4s ease;
}
.esim-step-connector.done {
    background: rgba(124,92,252,0.35);
}

/* ── Step panels ─────────────────────────────────────────────────────────────── */
.esim-step-panel {
    display: none;
    animation: esimFadeUp 0.35s ease;
}
.esim-step-panel.visible {
    display: block;
}
@keyframes esimFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Type toggle ────────────────────────────────────────────────────────────── */
.esim-type-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}
.esim-type-btn {
    padding: 10px 28px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--esim-border);
    background: var(--esim-white);
    color: var(--esim-mid);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}
.esim-type-btn:hover {
    border-color: var(--esim-purple);
    color: var(--esim-purple);
}
.esim-type-btn.active {
    background: var(--esim-gradient);
    border-color: transparent;
    color: #fff;
}

/* ── Search box ─────────────────────────────────────────────────────────────── */
.esim-search-container {
    max-width: 540px;
    margin: 0 auto 36px;
    position: relative;
}
.esim-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--esim-border);
    border-radius: var(--radius-md);
    background: var(--esim-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.esim-search-box:focus-within {
    border-color: var(--esim-purple);
    box-shadow: 0 0 0 4px rgba(124,92,252,0.08);
}
.esim-search-icon { opacity: 0.35; flex-shrink: 0; }
.esim-flag-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    flex-shrink: 0;
}
.esim-flag-preview img {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    display: block;
}
.esim-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--esim-text);
    background: transparent;
    min-width: 0;
}
.esim-search-input::placeholder { color: var(--esim-light); }
.esim-search-clear {
    background: none;
    border: none;
    color: var(--esim-light);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 50%;
    transition: all 0.15s;
    line-height: 1;
    flex-shrink: 0;
}
.esim-search-clear:hover { background: var(--esim-surface); color: var(--esim-text); }

/* jQuery UI autocomplete override */
.ui-autocomplete {
    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999 !important;
    border: 1.5px solid var(--esim-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07) !important;
    padding: 6px !important;
    background: var(--esim-white);
}
.ui-menu .ui-menu-item { padding: 0; }
.ui-menu .ui-menu-item-wrapper { padding: 0 !important; }
.ui-menu .ui-menu-item-wrapper.ui-state-active {
    background: var(--esim-surface) !important;
    border: none !important;
    color: inherit !important;
    border-radius: 8px !important;
}
.esim-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    color: var(--esim-text);
    border-radius: 8px;
}
.esim-ac-item img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Region large select */
.esim-select-wrap--large .esim-select--large {
    width: 100%;
    padding: 14px 44px 14px 18px;
    font-size: 15px;
    border-radius: var(--radius-md);
}
.esim-select-wrap {
    position: relative;
}
.esim-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid var(--esim-border);
    border-radius: var(--radius-sm);
    background: var(--esim-white);
    color: var(--esim-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}
.esim-select:hover,
.esim-select:focus {
    border-color: var(--esim-purple);
    box-shadow: 0 0 0 3px rgba(124,92,252,0.07);
}
.esim-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.esim-select-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: var(--esim-light);
}

/* ── Popular chips ───────────────────────────────────────────────────────────── */
.esim-popular-wrap {
    margin-bottom: 36px;
}
.esim-popular-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--esim-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.esim-popular-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
}
.esim-popular-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--esim-border);
    background: var(--esim-white);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--esim-text);
    transition: all 0.2s ease;
    line-height: 1;
}
.esim-popular-chip:hover {
    border-color: var(--esim-purple);
    color: var(--esim-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(124,92,252,0.12);
}
.esim-popular-chip.selected {
    border-color: var(--esim-purple);
    background: var(--esim-purple-tint);
    color: var(--esim-purple);
}
.esim-popular-chip img {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
}

/* ── Step nav ────────────────────────────────────────────────────────────────── */
.esim-step-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--esim-border);
}
.esim-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: var(--radius-pill);
    background: var(--esim-gradient);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}
.esim-btn-next:hover {
    background: var(--esim-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,92,252,0.28);
}
.esim-btn-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Step 2: Destination pill bar ───────────────────────────────────────────── */
.esim-dest-bar {
    margin-bottom: 28px;
}
.esim-dest-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 8px;
    border: 1.5px solid rgba(124,92,252,0.3);
    background: var(--esim-purple-tint);
    border-radius: var(--radius-pill);
}
.esim-dest-pill__flag {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.esim-dest-pill__flag img {
    width: 28px;
    height: 19px;
    object-fit: cover;
    border-radius: 3px;
}
.esim-dest-pill__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--esim-purple);
    padding-right: 4px;
}
.esim-dest-pill__change {
    background: none;
    border: 1.5px solid rgba(124,92,252,0.4);
    border-radius: var(--radius-pill);
    color: var(--esim-purple);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.esim-dest-pill__change:hover {
    background: var(--esim-purple);
    border-color: var(--esim-purple);
    color: #fff;
}

/* ── Filters row ────────────────────────────────────────────────────────────── */
.esim-filters-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    align-items: flex-end;
}
.esim-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 170px;
    flex: 1;
}
.esim-filter-group.disabled .esim-select-arrow { opacity: 0.3; }
.esim-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--esim-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Results header ─────────────────────────────────────────────────────────── */
.esim-results-header {
    margin-bottom: 20px;
}
.esim-results-count {
    font-size: 13px;
    color: var(--esim-mid);
}
.esim-results-count__num {
    font-size: 22px;
    font-weight: 700;
    color: var(--esim-text);
    margin-right: 4px;
}
.esim-results-count__location {
    font-weight: 600;
    color: var(--esim-purple);
}

/* ── Product grid ────────────────────────────────────────────────────────────── */
.esim-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* ── Plan card ───────────────────────────────────────────────────────────────── */
.esim-card {
    background: var(--esim-white);
    border: 1.5px solid var(--esim-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.esim-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--esim-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.esim-card:hover {
    border-color: rgba(124,92,252,0.3);
    transform: translateY(-4px);
    box-shadow: 0 14px 44px rgba(124,92,252,0.1);
}
.esim-card:hover::after {
    transform: scaleX(1);
}
.esim-card--featured {
    border-color: var(--esim-purple);
}
.esim-card--featured::after {
    transform: scaleX(1);
}

.esim-card__badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--esim-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* Card header */
.esim-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.esim-card__flag {
    width: 42px;
    height: 30px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--esim-border);
}
.esim-card__flag--region {
    width: 42px;
    height: 30px;
    border-radius: 6px;
    background: var(--esim-purple-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.esim-card__meta { flex: 1; min-width: 0; }
.esim-card__country {
    font-size: 15px;
    font-weight: 600;
    color: var(--esim-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.esim-card__operator {
    font-size: 12px;
    color: var(--esim-light);
    margin-top: 2px;
}

/* Card specs */
.esim-card__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.esim-spec {
    background: var(--esim-surface);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
}
.esim-spec__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--esim-light);
    margin-bottom: 4px;
}
.esim-spec__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--esim-text);
    line-height: 1.1;
}
.esim-spec__unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--esim-mid);
}

/* Card tags */
.esim-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.esim-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--esim-border);
    color: var(--esim-mid);
    background: var(--esim-white);
    white-space: nowrap;
}
.esim-tag--network    { color: #4F46E5; border-color: #E0DFFF; background: #F5F4FF; }
.esim-tag--roaming    { color: #0891B2; border-color: #CCEDF7; background: #F0FAFC; }
.esim-tag--activation { color: #059669; border-color: #D0F0E8; background: #F0FBF7; }

/* Card footer */
.esim-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--esim-border);
}
.esim-card__price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--esim-text);
    letter-spacing: -0.02em;
    line-height: 1;
}
.esim-card__price-label {
    font-size: 11px;
    color: var(--esim-light);
    margin-top: 3px;
}
.esim-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: var(--esim-gradient);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.esim-card__cta:hover {
    background: var(--esim-gradient-hover);
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(124,92,252,0.28);
    color: #fff;
}

/* ── State boxes ─────────────────────────────────────────────────────────────── */
.esim-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    border: 1.5px dashed var(--esim-border);
    border-radius: var(--radius-lg);
}
.esim-state__icon {
    margin-bottom: 18px;
    opacity: 0.4;
}
.esim-state__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--esim-text);
    margin-bottom: 8px;
}
.esim-state__text,
.esim-state__desc {
    font-size: 14px;
    color: var(--esim-mid);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Spinner */
.esim-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--esim-purple-tint);
    border-top-color: var(--esim-purple);
    animation: esimSpin 0.75s linear infinite;
    margin: 0 auto 18px;
}
@keyframes esimSpin { to { transform: rotate(360deg); } }

/* ── Pagination ───────────────────────────────────────────────────────────────── */
.esim-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.esim-pagination:empty { display: none; }
.esim-page-btn {
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--esim-border);
    background: var(--esim-white);
    color: var(--esim-mid);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.esim-page-btn:hover { border-color: var(--esim-purple); color: var(--esim-purple); }
.esim-page-btn.active {
    background: var(--esim-gradient);
    border-color: transparent;
    color: #fff;
}


/* Slick slider days / package style */
.esim-days-slider-wrapper,
.esim-package-slider-wrapper {
    position: relative;
    overflow: hidden;
}
.esim-days-slider .slick-slide,
.esim-package-slider .slick-slide {
    margin: 0 5px;
}
.slick-track { display: flex; align-items: center; }
.esim-days-slider .slick-slide button,
.esim-package-slider .slick-slide button {
    display: block;
    width: 100%;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--esim-border);
    background: var(--esim-white);
    color: var(--esim-mid);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.esim-days-slider .slick-slide button:hover,
.esim-package-slider .slick-slide button:hover,
.esim-days-slider .slick-slide button.active,
.esim-package-slider .slick-slide button.active {
    background: var(--esim-gradient);
    border-color: transparent;
    color: #fff;
}
.no-days, .no-packages {
    display: block;
    padding: 10px 4px;
    color: var(--esim-light);
    font-size: 13px;
}

#esim-search {
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    background: var(--esim-gradient);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}
#esim-search:hover {
    background: var(--esim-gradient-hover);
    box-shadow: 0 6px 20px rgba(124,92,252,0.28);
    transform: translateY(-1px);
}

/* Loader */
.loader {
    border: 4px solid var(--esim-purple-tint);
    border-top: 4px solid var(--esim-purple);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: esimSpin 0.8s linear infinite;
}
.esim-days-loader,
.esim-package-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ── Responsive ───────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .esim-hero__title { font-size: 30px; }
    .esim-step-connector { width: 20px; }
    .esim-step-label { display: none; }
    .esim-product-grid { grid-template-columns: 1fr; }
    .esim-filters-row { gap: 12px; }
    .esim-filter-group { min-width: calc(50% - 8px); }
    .esim-popular-grid { gap: 8px; }
    .esim-popular-chip { font-size: 13px; padding: 7px 14px; }
    .esim-card__cta { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 400px) {
    .esim-filter-group { min-width: 100%; }
}