
:root{
  --bg:#07111f; --bg-2:#0b1730; --surface:rgba(255,255,255,.085); --surface-2:rgba(255,255,255,.14);
  --text:#eef6ff; --muted:#a8b7cc; --line:rgba(255,255,255,.16); --blue:#4f8cff; --cyan:#27d4ff;
  --green:#45f0b2; --orange:#ffb454; --pink:#ff6ec7; --dark:#050b14; --radius:28px;
  --shadow:0 24px 80px rgba(0,0,0,.35); --soft:18px 18px 45px rgba(2,8,23,.45), -10px -10px 32px rgba(255,255,255,.05);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;background:var(--bg);color:var(--text);overflow-x:hidden}
body:before{content:"";position:fixed;inset:0;z-index:-3;background:
 radial-gradient(circle at 15% 10%,rgba(79,140,255,.32),transparent 32%),
 radial-gradient(circle at 85% 4%,rgba(39,212,255,.26),transparent 26%),
 radial-gradient(circle at 50% 80%,rgba(255,110,199,.14),transparent 34%),
 linear-gradient(135deg,var(--bg),var(--bg-2) 45%,#020617)}
body:after{content:"";position:fixed;inset:0;z-index:-2;opacity:.24;background-image:
 linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
 linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:44px 44px}
.glass-nav{background:rgba(7,17,31,.72);backdrop-filter:blur(22px);border-bottom:1px solid var(--line)}
.navbar-brand{font-weight:900;letter-spacing:-.04em}
.nav-link{color:rgba(238,246,255,.82)!important;font-weight:700}
.nav-link:hover{color:white!important}
.btn-premium{border:0;color:white;font-weight:900;border-radius:999px;padding:.85rem 1.2rem;background:linear-gradient(135deg,var(--blue),var(--cyan));box-shadow:0 16px 44px rgba(79,140,255,.35);transition:.25s}
.btn-premium:hover{transform:translateY(-3px);filter:saturate(1.2)}
.btn-ghost{border:1px solid var(--line);color:white;background:rgba(255,255,255,.08);border-radius:999px;padding:.85rem 1.2rem;font-weight:800}
.hero{position:relative;padding:140px 0 90px}
.hero h1{font-size:clamp(2.5rem,6vw,5.9rem);letter-spacing:-.075em;line-height:.94;font-weight:900}
.hero p{color:var(--muted);font-size:1.15rem}
.badge-modern{display:inline-flex;gap:.5rem;align-items:center;border:1px solid var(--line);background:rgba(255,255,255,.09);padding:.55rem .9rem;border-radius:999px;color:#dcecff;font-weight:800;backdrop-filter:blur(18px)}
.hero-panel{border:1px solid var(--line);background:linear-gradient(160deg,rgba(255,255,255,.16),rgba(255,255,255,.06));border-radius:38px;padding:28px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero-panel:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,var(--cyan),transparent 68%);right:-80px;top:-70px;opacity:.35}
.phone-stack{display:grid;grid-website-columns:1fr 1fr;gap:16px}
.phone-mini{min-height:185px;border-radius:28px;background:rgba(255,255,255,.88);display:flex;align-items:center;justify-content:center;box-shadow:var(--soft);transition:.35s}
.phone-mini:hover{transform:rotate(-2deg) translateY(-8px)}
.phone-mini img{max-height:170px;max-width:95%;object-fit:contain}
.stats{display:grid;grid-website-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.stat{border-radius:22px;border:1px solid var(--line);padding:16px;background:rgba(255,255,255,.08);backdrop-filter:blur(10px)}
.stat b{display:block;font-size:1.35rem}
.decor-circle{position:absolute;border-radius:50%;filter:blur(1px);opacity:.5;animation:float 7s ease-in-out infinite}
.c1{width:80px;height:80px;background:var(--cyan);left:4%;top:28%}.c2{width:130px;height:130px;background:var(--pink);right:8%;bottom:12%;animation-delay:1.2s}.c3{width:55px;height:55px;background:var(--green);left:48%;top:10%;animation-delay:2.2s}
@keyframes float{50%{transform:translateY(-28px) translateX(10px)}}
.section{padding:86px 0;position:relative}
.section-title{font-weight:900;letter-spacing:-.05em;font-size:clamp(2rem,4vw,3.5rem)}
.section-kicker{color:var(--cyan);font-weight:900;text-transform:uppercase;letter-spacing:.13em;font-size:.8rem}
.premium-container{border:1px solid var(--line);border-radius:36px;background:rgba(255,255,255,.055);box-shadow:var(--shadow);padding:28px;backdrop-filter:blur(16px)}
.product-card{height:100%;border:1px solid var(--line);border-radius:32px;background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.055));overflow:hidden;box-shadow:var(--soft);transition:.32s;position:relative}
.product-card:hover{transform:translateY(-10px);border-color:rgba(39,212,255,.55)}
.product-media{height:260px;background:linear-gradient(160deg,#fff,#dbeafe);display:flex;align-items:center;justify-content:center;position:relative}
.product-media img{max-height:230px;max-width:90%;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(15,23,42,.2))}
.product-badge{position:absolute;top:16px;left:16px;border-radius:999px;background:rgba(7,17,31,.75);color:white;padding:.45rem .7rem;font-size:.72rem;font-weight:800;backdrop-filter:blur(12px)}
.product-body{padding:24px}
.product-title{font-size:1.25rem;font-weight:900;letter-spacing:-.03em}
.meta{color:var(--muted);font-size:.92rem}
.price{font-size:2rem;font-weight:900;letter-spacing:-.05em}
.supplier{color:var(--muted);font-size:.9rem}
.value{color:var(--green);font-weight:900}
.product-actions{display:flex;gap:10px}
.icon-pill{display:flex;align-items:center;gap:8px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid var(--line);padding:.7rem .8rem;font-weight:800;color:#dcecff}
.filters{display:grid;grid-website-columns:1.3fr .7fr .7fr;gap:12px}
.form-control,.form-select{background:rgba(255,255,255,.08)!important;border:1px solid var(--line)!important;color:white!important;border-radius:18px;padding:.9rem 1rem}
.form-control::placeholder{color:#8ea1bc}.form-select option{color:#111827}
.table-premium{overflow:hidden;border-radius:28px;border:1px solid var(--line);background:rgba(255,255,255,.065)}
.table{color:var(--text);margin:0}.table thead th{background:rgba(79,140,255,.16);color:white;border-color:var(--line);padding:16px}.table td{border-color:var(--line);padding:15px;color:#dcecff}
.feature-card{border:1px solid var(--line);border-radius:30px;background:rgba(255,255,255,.075);padding:28px;height:100%;box-shadow:var(--soft);transition:.25s}.feature-card:hover{transform:translateY(-6px)}
.feature-icon{width:52px;height:52px;border-radius:18px;background:linear-gradient(135deg,var(--blue),var(--cyan));display:grid;place-items:center;margin-bottom:16px}
.checkout-panel{border:1px solid var(--line);border-radius:36px;background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.055));padding:30px;box-shadow:var(--shadow)}
.accordion-item{background:rgba(255,255,255,.07)!important;border:1px solid var(--line)!important;border-radius:22px!important;overflow:hidden;margin-bottom:12px}
.accordion-button{background:rgba(255,255,255,.08)!important;color:white!important;font-weight:900}.accordion-body{color:#c9d6e8}
.modal-content{background:#07111f;border:1px solid var(--line);border-radius:30px;color:white;box-shadow:var(--shadow)}
.divider{height:1px;background:linear-gradient(90deg,transparent,var(--cyan),transparent);opacity:.55}
.footer{border-top:1px solid var(--line);padding:40px 0;color:var(--muted)}
@media(max-width:768px){.hero{padding-top:110px}.filters{grid-website-columns:1fr}.stats{grid-website-columns:1fr}.phone-stack{grid-website-columns:1fr}.product-actions{flex-direction:column}.hero-panel{margin-top:24px}}

/* Fix price guide visibility */
.table-premium{
  background:rgba(3,10,24,.88) !important;
  color:#f8fafc !important;
}
.table-premium .table,
.table-premium .table td,
.table-premium .table th{
  color:#f8fafc !important;
}
.table-premium .table tbody tr{
  background:rgba(255,255,255,.035) !important;
}
.table-premium .table tbody tr:hover{
  background:rgba(79,140,255,.14) !important;
}
.table-premium code,
code{
  color:#67e8f9 !important;
  background:rgba(255,255,255,.08);
  padding:.15rem .35rem;
  border-radius:.45rem;
}
.product-card .product-badge{
  max-width:calc(100% - 32px);
}

/* User requested: featured phones should be square grid, not horizontal */
.phone-stack{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:16px !important;
}
.phone-mini{
  aspect-ratio:1 / 1 !important;
  min-height:auto !important;
  height:auto !important;
  border-radius:30px !important;
}
.phone-mini img{
  width:86% !important;
  height:86% !important;
  max-height:220px !important;
  object-fit:contain !important;
}
@media(max-width:768px){
  .phone-stack{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Price guide visibility fix: blue text on white background */
#pricing .table-premium{
  background:#ffffff !important;
  border:1px solid rgba(37,99,235,.25) !important;
}
#pricing .table,
#pricing .table thead th,
#pricing .table tbody td,
#pricing .table tbody td strong{
  color:#0d6efd !important;
}
#pricing .table thead th{
  background:#eef6ff !important;
  border-color:rgba(13,110,253,.25) !important;
}
#pricing .table tbody tr{
  background:#ffffff !important;
}
#pricing .table tbody tr:hover{
  background:#f3f8ff !important;
}
#pricing .table td{
  border-color:rgba(13,110,253,.18) !important;
}

.product-media img{
  object-fit:contain !important;
  background:transparent !important;
}

/* Exact product-card image display: no cropping */
.product-media{
  height:260px !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.product-media img{
  width:auto !important;
  height:auto !important;
  max-width:92% !important;
  max-height:240px !important;
  object-fit:contain !important;
  padding:0 !important;
  background:transparent !important;
}
#pricing .table-premium{background:#ffffff !important;}
#pricing .table,#pricing .table thead th,#pricing .table tbody td,#pricing .table tbody td strong{color:#0d6efd !important;}
#pricing .table thead th{background:#eef6ff !important;}

/* High-quality details modal image like supplier product page */
.detail-image-frame{
  background:#ffffff !important;
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px;
}
.detail-main-image{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:455px !important;
  object-fit:contain !important;
  background:#fff !important;
  padding:0 !important;
}
.detail-thumb{
  width:92px;
  height:92px;
  border:1px solid #ef4444;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  padding:8px;
}
.detail-thumb img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
#detailsModal .modal-dialog{
  max-width:1180px;
}
#detailsModal .modal-body{
  padding:30px;
}
.product-media{
  background:#fff !important;
}
.product-media img{
  object-fit:contain !important;
  width:auto !important;
  height:auto !important;
  max-width:92% !important;
  max-height:240px !important;
}

