/* Fancy Toy Poodle Store - cart / checkout styling.
   Inherits the theme's fonts and page chrome; only the injected regions are styled here. */

:root {
  --fc-ink: #1c1b1b;
  --fc-muted: #6b6866;
  --fc-line: #e4e0dc;
  --fc-accent: #c8641b;
  --fc-accent-ink: #fff;
  --fc-soft: #fdf6ef;
}

.fancy-cart, .fancy-checkout, .fancy-empty {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  color: var(--fc-ink);
}
.fancy-cart h1, .fancy-checkout h1, .fancy-empty h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}
.fancy-empty { text-align: center; padding-top: 5rem; }
.fancy-empty p { color: var(--fc-muted); margin-bottom: 2rem; }

/* ------------------------------------------------------------------ buttons */
.fancy-btn {
  display: inline-block;
  background: var(--fc-ink);
  color: var(--fc-accent-ink) !important;
  padding: 1rem 2.4rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: opacity .15s ease;
}
.fancy-btn:hover { opacity: .85; }
.fancy-link {
  display: inline-block;
  margin-left: 1.25rem;
  color: var(--fc-muted);
  text-decoration: underline;
  font-size: .95rem;
}

/* --------------------------------------------------------------- cart table */
.fancy-table { width: 100%; border-collapse: collapse; }
.fancy-table th {
  text-align: left;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fc-muted);
  font-weight: 500;
  padding: 0 0 .9rem;
  border-bottom: 1px solid var(--fc-line);
}
.fancy-table td { padding: 1.25rem 0; border-bottom: 1px solid var(--fc-line); vertical-align: middle; }
.fancy-table .fc-img { width: 96px; }
.fancy-table .fc-img img {
  width: 84px; height: 84px; object-fit: cover; border-radius: 10px; display: block;
}
.fc-title a { color: var(--fc-ink); text-decoration: none; font-weight: 500; line-height: 1.35; display: block; max-width: 42ch; }
.fc-title a:hover { text-decoration: underline; }
.fc-unit { color: var(--fc-muted); font-size: .88rem; margin-top: .35rem; }
.fc-qty { white-space: nowrap; width: 150px; }
.fc-step {
  width: 34px; height: 34px; border: 1px solid var(--fc-line); background: #fff;
  border-radius: 50%; cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--fc-ink);
}
.fc-step:hover { border-color: var(--fc-ink); }
.fc-num {
  width: 52px; height: 34px; text-align: center; margin: 0 .35rem;
  border: 1px solid var(--fc-line); border-radius: 8px; font-size: .95rem;
}
.fc-line { font-weight: 600; white-space: nowrap; }
.fc-remove {
  border: 0; background: none; font-size: 1.5rem; line-height: 1;
  color: var(--fc-muted); cursor: pointer; padding: .25rem .5rem;
}
.fc-remove:hover { color: #b3261e; }

.fancy-foot { margin-top: 2rem; text-align: right; }
.fancy-total { font-size: 1.3rem; margin-bottom: .5rem; }
.fancy-total strong { margin-left: .6rem; }
.fancy-note { color: var(--fc-muted); font-size: .9rem; margin: 0 0 1.5rem; }
.fancy-foot .fancy-note { max-width: 46ch; margin-left: auto; }

/* ----------------------------------------------------------------- checkout */
.fc-intro { color: var(--fc-muted); max-width: 62ch; margin: 0 0 2.5rem; line-height: 1.6; }
.fc-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.fc-card { border: 1px solid var(--fc-line); border-radius: 16px; padding: 1.75rem; background: #fff; }
.fc-card h2 { font-size: 1.15rem; margin: 0 0 1.25rem; }
.fc-lines { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.fc-lines li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: .7rem 0; border-bottom: 1px solid var(--fc-line); font-size: .95rem;
}
.fc-lines span { color: var(--fc-muted); max-width: 36ch; }
.fc-sum { display: flex; justify-content: space-between; font-size: 1.25rem; padding: .5rem 0 1rem; }

.fc-contact { background: var(--fc-soft); border-color: #f0e2d2; }
.fc-phone {
  display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--fc-ink) !important; text-decoration: none; margin-bottom: .4rem;
}
.fc-phone:hover { color: var(--fc-accent) !important; }
.fc-phone-note { color: var(--fc-muted); font-size: .9rem; margin: 0 0 1.25rem; }
.fc-email { display: block; color: var(--fc-ink); font-size: 1rem; margin-bottom: .5rem; word-break: break-all; }
.fc-hours { color: var(--fc-muted); font-size: .88rem; margin: 0; }

.fc-pay-head { font-size: 1.3rem; margin: 0 0 1.25rem; }
.fc-pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.fc-pay { border: 1px solid var(--fc-line); border-radius: 14px; padding: 1.4rem; }
.fc-pay h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.02rem; margin: 0 0 1rem; }
.fc-pay h3 i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fc-accent); color: #fff; font-style: normal; font-weight: 700; font-size: .95rem;
}
.fc-pay-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--fc-line); font-size: .9rem;
}
.fc-pay-row:last-child { border-bottom: 0; }
.fc-pay-row span { color: var(--fc-muted); white-space: nowrap; }
.fc-pay-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f6f4f2; padding: .3rem .6rem; border-radius: 6px;
  cursor: pointer; user-select: all; font-size: .88rem; text-align: right;
}
.fc-pay-row code:hover { background: #ece8e4; }
.fc-after {
  margin: 2rem 0 1.5rem; padding: 1.1rem 1.4rem;
  background: var(--fc-soft); border-left: 3px solid var(--fc-accent);
  border-radius: 0 10px 10px 0; color: var(--fc-ink); font-size: .95rem; line-height: 1.6;
}

/* ------------------------------------------------------- header cart bubble */
.fancy-bubble {
  position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--fc-accent); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
  box-sizing: border-box; pointer-events: none;
}

