/* ==========================================================================
   DR APPLE PERÚ - DESIGN SYSTEM & STYLESHEET
   Modern, Clean, Tech-Forward, Approachable
   ========================================================================== */

:root {
  /* Dynamic / Configurable Palette */
  --primary-color: #0f172a;        /* Deep Slate / Graphite */
  --primary-hover: #1e293b;
  --accent-color: #0071e3;         /* Apple tech blue (editable in settings) */
  --accent-hover: #0077ed;
  --accent-light: #eff6ff;
  --accent-dark: #0056b3;
  
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;

  /* Surfaces & Backgrounds */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #0071e3;

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Typography & Sizing */
  --font-sans: "Inter Local", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
  --font-editorial: var(--font-sans);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Layout */
  --max-width: 1240px;
  --header-height: 72px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Editorial refinement for the global store header */
.promo-ticker {
  position: relative;
  height: 40px;
  background: linear-gradient(90deg, #1238d8 0%, #1749f5 52%, #1238d8 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .16);
}

.promo-ticker::before,
.promo-ticker::after {
  position: absolute;
  top: 50%;
  z-index: 2;
  color: rgba(255, 255, 255, .88);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-52%);
  pointer-events: none;
}

.promo-ticker::before { content: '‹'; left: clamp(18px, 4vw, 64px); }
.promo-ticker::after { content: '›'; right: clamp(18px, 4vw, 64px); }

.promo-ticker-item {
  height: 40px;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .015em;
}

.store-site-header {
  font-family: var(--font-sans);
  box-shadow: 0 8px 32px rgba(20, 25, 38, .055);
}

.store-site-header .container {
  max-width: 1360px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.header-main-row {
  min-height: 92px;
  grid-template-columns: 235px minmax(360px, 590px) auto;
  gap: 2.2rem;
}

.store-site-header .brand-slot {
  min-width: 205px;
  height: 58px;
}

.store-site-header .brand-logo-img {
  max-width: 205px;
  max-height: 56px;
}

.store-header-search {
  height: 48px;
  padding: 0 1.2rem;
  border-color: #ececef;
  background: #f5f5f6;
}

.store-header-search svg {
  width: 21px;
  height: 21px;
  stroke: #696e78;
  stroke-width: 1.65;
}

.store-header-search input {
  font-size: .9rem;
  font-weight: 480;
  letter-spacing: -.01em;
}

.store-site-header .header-actions {
  gap: .5rem;
}

.header-store-link {
  margin-right: .65rem;
  color: #27292e;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.header-store-link svg,
.store-site-header .btn-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.55;
}

.store-site-header .btn-icon {
  width: 43px;
  height: 43px;
  border: 1px solid transparent;
}

.store-site-header .btn-icon:hover {
  background: #f5f5f6;
  border-color: #e9e9ec;
  transform: translateY(-1px);
}

.header-nav-row {
  border-top-color: #efeff1;
  border-bottom-color: #dedfe3;
}

.header-nav-container {
  min-height: 55px;
}

.store-site-header .main-nav {
  justify-content: center;
  gap: clamp(2rem, 3.45vw, 3.7rem);
}

.store-site-header .nav-link {
  padding: 1.08rem 0 .98rem;
  color: #292b30;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: -.012em;
}

.store-site-header .nav-link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translate(-50%, 3px);
  transition: opacity .18s ease, transform .18s ease;
}

.store-site-header .nav-link:hover::before {
  opacity: .35;
  transform: translate(-50%, 0);
}

.store-site-header .nav-link.active::before {
  display: none;
}

.store-site-header .nav-link.active::after {
  left: 50%;
  right: auto;
  bottom: 0;
  width: 30px;
  height: 3px;
  transform: translateX(-50%);
}

.store-site-header .nav-offer {
  padding-left: .75rem;
  padding-right: .75rem;
  border-radius: 999px;
  color: #e51d45;
  background: #fff2f5;
}

@media (max-width: 1100px) {
  .store-site-header .container {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .header-main-row {
    grid-template-columns: 190px minmax(280px, 1fr) auto;
    gap: 1.2rem;
  }

  .store-site-header .brand-slot { min-width: 180px; }
  .store-site-header .brand-logo-img { max-width: 180px; }
  .store-site-header .main-nav { gap: 1.8rem; }
}

@media (max-width: 768px) {
  .promo-ticker,
  .promo-ticker-item {
    height: 36px;
  }

  .promo-ticker::before { left: 10px; }
  .promo-ticker::after { right: 10px; }
  .promo-ticker-item { font-size: .7rem; }

  .store-site-header .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .header-main-row {
    grid-template-columns: 1fr auto;
    gap: .55rem .75rem;
    padding-top: .65rem;
    padding-bottom: .75rem;
  }

  .store-site-header .brand-slot {
    min-width: 0;
    height: 46px;
  }

  .store-site-header .brand-logo-img {
    max-width: 158px;
    max-height: 44px;
  }

  .store-header-search {
    height: 43px;
    border-radius: 14px;
    background: #f4f4f5;
  }

  .store-site-header .main-nav {
    gap: .1rem;
  }

  .store-site-header .nav-link {
    padding: .72rem 0;
    font-size: .88rem;
  }

  .store-site-header .nav-offer {
    width: max-content;
    padding-left: .75rem;
    padding-right: .75rem;
  }
}

/* Final catalog overrides after the shared storefront styles. */
#shop-products-grid.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#shop-products-grid .card-image-wrap { height: auto; aspect-ratio: 1 / 1.02; }

@media (max-width: 1050px) {
  #shop-products-grid.products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  #shop-products-grid.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  #shop-products-grid .card-image-wrap { height: auto; aspect-ratio: 1 / 1; }
}

/* Keep floating social actions from obscuring product photography on phones. */
@media (max-width: 700px) {
  .shop-catalog-page .social-floating-rail {
    top: auto;
    right: .8rem;
    bottom: .8rem;
    left: auto;
    display: flex;
    flex-direction: row;
    gap: .45rem;
    transform: none;
  }

  .shop-catalog-page .social-rail-link:not(.social-whatsapp) { display: none; }
  .shop-catalog-page #shop-products-grid { padding-bottom: 3.2rem; }
}

/* Product catalog: editorial, image-led merchandising */
.shop-page {
  max-width: 1320px;
  padding-top: clamp(1.4rem, 3.5vw, 3rem);
  padding-bottom: 5rem;
  color: #17191d;
}

.shop-breadcrumb {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.8rem;
  color: #858991;
  font-size: .76rem;
}

.shop-breadcrumb a { color: #525760; text-decoration: none; }
.shop-breadcrumb a:hover { color: #086bdc; }

.shop-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #e7e8eb;
}

.shop-eyebrow {
  display: block;
  margin-bottom: .6rem;
  color: #777c85;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .15em;
}

.shop-intro h1 {
  margin: 0;
  color: #111318;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.shop-intro p { margin: .7rem 0 0; color: #696e77; font-size: .95rem; }
.shop-results { flex: 0 0 auto; padding-bottom: .2rem; color: #737882; font-size: .8rem; }

.shop-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0 1rem;
}

.shop-search-field {
  display: flex;
  align-items: center;
  gap: .7rem;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid #e4e6e9;
  border-radius: 8px;
  background: #fff;
  color: #737882;
}

.shop-search-field > span { font-size: 1.5rem; line-height: 1; }
.shop-search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: #17191d; font: inherit; font-size: .88rem; }
.shop-search-field:focus-within { border-color: #9098a4; box-shadow: 0 0 0 3px rgba(18, 99, 204, .08); }

.shop-sort-field, .shop-condition-field { display: flex; align-items: center; gap: .65rem; color: #737882; font-size: .76rem; white-space: nowrap; }
.shop-sort-field .form-control, .shop-condition-field .form-control {
  min-width: 185px;
  height: 44px;
  border: 1px solid #e4e6e9;
  border-radius: 8px;
  background-color: #fff;
  color: #272a30;
  font-size: .82rem;
}

.shop-category-nav {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .15rem 0 1.15rem;
  scrollbar-width: none;
}
.shop-category-nav::-webkit-scrollbar { display: none; }

.shop-category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 1rem;
  border: 1px solid #e4e6e9;
  border-radius: 999px;
  background: #fff;
  color: #434852;
  font: inherit;
  font-size: .79rem;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.shop-category-chip:hover { border-color: #aeb4bd; }
.shop-category-chip[aria-pressed="true"] { border-color: #17191d; background: #17191d; color: #fff; }

.shop-refinements {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 54px;
  margin-bottom: 1.15rem;
  padding: .55rem 0;
  border-top: 1px solid #eceef0;
  border-bottom: 1px solid #eceef0;
}
.shop-condition-field .form-control { min-width: 145px; height: 36px; }
.shop-stock-toggle { display: inline-flex; align-items: center; gap: .5rem; color: #545a63; font-size: .78rem; cursor: pointer; }
.shop-stock-toggle input { accent-color: #17191d; }
.shop-clear-button { margin-left: auto; padding: .4rem 0; border: 0; background: transparent; color: #5e6470; font: inherit; font-size: .77rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

#shop-products-grid.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
  align-items: stretch;
}

#shop-products-grid .product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8e9eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(19, 24, 32, .025);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#shop-products-grid .product-card:hover {
  transform: translateY(-3px);
  border-color: #d7d9dd;
  box-shadow: 0 12px 30px rgba(19, 24, 32, .08);
}

#shop-products-grid .card-badge-wrap {
  position: absolute;
  z-index: 2;
  top: .85rem;
  left: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

#shop-products-grid .badge-condition {
  padding: .32rem .52rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, .94);
  color: #454a52;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .015em;
}
#shop-products-grid .badge-custom { background: #edf4ff; color: #155cb4; text-transform: none; }

#shop-products-grid .card-image-wrap {
  position: relative;
  display: grid;
  height: auto;
  aspect-ratio: 1 / 1.02;
  place-items: center;
  overflow: hidden;
  padding: 1rem;
  background: #f6f6f7;
  text-decoration: none;
}

#shop-products-grid .card-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .28s ease;
}
#shop-products-grid .card-image-wrap.card-image-dark { background: #050505; }
#shop-products-grid .card-image-wrap.card-image-dark img { mix-blend-mode: normal; }
#shop-products-grid .product-card:hover .card-image-wrap img { transform: scale(1.035); }
#shop-products-grid .card-image-link { display: none; }

#shop-products-grid .card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem .95rem;
}
#shop-products-grid .card-brand { margin-bottom: .32rem; color: #7b8088; font-size: .65rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
#shop-products-grid .card-content > a { color: inherit; text-decoration: none; }
#shop-products-grid .card-title { margin: 0; color: #17191d; font-size: 1rem; font-weight: 680; letter-spacing: -.025em; line-height: 1.3; }
#shop-products-grid .card-specs-brief { min-height: 1.25rem; margin: .42rem 0 .9rem; color: #6d727a; font-size: .74rem; line-height: 1.4; }
#shop-products-grid .card-refurb-notes { display: flex; gap: .35rem; margin: -.35rem 0 .75rem; color: #737882; font-size: .68rem; }
#shop-products-grid .card-price-row { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .75rem; padding-top: .75rem; border-top: 1px solid #eeeeef; }
#shop-products-grid .card-price { color: #15171b; font-size: 1.1rem; font-weight: 730; letter-spacing: -.035em; }
#shop-products-grid .card-price-sub { display: block; margin-top: .2rem; color: #858991; font-size: .67rem; }
#shop-products-grid .card-unconfirmed { color: #292d34; font-size: .88rem; font-weight: 700; }
#shop-products-grid .card-detail-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; width: 100%; border-radius: 6px; font-size: .77rem; text-decoration: none; }

@media (max-width: 1050px) {
  #shop-products-grid.products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .shop-page { padding: 1.2rem 1rem 5rem; }
  .shop-breadcrumb { margin-bottom: 1.2rem; }
  .shop-intro { align-items: flex-start; gap: .55rem; flex-direction: column; padding-bottom: 1.1rem; }
  .shop-intro h1 { font-size: 2rem; }
  .shop-intro p { max-width: 34rem; margin-top: .5rem; font-size: .84rem; }
  .shop-results { font-size: .72rem; }
  .shop-tools { grid-template-columns: minmax(0, 1fr); gap: .7rem; padding-top: 1rem; }
  .shop-search-field { height: 45px; }
  .shop-sort-field { justify-content: space-between; }
  .shop-sort-field .form-control { flex: 1; min-width: 0; }
  .shop-category-nav { margin-right: -1rem; padding-bottom: .9rem; }
  .shop-refinements { flex-wrap: wrap; column-gap: 1rem; row-gap: .55rem; padding: .7rem 0; }
  .shop-condition-field { flex: 1 1 100%; justify-content: space-between; }
  .shop-condition-field .form-control { flex: 1; max-width: 220px; }
  .shop-clear-button { margin-left: 0; }
  #shop-products-grid.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  #shop-products-grid .card-badge-wrap { top: .55rem; left: .55rem; gap: .25rem; }
  #shop-products-grid .badge-condition { padding: .27rem .38rem; font-size: .54rem; }
  #shop-products-grid .card-image-wrap { aspect-ratio: 1 / 1; padding: .5rem; }
  #shop-products-grid .card-content { padding: .7rem .7rem .75rem; }
  #shop-products-grid .card-title { font-size: .84rem; }
  #shop-products-grid .card-brand { font-size: .56rem; }
  #shop-products-grid .card-specs-brief { min-height: 2rem; margin: .35rem 0 .55rem; font-size: .65rem; }
  #shop-products-grid .card-price { font-size: .98rem; }
  #shop-products-grid .card-price-sub { font-size: .6rem; }
  #shop-products-grid .card-detail-button { min-height: 35px; font-size: .7rem; }
  .social-floating-rail { right: 10px; bottom: 10px; left: auto; top: auto; flex-direction: column; gap: 6px; transform: none; }
  .social-rail-link { width: 34px; height: 34px; }
  .social-rail-link img { width: 16px; height: 16px; }
}

/* Editorial display type: expressive headlines, restrained interface text */
/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
.section-title,
.store-section-title {
  font-family: var(--font-display);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Base Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top Announcement Bar */
.top-bar {
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top-badge-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-bar-contact a:hover {
  color: #ffffff;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

/* LOGO SLOT REQUIREMENT:
   Reserved editable space. If logo exists, render image.
   If no logo uploaded, render text "Dr Apple" cleanly preserving space.
   No Apple logo substituted. */
.brand-slot {
  display: flex;
  align-items: center;
  height: 44px;
  min-width: 140px;
}
.brand-logo-img {
  display: block;
  width: auto;
  max-height: 42px;
  max-width: 180px;
  object-fit: contain;
}
.brand-text-logo {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.brand-text-logo .brand-dot {
  color: var(--accent-color);
}
.brand-text-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  background: var(--accent-light);
  color: var(--accent-color);
  border-radius: var(--radius-sm);
  margin-left: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  background: none;
  border: 1px solid transparent;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.btn-icon:hover {
  background: var(--bg-subtle);
  border-color: var(--border-color);
}

.cart-count-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-repair-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.btn-repair-header:hover {
  background: var(--primary-color);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}
.btn-dark {
  background-color: var(--primary-color);
  color: #ffffff;
}
.btn-dark:hover {
  background-color: var(--primary-hover);
}
.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
}
.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}
.btn-secondary:hover {
  background-color: #e2e8f0;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}
.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(145deg, #090e17 0%, #172033 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #93c5fd;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-title span {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #94a3b8;
}
.hero-trust-item strong {
  color: #ffffff;
  display: block;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-card-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 440px;
}
.hero-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.hero-badge-float {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--accent-color);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

/* Demo Notice Banner */
.demo-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fef3c7;
  color: #92400e;
  padding: 0.625rem 0;
  font-size: 0.8125rem;
}
.demo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.demo-banner a {
  text-decoration: underline;
  font-weight: 600;
}

/* Category Quick Bar (Reference: iShop Perú) */
.category-bar-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.category-nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.category-nav-list::-webkit-scrollbar {
  display: none;
}
.category-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}
.category-nav-card:hover {
  background: var(--accent-light);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}
.category-icon {
  font-size: 1.5rem;
}

/* Section Header */
.section {
  padding: 4rem 0;
}
.section-header {
  margin-bottom: 2.5rem;
}
.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.badge-condition {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-nuevo {
  background: #dcfce7;
  color: #15803d;
}
.badge-reacondicionado {
  background: #fef3c7;
  color: #b45309;
}
.badge-custom {
  background: #ede9fe;
  color: #6d28d9;
}

.card-image-wrap {
  position: relative;
  background: #f8fafc;
  padding: 1.5rem;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-image-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.card-specs-brief {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-refurb-notes {
  background: #fffbeb;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  color: #92400e;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-price-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}
.card-price-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: block;
}
.card-unconfirmed {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--warning-color);
}

/* Real Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
}
.benefit-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}
.benefit-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.benefit-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.benefit-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Services / Repairs Breakdown (References: FinderFix & DiiPhone) */
.services-section {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-color);
}
.service-card-title {
  font-size: 1.125rem;
  font-weight: 700;
}
.service-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.service-meta-row {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.service-time {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.service-warranty {
  color: var(--success-color);
  font-weight: 600;
}

/* Repair Process Steps (Reference: iStore Perú & DiiPhone) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
}
.process-step-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}
.process-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.process-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Interactive Repair Wizard (Reference: tuiPhone Chile) */
.wizard-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}
.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: var(--transition);
}
.wizard-step-node.active .wizard-step-circle {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}
.wizard-step-node.completed .wizard-step-circle {
  background: var(--success-color);
  border-color: var(--success-color);
  color: #ffffff;
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.wizard-option-btn {
  background: var(--bg-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.wizard-option-btn:hover {
  border-color: var(--accent-color);
  background: var(--accent-light);
}
.wizard-option-btn.selected {
  border-color: var(--accent-color);
  background: var(--accent-light);
  color: var(--accent-color);
  font-weight: 700;
}
.wizard-opt-icon {
  font-size: 1.75rem;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--primary-color);
}
.faq-icon-arrow {
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  display: block;
}

.social-rail-link.social-whatsapp[type="button"] {
  padding: 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
  border: 0;
}

/* Footer */
.site-footer {
  background: #090e17;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.payment-methods-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.payment-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

/* Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer-backdrop:not(.open) {
  display: none;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer-backdrop.open .cart-drawer {
  transform: translateX(0);
}
.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.cart-item-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}
.cart-item-info {
  flex-grow: 1;
}
.cart-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.cart-item-variant {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.cart-item-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-color);
}
.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.cart-summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

/* Product Detail Page Specifics */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.gallery-main {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.gallery-main img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-photo-pending {
  color: #747b86;
  font-size: .875rem;
  letter-spacing: .02em;
  text-align: center;
}
.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  cursor: pointer;
  background: #fff;
  transition: var(--transition);
}
.gallery-thumb.active {
  border-color: var(--accent-color);
}

/* Variant Selectors */
.variant-selector-group {
  margin-bottom: 1.5rem;
}
.variant-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  display: flex;
  justify-content: space-between;
}
.color-swatches-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.color-swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  outline: 2px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.color-swatch-btn.active {
  outline-color: var(--accent-color);
  transform: scale(1.1);
}

.storage-pills-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.storage-pill-btn {
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.storage-pill-btn:hover {
  border-color: #cbd5e1;
}
.storage-pill-btn.active {
  border-color: var(--accent-color);
  background: var(--accent-light);
  color: var(--accent-color);
}

/* Refurbished Info Callout Box */
.refurb-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}
.refurb-box-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.refurb-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #78350f;
}

/* Checkout Page */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.checkout-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.form-group.col-span-2 {
  grid-column: span 2;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}
.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* Tracking Step Timeline */
.timeline-tracker {
  position: relative;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
}
.timeline-tracker::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: var(--border-color);
  z-index: 1;
}
.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
}
.timeline-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.timeline-step.completed .timeline-circle {
  background: var(--success-color);
  border-color: var(--success-color);
  color: #fff;
}
.timeline-step.active .timeline-circle {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}
.timeline-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.timeline-step.active .timeline-label {
  color: var(--accent-color);
}

/* Admin Dashboard Specifics */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-height));
}
.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.35rem;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: var(--accent-light);
  color: var(--accent-color);
}
.admin-main {
  padding: 2rem;
  background: var(--bg-main);
  overflow-y: auto;
}

/* Launch Checklist Box */
.checklist-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
}
.checklist-item.done {
  border-color: #86efac;
  background: #f0fdf4;
}
.checklist-item.pending {
  border-color: #fde68a;
  background: #fffbeb;
}
.checklist-check-icon {
  font-size: 1.25rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust-row {
    justify-content: center;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .hero-title {
    font-size: 2.15rem;
  }
}

/* ========================================================================== 
   STORE-FIRST HOMEPAGE — visual direction based on premium Apple retailers
   ========================================================================== */

.storefront-home {
  background: #fff;
  color: #111;
}

.storefront-home .container,
.site-header .container,
.top-bar .container,
.site-footer .container {
  max-width: 1360px;
}

.top-bar {
  background: #111;
  color: #fff;
  padding: .38rem 0;
  font-size: .72rem;
}

.top-bar-inner {
  min-height: 22px;
}

.top-bar-badges {
  width: 100%;
  justify-content: space-between;
  gap: 2rem;
}

.top-bar-contact {
  position: absolute;
  right: 1.25rem;
  opacity: 0;
  pointer-events: none;
}

.site-header {
  height: 64px;
  border-bottom: 1px solid #e9e9e9;
  background: rgba(255,255,255,.98);
}

.header-inner {
  gap: 1rem;
}

.brand-slot {
  min-width: 170px;
}

.brand-text-logo {
  font-size: 1.55rem;
  color: #111;
}

.brand-text-badge {
  display: none;
}

.main-nav {
  flex: 1;
  justify-content: center;
  gap: 1.35rem;
}

.nav-link {
  font-size: .82rem;
  color: #171717;
  font-weight: 600;
}

.nav-offer {
  color: #ef233c;
}

.header-actions {
  gap: .4rem;
}

.header-search {
  width: 190px;
  height: 34px;
  display: flex;
  align-items: center;
  background: #f4f4f5;
  border-radius: 999px;
  padding: 0 .5rem 0 .9rem;
}

.header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .76rem;
}

