/* cards64 v2 — Samsung-inspired product cards (PREVIEW). Brand red/black/white. */
:root {
  --c64-red: #E6010B;
  --c64-ink: #000;
  --c64-ink-2: #111;
  --c64-mut: #555;
  --c64-mut-2: #757575;
  --c64-wash: #f7f7f7;
  --c64-line: #ddd;
  --c64-white: #fff;
  --c64-radius: 12px;
}

/* ===== HOME .pc ===== */
html.c64 .tg5 .grid,
body.c64-proto .grid { gap: 10px; }

html.c64 .tg5 .pc,
body.c64-proto .pc {
  background: var(--c64-wash) !important;
  border: none !important;
  border-radius: var(--c64-radius) !important;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: none;
  padding-bottom: 36px; /* room for customise icon */
}

html.c64 .tg5 .pc-img,
body.c64-proto .pc-img {
  background: var(--c64-white) !important;
  margin: 0;
  border-radius: var(--c64-radius) var(--c64-radius) 0 0;
}
html.c64 .tg5 .pc-img img,
body.c64-proto .pc-img img {
  aspect-ratio: 1;
  object-fit: contain;
  width: 100%;
  display: block;
  padding: 8px;
  background: var(--c64-white);
}

html.c64 .tg5 .pc-b,
body.c64-proto .pc-b {
  padding: 10px 12px 8px !important;
  gap: 4px !important;
  background: var(--c64-wash);
}

html.c64 .tg5 .pc-t,
body.c64-proto .pc-t {
  font-family: Outfit, Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--c64-ink) !important;
  min-height: 2.6em;
  -webkit-line-clamp: 2;
}

/* Price row: selling + optional struck MRP */
html.c64 .tg5 .pc-f,
body.c64-proto .pc-f {
  align-items: baseline !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 4px !important;
}

html.c64 .tg5 .pr,
body.c64-proto .pr,
.c64-price-now {
  font-family: Outfit, Inter, system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--c64-ink) !important;
}

.c64-price-mrp {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--c64-mut-2);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.c64-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.c64-example-tag {
  font-size: 9px;
  font-style: italic;
  color: var(--c64-mut-2);
  font-weight: 400;
}

/* Meta: GST / MOQ / stock */
.c64-meta {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.c64-meta li {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: var(--c64-mut);
  font-weight: 400;
}
.c64-meta .c64-gst { color: var(--c64-mut-2); }
.c64-meta .c64-example {
  color: var(--c64-mut-2);
  font-style: italic;
}
.c64-meta .c64-example::after {
  content: " · example";
  font-size: 10px;
  opacity: 0.85;
}

html.c64 .tg5 .cartb,
body.c64-proto .cartb { display: none !important; }

/* ===== Customise icon ONLY (bottom-right) ===== */
.c64-customise {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c64-white);
  border: 1.5px solid #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  text-decoration: none;
  color: #111;
  box-sizing: border-box;
}
.c64-customise:focus-visible {
  outline: 2px solid var(--c64-red);
  outline-offset: 2px;
}
.c64-customise svg {
  width: 14px;
  height: 14px;
  display: block;
  stroke: #111;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.c64-customise .c64-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== SELECT outline — ONLY .c64-selected, NEVER :hover ===== */
html.c64 .tg5 .pc:hover,
body.c64-proto .pc:hover,
html.c64 .ce-product-grid .elementor-362170150:hover,
body.c64-proto .c64-ce-card:hover {
  outline: none;
  box-shadow: none;
  transform: none;
}

html.c64 .tg5 .pc.c64-selected,
body.c64-proto .pc.c64-selected,
html.c64 .ce-product-grid .elementor-362170150.c64-selected,
body.c64-proto .c64-ce-card.c64-selected { z-index: 2; }

html.c64 .tg5 .pc.c64-selected::after,
body.c64-proto .pc.c64-selected::after,
html.c64 .ce-product-grid .elementor-362170150.c64-selected::after,
body.c64-proto .c64-ce-card.c64-selected::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px; bottom: 3px; left: 3px;
  border-radius: calc(var(--c64-radius) - 2px);
  outline: 2px dotted #000;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
  z-index: 500;
}

/* ===== Category CE miniatures ===== */
html.c64 .ce-product-grid > .elementor-362170150,
html.c64 .ce-product-grid > [data-elementor-type="product-miniature"],
body.c64-proto .c64-ce-card {
  background: var(--c64-wash) !important;
  border-radius: var(--c64-radius);
  overflow: hidden;
  position: relative;
  padding: 0 0 36px;
}
html.c64 .ce-product-grid .ce-product-image,
body.c64-proto .c64-ce-card .ce-product-image {
  background: var(--c64-white);
  padding: 8px;
}
html.c64 .ce-product-grid .ce-product-name,
body.c64-proto .c64-ce-card .ce-product-name {
  font-family: Outfit, Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 12px !important;
}
html.c64 .ce-product-grid .ce-product-price,
body.c64-proto .c64-ce-card .ce-product-price {
  font-family: Outfit, Inter, system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 0 12px !important;
  color: var(--c64-ink) !important;
}
html.c64 .ce-product-grid .c64-meta,
body.c64-proto .c64-ce-card .c64-meta { padding: 0 12px 8px; }

html.c64 .ce-product-grid .ce-product-price.ce-has-discount .c64-price-mrp,
body.c64-proto .c64-ce-card .c64-price-mrp {
  font-size: 12px;
  font-weight: 500;
  color: var(--c64-mut-2);
  text-decoration: line-through;
  margin-right: 6px;
}
