/* ===========================================
   Livo — Global Styles
=========================================== */

html { scroll-behavior: smooth; }

body {
  font-family: var(--livo-font, 'Inter', sans-serif);
  color: var(--livo-text, #111);
  background: var(--livo-bg, #F7F7F8);
  line-height: 1.5;
}

.lp { background: var(--livo-bg, #F7F7F8); }

/* ── Section wrapper ── */
.sec { background: #fff; margin-bottom: 8px; }
.sec-i {
  max-width: var(--livo-max-w, 1440px);
  margin: 0 auto;
  padding: 32px var(--livo-px, 24px);
}
.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sec-title { font-size: 18px; font-weight: 700; color: #111; }
.sec-a {
  font-size: 13px;
  color: var(--acc, #FF4A00);
  text-decoration: none;
  font-weight: 600;
}
.sec-a:hover { text-decoration: underline; }

/* ── Product grid ── */
.pg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pg.cols6 { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pg4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ═══════════════════════════════════════════
   PRODUCT CARD — Premium redesign
═══════════════════════════════════════════ */
.pc {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  position: relative;
}
.pc:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
  transform: translateY(-4px);
  border-color: #e0e0e0;
}
.pc-out { opacity: .72; }

/* ── Image zone ── */
.pc-img-w {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8fa;
  flex-shrink: 0;
}
.pc-img-link { display: block; width: 100%; height: 100%; }
.pc-img-w img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 6px;
  box-sizing: border-box;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.pc:hover .pc-img-w img { transform: scale(1.07); }

/* ── Discount badge — top RIGHT ── */
.pc-badge-disc {
  position: absolute;
  top: 9px; right: 9px;
  background: var(--acc, #FF4A00);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  letter-spacing: .2px;
  line-height: 1.3;
  z-index: 2;
}

/* ── Status badges — top LEFT ── */
.pc-badges-l {
  position: absolute;
  top: 9px; left: 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 2;
}
.pcb {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .2px;
  line-height: 1.3;
}
.pcb-hit  { background: #111; color: #fff; }
.pcb-new  { background: #0ea5e9; color: #fff; }
.pcb-hot  { background: #dc2626; color: #fff; }

/* ── Info overlay: spec + stars at bottom of image ── */
.pc-img-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.62) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 1;
  pointer-events: none;
}
.pc-img-spec {
  font-size: 10.5px;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}
.pc-img-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.pc-img-stars .star      { font-size: 11px; }
.pc-img-stars .star-full,
.pc-img-stars .star-half { color: #fb923c; }
.pc-img-stars .star-empty{ color: rgba(255,255,255,.35); }
.pc-img-rc {
  font-size: 9.5px;
  color: rgba(255,255,255,.6);
  margin-left: 3px;
}

/* ── Hover overlay: Quick View ── */
.pc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .25s;
}
.pc:hover .pc-overlay { opacity: 1; }

.pc-qv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.pc-qv:hover { background: #f0f0f0; }

.pc-wish {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.9);
  border: none; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.pc-wish:hover { background: #fff; color: #dc2626; }
.pc-wish.active svg { fill: #dc2626; stroke: #dc2626; }

/* ── Body: full height flex column ── */
.pc-body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Grow area — title only, pushes footer to bottom */
.pc-grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title — 2 lines, tight */
.pc-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
  max-height: calc(1.3em * 2);
  transition: color .2s;
}
.pc-title:hover { color: var(--acc, #FF4A00); }

/* Stars base (shared by image overlay) */
.star       { font-size: 13px; line-height: 1; }
.star-full,
.star-half  { color: #f97316; }
.star-empty { color: #e5e7eb; }

/* Footer — always at bottom */
.pc-footer {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #f5f5f5;
  margin-top: 10px;
}

/* Stock status */
.pc-stock {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.pc-stock-txt {
  font-size: 10.5px;
  font-weight: 600;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pc-stock-out .pc-stock-dot { background: #d1d5db; }
.pc-stock-out .pc-stock-txt { color: #9ca3af; }

/* Price row */
.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.pc-price { font-size: 16px; font-weight: 900; color: #111; letter-spacing: -.3px; }
.pc-old   { font-size: 11px; color: #9ca3af; text-decoration: line-through; }

/* Actions row: justify-between — cart LEFT, heart RIGHT */
.pc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Cart button */
.pc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 10px 0;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: .1px;
}
.pc-btn:hover:not(:disabled) {
  background: var(--acc, #FF4A00);
}
.pc-btn:active:not(:disabled) { transform: scale(.98); }
.pc-btn-dis,
.pc-btn:disabled {
  background: #f0f0f0;
  color: #bbb;
  cursor: not-allowed;
}

/* Wishlist / heart button */
.pc-fav {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  color: #d1d5db;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.pc-fav:hover {
  color: var(--acc, #FF4A00);
  border-color: var(--acc, #FF4A00);
  background: rgba(255,74,0,.05);
}
.pc-fav.active svg { fill: var(--acc, #FF4A00); stroke: var(--acc, #FF4A00); }

/* Keep old .p-badge for backward compat */
.p-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--acc, #FF4A00);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
}

/* ── Buttons ── */
.btn-pr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--acc, #FF4A00);
  color: #fff;
  border-radius: var(--livo-radius-md, 12px);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s;
}
.btn-pr:hover { filter: brightness(1.08); color: #fff; }

.btn-gh {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: var(--livo-radius-md, 12px);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-gh:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-see-all {
  display: inline-block;
  padding: 10px 28px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-see-all:hover { border-color: #111; color: #111; }

/* ── Tab buttons ── */
.ts-wrap {
  max-width: var(--livo-max-w, 1440px);
  margin: 0 auto;
  padding: 32px var(--livo-px, 24px);
}
.ts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.ts-tabs { display: flex; gap: 4px; }
.tab-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.tab-btn:hover { background: #f0f0f0; color: #111; }
.tab-btn.active { background: #1A1A1A; color: #fff; font-weight: 700; }

.ts-right { display: flex; gap: 4px; }
.view-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  background: none;
  color: #aaa;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.view-btn:hover { background: #f5f5f7; color: #555; }
.view-btn.active { background: #1A1A1A; color: #fff; border-color: #1A1A1A; }

/* ══════════════════════════════════════════
   Responsive — Laptop (1024px – 1439px): 3 cols
══════════════════════════════════════════ */
@media (max-width: 1439px) {
  .pg  { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pg4 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

/* Laptop card tweaks: slightly tighter on 1024-1439px */
@media (min-width: 1025px) and (max-width: 1439px) {
  .pc-body  { padding: 8px 9px 9px; }
  .pc-price { font-size: 14px; }
  .pc-title { font-size: 12px; }
  .pc-btn   { font-size: 11px; padding: 7px 0; }
  .pc-footer { gap: 5px; padding-top: 6px; }
}

/* ══════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Sections */
  .sec-i { padding: 24px 16px; }
  .sec-title { font-size: 16px; }
  .sec-h { margin-bottom: 14px; }

  /* Product grids — 2 col on mobile */
  .pg  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pg4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Product card — mobile tweaks */
  .pc            { border-radius: 12px; }
  .pc-body       { padding: 10px 10px 10px; }
  .pc-price      { font-size: 15px; }
  .pc-title      { font-size: 12px; }
  .pc-btn        { padding: 9px 0; font-size: 11px; }
  .pcb           { font-size: 9px; padding: 2px 6px; }
  .pc-badge-disc { font-size: 10px; padding: 2px 6px; }
  .pc-overlay    { display: none; }
  .pc-fav        { width: 34px; height: 34px; }
  .pc-cta        { gap: 6px; }
  .pc-footer     { gap: 8px; padding-top: 8px; margin-top: 8px; }
  /* Smaller info overlay on mobile */
  .pc-img-spec   { font-size: 10px; }
  .pc-img-stars .star { font-size: 10px; }

  /* Buttons */
  .btn-pr { padding: 10px 18px; font-size: 13px; }
  .btn-gh { padding: 10px 18px; font-size: 13px; }
  .btn-see-all { padding: 8px 20px; font-size: 12px; }
}
