:root{
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #0f172a;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.10);
  --line-2: rgba(255,255,255,0.12);

  --accent: #3b82f6;
  --accent-2: #2563eb;
  --accent-soft: rgba(59,130,246,.10);

  --dark: #0a0a0a;
  --dark-2: #0f172a;

  --danger: #ef4444;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 10px 30px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.10);
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea{
  font: inherit;
}

.wrap{
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* =========================
   NAVBAR
========================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__in{
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.brand span{
  color: var(--accent);
}

.navlinks{
  display: flex;
  align-items: center;
  gap: 18px;
}

.navlinks a{
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  opacity: .88;
  transition: opacity .18s ease;
}

.navlinks a:hover{
  opacity: 1;
}

.cartBtn{
  min-width: 76px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cartBtn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.cartCount{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

/* =========================
   STRIP
========================= */
.strip{
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.strip__in{
  height: 42px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.strip__track{
  display: inline-block;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-100%); }
}

/* =========================
   HERO
========================= */
.hero{
  padding: 26px 0 12px;
}

.heroBox{
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(59,130,246,.18);
  font-size: 13px;
  font-weight: 800;
}

.hero h1{
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -1px;
  font-weight: 950;
  max-width: 760px;
}

.hero p{
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
}

.heroActions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btnPrimary,
.btnGhost{
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.btnPrimary{
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(59,130,246,.20);
}

.btnPrimary:hover{
  filter: brightness(.97);
  transform: translateY(-1px);
}

.btnGhost{
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btnGhost:hover{
  background: #f8fafc;
  transform: translateY(-1px);
}

/* =========================
   SECTION TITLE
========================= */
.sectionTitle{
  margin: 28px 0 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sectionTitle h2{
  margin: 0;
  font-size: 15px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 950;
}

.sectionTitle span{
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* =========================
   GRID / PRODUCTS
========================= */
.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 8px 0 44px;
}

.card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.media{
  width: 100%;
  height: 290px;
  background: #050505;
  overflow: hidden;
}

.media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.body{
  padding: 18px 18px 20px;
  text-align: center;
}

.body h3{
  margin: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .35px;
  font-weight: 950;
}

.stars{
  margin: 12px 0 12px;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 2.5px;
  font-weight: 900;
}

.meta{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.price{
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.old{
  color: #98a2b3;
  font-size: 15px;
  font-weight: 800;
  text-decoration: line-through;
}

.addBtn{
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px rgba(59,130,246,.20);
}

.addBtn:hover{
  filter: brightness(.97);
  transform: translateY(-1px);
}

/* =========================
   DRAWER / CARRITO
========================= */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.drawer.open{
  display: block;
}

.overlay{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.48);
  backdrop-filter: blur(2px);
}

.panel{
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 94vw);
  height: 100%;
  background: rgba(255,255,255,.98);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(15,23,42,.12);
  display: flex;
  flex-direction: column;
}

.panelHead{
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.panelTitle{
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.panelSub{
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.xBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.panelBody{
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.empty{
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.item{
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.itemTop{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.thumb{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: 0 0 64px;
  background: #050505;
}

.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.itemInfo{
  flex: 1;
  min-width: 0;
}

.itemTitle{
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.itemSub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.qtyRow{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.qBtn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.qty{
  min-width: 24px;
  text-align: center;
  font-weight: 900;
}

.rm{
  margin-left: auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,.20);
  background: rgba(239,68,68,.08);
  color: var(--danger);
  font-weight: 800;
  cursor: pointer;
}

.panelFoot{
  padding: 16px 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 10px;
}

.totalRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
}

.buyBtn{
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(59,130,246,.20);
}

.clearBtn{
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.hint{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
}

/* =========================
   CHECKOUT
========================= */
.checkout{
  padding: 24px 0 48px;
}

.checkoutGrid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  margin-top: 10px;
}

.box{
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.boxTitle{
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 950;
}

.field{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label{
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.field input,
.field select,
.field textarea{
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}

.field textarea{
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 0 0 4px rgba(59,130,246,.10);
}

.full{
  width: 100%;
}

.sumItems{
  display: grid;
  gap: 10px;
}

.sumItem{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.sumItem b{
  font-weight: 900;
}

.muted{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sumTotal{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
}

/* =========================
   FOOTER
========================= */
.trustFooter{
  position: relative;
  margin-top: 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #0b1220 100%);
  color: #fff;
}

.trustWave{
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
}

.trustWave svg{
  width: 100%;
  height: 100%;
  display: block;
}

.trustWave path{
  fill: rgba(59,130,246,.14);
}

.trustIn{
  position: relative;
  padding: 128px 0 24px;
}

.trustTop{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
}

.trustBrand p{
  margin: 12px 0 0;
  max-width: 520px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  font-weight: 700;
}

.trustBadges{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trustBadges span{
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 800;
}

.trustCols{
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 20px;
}

.tTitle{
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: rgba(255,255,255,.80);
  font-weight: 900;
}

.tcol a{
  display: block;
  padding: 7px 0;
  color: rgba(255,255,255,.68);
  font-size: 14px;
  font-weight: 700;
}

.tcol a:hover{
  color: #fff;
}

.trustBottom{
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.copy{
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 700;
}

.payRow{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payChip{
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 900;
}

.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(10,10,10,.78);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px){
  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkoutGrid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .nav__in{
    min-height: 70px;
  }

  .navlinks{
    gap: 12px;
  }

  .heroBox{
    padding: 20px;
  }

  .hero p{
    font-size: 16px;
  }

  .grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .media{
    height: 260px;
  }

  .trustCols{
    grid-template-columns: 1fr;
  }

  .trustIn{
    padding-top: 110px;
  }
}

@media (max-width: 520px){
  .brand{
    font-size: 20px;
  }

  .navlinks{
    font-size: 14px;
    gap: 10px;
  }

  .hero h1{
    font-size: 30px;
  }

  .btnPrimary,
  .btnGhost,
  .addBtn{
    font-size: 16px;
  }

  .panel{
    width: 100%;
  }
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 18px 0 48px;
  align-items: stretch;
}

.card{
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}

.media{
  width: 100%;
  height: 300px;
  background: #050505;
  overflow: hidden;
}

.media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.body{
  padding: 18px 18px 20px;
  text-align: center;
}

.body h3{
  margin: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.stars{
  margin: 10px 0 12px;
  color: #3b82f6;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 900;
}

.meta{
  margin: 0 0 16px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price{
  color: #3b82f6;
  font-size: 18px;
  font-weight: 950;
}

.old{
  color: #98a2b3;
  font-size: 15px;
  font-weight: 800;
  text-decoration: line-through;
}

.addBtn{
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 18px;
  background: #3b82f6;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.addBtn:hover{
  filter: brightness(.96);
}

@media (max-width: 1024px){
  .grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px){
  .grid{
    grid-template-columns: 1fr;
  }

  .media{
    height: 260px;
  }
}

.checkout{
  padding: 24px 0 48px;
}

.checkoutGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  margin-top: 10px;
}

.box{
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.boxTitle{
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 950;
}

.field{
  display:grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label{
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea{
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  outline: none;
}

.field textarea{
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 0 0 4px rgba(59,130,246,.10);
}

.full{
  width: 100%;
}

.sumItems{
  display:grid;
  gap: 10px;
}

.sumItem{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
}

.sumItem strong{
  display:block;
  font-size: 14px;
}

.sumItem .muted{
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.sumTotal{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(15,23,42,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size: 17px;
  font-weight: 950;
}

@media (max-width: 980px){
  .checkoutGrid{
    grid-template-columns: 1fr;
  }
}