/* ============================================
   EMTEL DEVICES PAGE — css/devices.css
   Noto Sans · emtel.com template
   ============================================ */

:root {
    --emtel-red:            #ea0000;
    --emtel-red-dark:       #c50000;
    --emtel-red-light:      #ff1a1a;
    --emtel-red-shadow:     rgba(234, 0, 0, 0.2);
    --emtel-red-shadow-md:  rgba(234, 0, 0, 0.25);
    --emtel-red-shadow-lg:  rgba(234, 0, 0, 0.3);
    --emtel-red-gradient:   linear-gradient(135deg, var(--emtel-red), var(--emtel-red-light));
    --black:              #000;
    --text-primary:         #1a1a1a;
    --text-body:            #333;
    --text-secondary:       #555;
    --text-muted:           #666;
    --text-light:           #888;
    --text-disabled:        #999;
    --text-placeholder:     #aaa;
    --text-pill:            #444;
    --bg-white:             #fff;
    --bg-light:             #f8f8f8;
    --bg-card:              #f5f5f5;
    --bg-card-image:        #f5f5f7;
    --bg-close:             #f2f2f2;
    --border-light:         #eee;
    --border-default:       #ccc;
    --border-card:          #ddd;
    --border-hover:         #bbb;
    --overlay-bg:           rgba(0, 0, 0, 0.45);
    --shadow-card:          0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-card-hover:    0 8px 30px rgba(0, 0, 0, 0.10);
    --shadow-panel:         0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-dot:           0 1px 3px rgba(0, 0, 0, 0.15);
    --shadow-swatch:        0 1px 4px rgba(0, 0, 0, 0.15);
    --shadow-scroll:        0 2px 8px rgba(0, 0, 0, 0.08);
    --hero-bg:              #1a1a1a;
    --hero-text:            rgba(255, 255, 255, 0.75);
    --hero-text-strong:     #fff;
    --link-accent:          #00b4d8;
    --bundle-bg:            #0b2a45;
    --bundle-bg-alt:        #0d1f33;
    --bundle-accent:        #0d7ea0;
    --font-main:            'Noto Sans', sans-serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 30px; }


/* ============================
   NEW EMI HIGHLIGHT CARD
   ============================ */