.header-search button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.header-actions .btn-icon {
  width: 36px;
  height: 36px;
}

.store-demo-note {
  background: #fff8dd;
  border-bottom: 1px solid #f2e4a4;
  font-size: .76rem;
  color: #6b5310;
}

.store-demo-note .container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.store-demo-note a {
  color: #6b5310;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}

.store-hero {
  min-height: 430px;
  background:
    radial-gradient(circle at 80% 35%, rgba(219,229,241,.76), transparent 33%),
    linear-gradient(120deg, #f9fafc 0%, #eef2f7 100%);
  overflow: hidden;
}

.store-hero-grid {
  min-height: 430px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  align-items: stretch;
}

.store-hero-copy {
  align-self: center;
  padding: 3.4rem 0;
  position: relative;
  z-index: 2;
}

.store-eyebrow {
  display: block;
  color: #68707d;
  font-size: .7rem;
  letter-spacing: .36em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.store-eyebrow.light {
  color: #c9ced5;
}

.store-hero h1 {
  font-size: clamp(3.2rem, 5.3vw, 5.3rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.store-hero-copy > p {
  max-width: 500px;
  color: #565b64;
  font-size: 1.1rem;
  line-height: 1.45;
}

.store-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.6rem 0 1.45rem;
}

.btn-white {
  background: #fff;
  color: #151515;
  border-color: #d7d7d9;
}

.btn-white:hover {
  background: #f5f5f6;
  color: #111;
}

.store-hero-actions .btn {
  min-width: 175px;
  border-radius: 999px;
}

.store-trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  color: #686d76;
  font-size: .78rem;
}

.store-trust-inline b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #aab1bb;
  border-radius: 50%;
  color: #171717;
  margin-right: .3rem;
}

.store-hero-media {
  min-width: 0;
  padding: 2.1rem 0 2.1rem 3.5rem;
  display: flex;
}

.hero-media-placeholder {
  width: 100%;
  min-height: 330px;
  border: 1px dashed rgba(105,116,132,.33);
  border-radius: 32px 0 0 32px;
  background: rgba(255,255,255,.36);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #88919d;
  text-align: center;
  letter-spacing: .15em;
  font-size: .68rem;
}

.hero-media-placeholder small {
  display: block;
  margin-top: .6rem;
  letter-spacing: 0;
  font-size: .72rem;
  color: #a0a7b0;
}

.store-section {
  padding: 2.8rem 0;
}

.store-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.store-section-head.compact {
  margin-bottom: 1.7rem;
}

.store-section-head h2,
.store-finder-grid h2,
.store-cta h2 {
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 800;
}

.store-section-head p,
.store-finder-grid p,
.store-cta p {
  margin-top: .35rem;
  color: #727780;
  font-size: .84rem;
}

.store-text-link {
  color: #0878ed;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.store-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.store-category-card {
  min-width: 0;
  height: 185px;
  background: #f5f5f7;
  border-radius: 14px;
  padding: .75rem .85rem .8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.store-category-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .25s ease;
}

.store-category-card:hover img {
  transform: translateY(-3px) scale(1.035);
}

.store-category-card strong {
  font-size: .82rem;
}

.store-category-card span {
  margin-top: .14rem;
  font-size: .68rem;
  color: #0878ed;
}

.store-products-section {
  padding-top: .5rem;
}

.store-product-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}

.store-product-card {
  min-width: 0;
  position: relative;
  border: 1px solid #e3e5e8;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.store-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(20,29,42,.08);
}

.store-product-badges {
  position: absolute;
  z-index: 2;
  left: .65rem;
  top: .65rem;
}

.store-product-badges span {
  display: inline-block;
  max-width: 125px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: .2rem .48rem;
  border-radius: 999px;
  background: #7047eb;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.store-product-image {
  height: 180px;
  padding: 1rem .5rem .2rem;
  background: #fbfbfc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.store-product-info {
  flex: 1;
  padding: .78rem;
  display: flex;
  flex-direction: column;
}

.store-product-info h3 {
  font-size: .84rem;
  line-height: 1.2;
  min-height: 2.1em;
}

.store-product-info p {
  color: #727780;
  font-size: .67rem;
  margin: .2rem 0 .45rem;
}

.store-product-info > strong {
  margin-top: auto;
  font-size: 1.02rem;
}

.store-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  margin-top: .65rem;
}

