body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .main-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-cta-bar {
    display: none !important;
  }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
  padding: 3rem 0 4rem;
}

.hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.0625rem;
  opacity: 0.92;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__actions .btn--outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  max-width: 320px;
  color: var(--text);
}

.hero__card h3 {
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}

.hero__card ul {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Carousel */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.5rem;
}

.carousel__viewport {
  overflow: hidden;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.carousel__track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 auto;
  min-width: 0;
}

.carousel__btn {
  position: static;
  transform: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.carousel__btn--prev {
  grid-column: 1;
  grid-row: 1;
}

.carousel__btn--next {
  grid-column: 3;
  grid-row: 1;
}

.carousel__btn:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue);
}

.carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  grid-column: 1 / -1;
  grid-row: 2;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s, background 0.2s;
}

.carousel__dot.is-active {
  width: 24px;
  background: var(--brand-blue);
}

.carousel__slide .category-card,
.carousel__slide .shop-card {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

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

.section-header-row .section-title {
  margin-bottom: 0;
}

/* Grids */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Catalog layout — estilo ShopWise */
.page-header--shop {
  background: var(--surface-muted);
  padding: 2rem 0;
  margin-bottom: 0;
}

.page-header--shop .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-header--shop h1 {
  margin: 0;
}

.page-header--shop .breadcrumb {
  margin: 0;
}

.catalog-layout {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 992px) {
  .catalog-layout {
    grid-template-columns: 280px 1fr;
  }
}

.catalog-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  height: fit-content;
  overflow: hidden;
}

.catalog-sidebar__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.catalog-sidebar__title::before {
  content: "";
  width: 4px;
  height: 1.25rem;
  background: var(--brand-blue);
  border-radius: 2px;
}

.accordion {
  border: none;
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.accordion__trigger:hover,
.accordion__item.is-open > .accordion__trigger {
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.accordion__chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.accordion__item.is-open .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__panel {
  display: none;
  padding: 0 1.25rem 0.875rem;
}

.accordion__item.is-open .accordion__panel {
  display: block;
}

.accordion__panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accordion__panel li + li {
  margin-top: 0.15rem;
}

.accordion__panel a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.accordion__panel a:hover,
.accordion__panel a.is-active {
  background: var(--surface-muted);
  color: var(--brand-blue);
  font-weight: 600;
}

.catalog-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.catalog-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.catalog-filters__row + .catalog-filters__row {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.catalog-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 0.5rem;
}

.catalog-search input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.875rem;
}

.catalog-search input:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.catalog-filters select {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.875rem;
  background: var(--surface);
  min-width: 140px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.filter-chip button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
}

.filter-reset {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.catalog-toolbar__count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Product cards — estilo ShopWise */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.shop-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.shop-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.shop-card__media > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.shop-card__media img {
  width: 100%;
  max-width: 160px;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}

.shop-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-card__badge--popular {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 74, 141, 0.2);
}

.shop-card__badge--new {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.shop-card__badge--sale {
  background: var(--brand-red-light);
  color: var(--brand-red);
  border: 1px solid rgba(217, 30, 24, 0.2);
}

.shop-card__body {
  padding: 1rem 1.125rem 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.shop-card__title a {
  color: var(--text);
}

.shop-card__title a:hover {
  color: var(--brand-blue);
}

.shop-card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.shop-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.shop-card__price small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.shop-card__add {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand-red);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.shop-card__add:hover {
  background: var(--brand-red-dark);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
}

.pagination a:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.pagination .is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* Product detail */
.product-detail {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }
}

.product-gallery__main {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-bottom: 0.75rem;
}

.product-gallery__main img {
  max-height: 360px;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
}

.product-gallery__thumb {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  cursor: pointer;
  background: var(--surface);
}

.product-gallery__thumb.is-active {
  border-color: var(--brand-blue);
}

.product-info__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 1rem;
}

.product-info__stock::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

.product-info__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.product-info__price-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.product-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.product-detail-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 2rem;
}

.product-detail-content h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--brand-blue);
}

.product-detail-content li {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

/* Quote page */
.quote-page {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .quote-page {
    grid-template-columns: 1fr 380px;
  }
}

.quote-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-table th,
.quote-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.quote-table th {
  background: var(--surface-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.quote-table .text-right {
  text-align: right;
}

.quote-table__remove {
  background: none;
  border: none;
  color: var(--brand-red);
  cursor: pointer;
  font-size: 0.8125rem;
}

.quote-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: fit-content;
}

.quote-summary h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.quote-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.quote-form-card h2 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.quote-form-card > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.quote-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
}

.quote-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.quote-success.is-visible {
  display: block;
}

.quote-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--brand-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 2rem;
}

.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--text-muted);
  margin: 0;
}

.main-content {
  flex: 1;
  padding-bottom: 2rem;
}
