/* ===== Dog Mug Customizer — Petgifts Landing V2 ===== */

body.pglp2-body {
  margin: 0;
  padding: 0;
  background: #f6f1ea;
}

.pglp2-mug {
  --bg: #f6f1ea;
  --bg-card: #ffffff;
  --bg-soft: #ede6db;
  --ink: #1f1b16;
  --ink-soft: #5a514a;
  --ink-mute: #948a80;
  --line: #e3dccf;
  --line-soft: #efe9dc;
  --accent: #b45a30;
  --accent-ink: #5a2b15;
  --accent-soft: #fbe9dd;
  --radius: 14px;
  --radius-lg: 22px;

  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pglp2-mug * {
  box-sizing: border-box;
}

.pglp2-mug button {
  font-family: inherit;
  cursor: pointer;
}

.pglp2-mug input {
  font-family: inherit;
}

/* ---- Page ---- */
.pglp2-mug .page {
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px 64px;
}

/* ---- Topbar ---- */
.pglp2-mug .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 28px;
}

.pglp2-mug .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.pglp2-mug .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.pglp2-mug .topnav {
  display: flex;
  gap: 28px;
}

.pglp2-mug .topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.pglp2-mug .topnav a:hover {
  color: var(--ink);
}

/* ---- Grid ---- */
.pglp2-mug .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* ---- Preview ---- */
.pglp2-mug .preview {
  position: sticky;
  top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

.pglp2-mug .mug-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pglp2-mug .mug-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(40, 30, 20, 0.08));
  overflow: visible;
}

.pglp2-mug .preview-meta {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pglp2-mug .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* ---- Controls ---- */
.pglp2-mug .controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pglp2-mug .intro h1 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}

.pglp2-mug .intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---- Step ---- */
.pglp2-mug .step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pglp2-mug .step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pglp2-mug .step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.pglp2-mug .step-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---- Breed search ---- */
.pglp2-mug .breed-search-wrap {
  position: relative;
  margin-bottom: 4px;
}

.pglp2-mug .breed-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-mute);
  pointer-events: none;
  flex-shrink: 0;
}

.pglp2-mug .breed-search-wrap input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px 10px 36px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg-card);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pglp2-mug .breed-search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 90, 48, 0.12);
}

.pglp2-mug .breed-search-wrap input::placeholder {
  color: var(--ink-mute);
}

/* ---- Breed grid ---- */
.pglp2-mug .breed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pglp2-mug .breed-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.pglp2-mug .breed-card:hover {
  border-color: #c9bfa9;
  transform: translateY(-1px);
}

.pglp2-mug .breed-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(180, 90, 48, 0.12);
}

.pglp2-mug .breed-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
}

.pglp2-mug .breed-thumb svg {
  display: block;
}

.pglp2-mug .breed-thumb img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

@media (max-width: 880px) {
  .pglp2-mug .breed-thumb img {
    width: 56px;
    height: 56px;
  }
}

/* ---- Category tabs (Câini / Pisici) ---- */
.pglp2-mug .cat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.pglp2-mug .cat-tab {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pglp2-mug .cat-tab:hover {
  border-color: #c9bfa9;
  color: var(--ink);
}

.pglp2-mug .cat-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* ---- Mug composite (photo + layer overlay + name) ---- */
.pglp2-mug .mug-composite {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(40,30,20,0.08));
  line-height: 0;
}

.pglp2-mug .mug-base {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.pglp2-mug .mug-layer {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
}

.pglp2-mug .mug-name-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.pglp2-mug .breed-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.2;
}

.pglp2-mug .breed-card.is-active .breed-name {
  color: var(--accent-ink);
}

/* ---- Name input ---- */
.pglp2-mug .name-field {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  transition: border-color 0.15s;
}

.pglp2-mug .name-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 90, 48, 0.12);
}

.pglp2-mug .name-field input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 64px 14px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  letter-spacing: -0.01em;
}

.pglp2-mug .name-count {
  position: absolute;
  right: 14px;
  font-size: 12px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ---- Font picker ---- */
.pglp2-mug .font-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pglp2-mug .font-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 96px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.pglp2-mug .font-card:hover {
  border-color: #c9bfa9;
  transform: translateY(-1px);
}

.pglp2-mug .font-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(180, 90, 48, 0.12);
}

.pglp2-mug .font-sample {
  display: block;
  color: var(--ink);
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pglp2-mug .font-label {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pglp2-mug .font-card.is-active .font-label {
  color: var(--accent-ink);
}

/* ---- Color picker ---- */
.pglp2-mug .color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pglp2-mug .color-card {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.pglp2-mug .color-card:hover {
  border-color: #c9bfa9;
  transform: translateY(-1px);
}

.pglp2-mug .color-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(180, 90, 48, 0.12);
}

.pglp2-mug .color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e3dccf;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.08);
  display: block;
}

.pglp2-mug .color-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.2;
}

.pglp2-mug .color-card.is-active .color-label {
  color: var(--accent-ink);
}

/* ---- Checkout ---- */
.pglp2-mug .checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.pglp2-mug .price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pglp2-mug .price-amount {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.pglp2-mug .price-meta {
  font-size: 12px;
  color: var(--ink-mute);
}

.pglp2-mug .cta {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.pglp2-mug .cta:hover {
  background: #000;
  transform: translateY(-1px);
}

.pglp2-mug .cta.is-added {
  background: #1f6f3b;
}

.pglp2-mug .cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ---- Mobile ≤880px ---- */
@media (max-width: 880px) {
  .pglp2-mug .page {
    padding: 14px 16px 96px;
  }

  .pglp2-mug .topbar {
    padding: 4px 0 18px;
  }

  .pglp2-mug .topnav {
    display: none;
  }

  .pglp2-mug .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pglp2-mug .preview {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 14px 12px 10px;
    min-height: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 0;
    border-left: 0;
    border-right: 0;
    margin: -14px -16px 4px;
  }

  .pglp2-mug .mug-svg {
    max-width: 280px;
  }

  .pglp2-mug .intro h1 {
    font-size: 30px;
  }

  .pglp2-mug .breed-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .pglp2-mug .breed-thumb {
    width: 56px;
    height: 56px;
  }

  .pglp2-mug .breed-name {
    font-size: 10px;
  }

  .pglp2-mug .checkout {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    margin: 0;
    z-index: 10;
  }
}

/* ---- Narrow phones ≤480px ---- */
@media (max-width: 480px) {
  .pglp2-mug .breed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
