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

.category-card {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #234158;
  border-radius: 18px;
  background: #071625;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-4px);
  border-color: #23e1cc;
  outline: none;
}

.category-card-image,
.category-card-placeholder,
.category-card-shade,
.category-card-copy {
  grid-area: 1 / 1;
}

.category-card-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  box-sizing: border-box;
  transition: transform 0.25s ease;
}

.category-card:hover .category-card-image {
  transform: scale(1.015);
}

.category-card-placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #19425e, #071421);
  color: #35efd5;
  font-size: 58px;
  font-weight: 900;
}

.category-card-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 15, 27, 0.04) 28%, rgba(3, 15, 27, 0.94) 100%);
}

.category-card-copy {
  z-index: 2;
  align-self: end;
  display: grid;
  gap: 7px;
  padding: 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.category-card-copy strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.category-card-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #d4e3ef;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card-copy b {
  margin-top: 3px;
  color: #23e1cc;
  font-size: 14px;
}

.shop-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.55fr) minmax(210px, auto);
  gap: 12px;
  align-items: end;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #234158;
  border-radius: 14px;
  background: #0b2033;
}

.shop-tools label {
  display: grid;
  gap: 6px;
  color: #a9bfd1;
  font-size: 12px;
  font-weight: 800;
}

.shop-tools input,
.shop-tools select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #355369;
  border-radius: 10px;
  padding: 0 13px;
  background: #fff;
  color: #102538;
  font: inherit;
  box-sizing: border-box;
}

.shop-tools input:focus,
.shop-tools select:focus {
  border-color: #23e1cc;
  outline: 3px solid rgba(35, 225, 204, 0.16);
}

.shop-sort {
  grid-template-columns: auto minmax(150px, 1fr);
  align-items: center;
}

.product-result-count {
  margin: 0 0 16px;
  color: #9fb5c7;
  font-size: 13px;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -4px 14px;
  padding: 4px 4px 10px;
  scrollbar-width: thin;
}

.category-strip button {
  flex: 0 0 auto;
  border: 1px solid #28465e;
  border-radius: 999px;
  padding: 10px 17px;
  background: #071625;
  color: #eaf6ff;
  font-weight: 800;
  cursor: pointer;
}

.category-strip button:hover,
.category-strip button.active {
  border-color: #23e1cc;
  background: #23e1cc;
  color: #03233a;
}

.products .product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.products .product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #234158 !important;
  border-radius: 18px !important;
  background: #0b2033 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.products .product:hover,
.products .product:focus-visible {
  transform: translateY(-4px);
  border-color: #23e1cc !important;
  outline: none;
}

.products .product.is-filtered {
  display: none !important;
}

.products .product .photo {
  position: relative;
  display: grid !important;
  place-items: stretch;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 3px solid #23e1cc !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-sizing: border-box;
}

.products .product .photo > img {
  grid-area: 1 / 1;
  display: none !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

.products .product .photo > img.show {
  display: block !important;
}

.gallery > button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(6, 16, 29, 0.84);
  color: #fff;
  font-size: 23px;
  cursor: pointer;
}

.gallery .prev {
  left: 9px;
}

.gallery .next {
  right: 9px;
}

.discount-badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  border-radius: 8px;
  padding: 8px 11px;
  background: #ff3f77;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.discount-timer {
  display: block;
  margin: 9px 20px 0;
  color: #ff9ec0;
  font-size: 12px;
}

.products .product > small,
.products .product > h3,
.products .product > .product-summary,
.products .product > .description-more,
.products .product > .quantity-offer,
.products .product > .quantity-prices,
.products .product > .product-buy {
  margin-left: 20px !important;
  margin-right: 20px !important;
}

.products .product > small {
  margin-top: 18px !important;
  color: #23e1cc !important;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.products .product > h3 {
  min-height: 48px;
  margin-top: 8px !important;
  margin-bottom: 6px !important;
  color: #fff;
  font-size: 21px;
}

