/* Alaa Kashef · Product Polish · Preview
   No DB, cart, hero, or inventory logic changes.
   Emphasis: clean photography, no nonfunctional microcopy, legible shopping actions.
*/

/* No product counts, generic hints, or image captions cluttering the catalogue. */
.catalog-utility, #catalog-count, .catalog-image-hint { display: none !important; }
.product-art::before, .product-art::after,
.lang-en .product-art::before, .lang-en .product-art::after {
  content: none !important;
  display: none !important;
}

/* Slightly tighter, more deliberate editorial composition. */
.products-section#products {
  padding-top: clamp(48px, 5.7vw, 78px);
  padding-bottom: clamp(65px, 7.4vw, 110px);
}
.catalog-heading { margin-bottom: clamp(23px, 3.2vw, 43px); }
.product-grid { gap: clamp(22px, 2.45vw, 36px) clamp(13px, 2vw, 27px); }
.product-grid:has(> .product-card:only-child) {
  grid-template-columns: minmax(0, 445px);
  justify-content: center;
}

/* We do not crop any product image. For the store's square product photos,
   square image surfaces remove the large blank bands around the original. */
.product-art,
.product-grid > .product-card:only-child .product-art {
  aspect-ratio: 1 / 1 !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f8f4ef;
  box-shadow: none !important;
  overflow: hidden;
}
.product-art .product-image-button,
.product-art .product-image-button img {
  width: 100%; height: 100%;
  border-radius: 0 !important;
}
.product-art .product-image-button img {
  object-fit: contain !important;
  object-position: center;
  display: block;
  vertical-align: middle;
  filter: none !important;
}
.product-card, .product-card:hover, .product-card:hover .product-art {
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.product-card:hover .product-image-button img { transform: scale(1.012); }
.product-art .product-image-button:focus-visible { outline: 2px solid #a38469; outline-offset: -3px; }

/* Clothing catalogue style: name, optional SKU, price, then understated buttons. */
.product-info,
.product-grid > .product-card:only-child .product-info {
  padding: 16px 0 0 !important;
  align-items: center;
  text-align: center;
}
.product-info h3,
.product-grid > .product-card:only-child .product-info h3 {
  margin: 0 0 5px !important;
  color: #302a25;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.65;
}
.product-info .sku { color: #8c7c6f; letter-spacing: .65px; margin: 0 0 4px; }
.product-prices { margin: 1px 0 16px; gap: 9px; }
.product-prices .price { color: #664c39; font-size: 17px; font-weight: 700; }
.product-prices del { color: #94867b; font-size: 13px; }
.product-actions { width: min(100%, 322px); max-width: 322px; gap: 10px; }
.product-actions .details-btn,
.product-actions .add-btn {
  min-height: 43px;
  padding: 10px 12px;
  font: 600 12px 'Cairo', sans-serif;
  line-height: 1.5;
  border-radius: 0;
  letter-spacing: 0;
}
.product-actions .details-btn { border: 1px solid #b8a08a; color: #493a2f; background: transparent !important; }
.product-actions .details-btn:hover { border-color: #745b45; background: #f4eee7 !important; }
.product-actions .add-btn { border-color: #3f342b; background: #3f342b !important; color: #fff !important; }
.product-actions .add-btn:hover:not(:disabled) { border-color: #6c503c; background: #6c503c !important; }

@media (max-width: 760px) {
  .product-grid { gap: 27px 12px; }
  .product-grid:has(> .product-card:only-child) { grid-template-columns: minmax(0, 370px); }
  .product-info, .product-grid > .product-card:only-child .product-info { padding-top: 11px !important; }
  .product-info h3, .product-grid > .product-card:only-child .product-info h3 { font-size: 14px !important; }
  .product-prices { gap: 4px; margin-bottom: 11px; }
  .product-prices .price { font-size: 13px; }
  .product-prices del { font-size: 10px; }
  .product-actions { gap: 5px; }
  .product-actions .details-btn,
  .product-actions .add-btn { min-height: 39px; padding: 8px 5px; font-size: 10px; }
}
@media (max-width: 385px) {
  .product-grid { gap: 25px 9px; }
  .product-actions .details-btn,
  .product-actions .add-btn { padding: 8px 3px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover .product-image-button img { transition: none; transform: none; }
}
