/* Capri Blu Totem - v0.4.18
   Product cards compact + dark contrast + stronger cart visibility.
   Scoped to #screen-products to avoid touching other screens. */

#screen-products .product-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

#screen-products .product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8,35,61,.94), rgba(11,46,78,.88));
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
  color: #fff;
}

#screen-products .product-card .product-image {
  min-height: 92px;
  height: 92px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  background: rgba(18,63,109,.72);
  color: rgba(255,255,255,.84);
  font-size: .78rem;
}

#screen-products .product-card .product-image.has-photo {
  background: transparent;
}

#screen-products .product-card .product-image.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#screen-products .product-card .product-content {
  padding: 12px;
}

#screen-products .product-card-heading {
  gap: 8px;
  margin-bottom: 8px;
}

#screen-products .product-card-heading h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.06rem;
  line-height: 1.08;
}

#screen-products .product-card-price {
  color: #fff2c7;
  font-size: 1rem;
  white-space: nowrap;
}

#screen-products .product-cart-status {
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.82);
  font-size: .68rem;
}

#screen-products .product-content > p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.80);
  font-size: .78rem;
  line-height: 1.32;
  -webkit-line-clamp: 2;
}

#screen-products .product-content > small {
  margin-top: 7px;
  color: rgba(255,255,255,.64);
  font-size: .68rem;
}

#screen-products .product-card-actions {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 10px;
}

#screen-products .product-modify-compact,
#screen-products .product-single-add {
  min-width: 0;
  min-height: 38px;
  height: 38px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: .78rem;
}

#screen-products .product-modify-compact {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  background: rgba(255,255,255,.08);
}

#screen-products .product-single-add {
  border: 1px solid #fff2c7;
  color: #0d3559;
  background: #fff2c7;
  font-weight: 900;
}

#screen-products .product-inline-stepper {
  min-height: 40px;
  grid-template-columns: 38px 1fr 38px;
  border: 1px solid #fff2c7;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
}

#screen-products .product-inline-stepper button {
  color: #0d3559;
  background: #fff2c7;
  font-size: 1.15rem;
}

#screen-products .product-inline-stepper strong {
  color: #fff;
  font-size: 1rem;
}

#screen-products .product-inline-stepper small {
  color: rgba(255,255,255,.72);
  font-size: .60rem;
}

/* Cart: larger, brighter and easier to spot. */
.nav-v2-floating-cart {
  min-width: 142px;
  padding: 13px 17px;
  border: 3px solid #fff2c7;
  background: #0d3559;
  box-shadow: 0 0 0 3px rgba(13,53,89,.38), 0 16px 42px rgba(0,0,0,.42);
}

.nav-v2-floating-cart > span {
  font-size: 1.95rem;
}

.nav-v2-floating-cart strong {
  min-width: 30px;
  display: inline-grid;
  place-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff2c7;
  color: #0d3559;
  font-size: 1.05rem;
}

.nav-v2-floating-cart small {
  color: #fff;
  font-weight: 800;
}

.nav-v2-floating-cart.has-items {
  animation: capriCartAttention 1.8s ease-in-out infinite;
}

@keyframes capriCartAttention {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
}

@media (max-width: 1450px) {
  #screen-products .product-gallery { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

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

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

@media (max-width: 540px) {
  #screen-products .product-gallery { grid-template-columns: 1fr; }
}
