/* =========================
   SwiftFix – Global Styles
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
  --brand: #FF8C42;
  --ink: #111111;
  --muted: #667085; /* using newer tone */
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --bg-page: #fafafa;
  --border: #e5e7eb; /* using newer border tone */
  --card: #ffffff;
  --card-bg: #ffffff;

  --radius: 16px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow-card: 0 12px 30px rgba(0,0,0,.06);
  --shadow-soft: 0 4px 12px rgba(0,0,0,.04);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  padding: 0;
  margin: 0;
  min-height: 100%;
  background: radial-gradient(
      circle at 50% -10%,
      rgba(255,140,66,0.18) 0%,
      rgba(255,140,66,0) 60%
    ),
    linear-gradient(
      to top,
      #ffffff 0%,
      #fff9f4 50%,
      #fff2e8 85%,
      #ffeadd 100%
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;

  color: var(--ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus{
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #000;
  color:#fff;
  border-radius: 8px;
  z-index: 9999;
}
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

.muted{ color: var(--muted); }

.is-hidden { display: none !important; }

/* =========================
   Header + Nav (latest version)
   ========================= */

.site-header {
  background:#fff;
  border-bottom:1px solid var(--border);
  box-shadow:0 4px 12px rgba(0,0,0,.04);
  position:relative;
  z-index:1000;
}

.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:56px;
  padding-top:12px;
  padding-bottom:12px;
}

/* Brand */
.brand {
  display:flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:var(--ink);
  font-weight:600;
  font-size:1rem;
  line-height:1.2;
  letter-spacing:-0.03em;
}
.brand-mark {
  display:inline-grid;
  place-items:center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-size:1rem;
  line-height:1;
}
.brand-text {
  font-weight:600;
}

/* Desktop nav */
.primary-nav {
  display:none;
}
@media(min-width:768px){
  .primary-nav {
    display:block;
  }
}

.nav-list {
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  align-items:center;
  gap:20px;
  font-size:.9rem;
}
.nav-list a {
  text-decoration:none;
  color:var(--ink);
  font-weight:500;
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:10px;
  transition: background .15s ease, box-shadow .15s ease;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  color:var(--brand);
  background: var(--bg-muted);
  outline: none;
}
.nav-cta .btn.btn--primary,
.mobile-cta .btn.btn--primary {
  font-size:.85rem;
  font-weight:600;
  background:var(--brand);
  color:#000;
  border-radius:999px;
  padding:8px 14px;
  border:1px solid var(--brand);
}

/* Header actions (search, cart, burger) */
.header-actions {
  display:flex;
  align-items:center;
  gap:12px;
}

.header-icon {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:8px;
  color:var(--ink);
  text-decoration:none;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.04);
}
.header-icon:hover {
  background:#fafafa;
}

/* Cart badges */
.basket-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--ink);
  padding-left:8px;
  padding-right:8px;
}