.store-product-actions .btn {
  padding: .45rem .25rem;
  font-size: .66rem;
}

.store-loading {
  grid-column: 1/-1;
  padding: 3rem;
  text-align: center;
  color: #777;
}

.store-pro-banner {
  position: relative;
  height: 275px;
  background: #050607;
  color: #fff;
  overflow: hidden;
}

.store-pro-grid {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
}

.store-pro-grid > div {
  position: relative;
  z-index: 2;
  padding-left: 6rem;
}

.store-pro-grid h2 {
  font-size: 2.3rem;
  line-height: .95;
  letter-spacing: -.04em;
}

.store-pro-grid p {
  margin: .55rem 0 1rem;
  color: #c4c7cc;
  font-size: .82rem;
}

.store-pro-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
  opacity: 1;
}

.store-confidence {
  padding-bottom: 1.8rem;
}

.store-benefits-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.3rem;
}

.store-benefits-row article {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.store-benefits-row i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid #111;
  border-radius: 12px;
  font-style: normal;
  font-size: 1.15rem;
}

.store-benefits-row strong,
.store-benefits-row span {
  display: block;
}

.store-benefits-row strong {
  font-size: .78rem;
}

.store-benefits-row span {
  margin-top: .15rem;
  color: #717680;
  font-size: .68rem;
  line-height: 1.35;
}

