/* K Solares store layout refinements — 2026-11-02 */

.shop-clean .store-header-inner {
  width: min(1420px, calc(100% - 28px));
  max-width: 1420px;
  min-height: 82px;
  padding: 12px 14px;
  display: grid !important;
  grid-template-columns: minmax(138px, 172px) minmax(250px, 1fr) auto auto !important;
  grid-template-areas: "brand search routes cart";
  align-items: center;
  gap: clamp(8px, 1vw, 16px) !important;
}

.shop-clean .store-header-inner > .brand {
  grid-area: brand;
  width: 100%;
  min-width: 0;
}

.shop-clean .store-header-search {
  grid-area: search;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.shop-clean .store-search-label {
  position: relative;
  display: block;
}

.shop-clean .store-search-label::before {
  content: "\1F50D";
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  opacity: .72;
  pointer-events: none;
}

.shop-clean .store-header-search .input {
  width: 100%;
  height: 44px;
  padding-left: 42px;
  font-size: 15px;
}

.shop-clean .store-route-nav {
  grid-area: routes;
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px !important;
  width: auto !important;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.shop-clean .store-route-nav a {
  min-height: 42px;
  padding: 9px 12px;
  font-size: clamp(12px, .78vw, 14px);
  line-height: 1.15;
}

.shop-clean .store-header-cart {
  grid-area: cart;
  min-width: 48px;
  min-height: 42px;
  margin: 0;
  white-space: nowrap;
}

.shop-clean .store-header-whatsapp {
  display: none !important;
}

.shop-clean .shop-products-grid,
.shop-clean .product-card,
.shop-clean .product-card-body,
.shop-clean .card-price-control,
.shop-clean .card-mode-switch,
.shop-clean .card-mode-switch button,
.shop-clean .product-channel-actions {
  min-width: 0;
}

.shop-clean .product-card {
  overflow: hidden;
}

.shop-clean .product-card-media,
.shop-clean .product-card-media > a,
.shop-clean .product-card-media img {
  background: #fff !important;
}

.shop-clean .product-card-media {
  overflow: hidden;
}

.shop-clean .product-card-media img {
  display: block;
  width: 100%;
  object-fit: contain !important;
}

.shop-clean .shop-products-grid .product-card .product-card-body {
  padding: 14px !important;
  gap: 9px !important;
}

.shop-clean .shop-products-grid .product-card .product-title,
.shop-clean .shop-products-grid .product-card .product-title a {
  color: #102432 !important;
}

.shop-clean .shop-products-grid .product-card .product-title {
  margin: 0 !important;
  font-size: clamp(16px, 1.02vw, 19px) !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  overflow-wrap: anywhere !important;
}

.shop-clean .product-card-specs {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px !important;
  margin: 0;
}

.shop-clean .shop-products-grid .product-card .product-card-specs .badge {
  width: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 4px 7px !important;
  gap: 4px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.shop-clean .card-mode-switch {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100%;
}

.shop-clean .card-mode-switch button {
  width: 100%;
  max-width: 100%;
  min-height: 62px;
  padding: 6px 4px !important;
  gap: 3px !important;
  overflow: hidden;
}

.shop-clean .card-mode-switch button span {
  max-width: 100%;
  font-size: 10px !important;
  line-height: 1.15;
  white-space: normal;
}

.shop-clean .card-mode-switch button strong {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: clamp(13px, .83vw, 16px) !important;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.shop-clean .card-installation-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

.shop-clean .shop-products-grid .product-card .product-channel-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
}

.shop-clean .shop-products-grid .product-card .product-channel-actions > * {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: 7px 5px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 1160px) {
  .shop-clean .store-header-inner {
    grid-template-columns: minmax(125px, 160px) minmax(250px, 1fr) auto !important;
    grid-template-areas:
      "brand search cart"
      "brand routes routes";
    row-gap: 8px !important;
  }

  .shop-clean .store-route-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .shop-clean .store-header-inner {
    width: calc(100% - 16px);
    min-height: 0;
    padding: 8px;
    grid-template-columns: minmax(92px, 118px) 1fr auto !important;
    grid-template-areas:
      "brand brand cart"
      "search search search"
      "routes routes routes";
    gap: 7px !important;
  }

  .shop-clean .store-header-inner > .brand {
    max-width: 118px;
  }

  .shop-clean .store-header-search .input {
    height: 42px;
    padding-left: 39px;
    font-size: 14px;
  }

  .shop-clean .store-route-nav {
    display: grid !important;
    grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr);
    width: 100% !important;
    white-space: normal;
  }

  .shop-clean .store-route-nav a {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 7px 6px;
    font-size: 11px;
    text-align: center;
  }

  .shop-clean .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .shop-clean .shop-products-grid .product-card .product-card-body {
    padding: 8px !important;
    gap: 7px !important;
  }

  .shop-clean .shop-products-grid .product-card .product-title {
    font-size: 13px !important;
    line-height: 1.22 !important;
  }

  .shop-clean .product-card-specs {
    gap: 4px !important;
  }

  .shop-clean .shop-products-grid .product-card .product-card-specs .badge {
    padding: 3px 5px !important;
    font-size: 9px !important;
  }

  .shop-clean .card-mode-switch {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .shop-clean .card-mode-switch button {
    min-height: 51px;
    padding: 5px 3px !important;
  }

  .shop-clean .card-mode-switch button span {
    font-size: 9px !important;
  }

  .shop-clean .card-mode-switch button strong {
    font-size: 13px !important;
  }

  .shop-clean .card-installation-note {
    font-size: 9px;
  }

  .shop-clean .shop-products-grid .product-card .product-channel-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .shop-clean .shop-products-grid .product-card .product-channel-actions > * {
    min-height: 36px !important;
    padding: 5px 4px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 380px) {
  .shop-clean .shop-products-grid {
    gap: 6px !important;
  }

  .shop-clean .shop-products-grid .product-card .product-card-body {
    padding: 6px !important;
  }

  .shop-clean .shop-products-grid .product-card .product-title {
    font-size: 12px !important;
  }

  .shop-clean .card-mode-switch button strong {
    font-size: 12px !important;
  }
}
