/* Ürün kartı: eski premium görünümü koruyan kontrollü component katmanı. */
.product-showcase,
.arrivals-grid,
.all-products-grid,
.category-products,
.related-products-grid {
  align-items: stretch;
}

.category-products {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.category-products .product-plain-card {
  height: 100% !important;
  align-self: stretch !important;
}

.category-products .product-plain-meta {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 9px;
}

.category-products .product-plain-meta .stock-badge {
  justify-self: start;
  align-self: start;
}

.category-products .product-card-badges,
.related-products-grid .product-card-badges {
  top: 12px !important;
  left: 12px !important;
  max-width: calc(100% - 24px) !important;
}

.product-plain-card {
  display: flex !important;
  min-width: 0;
  min-height: 0;
  height: 100% !important;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ui-color-line);
  border-radius: 24px;
  background: var(--ui-color-surface);
  box-shadow: var(--ui-shadow-card);
  transition: transform var(--ui-transition-fast), box-shadow var(--ui-transition-fast), background-color var(--ui-transition-fast);
}

.product-plain-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--ui-shadow-card-hover);
}

.product-plain-visual {
  position: relative;
  display: block !important;
  width: 100%;
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: #faf9f6 !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.product-plain-visual:not(.has-image) {
  background-size: auto !important;
}

.product-plain-visual.has-image {
  background-image: none !important;
}

.product-plain-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform var(--ui-transition-fast);
}

.product-plain-card:hover .product-plain-image {
  transform: none;
}

.product-card-badges {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  max-width: calc(100% - 24px) !important;
  pointer-events: none !important;
}

.product-card-badges .product-hot,
.product-card-badges .arrival-badge {
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  min-height: 30px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 999px !important;
  padding: 7px 11px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: 0 16px 34px rgba(17, 17, 15, 0.10) !important;
}

.product-card-badges .product-hot {
  border: 1px solid rgba(255, 129, 72, 0.28) !important;
  background: linear-gradient(135deg, #ffad73 0%, #ff7648 100%) !important;
  color: #fff !important;
}

.product-card-badges .arrival-badge {
  border: 1px solid rgba(39, 174, 96, 0.18) !important;
  background: linear-gradient(135deg, #effff5 0%, #d8f8e3 100%) !important;
  color: #157a3b !important;
}

.product-card-badges img,
.product-card-badges svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 auto !important;
  opacity: 1 !important;
}

.product-card-badges .product-hot img,
.product-card-badges .product-hot svg {
  filter: brightness(0) invert(1) !important;
}

.product-plain-content {
  display: flex !important;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px 16px 18px;
}

.product-plain-content h3 {
  min-height: 44px;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ui-color-text);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-plain-content p {
  min-height: 0;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ui-color-muted);
  font-size: 13px;
  line-height: 1.6;
}

.product-plain-meta {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.price-block {
  display: grid;
  grid-template-columns: auto auto;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: start;
  gap: 6px 9px;
}

.price-old {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: #8a8378;
  font-size: 12px;
  font-weight: 590;
  line-height: 1.1;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: #a39a8f;
}

.price-old::before {
  content: none;
}

.price-discount-chain {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(228, 74, 74, 0.14);
  border-radius: 999px;
  background: rgba(228, 74, 74, 0.08);
  padding: 5px 10px;
  color: #b42323;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.price-current-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.price-current {
  color: var(--ui-color-text);
  font-size: 21px;
  font-weight: 780;
  line-height: 1.05;
  white-space: nowrap;
}

.product-vat-pill {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 2px;
  color: #7d756b;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
}

.stock-badge {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.product-plain-meta .stock-badge {
  align-self: center;
}

.locked-price-panel {
  width: 100%;
  min-height: 64px;
  display: flex !important;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(228, 223, 214, 0.9);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(251, 249, 245, 0.98), rgba(245, 241, 234, 0.96));
  padding: 11px 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.product-plain-content .locked-price-panel {
  margin-top: 14px;
}

.locked-price-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2ede3, #e5dccb);
  color: #2a2925;
}

.locked-price-icon img,
.locked-price-icon svg {
  width: 18px !important;
  height: 18px !important;
  opacity: 1 !important;
  filter: none !important;
}

.locked-price-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.locked-price-copy strong {
  color: var(--ui-color-text);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.locked-price-copy span {
  color: #7b756c;
  font-size: 12px;
  line-height: 1.35;
}

.product-plain-content .add-to-cart {
  min-height: 44px;
  margin-top: 12px;
}

.product-cart-form {
  width: 100%;
  margin: 0;
}

.product-cart-form .add-to-cart {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.product-cart-form .add-to-cart:disabled {
  cursor: not-allowed;
}

.login-to-price img,
.add-to-cart img {
  width: 17px !important;
  height: 17px !important;
  opacity: 1 !important;
}

.login-to-price img,
.add-to-cart:not(.soft-cart) img {
  filter: brightness(0) invert(1) !important;
}

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

@media (max-width: 700px) {
  .product-showcase,
  .arrivals-grid,
  .all-products-grid,
  .category-products,
  .related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-plain-card {
    border-radius: 20px;
  }

  .product-plain-content {
    padding: 13px 12px 14px;
  }

  .product-plain-content h3 {
    min-height: 40px;
    font-size: 15px;
    line-height: 1.32;
  }

  .product-plain-meta {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding-top: 13px;
  }

  .product-plain-meta .stock-badge {
    justify-self: start;
    align-self: start;
  }

  .price-current {
    font-size: 19px;
  }

  .product-vat-pill {
    font-size: 10px;
  }

  .product-plain-content .add-to-cart {
    min-height: 42px;
    font-size: 12px;
  }
}