/* Cart fixes */
.cart-line{
  border-bottom:1px solid rgba(255,255,255,.14);
  padding:18px 0;
}
.cart-img{
  width:86px;
  height:86px;
  object-fit:contain;
  background:#fff;
  border-radius:18px;
  padding:8px;
}
.qty-row{
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:5px 10px;
}
.qty-row button{
  width:30px;
  height:30px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-weight:900;
}
.qty-row span{
  min-width:20px;
  text-align:center;
  font-weight:900;
}
.extras-box{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:12px;
}
.extra-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#eaf2ff;
  font-size:.92rem;
  padding:8px 0;
}
.extra-option strong{
  color:#67e8f9;
  white-space:nowrap;
}
#cartModal .modal-body{
  max-height:70vh;
  overflow:auto;
}

/* PayFast payment section */
.payment-methods-card{
  border:1px solid rgba(13,110,253,.18);
  border-radius:32px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 24px 70px rgba(15,23,42,.16);
  padding:30px;
}
.payment-logo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(135px,1fr));
  gap:14px;
  margin-top:20px;
}
.payment-logo{
  min-height:88px;
  border:1px solid rgba(13,110,253,.18);
  border-radius:22px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#075985;
  font-weight:900;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  transition:.25s;
}
.payment-logo:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 44px rgba(13,110,253,.18);
}
.payment-logo i{
  font-size:1.6rem;
  color:#0d6efd;
}
.payment-safe-note{
  border:1px solid rgba(34,197,94,.22);
  background:#f0fdf4;
  color:#166534;
  border-radius:18px;
  padding:14px 16px;
  font-weight:700;
}
#payfastCheckoutBtn{
  background:linear-gradient(135deg,#0d6efd,#00b4d8);
}

/* Premium checkout customer modal */
.checkout-customer-modal{
  background:#07111f !important;
  border:1px solid rgba(255,255,255,.16) !important;
  border-radius:28px !important;
  color:#fff !important;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}
.checkout-customer-modal .form-label{
  font-weight:800;
  color:#eaf2ff;
}
.checkout-customer-modal .form-control{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.16) !important;
  color:#fff !important;
  border-radius:16px;
  min-height:48px;
}
.checkout-customer-modal .form-control::placeholder{
  color:#94a3b8;
}