.product-summary {
  display: -webkit-box;
  min-height: 66px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden;
  color: #a8bdd0;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.description-more {
  align-self: flex-start;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #23e1cc;
  font-weight: 900;
  cursor: pointer;
}

.quantity-offer {
  display: block;
  margin-top: 9px !important;
  color: #23e1cc;
  font-size: 12px;
  font-weight: 900;
}

.quantity-prices {
  display: grid;
  gap: 4px;
  margin-top: 8px !important;
  margin-bottom: 12px !important;
  padding: 9px 10px;
  border-radius: 8px;
  background: #eefcf9;
  color: #17384a;
  font-size: 12px;
}

.quantity-prices span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.product-buy {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: auto !important;
  margin-bottom: 18px !important;
  padding-top: 14px;
}

.product-card-price {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 19px;
}

.product-card-price del {
  margin-right: 5px;
  color: #7c8c9d;
  font-size: 13px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 38px minmax(46px, 1fr) 38px;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid #36556c;
  border-radius: 10px;
  background: #071625;
}

.quantity-control button,
.quantity-control input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.quantity-control button {
  cursor: pointer;
}

.quantity-control button:hover {
  background: #16364e;
}

.quantity-control input {
  width: 100%;
  appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.card-quantity {
  grid-column: 1 / -1;
}

.add-cart,
.buy-now,
.ask-whatsapp,
.share-product {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.add-cart {
  border: 1px solid #23e1cc;
  background: transparent;
  color: #23e1cc;
}

.buy-now {
  border: 1px solid #23e1cc;
  background: #23e1cc;
  color: #03233a;
}

.ask-whatsapp {
  grid-column: 1 / -1;
  border: 1px solid #23e1cc;
  color: #23e1cc;
}

.share-product {
  grid-column: 1 / -1;
  border: 1px solid #355369;
  background: #102d43;
  color: #e8f5ff;
}

.share-product:hover,
.share-product:focus-visible,
.quick-share-product:hover,
.quick-share-product:focus-visible {
  border-color: #23e1cc;
  color: #23e1cc;
  outline: none;
}

.product-quick-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(1, 9, 17, 0.8);
  backdrop-filter: blur(4px);
}

.product-quick-overlay.open {
  display: grid;
}

.product-quick {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  width: min(1000px, 100%);
  max-height: min(780px, 94vh);
  overflow: auto;
  border: 1px solid #28465e;
  border-radius: 20px;
  background: #071625;
  color: #eef8ff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.product-quick-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #071625;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.product-quick-media {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background: #fff;
}

.product-quick-main {
  display: block;
  width: 100%;
  height: 440px;
  min-width: 0;
  object-fit: contain;
  object-position: center;
}

.product-quick-thumbs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-top: 12px;
}

.product-quick-thumbs button {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 9px;
  padding: 3px;
  background: #f5f7f9;
  cursor: pointer;
}

.product-quick-thumbs button.active {
  border-color: #23e1cc;
}

.product-quick-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-quick-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px;
}

.product-quick-info > small {
  color: #23e1cc;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.product-quick-info h2 {
  margin: 10px 0;
  font-size: 34px;
}

.product-quick-description {
  color: #aec1d2;
  line-height: 1.65;
  white-space: pre-line;
}

.product-quick-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.product-quick-meta span {
  padding: 12px;
  border-radius: 10px;
  background: #0e2a41;
}

.product-quick-meta b {
  display: block;
  margin-bottom: 4px;
  color: #7f9bb0;
  font-size: 11px;
  text-transform: uppercase;
}

.product-quick-meta i {
  color: #fff;
  font-style: normal;
}

.product-quick-price {
  font-size: 25px;
  font-weight: 900;
}

.product-quick-tiers {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: #0e2a41;
  color: #c8d8e5;
  font-size: 13px;
}