.store-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

.store-editorial-card {
  height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(120deg,#f0f2f5,#fafafa);
  padding: 1.5rem;
}

.store-editorial-card > div {
  width: 50%;
  position: relative;
  z-index: 2;
}

.store-editorial-card h3 {
  font-size: 1.18rem;
}

.store-editorial-card p {
  font-size: .78rem;
  color: #626771;
  margin: .15rem 0 1.2rem;
}

.store-editorial-card span {
  color: #0878ed;
  font-size: .72rem;
  font-weight: 700;
}

.store-editorial-card img {
  position: absolute;
  width: 57%;
  height: 130%;
  right: -3%;
  bottom: -20%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.store-finder-section {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.store-finder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  align-items: stretch;
}

.store-finder-grid > div {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.budget-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.budget-pills a {
  padding: .58rem .85rem;
  border: 1px solid #dfe2e6;
  border-radius: 999px;
  background: #f7f7f8;
  font-size: .72rem;
  font-weight: 700;
}

.store-advice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #f6f7f9;
}

.store-advice-card span,
.store-advice-card strong {
  display: block;
}

.store-advice-card span {
  color: #707681;
  font-size: .78rem;
}

.store-advice-card strong {
  font-size: 1.25rem;
  margin: .15rem 0 .9rem;
}

.store-cta {
  background: linear-gradient(120deg,#eef2f6,#fafafa);
  overflow: hidden;
}

.store-cta-inner {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  align-items: center;
  gap: 2rem;
}

.store-cta-inner > img {
  width: 330px;
  height: 190px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.store-cta-inner .btn {
  margin-top: .85rem;
}

.store-faq {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #f7f7f5;
}
.store-faq-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
}
.store-faq-intro h2 {
  max-width: 360px;
  margin: .6rem 0 .8rem;
  font-family: var(--font-editorial, Georgia, serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.store-faq-intro p,
.store-faq-item p {
  color: #626873;
  line-height: 1.65;
}
.store-faq-list { border-top: 1px solid #d8dadd; }
.store-faq-item { border-bottom: 1px solid #d8dadd; }
.store-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
  list-style: none;
  cursor: pointer;
  color: #14171c;
  font-size: 1rem;
  font-weight: 600;
}
.store-faq-item summary::-webkit-details-marker { display: none; }
.store-faq-item summary::after {
  content: '+';
  color: #1479e9;
  font-size: 1.35rem;
  font-weight: 400;
}
.store-faq-item[open] summary::after { content: '−'; }
.store-faq-item p { margin: 0; padding: 0 2rem 1.2rem 0; font-size: .92rem; }

.store-cta-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  color: #626873;
  font-size: .75rem;
}

.store-cta-points span::before {
  content: '✓';
  color: #0878ed;
  margin-right: .45rem;
  font-weight: 800;
}

.site-footer {
  padding-top: 3rem;
}

.site-footer .brand-text-logo {
  color: #fff;
}

.footer-brand-mark {
  position: relative;
  display: block;
  width: 175px;
  height: 58px;
}

.footer-brand-mask,
.footer-brand-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.footer-brand-mask {
  background: #fff;
  -webkit-mask: url('/images/dr-apple-logo.png') center / contain no-repeat;
  mask: url('/images/dr-apple-logo.png') center / contain no-repeat;
}

.footer-brand-color {
  object-fit: contain;
  clip-path: inset(0 68% 0 0);
}

/* Shop page density and polish */
#shop-products-grid.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

#shop-products-grid .card-image-wrap {
  height: 210px;
  background: #fbfbfc;
}

#shop-products-grid .card-image-wrap img {
  mix-blend-mode: multiply;
}

/* Social rail and vector brand marks */
html,
body {
  overflow-x: clip;
}

.social-floating-rail {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}

.social-rail-link {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

.social-rail-link:hover {
  transform: translateX(-5px) scale(1.06);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .28);
}

.social-rail-link img {
  width: 21px;
  height: 21px;
  filter: brightness(0) invert(1);
}

.social-rail-link span {
  position: absolute;
  right: 58px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #0b0d12;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.social-rail-link:hover span {
  opacity: 1;
  transform: translateX(0);
}

.social-facebook { background: #1877f2; }
.social-instagram { background: linear-gradient(145deg, #7c3aed 0%, #e1306c 48%, #ff8a00 100%); }
.social-whatsapp { background: #25d366; }
.social-tiktok { background: #050505; }

.footer-social-block {
  margin-top: 1.5rem;
}

.footer-mini-title {
  display: block;
  margin-bottom: .75rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-social-icons {
  display: flex;
  gap: .6rem;
}

.footer-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .2s ease, transform .2s ease;
}

.footer-social-icons a:hover {
  background: #fff;
  transform: translateY(-2px);
}

.footer-social-icons img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.footer-social-icons a:hover img {
  filter: none;
}

.footer-payment-area {
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.payment-methods-strip {
  gap: .55rem;
}

.payment-logo-card {
  width: auto;
  min-width: 62px;
  height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  display: inline-flex;
  place-items: center;
  justify-content: center;
  gap: .42rem;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.payment-logo-card:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
}

.payment-logo-card img {
  width: auto;
  max-width: 72px;
  height: 21px;
  object-fit: contain;
}

.payment-logo-wide { min-width: 96px; }
.payment-logo-yape { min-width: 70px; }
.payment-logo-plin { min-width: 64px; padding: 0 9px; }
.payment-logo-visa,
.payment-logo-mastercard { min-width: 62px; }
.payment-logo-visa img,
.payment-logo-mastercard img,




.payment-separator {
  width: 1px;
  height: 32px;
  margin: 0 .3rem;
  background: rgba(255, 255, 255, .18);
}

.payment-transfer-label,
.footer-security-note {
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .social-floating-rail {
    top: auto;
    right: 50%;
    bottom: 12px;
    flex-direction: row;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: translateX(50%);
  }

  .social-rail-link {
    width: 39px;
    height: 39px;
    box-shadow: none;
  }

  .social-rail-link img {
    width: 18px;
    height: 18px;
  }

  .social-rail-link span {
    display: none;
  }

  .payment-methods-strip {
    align-items: stretch;
  }

  .payment-logo-card {
    width: auto;
    min-width: 56px;
    height: 40px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .payment-logo-wide { min-width: 88px; }
  .payment-logo-yape { min-width: 62px; }
  .payment-logo-plin { min-width: 56px; }
  .payment-separator { display: none; }
  .payment-transfer-label { flex-basis: 100%; margin-top: .3rem; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 1180px) {
  .main-nav { gap: .75rem; }
  .nav-link { font-size: .74rem; }
  .header-search { display: none; }
  .store-product-row { grid-template-columns: repeat(3, 1fr); }
  .store-categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .store-faq-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .store-faq-intro h2 { max-width: 520px; }
  .top-bar-badges .top-badge-item:nth-child(n+2) { display: none; }
  .top-bar-badges { justify-content: center; }
  .brand-slot { min-width: 125px; }
  .brand-text-logo { font-size: 1.25rem; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 1rem 1.25rem 1.4rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 16px 28px rgba(0,0,0,.08);
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.mobile-open { display: flex; }
  .nav-link { font-size: .9rem; padding: .5rem 0; }
  .store-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .store-hero-copy { padding: 3rem 0 1.5rem; }
  .store-hero h1 { font-size: 3.25rem; }
  .store-hero-media { padding: 0 0 2rem; }
  .hero-media-placeholder { min-height: 210px; border-radius: 24px; }
  .store-trust-inline { gap: .65rem 1rem; }
  .store-section-head { align-items: flex-start; }
  .store-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .store-category-card { height: 165px; }
  .store-product-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .store-product-image { height: 155px; }
  .store-pro-grid { grid-template-columns: 1fr 1fr; }
  .store-pro-grid > div { padding-left: 0; }
  .store-pro-grid h2 { font-size: 1.85rem; }
  .store-benefits-row { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .store-editorial-grid { grid-template-columns: 1fr; }
  .store-finder-grid { grid-template-columns: 1fr; }
  .store-cta-inner { grid-template-columns: 1fr; gap: .7rem; padding: 1.5rem 1.25rem 2rem; }
  .store-cta-inner > img { width: 100%; height: 140px; }
}

@media (max-width: 480px) {
  .store-demo-note .container { padding-top: .45rem; padding-bottom: .45rem; }
  .store-demo-note a { display: none; }
  .store-hero-actions { flex-direction: column; align-items: stretch; }
  .store-hero-actions .btn { width: 100%; }
  .store-section { padding: 2.1rem 0; }
  .store-section-head { flex-direction: column; }
  .store-product-row { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .store-product-info { padding: .65rem; }
  .store-product-info h3 { font-size: .76rem; }
  .store-product-actions { grid-template-columns: 1fr; }
  .store-product-actions .btn-outline { display: none; }
  .store-benefits-row { grid-template-columns: 1fr; }
  .store-pro-banner { height: 250px; }
  .store-pro-grid { grid-template-columns: 1fr; }
  .store-pro-grid img { position: absolute; right: -40%; opacity: .32; }
  .store-pro-grid > div { padding-left: 0; }
}

/* Reference header: animated blue offer bar, large search and category row */
.promo-ticker {
  width: 100%;
  height: 38px;
  overflow: hidden;
  background: #123be7;
  color: #fff;
}

.promo-ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: dr-apple-ticker 16s linear infinite;
  will-change: transform;
}

.promo-ticker:hover .promo-ticker-track {
  animation-play-state: paused;
}

.promo-ticker-item {
  width: 100vw;
  min-width: 100vw;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.promo-ticker-item span {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes dr-apple-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.store-site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: block;
  height: auto;
  background: rgba(255, 255, 255, .98);
  border-bottom: 0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}

.header-main-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 210px minmax(280px, 560px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.store-site-header .brand-slot {
  width: max-content;
  min-width: 180px;
  height: 50px;
}

.store-site-header .brand-logo-img {
  max-width: 190px;
  max-height: 48px;
}

.store-header-search {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 0 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f1f1f2;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.store-header-search:focus-within {
  background: #fff;
  border-color: #9db6ff;
  box-shadow: 0 0 0 4px rgba(18, 59, 231, .09);
}

.store-header-search svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: #747983;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.store-header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font: inherit;
  font-size: .94rem;
}

.store-header-search input::placeholder {
  color: #747983;
}

.store-site-header .header-actions {
  justify-self: end;
  gap: .65rem;
}

.header-store-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-right: .25rem;
  color: #171717;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-store-link:hover {
  color: #123be7;
}

.header-store-link svg,
.store-site-header .btn-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-site-header .btn-icon {
  width: 42px;
  height: 42px;
  color: #111;
}

.store-site-header .cart-count-badge {
  top: 0;
  right: -1px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #123be7;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
}

.header-nav-row {
  border-top: 1px solid #f0f0f1;
  border-bottom: 1px solid #e5e5e7;
  background: #fff;
}

.header-nav-container {
  min-height: 52px;
  display: flex;
  align-items: center;
}

.store-site-header .main-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
}

.store-site-header .nav-link {
  padding: 1rem .2rem .9rem;
  color: #111;
  font-size: .88rem;
  font-weight: 700;
}

.store-site-header .nav-link:hover,
.store-site-header .nav-link.active {
  color: #123be7;
}

.store-site-header .nav-link.active::after {
  height: 3px;
  background: #123be7;
}

.store-site-header .nav-offer {
  color: #e7193f;
}

@media (prefers-reduced-motion: reduce) {
  .promo-ticker-track { animation: none; }
}

@media (max-width: 1050px) {
  .header-main-row {
    grid-template-columns: 175px minmax(240px, 1fr) auto;
    gap: 1rem;
  }

  .header-store-link span { display: none; }
  .store-site-header .main-nav { gap: .65rem; }
  .store-site-header .nav-link { font-size: .78rem; }
}

@media (max-width: 768px) {
  .promo-ticker,
  .promo-ticker-item {
    height: 34px;
  }

  .promo-ticker-item {
    padding: 0 1rem;
    font-size: .72rem;
  }

  .header-main-row {
    min-height: auto;
    grid-template-columns: 1fr auto;
    gap: .45rem .7rem;
    padding-top: .55rem;
    padding-bottom: .65rem;
  }

  .store-site-header .brand-slot {
    min-width: 0;
    height: 42px;
  }

  .store-site-header .brand-logo-img {
    max-width: 145px;
    max-height: 40px;
  }

  .store-header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    height: 40px;
  }

  .header-store-link,
  .header-account-link {
    display: none;
  }

  .store-site-header .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .header-nav-row {
    border-top: 0;
  }

  .header-nav-container {
    min-height: 0;
    padding: 0;
  }

  .store-site-header .main-nav {
    position: static;
    display: none;
    width: 100%;
    padding: .8rem 1.25rem 1.1rem;
    border: 0;
    box-shadow: none;
    flex-direction: column;
    gap: .1rem;
  }

  .store-site-header .main-nav.mobile-open {
    display: flex;
  }

  .store-site-header .nav-link {
    width: 100%;
    padding: .65rem 0;
    font-size: .9rem;
  }

  .store-site-header .nav-link.active::after {
    right: auto;
    width: 36px;
  }
}

/* Final editorial header pass */
.promo-ticker {
  position: relative;
  height: 40px;
  background: linear-gradient(90deg, #1238d8 0%, #1749f5 52%, #1238d8 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .16);
}

.promo-ticker::before,
.promo-ticker::after {
  position: absolute;
  top: 50%;
  z-index: 2;
  color: rgba(255, 255, 255, .9);
  font-size: 1.4rem;
  line-height: 1;
  transform: translateY(-52%);
  pointer-events: none;
}

.promo-ticker::before { content: '‹'; left: clamp(18px, 4vw, 64px); }
.promo-ticker::after { content: '›'; right: clamp(18px, 4vw, 64px); }

.promo-ticker-item {
  height: 40px;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .015em;
}

.store-site-header {
  font-family: var(--font-sans);
  box-shadow: 0 8px 32px rgba(20, 25, 38, .055);
}

.store-site-header .container {
  max-width: 1360px;
  padding-left: 2rem;
  padding-right: 2rem;
}

.header-main-row {
  min-height: 92px;
  grid-template-columns: 235px minmax(360px, 590px) auto;
  gap: 2.2rem;
}

.store-site-header .brand-slot {
  min-width: 205px;
  height: 58px;
}

.store-site-header .brand-logo-img {
  max-width: 205px;
  max-height: 56px;
}

.store-header-search {
  height: 48px;
  padding: 0 1.2rem;
  border-color: #e8e8eb;
  background: #f5f5f6;
}

.store-header-search svg {
  width: 21px;
  height: 21px;
  stroke: #696e78;
  stroke-width: 1.65;
}

.store-header-search input {
  font-size: .9rem;
  font-weight: 480;
  letter-spacing: -.01em;
}

.store-site-header .header-actions { gap: .5rem; }

.header-store-link {
  margin-right: .65rem;
  color: #27292e;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.header-store-link svg,
.store-site-header .btn-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.55;
}

.store-site-header .btn-icon {
  width: 43px;
  height: 43px;
}

.store-site-header .btn-icon:hover {
  background: #f5f5f6;
  border-color: #e9e9ec;
  transform: translateY(-1px);
}

.header-nav-container { min-height: 55px; }

.store-site-header .main-nav {
  justify-content: center;
  gap: clamp(2rem, 3.45vw, 3.7rem);
}

.store-site-header .nav-link {
  padding: 1.08rem 0 .98rem;
  color: #292b30;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: -.012em;
}

.store-site-header .nav-link.active::after {
  left: 50%;
  right: auto;
  width: 30px;
  height: 3px;
  transform: translateX(-50%);
}

.store-site-header .nav-offer {
  padding-left: .75rem;
  padding-right: .75rem;
  border-radius: 999px;
  color: #e51d45;
  background: #fff2f5;
}

@media (max-width: 1100px) {
  .store-site-header .container {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .header-main-row {
    grid-template-columns: 190px minmax(280px, 1fr) auto;
    gap: 1.2rem;
  }

  .store-site-header .brand-slot { min-width: 180px; }
  .store-site-header .brand-logo-img { max-width: 180px; }
  .store-site-header .main-nav { gap: 1.8rem; }
}

@media (max-width: 768px) {
  .promo-ticker,
  .promo-ticker-item { height: 36px; }
  .promo-ticker::before { left: 10px; }
  .promo-ticker::after { right: 10px; }
  .promo-ticker-item { font-size: .7rem; }

  .store-site-header .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .header-main-row {
    grid-template-columns: 1fr auto;
    gap: .55rem .75rem;
    padding-top: .65rem;
    padding-bottom: .75rem;
  }

  .store-site-header .brand-slot {
    min-width: 0;
    height: 46px;
  }

  .store-site-header .brand-logo-img {
    max-width: 158px;
    max-height: 44px;
  }

  .store-header-search {
    height: 43px;
    border-radius: 14px;
  }

  .header-nav-row {
    display: none;
  }

  .header-nav-row:has(.main-nav.mobile-open) {
    display: block;
  }

  .header-nav-container {
    min-height: 0;
  }

  .store-site-header .main-nav { gap: .1rem; }

  .store-site-header .nav-link {
    padding: .72rem 0;
    font-size: .88rem;
  }

  .store-site-header .nav-offer {
    width: max-content;
    padding-left: .75rem;
    padding-right: .75rem;
  }
}

/* Final catalog overrides after the shared storefront styles. */
#shop-products-grid.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#shop-products-grid .card-image-wrap {
  --catalog-image-inset: 1rem;
  height: auto;
  aspect-ratio: 1 / 1.02;
}
/* A definite image box keeps portrait photos within the card's aspect ratio. */
#shop-products-grid .card-image-wrap img {
  position: absolute;
  inset: var(--catalog-image-inset);
  width: calc(100% - var(--catalog-image-inset) - var(--catalog-image-inset));
  height: calc(100% - var(--catalog-image-inset) - var(--catalog-image-inset));
  object-fit: contain;
}

@media (max-width: 1050px) {
  #shop-products-grid.products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  #shop-products-grid.products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  #shop-products-grid .card-image-wrap { --catalog-image-inset: .5rem; height: auto; aspect-ratio: 1 / 1; }
}

/* Temporal: ocultar la barra flotante de redes. Quitar esta regla para restaurarla. */
.social-floating-rail { display: none !important; }

.checkout-shipping-options { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.checkout-shipping-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: 1rem; border: 2px solid var(--border-color); border-radius: 12px; cursor: pointer; }
.checkout-shipping-choice span { font-weight: 600; }
.checkout-shipping-choice:has(input:checked) { border-color: var(--accent-color); }
