:root {
  --bg: #1a1a1e;
  --bg-card: #252538;
  --bg-card-hover: #2a2a45;
  --accent: #5b6abf;
  --accent-hover: #4a59ae;
  --accent-soft: #7080cf;
  --accent-soft-hover: #8a96e0;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-subtle: rgba(255, 255, 255, 0.4);
  --text-faint: rgba(255, 255, 255, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-sm: 999px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --container: min(1280px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: "DM Sans", system-ui, sans-serif;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(26, 26, 30, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  min-height: 64px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .header-inner {
    min-height: 80px;
  }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 32px);
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.lang-button,
.cart-button,
.whatsapp-button,
.category-card,
.dialog-close,
.back-home {
  cursor: pointer;
}

.icon-button,
.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--surface);
  transition:
    color 180ms ease,
    background 180ms ease;
}

.lang-button {
  width: auto;
  gap: 6px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.icon-button:hover,
.lang-button:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(91, 106, 191, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 180ms ease;
}

.whatsapp-button:hover {
  background: var(--accent);
}

.whatsapp-button span {
  display: none;
}

@media (min-width: 640px) {
  .whatsapp-button span {
    display: inline;
  }
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface);
  font-size: 0.75rem;
}

.cart-button strong {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0.7rem;
}

.hero-banner {
  position: relative;
  display: grid;
  padding-top: 64px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-banner {
    padding-top: 80px;
  }
}

.hero-banner > img,
.hero-banner-shade,
.hero-brand {
  grid-area: 1 / 1;
}

.hero-banner img {
  width: 100%;
  min-height: clamp(420px, 72vh, 760px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 72%;
}

@media (min-width: 640px) {
  .hero-banner img {
    aspect-ratio: 16 / 7;
  }
}

@media (min-width: 1024px) {
  .hero-banner img {
    aspect-ratio: 16 / 6;
  }
}

.hero-banner-shade {
  background:
    linear-gradient(to top, var(--bg), rgba(26, 26, 30, 0.35) 38%, transparent 62%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 34%, transparent 58%);
  pointer-events: none;
}

.hero-brand {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(48px, 10vh, 96px) 24px 48px;
  text-align: center;
}

.hero-brand h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.categories-section {
  padding: 64px 0;
}

@media (min-width: 640px) {
  .categories-section {
    padding: 96px 0;
  }
}

.section-intro {
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .section-intro {
    margin-bottom: 48px;
  }
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.section-intro p {
  margin: 8px 0 0;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.category-card {
  position: relative;
  display: block;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  background: var(--bg-card);
  text-align: left;
  transition:
    background 300ms ease,
    border-color 300ms ease;
}

@media (min-width: 640px) {
  .category-card {
    padding: 24px;
  }
}

.category-card:hover {
  border-color: rgba(91, 106, 191, 0.5);
  background: var(--bg-card-hover);
}

.category-icon {
  margin-bottom: 12px;
  color: var(--accent-soft);
  transition: color 300ms ease;
}

.category-card:hover .category-icon {
  color: var(--accent-soft-hover);
}

.category-card h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.category-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.category-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.2);
  transition:
    color 300ms ease,
    transform 300ms ease;
}

.category-card:hover .category-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

.contact-section {
  padding: 0 0 64px;
}

@media (min-width: 640px) {
  .contact-section {
    padding-bottom: 96px;
  }
}

.contact-inner {
  max-width: 48rem;
  text-align: center;
}

.contact-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-inner h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.contact-inner > p {
  max-width: 28rem;
  margin: 12px auto 32px;
  color: var(--text-subtle);
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .contact-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 24px;
  font-weight: 500;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.button.primary {
  width: 100%;
  color: var(--text);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-hover);
}

.button.secondary {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .button.primary,
  .button.secondary {
    width: auto;
  }
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.footer-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.06);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
}

.footer-inner > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.shop-section {
  padding: 64px 0 96px;
  border-top: 1px solid var(--border-subtle);
}

.shop-section[hidden] {
  display: none !important;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.shop-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.shop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-field,
.select-field {
  display: grid;
  gap: 8px;
}

.search-field span,
.select-field span {
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
}

.filters {
  position: sticky;
  top: 96px;
  display: flex;
  height: max-content;
  flex-direction: column;
  gap: 10px;
}

.filter-pill {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  color: var(--text-muted);
  background: transparent;
  text-align: left;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.filter-pill.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(91, 106, 191, 0.18);
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.result-line span:first-child {
  color: var(--text);
  font-weight: 700;
}

.back-home {
  border: 0;
  color: var(--accent-soft);
  background: transparent;
  font-size: 0.875rem;
}

.back-home:hover {
  color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  animation: cardIn 550ms ease both;
  animation-delay: var(--delay);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #111118;
}

.image-button img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.image-button span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  background: rgba(26, 26, 30, 0.82);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.image-button:hover img {
  transform: scale(1.05);
}

.image-button:hover span {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  padding: 18px;
}

.product-info p {
  margin-bottom: 8px;
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 42px;
  margin: 0 0 8px;
  font-size: 1rem;
}

.product-meta {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.product-meta strong {
  color: var(--text);
}

.add-button {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  font-weight: 600;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.add-button:hover {
  color: var(--text);
  background: rgba(91, 106, 191, 0.22);
}

.product-dialog {
  width: min(980px, calc(100vw - 28px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: var(--text);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.5rem;
}

.dialog-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
}

.dialog-gallery {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.dialog-main {
  position: relative;
}

.dialog-main > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-zoom:hover {
  background: rgba(20, 20, 24, 0.85);
}

.zoom-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(10, 10, 12, 0.97);
  overflow: hidden;
}

.zoom-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.zoom-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: zoom-in;
}

.zoom-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.zoom-stage img.zoomed {
  transform: scale(2.4);
  cursor: zoom-out;
}

.zoom-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.zoom-nav {
  z-index: 2;
}

.zoom-hint {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-nav:hover {
  background: rgba(20, 20, 24, 0.85);
}

.gallery-nav.prev {
  left: 14px;
}

.gallery-nav.next {
  right: 14px;
}

.dialog-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.dialog-thumbs img {
  width: 100%;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.dialog-thumbs img:hover {
  opacity: 1;
}

.dialog-thumbs img.active {
  opacity: 1;
  border-color: var(--accent, #5b6abf);
}

.dialog-grid > div {
  padding: clamp(24px, 5vw, 58px);
}

.dialog-price {
  display: block;
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.source-price {
  margin-bottom: 18px;
  color: var(--text-subtle);
  font-size: 0.82rem;
}

dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

dt {
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
}

.detail-chips dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chips span {
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  width: min(430px, 100vw);
  height: 100vh;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  color: var(--text);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 280ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head .dialog-close {
  position: static;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.cart-item img {
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item span,
.empty-cart {
  color: var(--text-muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    gap: 16px;
  }

  .cart-button span {
    display: none;
  }

  .shop-heading,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .dialog-main > img {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .desktop-nav .nav-link:not(.active) {
    display: none;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .result-line {
    flex-direction: column;
    align-items: flex-start;
  }
}
