/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --orange: #f97316;
    --orange-dark: #ea6a08;
    --orange-light: #fff7ed;
    --blue: #1e40af;
    --blue-light: #eff6ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --red: #dc2626;
    --red-light: #fef2f2;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.10);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --radius: 10px;
    --radius-sm: 6px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--gray-900); background: var(--gray-50); line-height: 1.6; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.page-content { padding: 2rem 0 4rem; }

/* ===== HEADER ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.logo-link { display: flex; align-items: center; gap: .6rem; color: var(--gray-900); font-weight: 700; font-size: 1.1rem; }
.logo-link:hover { text-decoration: none; }
.logo-img { height: 32px; width: auto; }
.logo-text { color: var(--orange); }
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.main-nav a { color: var(--gray-700); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--orange); text-decoration: none; }
.cart-btn { display: flex; align-items: center; gap: .5rem; background: var(--orange); color: #fff; padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; position: relative; }
.cart-btn:hover { background: var(--orange-dark); text-decoration: none; color: #fff; }
.cart-badge { background: #fff; color: var(--orange); border-radius: 999px; padding: .1rem .45rem; font-size: .75rem; font-weight: 700; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%); padding: 3rem 0 2.5rem; text-align: center; border-bottom: 1px solid var(--gray-200); }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; color: var(--gray-900); margin-bottom: .75rem; }
.hero p { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto 1.5rem; }
.hero-badges { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--gray-200); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 600; color: var(--gray-700); }
.badge.green { background: var(--green-light); border-color: #86efac; color: var(--green); }
.badge.blue { background: var(--blue-light); border-color: #93c5fd; color: var(--blue); }

/* ===== FILTERS ===== */
.filters { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 1rem 0; position: sticky; top: 64px; z-index: 90; }
.filters-inner { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.filter-group { display: flex; flex-direction: column; gap: .3rem; }
.filter-group label { font-size: .75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
.filter-group select, .filter-group input[type=range] { border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: .4rem .75rem; font-size: .9rem; background: #fff; color: var(--gray-900); cursor: pointer; }
.filter-group select:focus { outline: 2px solid var(--orange); border-color: transparent; }
.filter-reset { margin-left: auto; padding: .4rem .9rem; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: .85rem; cursor: pointer; color: var(--gray-700); }
.filter-reset:hover { background: var(--gray-200); }

/* ===== PLANS GRID ===== */
.plans-section { padding: 2rem 0; }
.plans-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.plans-header h2 { font-size: 1.15rem; font-weight: 700; color: var(--gray-700); }
.plans-count { font-size: .9rem; color: var(--gray-500); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.plan-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan-card.business { border-left: 4px solid var(--orange); }
.plan-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.provider-info h3 { font-size: .95rem; font-weight: 700; color: var(--gray-900); }
.network-tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; margin-top: .25rem; }
.network-odido { background: #fef3c7; color: #92400e; }
.network-vodafone { background: #fee2e2; color: #991b1b; }
.network-kpn { background: #dbeafe; color: #1e40af; }
.plan-price { text-align: right; }
.price-amount { font-size: 1.5rem; font-weight: 800; color: var(--orange); }
.price-per { font-size: .75rem; color: var(--gray-500); }
.plan-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .75rem; margin-bottom: 1rem; }
.spec-item { display: flex; flex-direction: column; }
.spec-label { font-size: .7rem; color: var(--gray-500); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.spec-value { font-size: .9rem; font-weight: 700; color: var(--gray-900); }
.spec-value.highlight { color: var(--orange); }
.plan-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tag { font-size: .72rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; }
.tag-business { background: var(--orange-light); color: var(--orange-dark); border: 1px solid #fed7aa; }
.tag-contract { background: var(--gray-100); color: var(--gray-700); }
.plan-actions { margin-top: auto; display: flex; gap: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; cursor: pointer; border: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; flex: 1; }
.btn-primary:hover { background: var(--orange-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-secondary:hover { background: var(--gray-200); text-decoration: none; color: var(--gray-900); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; text-decoration: none; }
.btn-danger { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; }
.btn-danger:hover { background: #fecaca; text-decoration: none; color: var(--red); }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== PLAN DETAIL ===== */
.plan-detail { max-width: 800px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.plan-detail-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); padding: 2rem; }
.plan-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; gap: 1rem; }
.plan-detail-title h1 { font-size: 1.5rem; font-weight: 800; }
.plan-detail-price { text-align: right; }
.plan-detail-price .price-amount { font-size: 2.2rem; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 600px) { .specs-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-box { background: var(--gray-50); border-radius: var(--radius-sm); padding: .9rem 1rem; text-align: center; }
.spec-box .spec-label { font-size: .72rem; display: block; margin-bottom: .25rem; }
.spec-box .spec-value { font-size: 1.15rem; }
.order-options { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 1.25rem; margin-bottom: 1.5rem; }
.order-options h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.option-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--gray-100); }
.option-row:last-child { border-bottom: none; }
.option-label { font-size: .9rem; color: var(--gray-700); }
.option-control { display: flex; gap: .5rem; }
.qty-btn { width: 30px; height: 30px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--gray-100); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--gray-200); }
.qty-display { width: 38px; text-align: center; font-weight: 700; font-size: .95rem; }
.toggle-group { display: flex; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); overflow: hidden; }
.toggle-btn { padding: .35rem .7rem; font-size: .82rem; font-weight: 600; cursor: pointer; border: none; background: var(--gray-100); color: var(--gray-700); transition: background .12s; }
.toggle-btn.active { background: var(--orange); color: #fff; }

/* ===== CART ===== */
.cart-layout { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.cart-layout h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem; }
.cart-empty { text-align: center; padding: 4rem 1rem; }
.cart-empty p { color: var(--gray-500); font-size: 1.1rem; margin-bottom: 1.5rem; }
.cart-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; display: flex; gap: 1rem; align-items: flex-start; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.cart-item-info .item-specs { font-size: .85rem; color: var(--gray-500); display: flex; gap: 1rem; flex-wrap: wrap; }
.cart-item-info .item-options { font-size: .83rem; color: var(--gray-600); margin-top: .4rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.cart-item-price { text-align: right; }
.cart-item-price .item-price { font-size: 1.1rem; font-weight: 700; color: var(--orange); }
.cart-item-price .item-total { font-size: .8rem; color: var(--gray-500); }
.cart-summary { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .95rem; }
.summary-row:last-child { border-bottom: none; }
.summary-total { font-weight: 800; font-size: 1.15rem; color: var(--gray-900); }
.summary-discount { color: var(--green); }

/* ===== CHECKOUT FORM ===== */
.checkout-form { margin-top: 2rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.75rem; }
.checkout-form h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
    border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    padding: .55rem .8rem; font-size: .95rem; font-family: inherit;
    background: #fff; color: var(--gray-900);
    transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.form-error { color: var(--red); font-size: .8rem; }
.form-note { font-size: .8rem; color: var(--gray-500); }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: var(--green-light); border: 1px solid #86efac; color: #15803d; }
.alert-error { background: var(--red-light); border: 1px solid #fca5a5; color: var(--red); }

/* ===== PAGE SECTIONS ===== */
.page-hero { background: linear-gradient(135deg, #fff7ed, #eff6ff); padding: 2.5rem 0; text-align: center; border-bottom: 1px solid var(--gray-200); }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.page-hero p { color: var(--gray-500); max-width: 500px; margin: .6rem auto 0; }
.content-section { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.content-section h2 { font-size: 1.3rem; font-weight: 700; margin: 1.75rem 0 .75rem; color: var(--gray-900); }
.content-section p { color: var(--gray-700); margin-bottom: 1rem; }
.contact-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.contact-form h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ===== SUCCESS PAGE ===== */
.success-page { max-width: 600px; margin: 4rem auto; padding: 0 1.25rem; text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-page h1 { font-size: 1.8rem; font-weight: 800; color: var(--green); margin-bottom: .75rem; }
.success-page p { color: var(--gray-600); margin-bottom: 1rem; }
.success-box { background: var(--green-light); border: 1px solid #86efac; border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; text-align: left; }

/* ===== FOOTER ===== */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 3rem 0 0; margin-top: 2rem; }
.footer-inner { display: flex; gap: 3rem; flex-wrap: wrap; padding-bottom: 2rem; align-items: flex-start; }
.footer-brand p { font-size: .88rem; color: var(--gray-500); margin-top: .75rem; line-height: 1.7; }
.footer-logo { height: 28px; filter: brightness(0) invert(1); opacity: .7; margin-bottom: .5rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .4rem; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.footer-links a { color: var(--gray-400); font-size: .88rem; }
.footer-links a:hover { color: var(--orange); text-decoration: none; }
.footer-contact p, .footer-contact a { font-size: .88rem; color: var(--gray-400); }
.footer-contact a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; }
.footer-bottom p { font-size: .8rem; color: var(--gray-600); text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-inner { gap: 1rem; }
    .plans-grid { grid-template-columns: 1fr; }
    .plan-detail-header { flex-direction: column; }
    .plan-detail-price { text-align: left; }
    .cart-item { flex-direction: column; }
    .cart-item-price { text-align: left; }
    .filters-inner { gap: .5rem; }
}

/* ===== NO RESULTS ===== */
.no-results { text-align: center; padding: 4rem 1rem; color: var(--gray-500); }
.no-results h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.spinner { display: inline-block; width: 1.2em; height: 1.2em; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
