:root {
  --primary: #050505;
  --primary-soft: #18202b;
  --accent: #078fe3;
  --accent-dark: #d74462;
  --bg: #f7fbff;
  --panel: #ffffff;
  --muted: #46515d;
  --shadow: rgba(5, 5, 5, 0.14);
  --success: #16a34a;
  --border: #d8e4ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f7fbff 0%, #fff 52%, #fff8fa 100%);
  color: var(--primary);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background: url("logo.jpg") center center / min(170vw, 2200px) auto no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(7, 143, 227, 0.2);
  box-shadow: 0 8px 24px rgba(5, 5, 5, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(7, 143, 227, 0.22);
  object-fit: cover;
  background: #050505;
  border: 2px solid rgba(215, 68, 98, 0.3);
}

.brand-name {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #006fc1);
  color: #fff;
  box-shadow: 0 12px 25px rgba(7, 143, 227, 0.3);
}

.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.06;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
}

.hero-text {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.brand-strip {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand-strip span {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  color: var(--primary-soft);
  box-shadow: 0 10px 20px var(--shadow);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-card {
  background: linear-gradient(135deg, #050505, #18202b);
  color: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.hero-visual {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 244, 255, 0.96));
  border: 1px solid rgba(7, 143, 227, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.hero-image-wrap {
  height: 230px;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1rem 1rem;
}

.hero-visual-badge span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.hero-visual-badge strong {
  font-size: 0.9rem;
  color: var(--primary);
}

.mini-label {
  margin: 0 0 1rem;
  color: #ef6680;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.panel-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.8rem;
  line-height: 1.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stats-grid div {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.stats-grid strong {
  display: block;
  font-size: 1.5rem;
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}

.search-section {
  padding: 1rem 0 0;
}

.search-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}

.search-tagline {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#searchForm {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

#searchInput {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  outline: none;
}

#searchInput:focus {
  border-color: rgba(7, 143, 227, 0.8);
  box-shadow: 0 0 0 4px rgba(7, 143, 227, 0.15);
}

.catalog-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.catalog-controls label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-controls select {
  min-width: 165px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: var(--primary);
  font: inherit;
}

.featured-section,
.shop-section,
.about-section {
  padding: 4rem 0;
}

.featured-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.featured-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(7, 143, 227, 0.15);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(7, 143, 227, 0.12);
  border-color: rgba(7, 143, 227, 0.35);
}

.featured-card .product-image-button {
  height: 190px;
}

.featured-card .product-body {
  padding: 0.9rem 1rem 1rem;
}

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

.section-head h2,
.about-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-family: Georgia, "Times New Roman", serif;
}

.results-count {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
  border-color: rgba(7, 143, 227, 0.22);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.product-card figure {
  margin: 0;
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: transparent;
}

.product-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-image-button:hover img,
.product-image-button:focus-visible img {
  transform: scale(1.04);
}

.product-image-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.product-body {
  padding: 1rem;
}

.product-brand {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-name {
  margin: 0.5rem 0;
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--primary);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.quote-button,
.quote-clear,
.request-cart-button {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quote-button:hover,
.quote-clear:hover,
.request-cart-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px rgba(15, 23, 42, 0.08);
}

.request-cart-button {
  width: 100%;
  background: var(--primary);
  color: #fff;
}

.request-cart-button:disabled {
  background: var(--success);
  cursor: default;
}

.quote-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #e8f5ff;
  color: #006fc1;
}

.cart-items {
  display: grid;
  gap: 0.45rem;
  max-height: 180px;
  overflow: auto;
  min-width: min(300px, 100%);
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.cart-item > span {
  max-width: 190px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.cart-item-controls button {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.cart-item-controls .cart-remove {
  color: var(--accent-dark);
}

.product-tag {
  background: #ecfdf5;
  color: var(--success);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #2d3748);
  color: #fff;
  font-weight: 700;
  min-width: 120px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.product-card.hidden {
  display: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.about-copy {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.location-section {
  padding: 0 0 4rem;
}

.location-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #eef8ff);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.location-panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-family: Georgia, "Times New Roman", serif;
}

.location-panel p:not(.eyebrow) {
  max-width: 55ch;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.location-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.location-phone {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  background: var(--primary);
  color: #fff;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 700;
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  box-shadow: 0 18px 35px rgba(37, 211, 102, 0.4);
  z-index: 20;
}

.quote-tray {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(520px, calc(100% - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.quote-tray[hidden] {
  display: none;
}

.quote-tray strong,
.quote-hint {
  display: block;
}

.quote-hint {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.quote-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.86);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1000px);
  max-height: calc(100vh - 2rem);
  border-radius: 18px;
  overflow: hidden;
  background: #111820;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.65rem;
  color: #fff;
}

.lightbox-button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-button:hover,
.lightbox-button:focus-visible {
  background: var(--accent);
}

.zoom-level {
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.lightbox-image-wrap {
  min-height: 240px;
  overflow: auto;
  display: grid;
  place-items: center;
  background: #050505;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.2s ease;
  user-select: none;
  cursor: zoom-in;
}

.lightbox-image-wrap img:active {
  cursor: grabbing;
}

@media (max-width: 768px) {
  .nav-wrap,
  .section-head,
  .footer-wrap,
  .about-grid,
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrap {
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .main-nav {
    display: none;
  }

  .brand {
    width: 100%;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
  }

  #searchForm {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-controls,
  .catalog-controls label,
  .catalog-controls select {
    width: 100%;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-actions {
    width: 100%;
  }

  .product-actions .product-link,
  .product-actions .quote-button {
    flex: 1;
  }

  .btn,
  #searchInput {
    width: 100%;
  }

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

  .floating-whatsapp {
    right: 15px;
    bottom: 15px;
    padding: 0.8rem 1rem;
  }

  .location-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-tray {
    right: 10px;
    bottom: 76px;
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
  }

  .cart-items {
    min-width: 0;
    width: 100%;
  }

  .quote-actions {
    margin-left: 0;
  }

  .quote-actions .btn,
  .quote-actions .quote-clear {
    flex: 1;
  }

  .location-actions {
    justify-content: flex-start;
  }

  .image-lightbox {
    padding: 0.5rem;
  }

  .lightbox-dialog {
    max-height: calc(100vh - 1rem);
  }
}