.product-quick-tiers span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-quick-purchase {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.product-quick-purchase .add-cart,
.product-quick-purchase .buy-now {
  min-height: 50px;
  font-size: 14px;
}

.quick-share-product {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1px solid #355369;
  border-radius: 10px;
  background: #102d43;
  color: #e8f5ff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.share-product-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(1, 9, 17, 0.84);
  backdrop-filter: blur(5px);
}

.share-product-overlay.open {
  display: grid;
}

.share-product-dialog {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid #28465e;
  border-radius: 20px;
  padding: 30px;
  background: #071625;
  color: #eef8ff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.48);
}

.share-product-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #102d43;
  color: #fff;
  font-size: 27px;
  cursor: pointer;
}

.share-product-dialog > small {
  color: #23e1cc;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.share-product-dialog h2 {
  margin: 9px 48px 7px 0;
  color: #fff;
  font-size: 28px;
}

.share-product-dialog > p {
  margin: 0 0 18px;
  color: #a8bdd0;
}

.share-product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.share-product-actions a,
.share-product-actions button {
  display: grid;
  min-height: 47px;
  place-items: center;
  border: 1px solid #355369;
  border-radius: 10px;
  padding: 9px;
  background: #102d43;
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.share-product-actions a:hover,
.share-product-actions a:focus-visible,
.share-product-actions button:hover,
.share-product-actions button:focus-visible {
  border-color: #23e1cc;
  color: #23e1cc;
  outline: none;
}

.share-whatsapp {
  background: #146b4b !important;
}

.share-facebook {
  background: #164f98 !important;
}

.share-x {
  background: #151c24 !important;
}

.share-product-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 14px;
}

.share-product-link input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid #355369;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  color: #102538;
  font: inherit;
}

.share-copy {
  border: 1px solid #23e1cc;
  border-radius: 9px;
  padding: 0 15px;
  background: #23e1cc;
  color: #03233a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.share-product-status {
  min-height: 20px;
  margin: 10px 0 0 !important;
  color: #75d8cc !important;
  font-size: 12px;
}

.cart-lines em {
  display: block;
  margin-top: 3px;
  color: #21cdb8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.cart-saved {
  color: #76cfc5;
  font-size: 12px;
}

.contact-section {
  scroll-margin-top: 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-grid a {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid #234158;
  border-radius: 16px;
  padding: 24px;
  background: #0b2033;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-grid a:hover {
  transform: translateY(-3px);
  border-color: #23e1cc;
}

.contact-grid small {
  color: #23e1cc;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.contact-grid strong {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2.5vw, 25px);
}

.contact-grid span {
  color: #a8bdd0;
}

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

@media (max-width: 900px) {
  .category-grid,
  .products .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-tools {
    grid-template-columns: 1fr 1fr;
  }

  .shop-tools label:first-child {
    grid-column: 1 / -1;
  }

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

  .product-quick-main {
    height: 330px;
  }

  .product-quick-info {
    padding: 26px;
  }
}

@media (max-width: 600px) {
  .category-grid,
  .products .product-grid,
  .contact-grid,
  .shop-tools {
    grid-template-columns: 1fr;
  }

  .shop-tools label:first-child {
    grid-column: auto;
  }

  .category-card {
    min-height: 300px;
  }

  .products .product .photo {
    aspect-ratio: 1 / 1;
  }

  .product-quick-overlay {
    padding: 8px;
  }

  .product-quick-info {
    padding: 22px;
  }

  .product-quick-info h2 {
    font-size: 27px;
  }

  .product-quick-main {
    height: 270px;
  }

  .product-quick-purchase {
    grid-template-columns: 1fr 1fr;
  }

  .product-quick-purchase .quantity-control {
    grid-column: 1 / -1;
  }

  .share-product-dialog {
    padding: 25px 20px 20px;
  }

  .share-product-actions,
  .share-product-link {
    grid-template-columns: 1fr;
  }

  .share-copy {
    min-height: 46px;
  }
}