/* -------------------------------------------------------------------- toast */
.fancy-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--fc-ink); color: #fff; padding: .95rem 1.5rem;
  border-radius: 100px; font-size: .95rem; z-index: 99999;
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.fancy-toast.in { opacity: 1; transform: translate(-50%, 0); }
.fancy-toast a { color: #fff; text-decoration: underline; margin-left: .25rem; }

@media (max-width: 860px) {
  .fc-grid { grid-template-columns: 1fr; }
  .fancy-table thead { display: none; }
  .fancy-table tr { display: grid; grid-template-columns: 96px 1fr auto; gap: .5rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--fc-line); }
  .fancy-table td { border: 0; padding: 0; }
  .fancy-table .fc-img { grid-row: span 2; }
  .fc-qty, .fc-line { width: auto; }
  .fancy-foot { text-align: left; }
  .fancy-foot .fancy-note { margin-left: 0; }
  .fancy-link { margin-left: 0; display: block; margin-top: 1rem; }
}

/* ------------------------------------------------------- contact page card */
.fancy-contact-card {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 2rem 2.25rem;
  border: 1px solid var(--fc-line);
  border-radius: 16px;
  background: var(--fc-soft);
  color: var(--fc-ink);
}
.fancy-contact-card h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.fc-cc-note { color: var(--fc-muted); font-size: .95rem; margin: 0 0 1.25rem; }
.fc-cc-phone {
  display: inline-block; font-size: 2rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--fc-ink) !important; text-decoration: none; margin-bottom: 1.5rem;
}
.fc-cc-phone:hover { color: var(--fc-accent) !important; }
.fc-cc-list {
  display: grid; grid-template-columns: max-content 1fr;
  gap: .6rem 1.5rem; margin: 0; font-size: .95rem;
}
.fc-cc-list dt { color: var(--fc-muted); }
.fc-cc-list dd { margin: 0; }
.fc-cc-list a { color: var(--fc-ink); }
@media (max-width: 600px) {
  .fancy-contact-card { padding: 1.5rem; border-radius: 12px; }
  .fc-cc-list { grid-template-columns: 1fr; gap: .2rem; }
  .fc-cc-list dt { margin-top: .6rem; }
}

/* cart thumbnail placeholder for products with no photo */
.fc-noimg {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 10px;
  background: #f2efec; color: var(--fc-muted);
  font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
}