.basket-count-badge {
  min-width:20px;
  min-height:20px;
  padding:2px 6px;
  border-radius:999px;
  background:var(--brand);
  color:#000;
  font-size:0.75rem;
  font-weight:600;
  line-height:1.2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.basket-timer-badge {
  font-size:0.7rem;
  line-height:1.2;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  border:1px solid var(--border);
  border-radius:999px;
  padding:2px 6px;
  background:#fff;
  display:none; /* shown via JS if countdown exists */
}

/* Burger button (mobile only) */
.mobile-menu-toggle {
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  width:32px;
  height:32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
  padding:0;
  box-shadow:0 2px 6px rgba(0,0,0,.04);
  cursor:pointer;
}
.mobile-menu-toggle:focus {
  outline:2px solid var(--brand);
  outline-offset:2px;
}
.burger-line {
  width:16px;
  height:2px;
  background:var(--ink);
  border-radius:1px;
}

/* hide burger on desktop */
@media(min-width:768px){
  .mobile-menu-toggle {
    display:none;
  }
}

/* Mobile nav dropdown */
.mobile-nav {
  display:none;
  background:#fff;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  box-shadow:0 16px 30px rgba(0,0,0,.08);
  position:absolute;
  top:100%;
  left:0;
  right:0;
  z-index:999;
  padding:16px;
}
.mobile-nav.is-open {
  display:block;
}

.mobile-nav-list {
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:16px;
  font-size:1rem;
  line-height:1.3;
  font-weight:500;
}
.mobile-nav-list a {
  text-decoration:none;
  color:var(--ink);
}
.mobile-nav-list a:hover {
  color:var(--brand);
}

.mobile-cta .btn.btn--primary {
  width:100%;
  display:inline-block;
  text-align:center;
  font-size:.95rem;
  line-height:1.2;
  font-weight:600;
  background:var(--brand);
  border:1px solid var(--brand);
  color:#000;
  border-radius:12px;
  padding:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}

/* body lock when mobile menu open */
.no-scroll {
  overflow:hidden;
}

/* =========================
   Hero (latest version uses divider)
   ========================= */
.hero{
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  padding: 48px 0 28px;
}
.hero-copy h1{
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.lead{
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 18px;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}
.hero-trust{
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

/* Phones cluster */
.hero-art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.hero-phone {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.2));
  transition: transform .25s ease;
}
.hero-phone:hover { transform: scale(1.05); }

.hero-phone--apple   { left: 50%; top: 0;    transform: translateX(-50%); z-index: 3; max-width: 260px; }
.hero-phone--samsung { left: 10%; top: 40px; transform: rotate(-8deg);    z-index: 2; max-width: 220px; }
.hero-phone--google  { right: 10%; top: 45px; transform: rotate(8deg);     z-index: 1; max-width: 220px; }

/* =========================
   Trust Bar (latest has divider)
   ========================= */
.trust-bar{
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.trust-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  padding: 12px 0;
}
.trust-item{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}
.trust-icon{ font-size: 18px; }

/* =========================
   Sections
   ========================= */
.section { padding: 28px 0; }
.section--muted{
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2{
  margin: 0;
  font-size: 24px;
}

/* =========================
   Brand Grid
   ========================= */
.brand-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}
.brand-card{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.brand-card:hover,
.brand-card:focus-visible{
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  outline: none;
}
.brand-card img{
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand-card span{
  font-weight: 700;
}

/* =========================
   Product Grid (homepage feature cards)
   ========================= */
.product-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.product-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.product-card:hover,
.product-card:focus-within{
  transform: translateY(-2px);
  border-color: var(--brand);
}
.product-media{
  height: 220px;
  background-size: cover;
  background-position: center;
}
.product-body{ padding: 14px; }
.product-title{
  margin: 0 0 4px;
  font-size: 18px;
}
.product-meta{
  margin: 0 0 10px;
  color: var(--muted);
}

/* =========================
   Steps (How it works)
   ========================= */
.steps{
  display: grid;
  gap: 14px;
  counter-reset: step;
  grid-template-columns: repeat(3, 1fr);
}
.step{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.step-icon{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #fff4ec;
  color: var(--brand);
  margin-bottom: 8px;
  font-size: 20px;
}
.step h3{
  margin: 0 0 6px;
  font-size: 18px;
}
.step p{
  margin: 0;
  color: var(--muted);
}

/* =========================
   Footer
   ========================= */
.site-footer{
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 40px;
}
.footer-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding: 26px 0;
}
.brand--footer .brand-mark{
  width: 32px;
  height: 32px;
  font-size: 16px;
}
.brand--footer .brand-text{
  font-size: 16px;
}
.link-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.link-list a{
  color: var(--muted);
}
.link-list a:hover{
  color: var(--ink);
  text-decoration: underline;
}
.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 12px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   Refurb – shared layout bits
   ========================= */

.sf-wrap{ padding: 28px 0; }
.sf-head{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:10px;
}
.sf-head h1{
  margin:0;
  font-size:28px;
}
.sf-sub{ color: var(--muted); }

.sf-grid{
  display:grid;
  gap:18px;
  grid-template-columns:420px 1fr;
}
@media(max-width: 900px){
  .sf-grid{ grid-template-columns:1fr; }
}

.sf-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

/* Product image panel */
.sf-hero{
  height: 420px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
}
.sf-hero img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* Option pills (capacity/colour) */
.sf-pills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.sf-pill{
  padding:8px 12px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.sf-pill:hover{
  border-color:var(--brand);
  box-shadow:var(--shadow);
  transform: translateY(-1px);
}
.sf-pill.is-active{
  border-color:var(--brand);
  background:#fff7f0;
}

/* Grade rows */
.sf-grade{
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  margin-bottom:10px;
  background:#fff;
}
.sf-badge{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  color:#fff;
  font-size:12px;
  font-weight:800;
}
.sf-price{
  margin-left:auto;
  font-weight:800;
  font-size:22px;
}
.sf-buy .btn{ min-width:100px; }

.sf-meta{
  color:var(--muted);
  margin-top:4px;
}

/* =========================
   Refurb Product Detail
   ========================= */
.detail {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.15fr .85fr;
}
@media (max-width:1100px){
  .detail { grid-template-columns: 1fr; }
}

.detail-media {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
@media (max-width:1100px){
  .detail-media { height: 360px; }
}

.detail-media-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: opacity .15s ease;
  border-radius: 10px;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.option-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-weight:600;
  transition:border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.chip:hover,
.chip:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  outline:none;
  transform:translateY(-1px);
}
.chip.is-active {
  border-color: var(--brand);
  box-shadow:0 0 0 2px rgba(255,140,66,.15) inset;
}

.grade {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px;
  margin-bottom:8px;
}

.badge {
  padding:2px 8px;
  border-radius:999px;
  color:#fff;
  font-size:12px;
}

.price {
  margin-left:auto;
  font-size:20px;
  font-weight:700;
}

.empty {
  padding:12px;
  border:1px dashed var(--border);
  border-radius:10px;
  text-align:center;
  color:var(--muted);
}

/* =========================
   Refurb Groups / Model Listing
   ========================= */
.refurb-groups-page {
  padding: 28px 0 40px;
  background: transparent; /* background is body gradient */
}

.refurb-breadcrumb {
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto 12px auto;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.refurb-breadcrumb a {
  color: var(--brand);
  font-weight: 600;
}
.refurb-breadcrumb a:hover,
.refurb-breadcrumb a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.refurb-groups-head {
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto 20px auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.refurb-groups-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}
.refurb-groups-head .muted-line {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Filter/search bar container */
.refurb-filterbar-wrap {
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto 24px auto;
}
.refurb-filterbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
}
.refurb-filterbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.refurb-filter-field {
  flex: 1 1 200px;
  min-width: 0;
}
.refurb-filter-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit;
  background: #fff;
  line-height: 1.4;
}
.refurb-filter-input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-color: var(--brand);
}
.refurb-filter-btnwrap {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}
.refurb-filter-btnwrap .btn {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
}

/* Responsive tweak for filters */
@media (max-width: 600px){
  .refurb-filterbar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .refurb-filter-btnwrap {
    justify-content: flex-start;
  }
}

/* Grid of cards */
.refurb-grid {
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
@media (max-width:1100px){
  .refurb-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:900px){
  .refurb-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px){
  .refurb-grid { grid-template-columns: 1fr; }
}

/* Individual model card */
.refurb-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.refurb-card:hover,
.refurb-card:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

/* Optional badge in card corner */
.refurb-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 10px;
  box-shadow: var(--shadow);
}

/* Card media section for phone image */
.refurb-card-media {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 16px;
}
.refurb-card-media img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
}

/* Card body */
.refurb-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.refurb-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.refurb-card-meta {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

/* Foot row: price + stock */
.refurb-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.refurb-card-price {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.refurb-card-stock {
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  font-weight: 500;
}

/* CTA row */
.refurb-card-action {
  margin-top: 4px;
}
.refurb-card-action .btn {
  display: inline-flex;
  min-height: 40px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1.2;
}

/* Empty state box */
.refurb-empty-wrap {
  width: 100%;
  max-width: 1180px;
  padding: 40px 20px;
  margin: 0 auto;
}
.refurb-empty-box {
  border: 1px dashed var(--border);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

/* =========================
   Basket / Checkout Layout (latest version only)
   ========================= */

.basket-body {
  background: var(--bg-page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.page-wrap {
  max-width: 1200px;
  padding: 24px 16px 80px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Page header (title + reserve note) */
.basket-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.basket-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
}

.basket-reserve-hint {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.reserve-pill {
  background: #fff8ec;
  color: #B45309;
  border: 1px solid #FCD34D;
  font-size: .75rem;
  line-height: 1.2;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Main layout: items + summary */
.basket-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media(min-width:900px){
  .basket-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .basket-items-col {
    flex: 1 1 auto;
  }
  .basket-summary-col {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 16px;
  }
}

/* Card shells */
.basket-card,
.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.basket-empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.basket-loading {
  padding: 24px 0;
}

/* Line items */
.cart-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}
@media(min-width:600px){
  .cart-row {
    grid-template-columns: 120px 1fr auto;
    grid-template-rows: auto auto;
  }
}

.cart-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  grid-row: 1 / span 2;
  box-shadow:0 2px 6px rgba(0,0,0,.02);
}
@media(min-width:600px){
  .cart-img {
    width: 110px;
    height: 110px;
  }
}

.cart-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.cart-meta {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.3;
}

.cart-timer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
  background: #F9FAFB;
  border: 1px solid var(--border);
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
}
.cart-timer-icon {
  font-size: .8rem;
}
.timer {
  font-variant-numeric: tabular-nums;
}

.cart-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cart-price {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
}

/* Buttons (basket/checkout button styles) */
.btn {
  appearance: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
  padding: 8px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .12s ease;
  min-width: 80px;
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover {
  background: #F9FAFB;
}

.btn-primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #000;
  font-weight: 600;
}
.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-full {
  width: 100%;
}

/* Summary box */
.summary-headline {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.summary-headline-count {
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
}

.summary-total-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.summary-total-label {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.summary-total-amount {
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.summary-cta .btn-primary {
  width: 100%;
  font-size: .95rem;
  line-height: 1.2;
  padding: 12px;
  border-radius: var(--radius-md);
}

.summary-fineprint {
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted);
}

/* bottom link */
.basket-footer-links {
  text-align: center;
  font-size: .9rem;
}
.continue-link {
  text-decoration: none;
  font-size: .9rem;
  color: var(--muted);
}
.continue-link:hover {
  text-decoration: underline;
  color: var(--ink);
}

/* =========================
   Checkout form
   ========================= */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:600px){
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.optional-tag {
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted);
}

.form-input {
  width: 100%;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding:10px 12px;
  font-size:.9rem;
  line-height:1.4;
  color:var(--ink);
  box-shadow:0 2px 6px rgba(0,0,0,.02);
}
.form-input:focus {
  outline:2px solid var(--brand);
  outline-offset:0;
  border-color:var(--brand);
  box-shadow:0 0 0 2px rgba(0,0,0,0);
}

.form-hint {
  font-size:.8rem;
  line-height:1.4;
  color:var(--muted);
  margin:0;
}
.form-hint-block {
  margin-top:-8px;
  margin-bottom:8px;
}

.form-actions {
  margin-top:8px;
}

/* =========================
   Checkout summary card line items
   ========================= */
.summary-lineitems {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.summary-lineitem-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 12px;
  align-items: start;
}

.summary-lineitem-left {
  grid-column: 1;
}

.summary-lineitem-img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 4px rgba(0,0,0,.03);
}

.summary-lineitem-main {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-lineitem-title {
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.summary-lineitem-meta {
  font-size: .8rem;
  line-height: 1.3;
  color: var(--muted);
}

.summary-lineitem-price {
  grid-column: 3;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: flex-start;
}

/* =========================
   Responsive tweaks
   ========================= */

/* Collapse hero to single column and show art first on tablets/smaller */
@media (max-width: 1100px){
  .hero-inner{
    grid-template-columns: 1fr;
    padding: 32px 0 20px;
  }
  .hero-art{
    order: -1;
    min-height: 320px;
    margin-bottom: 8px;
  }
}

/* 2-column grids on medium */
@media (max-width: 900px){
  .product-grid,
  .brand-grid,
  .steps{
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile tweaks */
@media (max-width: 720px){

  .hero-copy h1{
    font-size: 30px;
  }
  .hero-trust{
    grid-template-columns: 1fr;
  }
  .trust-grid{
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .product-grid,
  .brand-grid,
  .steps{
    grid-template-columns: 1fr;
  }
}

/* Show all three phones on mobile, tucked behind Apple */
@media (max-width: 768px){
  .hero-art {
    min-height: 320px;
  }

  .hero-phone--apple{
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    max-width: 180px;
    z-index: 3;
  }

  .hero-phone--samsung{
    display: block !important;
    max-width: 150px;
    left: calc(40% - 110px);
    top: 40px;
    transform: rotate(-8deg);
    z-index: 2;
    opacity: .97;
  }

  .hero-phone--google{
    display: block !important;
    max-width: 150px;
    left: calc(37% + 70px);
    top: 42px;
    transform: rotate(8deg);
    z-index: 1;
    opacity: .95;
  }
}

/* Extra-small phones */
@media (max-width: 380px){
  .hero-art { min-height: 280px; }
  .hero-phone--apple   { max-width: 160px; top: 6px; }
  .hero-phone--samsung { max-width: 130px; left: calc(50% - 100px); top: 34px; }
  .hero-phone--google  { max-width: 130px; left: calc(50% + 60px);  top: 50px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
/* =========================
   Global Button System (Unified Orange)
   ========================= */

.btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  /* Visuals */
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #000;
  border-radius: var(--radius-md);

  /* Sizing */
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 16px;
  min-height: 40px;
  min-width: 90px;

  /* Effects */
  box-shadow: 0 8px 22px rgba(255,140,66,.35);
  transition:
    filter .12s ease,
    transform .06s ease,
    box-shadow .15s ease;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(0.95);
  transform: translateY(-1px);
  outline: none;
}

/* --- Secondary (ghost / outline) --- */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  box-shadow: none;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255,140,66,0.1);
  box-shadow: 0 4px 10px rgba(255,140,66,0.2);
}

/* --- Full width (for summary/checkout CTAs) --- */
.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Disabled (optional but recommended) --- */
.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
/* =========================
   SwiftFix Modal
   ========================= */

.sf-modal {
  position: fixed;
  inset: 0;
  display: none;                 /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;                 /* gives breathing room on tiny screens */
}

.sf-modal.is-open {
  display: flex;                 /* JS toggles this */
}

.sf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
}

.sf-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(0,0,0,.18);
  width: 100%;
  max-width: 400px;
  z-index: 1;
  animation: sfModalIn .25s ease;
  padding: 24px;
  text-align: center;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Title / body text */
.sf-modal__dialog h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.sf-modal__dialog p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

/* Action buttons */
.sf-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-modal__actions .btn,
.sf-modal__actions .btn-ghost {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  font-size: .9rem;
  line-height: 1.2;
  border-radius: var(--radius-md);
}

/* On wider screens, put them side by side */
@media(min-width:480px){
  .sf-modal__actions {
    flex-direction: row;
    justify-content: center;
  }
  .sf-modal__actions .btn,
  .sf-modal__actions .btn-ghost {
    width: auto;
    min-width: 140px;
  }
}

/* Entrance animation */
@keyframes sfModalIn {
  from {
    transform: translateY(20px) scale(.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
