:root {
  --bs-primary: #1f6feb;
  --bs-primary-rgb: 31, 111, 235;
  --bs-link-color: #1f6feb;
  --bs-link-hover-color: #0b4eb2;
  --bs-info: #1f6feb;
  --bs-info-rgb: 31, 111, 235;
}

a {
  color: var(--bs-link-color);
}

a:hover {
  color: var(--bs-link-hover-color);
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.border-primary {
  border-color: var(--bs-primary) !important;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0b4eb2;
  border-color: #0b4eb2;
}

.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.badge.bg-primary {
  background-color: var(--bs-primary) !important;
}

.nav-pills .nav-link.active,
.page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.slick-slider .slick-next:focus,
.slick-slider .slick-next:hover,
.slick-slider .slick-prev:focus,
.slick-slider .slick-prev:hover {
  background: var(--bs-primary);
  color: #fff;
}

.noUi-connect,
.noUi-tooltip {
  background: var(--bs-primary) !important;
}

.thumbnails .tns-nav-active .thumbnails-img {
  border-color: var(--bs-primary);
}

/* Breadcrumbs: keep divider compact and avoid long stray text. */
.breadcrumb {
  --bs-breadcrumb-divider: "/";
  font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  padding: 0 0.35rem;
}

/* Imagenes uniformes para categorias y productos */
.category-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #f8f9fb;
  border-radius: 10px;
  padding: 8px;
}