.emi-highlight-card {
    background: linear-gradient(135deg, #ffffff, #f8f8f8);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.emi-highlight-card div {
    display: flex;
    flex-direction: column;
}

.emi-highlight-label {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.emi-highlight-value {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

/* OPTIONAL: make it more premium */
.emi-section {
    background: linear-gradient(180deg, #fafafa, #f3f3f3);
}


/* ---------- HERO BANNER ---------- */
.hero-banner {
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
    max-width: 1320px; margin: 0 auto;
    padding: 60px 60px 60px 80px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; min-height: 460px;
}
.hero-text     { flex: 0 1 500px; }
.hero-subtitle { font-size: 28px; font-weight: 300; color: var(--hero-text); margin-bottom: 12px; line-height: 1.3; }
.hero-title    { font-size: 52px; font-weight: 800; font-style: italic; color: var(--hero-text-strong); margin-bottom: 8px; line-height: 1.15; }
.text-red      { color: var(--emtel-red); }

/* ---------- CTA BUTTONS ---------- */
.btn-cta-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: var(--emtel-red); color: var(--bg-white);
    font-size: 15px; font-weight: 600; border-radius: 30px;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-cta-primary:hover { background: var(--emtel-red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--emtel-red-shadow-lg); color: var(--bg-white); }

.btn-cta-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; background: var(--bg-white); color: var(--emtel-red);
    font-size: 15px; font-weight: 600; border-radius: 30px;
    border: 1.5px solid var(--emtel-red); transition: all .2s;
}
.btn-cta-secondary:hover { background: var(--emtel-red); color: var(--bg-white); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb-bar { padding: 16px 0; background: var(--bg-white); }
.breadcrumb     { list-style: none; display: flex; align-items: center; gap: 0; font-size: 13px; font-weight: 500; }
.breadcrumb li  { display: flex; align-items: center; }
.breadcrumb li + li::before {
    content: ''; display: inline-block; width: 5px; height: 5px;
    border-right: 1.5px solid var(--text-disabled); border-top: 1.5px solid var(--text-disabled);
    transform: rotate(45deg); margin: 0 10px;
}
.breadcrumb a        { color: var(--emtel-red); transition: color .2s; }
.breadcrumb a:hover  { color: var(--emtel-red-dark); text-decoration: underline; }
.breadcrumb .current { color: var(--text-body); }

/* ---------- FILTER ---------- */
.filter-section { padding: 40px 0 20px; }
.filter-heading { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 24px; }
.filter-pills   { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.filter-pill {
    padding: 9px 28px; border-radius: 24px; border: 1.5px solid var(--border-default);
    font-size: 14px; font-weight: 500; color: var(--text-pill); background: var(--bg-white);
    transition: all .2s; white-space: nowrap;
}
.filter-pill:hover  { border-color: var(--emtel-red); color: var(--emtel-red); }
.filter-pill.active { background: var(--emtel-red); border-color: var(--emtel-red); color: var(--bg-white); }

/* ---------- DEVICE GRID ---------- */
.devices-section { padding: 20px 0 80px; }
.devices-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ---------- DEVICE CARD ---------- */
.device-card {
    background: var(--bg-white); border-radius: 16px; overflow: hidden;
    transition: box-shadow .3s, transform .3s; display: flex; flex-direction: column;
    box-shadow: var(--shadow-card);
}
.device-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }

.device-card-image {
    position: relative; background: var(--bg-card-image);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 30px; min-height: 340px;
}
.device-card-image .device-img { max-height: 280px; object-fit: contain; transition: transform .3s; }
.device-card:hover .device-img { transform: scale(1.03); }

.device-card-body {
    padding: 20px 28px 28px; flex: 1;
    display: flex; flex-direction: column; align-items: center; background: var(--bg-white);
}

.card-color-dots { display: flex; gap: 6px; margin-bottom: 14px; justify-content: center; }
.card-color-dot {
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; transition: border-color .2s, transform .15s; box-shadow: var(--shadow-dot);
}
.card-color-dot:hover  { transform: scale(1.15); }
.card-color-dot.active { border-color: var(--emtel-red); }

.availability-tag {
    display: inline-block; border: 1.5px solid var(--emtel-red); color: var(--text-body);
    font-size: 11px; font-weight: 500; padding: 4px 14px; border-radius: 3px; margin-bottom: 14px;
}
.device-name { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.3; width: 100%; text-align: left; }
.device-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; width: 100%; }
.current-price { font-size: 20px; font-weight: 700; color: var(--emtel-red); }
.old-price     { font-size: 14px; color: var(--text-disabled); text-decoration: line-through; }
.vat-label     { font-size: 12px; color: var(--text-light); }

.btn-view-more {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 13px; border-radius: 28px;
    border: 1.5px solid var(--emtel-red); color: var(--emtel-red);
    font-size: 14px; font-weight: 600; letter-spacing: .5px;
    background: var(--bg-white); transition: all .2s; margin-top: auto;
}
.btn-view-more:hover { background: var(--emtel-red); color: var(--bg-white); }

/* =============================================
   DEVICE DETAIL PAGE
   ============================================= */
.detail-section { padding: 20px 0 60px; }

.detail-layout {
    display: flex; gap: 48px; align-items: flex-start;
}

.detail-left {
    flex: 0 0 480px;
    display: flex; flex-direction: column; align-items: center;
    position: sticky; top: 24px;
}

.detail-image-wrap {
    background: var(--bg-card-image); border-radius: 16px; padding: 40px;
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 400px; margin-bottom: 20px;
}
.detail-main-img { max-height: 340px; object-fit: contain; transition: opacity .3s; }

.detail-thumbs { display: flex; gap: 8px; margin-bottom: 16px; }
.detail-thumb {
    width: 60px; height: 60px; object-fit: contain;
    border: 2px solid transparent; border-radius: 10px;
    background: var(--bg-card); padding: 4px; cursor: pointer; transition: border-color .2s;
}
.detail-thumb.active, .detail-thumb:hover { border-color: var(--emtel-red); }

.detail-color-info        { font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.detail-color-info strong { color: var(--text-body); }
.detail-color-swatches    { display: flex; gap: 10px; }
.detail-swatch {
    width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent;
    cursor: pointer; transition: border-color .2s, transform .15s;
    box-shadow: var(--shadow-swatch); outline: 2px solid transparent; outline-offset: 2px;
}
.detail-swatch:hover  { transform: scale(1.1); }
.detail-swatch.active { outline-color: var(--emtel-red); }

.detail-right { flex: 1; min-width: 0; }
.detail-brand { font-size: 14px; color: var(--text-light); font-weight: 500; margin-bottom: 4px; }
.detail-title { font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; line-height: 1.2; }

.detail-price-row     { display: flex; align-items: baseline; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.detail-current-price { font-size: 30px; font-weight: 700; color: var(--text-primary); }
.detail-old-price     { font-size: 18px; color: var(--text-placeholder); text-decoration: line-through; }

.detail-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- EMI SECTION ---------- */
.emi-section {
    background: var(--bg-light); border-radius: 16px; padding: 28px 28px 24px;
}
.emi-heading {
    font-size: 20px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 4px; display: flex; align-items: center; gap: 10px;
}
.emi-badge {
    font-size: 11px; font-weight: 700; color: var(--bg-white);
    background: #27ae60; padding: 3px 10px; border-radius: 12px;
}
.emi-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.emi-tabs { display: flex; gap: 0; margin-bottom: 20px; }
.emi-tab {
    flex: 1; padding: 11px 0; text-align: center; font-size: 14px; font-weight: 600;
    border: 1.5px solid var(--border-default); background: var(--bg-white);
    color: var(--text-pill); transition: all .2s; cursor: pointer;
}
.emi-tab:first-child { border-radius: 8px 0 0 8px; }
.emi-tab:last-child  { border-radius: 0 8px 8px 0; border-left: 0; }
.emi-tab.active      { background: var(--emtel-red); border-color: var(--emtel-red); color: var(--bg-white); }

.emi-panel       { display: none; }
.emi-panel.active { display: block; animation: emiFade .3s; }
@keyframes emiFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.emi-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.emi-stat {
    background: var(--bg-white); border-radius: 10px; padding: 16px 18px;
    display: flex; flex-direction: column;
}
.emi-stat-highlight { grid-column: 1 / -1; border: 2px solid var(--emtel-red); }
.emi-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.emi-stat-value { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.emi-big        { font-size: 28px; color: var(--emtel-red); }
.emi-stat-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* =============================================
   POSTPAID BUNDLE OFFERS SECTION
   ============================================= */
.bundles-section { margin: 0; }

.bundles-bg {
    background: var(--black);
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(13,126,160,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(13,126,160,0.10) 0%, transparent 50%);
    padding: 60px 0 40px;
}
.bundles-bg-alt { background-color: var(--bg-card-image); }

.bundles-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px;
}
.bundles-title {
    font-size: 30px; font-weight: 700; color: var(--bg-white); line-height: 1.3;
}

.bundles-nav { display: flex; gap: 8px; }
.bundles-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--emtel-red); color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; transition: background .2s, color .2s;
}
.bundles-arrow:hover { background: var(--emtel-red-dark); color: var(--bg-white); }

.bundles-track-wrap { overflow: hidden; margin: 0 -8px; }
.bundles-track {
    display: flex; gap: 24px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 0 8px 16px; scrollbar-width: none;
}
.bundles-track::-webkit-scrollbar { display: none; }

/* ---------- BUNDLE CARD ---------- */
.bundle-card {
    flex: 0 0 300px; scroll-snap-align: start;
    background: var(--bg-white); border-radius: 16px;
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.bundle-card:hover {box-shadow: 0 12px 40px rgba(0,0,0,0.2); }

.bundle-card-top {
    padding: 28px 24px 20px; text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.bundle-option {
    display: inline-block; padding: 4px 18px; border-radius: 20px;
    color: var(--bg-white); font-size: 12px; font-weight: 700;
    letter-spacing: .8px; margin-bottom: 14px;
}
.bundle-device-name { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.bundle-plus        { font-size: 18px; color: var(--text-light); margin: 4px 0; }
.bundle-plan-name   { font-size: 18px; font-weight: 700; color: var(--text-primary); }

.bundle-card-features {
    padding: 20px 24px; flex: 1; text-align: center;
    display: flex; flex-direction: column; gap: 10px;
    border-bottom: 1px solid var(--border-light);
}
.bundle-feat        { font-size: 15px; color: var(--text-body); }
.bundle-feat strong { font-weight: 700; }
.bundle-feat-label  { display: block; font-size: 12px; color: var(--text-light); margin-top: 1px; }

.bundle-card-price {
    padding: 24px 24px 28px; text-align: center;
}
.bundle-monthly {
    font-size: 16px; color: var(--text-primary); margin-bottom: 6px;
}
.bundle-monthly strong { font-size: 28px; font-weight: 800; color: var(--emtel-red); }
.bundle-monthly span   { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.bundle-deposit  { font-size: 14px; color: var(--text-body); margin-bottom: 4px; }
.bundle-contract { font-size: 14px; color: var(--text-body); }

.bundles-footer {
    text-align: center; padding-top: 28px;
    font-size: 14px; color: rgba(255,255,255,0.6);
}
.bundles-link { color: rgba(255,255,255,0.7); text-decoration: none; transition: color .2s; }
.bundles-link:hover { color: var(--bg-white); }
.bundles-sep  { margin: 0 8px; }

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
    position: fixed; bottom: 24px; left: 20px;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid var(--border-default); background: var(--bg-white);
    color: var(--text-secondary); font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s, background .2s;
    z-index: 50; box-shadow: var(--shadow-scroll);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover   { background: var(--emtel-red); border-color: var(--emtel-red); color: var(--bg-white); }

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 1024px) {
    .hero-content { padding: 40px; }
    .hero-subtitle { font-size: 22px; }
    .hero-title    { font-size: 40px; }

    .devices-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .device-card-image { min-height: 280px; padding: 30px 24px; }
    .device-card-image .device-img { max-height: 230px; }

    .detail-layout { flex-direction: column; gap: 32px; }
    .detail-left   { flex: none; width: 100%; position: static; }
    .detail-image-wrap { min-height: 300px; }
    .detail-main-img   { max-height: 260px; }

    .bundle-card { flex: 0 0 290px; }
    .bundles-title { font-size: 24px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero-content  { flex-direction: column; padding: 36px 24px; min-height: auto; gap: 20px; }
    .hero-text     { flex: none; text-align: center; }
    .hero-subtitle { font-size: 18px; }
    .hero-title    { font-size: 32px; }

    .filter-heading { font-size: 17px; }
    .filter-pills   { gap: 8px; }
    .filter-pill    { padding: 7px 18px; font-size: 13px; }

    .devices-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .device-card-image { padding: 24px 16px; min-height: 220px; }
    .device-card-image .device-img { max-height: 180px; }
    .device-card-body  { padding: 16px 18px 22px; }
    .device-name       { font-size: 16px; }
    .current-price     { font-size: 17px; }
    .btn-view-more     { padding: 11px; font-size: 13px; }

    .detail-title         { font-size: 24px; }
    .detail-current-price { font-size: 24px; }

    .emi-grid { grid-template-columns: 1fr; }

    .detail-cta-row { flex-direction: column; }
    .btn-cta-primary, .btn-cta-secondary { width: 100%; justify-content: center; }

    .bundles-bg { padding: 40px 20px 32px; }
    .bundles-title { font-size: 22px; }
    .bundle-card { flex: 0 0 270px; }
    .bundle-monthly strong { font-size: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content { padding: 24px 16px; }
    .hero-subtitle { font-size: 15px; }
    .hero-title    { font-size: 26px; }
    .breadcrumb    { font-size: 11px; }
    .filter-heading { font-size: 15px; }

    .devices-grid { grid-template-columns: 1fr; gap: 20px; }
    .device-card-image { min-height: 280px; padding: 32px 20px; }
    .device-card-image .device-img { max-height: 240px; }
    .device-card-body  { padding: 18px 22px 24px; }
    .device-name       { font-size: 18px; }
    .current-price     { font-size: 19px; }

    .detail-section { padding: 24px 0 40px; }
    .detail-image-wrap { min-height: 240px; padding: 24px; }
    .detail-main-img   { max-height: 200px; }
    .detail-thumb { width: 48px; height: 48px; }
    .detail-title { font-size: 22px; }
    .detail-current-price { font-size: 22px; }

    .emi-section { padding: 20px 18px; }
    .emi-heading { font-size: 17px; }
    .emi-big     { font-size: 24px; }

    .bundles-bg { padding: 32px 20px 24px; }
    .bundles-title { font-size: 20px; }
    .bundle-card { flex: 0 0 260px; }
}