/* Product cards: compact retail hierarchy, original photography and clear actions. */
.premium-home .home-brand-section { margin-block: 64px; }
.premium-home .home-brand-section > .section-heading { gap: 16px; margin-bottom: 24px; }
.premium-home .home-brand-title { display: flex; align-items: center; gap: 12px; margin: 0; }
.premium-home .home-brand-title > img { flex-shrink: 0; width: 88px; height: 36px; object-fit: contain; }
.premium-home .home-brand-shop { flex-shrink: 0; min-height: 44px; font-size: 14px; }
.premium-home .home-brand-shop:focus-visible { outline: 2px solid #213969; outline-offset: 4px; }
@media (min-width: 781px) and (max-width: 1100px) {
  .premium-home .home-brand-section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .premium-home .home-brand-section { margin-block: 40px; }
  .premium-home .home-brand-section > .section-heading { gap: 10px; margin-bottom: 20px; }
  .premium-home .home-brand-title { gap: 8px; font-size: 26px; }
  .premium-home .home-brand-title > img { width: 68px; height: 28px; }
  .premium-home .home-brand-shop { gap: 6px; font-size: 13px; }
}

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

.premium-home .product-card {
  --card-stage: #edf5fa;
  --card-accent: #3c718f;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 14px;
  background: #fff;
  transition: border-color 220ms ease-out, transform 220ms ease-out;
}

.premium-home .product-card[data-category="Smartphones"] { --card-stage: #eaf5ef; --card-accent: #237759; }
.premium-home .product-card[data-category="Audio"] { --card-stage: #f1ecfa; --card-accent: #76569a; }
.premium-home .product-card[data-category="Laptops"] { --card-stage: #eaf2fc; --card-accent: #376fa4; }
.premium-home .product-card[data-category="Gaming"] { --card-stage: #efedfc; --card-accent: #6b57a7; }
.premium-home .product-card[data-category="Refrigerators"],
.premium-home .product-card[data-category="Appliances"] { --card-stage: #eaf5f5; --card-accent: #287777; }
.premium-home .product-card[data-category="Wearables"],
.premium-home .product-card[data-category="Accessories"] { --card-stage: #fcf0e8; --card-accent: #a5572e; }
.premium-home .product-card:focus-within { border-color: #213969; }

.premium-home .product-card :is(.product-photo, .product-image) {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 100%;
  height: 224px;
  min-height: 0;
  padding: 12px;
  border: 0;
  border-bottom: 3px solid var(--card-accent);
  border-radius: 0;
  background: var(--card-stage);
  overflow: hidden;
}

.premium-home .product-card .product-photo > img,
.premium-home .product-card .product-image-button > img {
  position: relative;
  display: block;
  width: 100%;
  height: 197px;
  min-height: 0;
  padding: 12px 8px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
  mix-blend-mode: normal;
  transition: transform 300ms cubic-bezier(.16, 1, .3, 1);
}

.premium-home .product-card .product-photo::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 7px;
  background: #fff;
  pointer-events: none;
}

.premium-home .product-dialog .detail-gallery { position: relative; }
.premium-home .product-dialog .detail-gallery.product-unpriced { padding-bottom: 64px; }
.premium-home .product-stock-banner {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  padding: 9px 12px;
  background: #c4222f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

/* These exact transparent retailer photos include large empty margins. Fit the
   photographed product to its stage without changing or cropping the asset. */
.premium-home .product-card .product-photo > img[src$="verified-croma-macair13.png"] { --photo-fit: 1.25; }
.premium-home .product-card .product-photo > img[src$="verified-croma-macair15.png"] { --photo-fit: 1.13; }
.premium-home .product-card .product-photo > img[src$="verified-croma-macpro14.png"] { --photo-fit: 1.3; }
.premium-home .product-card .product-photo > img[src$="verified-croma-macair13.png"],
.premium-home .product-card .product-photo > img[src$="verified-croma-macair15.png"],
.premium-home .product-card .product-photo > img[src$="verified-croma-macpro14.png"] {
  padding: 0;
  background: transparent;
  object-fit: cover;
  object-position: center;
  scale: var(--photo-fit);
}

.premium-home .product-card .product-image-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.premium-home .product-card .product-placeholder {
  min-height: 197px;
  height: 100%;
  width: 100%;
  border-radius: 7px;
  background: #fff;
  color: #536078;
  font-size: 12px;
}

.premium-home .product-card .product-save {
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid #e1e6ee;
  border-radius: 50%;
  background: #fff;
  color: #213969;
}
.premium-home .product-card .product-save[aria-pressed="true"] { color: #c8202c; border-color: #f4c4c8; background: #fff4f4; }
.premium-home .product-card .product-save[aria-pressed="true"] .icon { fill: #c8202c; }

.premium-home .product-card .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
}
.premium-home .product-card :is(.product-topline, .product-brand) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  color: #536078;
  font-size: 12px;
  line-height: 1.5;
}
.premium-home .product-card .product-year { margin-left: auto; color: #536078; font-size: 11px; }
.premium-home .product-card .product-info h3 { min-height: 44px; margin: 5px 0 0; }
.premium-home .product-card .product-name {
  display: -webkit-box;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #1c2028;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-align: left;
  overflow-wrap: anywhere;
}
.premium-home .product-card .product-name:hover { color: #213969; }
.premium-home .product-card .product-rating-unavailable { display: none; }
.premium-home .product-card .product-amazon-rating { min-height: 32px; margin-top: 2px; font-size: 12px; }
.premium-home .product-card :is(.product-specs, .product-spec-line) {
  display: -webkit-box;
  min-height: 0;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #536078;
  font-size: 12px;
  line-height: 1.55;
}
.premium-home .product-card .product-spec-line > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premium-home .product-card :is(.product-color, .product-colour, .product-option-summary) {
  margin-top: 8px;
  color: #536078;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.premium-home .product-card .product-option-summary > button { min-height: 32px; margin-left: 6px; font-size: 12px; color: #213969; text-decoration: underline; text-underline-offset: 3px; }
.premium-home .product-card :is(.product-purchase, .product-bottom) {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.premium-home .product-card :is(.price-wrap, .product-bottom > div) { min-width: 0; flex: 1; }
.premium-home .product-card .product-price {
  display: block;
  color: #1c2028;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.premium-home .product-card .product-price.request-price { font-size: 17px; letter-spacing: -.01em; }
.premium-home .product-card .price-caption { display: block; margin-top: 3px; color: #536078; font-size: 11px; line-height: 1.5; }
.premium-home .product-card .product-source-details { margin-top: 4px; color: #536078; font-size: 12px; }
.premium-home .product-card .product-source-details summary { display: flex; align-items: center; min-height: 36px; width: fit-content; padding-block: 7px; cursor: pointer; color: #213969; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.premium-home .product-card .product-source-details :is(.retailer-offer, .retailer-variant, .amazon-offer, .price-variant, .amazon-price-note) { font-size: 12px; line-height: 1.55; margin-top: 6px; overflow-wrap: anywhere; }

.premium-home .product-card :is(.product-emi, .product-emi-plan) {
  margin: 12px -16px -16px;
  padding: 14px 16px 16px;
  border: 0;
  background: #edf2fa;
  color: #213969;
}
.premium-home .product-card :is(.product-emi-label, .product-emi-value > span) { display: block; color: #344f79; font-size: 12px; line-height: 1.5; font-weight: 550; }
.premium-home .product-card .product-emi-value > strong { margin-top: 3px; color: #213969; font-size: 25px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; white-space: normal; font-variant-numeric: tabular-nums; }
.premium-home .product-card .product-emi-value strong > small { color: #344f79; margin-left: 2px; font-size: 12px; font-weight: 450; letter-spacing: 0; }
.premium-home .product-card :is(.product-emi-meta, .product-emi-value > p, .product-emi-on-request) { color: #435978; margin-top: 5px; font-size: 11px; line-height: 1.5; }
.premium-home .product-card .product-card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.premium-home .product-card .product-info .product-emi-apply,
.premium-home .product-card .product-shop-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: #cf222b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
.premium-home .product-card .product-info .product-emi-apply:hover { color: #fff; background: #ac1923; }
.premium-home .product-card .product-shop-action { color: #213969; background: #fff; border-color: #becbdf; }
.premium-home .product-card .product-shop-action:hover { color: #213969; background: #e1e9f6; border-color: #213969; }
.premium-home .product-card .product-info .product-emi-apply:disabled,
.premium-home .product-card .product-shop-action:disabled,
.premium-home .product-purchase-actions > .button:disabled {
  cursor: not-allowed;
  color: #536078;
  background: #e3e8f0;
  border-color: #c8d1de;
  opacity: 1;
}
.premium-home .product-card :is(.product-shop-action, .product-emi-apply) > .icon { flex-shrink: 0; width: 16px; height: 16px; }
.premium-home .product-card :is(button, a, summary):focus-visible { outline: 2px solid #213969; outline-offset: 3px; }
.premium-home .product-card .product-photo:focus-visible { outline-offset: -5px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .premium-home .product-card:hover { transform: translateY(-3px); border-color: var(--card-accent); }
  .premium-home .product-card:hover .product-photo > img,
  .premium-home .product-card:hover .product-image-button > img { transform: scale(1.035); }
}

@media (max-width: 1100px) {
  .premium-home .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 780px) {
  .premium-home .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 540px) {
  .premium-home .product-grid { gap: 16px 12px; }
  .premium-home .product-card { border-radius: 12px; }
  .premium-home .product-card :is(.product-photo, .product-image) { height: 164px; padding: 9px; }
  .premium-home .product-card .product-photo > img,
  .premium-home .product-card .product-image-button > img { height: 143px; padding: 12px 4px; }
  .premium-home .product-card .product-placeholder { min-height: 143px; }
  .premium-home .product-card .product-save { top: 11px; right: 10px; width: 44px; height: 44px; }
  .premium-home .product-card .product-info { padding: 12px; }
  .premium-home .product-card :is(.product-topline, .product-brand) { font-size: 11px; gap: 3px 5px; }
  .premium-home .product-card .product-year { font-size: 10px; }
  .premium-home .product-card .product-info h3 { min-height: 42px; }
  .premium-home .product-card .product-name { font-size: 15px; line-height: 1.4; }
  .premium-home .product-card :is(.product-purchase, .product-bottom) { padding-top: 12px; }
  .premium-home .product-card .product-price { font-size: 20px; }
  .premium-home .product-card .product-price.request-price { font-size: 15px; }
  .premium-home .product-card :is(.product-emi, .product-emi-plan) { margin: 10px -12px -12px; padding: 12px; }
  .premium-home .product-card .product-emi-value > strong { font-size: 21px; }
  .premium-home .product-card .product-emi-value strong > small { display: block; margin: 2px 0 0; font-size: 11px; line-height: 1.3; }
  .premium-home .product-card .product-info .product-emi-apply,
  .premium-home .product-card .product-shop-action { min-height: 44px; padding: 10px 6px; font-size: 13px; gap: 6px; }
}
@media (max-width: 360px) {
  .premium-home .product-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .premium-home .product-card :is(.product-photo, .product-image) { height: 210px; padding: 12px; }
  .premium-home .product-card .product-photo > img,
  .premium-home .product-card .product-image-button > img { height: 183px; padding: 10px; }
  .premium-home .product-card .product-placeholder { min-height: 183px; }
  .premium-home .product-card .product-info h3 { min-height: 0; }
  .premium-home .product-card .product-emi-value strong > small { display: inline; margin-left: 3px; }
  .premium-home .product-card .product-card-actions { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-home .product-card,
  .premium-home .product-card .product-photo > img,
  .premium-home .product-card .product-image-button > img { transition: none; transform: none; }
}