.stock-panel {
  background: #f3f4f6;
  border: 1px solid rgba(2, 8, 23, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
}

.stock-panel .stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stock-panel .stock-link {
  font-weight: 700;
  text-decoration: none;
}

.stock-panel .stock-note {
  font-size: 11px;
  color: #0f5132;
}

.stock-table {
  font-size: 12px;
}

.stock-table th,
.stock-table td {
  padding: 6px 8px;
  text-align: center;
}

@media (max-width: 767.98px) {
  .category-img {
    height: 110px;
  }

  .product-card-img {
    height: 180px;
  }
}

/* Experiencia premium inspirada en el lenguaje visual de una tienda tecnológica. */
:root {
  --premium-ink: #1d1d1f;
  --premium-muted: #6e6e73;
  --premium-surface: #f5f5f7;
  --premium-blue: #0071e3;
  --premium-blue-hover: #0077ed;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--premium-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
}

body > .border-bottom:first-of-type {
  position: sticky;
  top: 0;
  z-index: 1050;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.ecom-top-strip {
  display: none;
}

.navbar {
  padding: 0 !important;
}

.navbar .container {
  min-height: 68px;
}

.navbar-brand span {
  font-weight: 650 !important;
  letter-spacing: -0.035em;
}

.ecom-search-col .input-group {
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--premium-surface);
}

.ecom-search-col .form-control,
.ecom-search-col .btn {
  border: 0 !important;
  background: transparent !important;
  min-height: 42px;
  box-shadow: none !important;
}

.ecom-desktop-nav {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.ecom-desktop-nav .btn-primary {
  border: 0;
  border-radius: 999px;
}

.ecom-nav .nav-link {
  color: var(--premium-ink) !important;
  font-weight: 500;
  transition: color .18s ease, background-color .18s ease;
}

.ecom-nav .nav-link:hover {
  color: var(--premium-blue) !important;
  background: var(--premium-surface);
}

.btn-primary {
  border-color: var(--premium-blue);
  border-radius: 999px;
  background: var(--premium-blue);
  padding: .72rem 1.35rem;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--premium-blue-hover);
  background: var(--premium-blue-hover);
  transform: translateY(-1px);
}

.premium-eyebrow {
  color: #bf4800;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.premium-text-link {
  color: var(--premium-blue);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.premium-text-link:hover {
  color: var(--premium-blue-hover);
  text-decoration: underline;
}

.premium-hero {
  padding: 24px 0 0;
}

.premium-hero .premium-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  align-items: center;
  min-height: 610px;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 28%, rgba(255,255,255,.96) 0, rgba(255,255,255,.1) 34%),
    linear-gradient(135deg, #f4f5f7 0%, #e8ebef 100%);
}

.premium-hero-copy {
  position: relative;
  z-index: 2;
  padding: 72px 0 72px clamp(34px, 6vw, 92px);
}

.premium-hero-copy h1 {
  max-width: 650px;
  margin: 12px 0 20px;
  color: var(--premium-ink);
  font-size: clamp(3.1rem, 5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .98;
}

.premium-hero-copy p {
  max-width: 570px;
  margin: 0;
  color: var(--premium-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
  font-weight: 500;
  line-height: 1.45;
}

.premium-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.premium-hero-product {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 50px 45px 68px 0;
  color: var(--premium-muted);
  text-align: center;
  text-decoration: none;
}

.premium-hero-product img {
  width: min(100%, 570px);
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 34px 30px rgba(22, 28, 38, .18));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.premium-hero-product span {
  position: absolute;
  right: 60px;
  bottom: 34px;
  font-size: .82rem;
  font-weight: 600;
}

.premium-hero-product:hover img {
  transform: scale(1.035) translateY(-4px);
}

.home-categories,
.home-products {
  margin-top: 88px !important;
}

.home-title,
.home-products h2 {
  color: var(--premium-ink);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.05em;
}

.home-categories .card,
.home-products .card {
  overflow: hidden;
  border: 0 !important;
  border-radius: 24px !important;
  background: var(--premium-surface);
  box-shadow: none !important;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}

.home-categories .card:hover,
.home-products .card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .10) !important;
}

.home-categories .category-thumb,
.home-products .product-thumb {
  background: transparent !important;
}

.home-categories .category-thumb {
  min-height: 190px;
}

.home-categories .category-img {
  height: 170px;
  border-radius: 18px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-products .product-thumb {
  min-height: 260px;
}

.home-products .product-card-img {
  height: 250px;
  padding: 0;
  background: transparent;
  mix-blend-mode: multiply;
  transition: transform .35s ease;
}

.home-products .card:hover .product-card-img {
  transform: scale(1.04);
}

.home-products .card h2 {
  min-height: 46px;
  font-size: 1.05rem !important;
  letter-spacing: -.025em;
}

.home-products .stock-panel {
  border: 0;
  background: rgba(255,255,255,.75);
}

.home-products .btn-light {
  border: 0;
  border-radius: 999px;
  color: var(--premium-muted);
  background: #fff;
}

footer {
  margin-top: 80px;
  background: var(--premium-surface) !important;
}

@media (max-width: 991.98px) {
  .premium-hero .premium-hero-shell {
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
  }

  .premium-hero-copy {
    padding-left: 44px;
  }

  .premium-hero-copy h1 {
    font-size: clamp(2.7rem, 6vw, 4.2rem);
  }
}

@media (max-width: 767.98px) {
  body > .border-bottom:first-of-type {
    position: relative;
  }

  .premium-hero {
    padding-top: 12px;
  }

  .premium-hero .premium-hero-shell {
    display: flex;
    min-height: auto;
    flex-direction: column;
    border-radius: 22px;
  }

  .premium-hero-copy {
    padding: 42px 24px 12px;
    text-align: center;
  }

  .premium-hero-copy h1 {
    font-size: clamp(2.55rem, 13vw, 3.8rem);
  }

  .premium-hero-copy p {
    font-size: 1.05rem;
  }

  .premium-hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .premium-hero-product {
    min-height: 330px;
    padding: 20px 24px 56px;
  }

  .premium-hero-product img {
    max-height: 310px;
  }

  .premium-hero-product span {
    right: 0;
    bottom: 22px;
    left: 0;
  }

  .home-categories,
  .home-products {
    margin-top: 58px !important;
  }

  .home-products .row-cols-2 > * {
    width: 100%;
  }

  .home-products .product-thumb {
    min-height: 300px;
  }

  .home-products .product-card-img {
    height: 285px;
  }
}

/* Tienda: hacer el sidebar de categorias mas angosto en desktop/tablet. */
.tienda-sidebar {
  flex: 0 0 240px;
  max-width: 240px;
}

.tienda-products {
  flex: 1 1 auto;
  max-width: calc(100% - 240px);
}

@media (max-width: 991.98px) {
  .tienda-sidebar {
    flex: 0 0 220px;
    max-width: 220px;
  }

  .tienda-products {
    max-width: calc(100% - 220px);
  }
}

@media (max-width: 767.98px) {
  .tienda-sidebar,
  .tienda-products {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
