/* ════════════════════════════════════════════════════════════
   FurryFinery — Premium Dog Accessories
   Palette: Warm Brown · Amber · Cream · Forest Green
════════════════════════════════════════════════════════════ */
:root {
  --brown:       #6B4F3A;
  --brown-dark:  #4A3428;
  --amber:       #D4A853;
  --amber-light: #F5E8C4;
  --amber-dark:  #B8892E;
  --cream:       #FAF6F0;
  --green:       #4A7C59;
  --red:         #C0392B;
  --text:        #2C2C2C;
  --muted:       #7A7A7A;
  --border:      #E8DDD0;
  --white:       #FFFFFF;
  --shadow:      0 4px 20px rgba(107,79,58,.12);
  --shadow-lg:   0 12px 40px rgba(107,79,58,.18);
}

*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--brown); }

/* ── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--brown-dark);
  color: var(--amber-light);
  font-size: .82rem;
  padding: 6px 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: .3px;
}
.topbar i { margin: 0 4px; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar { background: var(--white); border-bottom: 2px solid var(--amber-light); padding: 16px 0; }
.navbar-brand { font-size: 1.6rem; font-weight: 800; color: var(--brown-dark) !important; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.navbar-brand img { height: 72px; width: auto; display: block; }
.nav-cart-btn {
  background: var(--amber);
  color: var(--white) !important;
  border-radius: 24px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .15s;
}
.nav-cart-btn:hover { background: var(--amber-dark); transform: translateY(-1px); }
.nav-trust { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nav-trust i { color: var(--green); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-ff {
  background: linear-gradient(135deg, var(--amber), #E8C060);
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary-ff:hover {
  background: linear-gradient(135deg, var(--amber-dark), var(--amber));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,83,.4);
}
.btn-primary-ff:active { transform: translateY(0); }
.btn-primary-ff.btn-lg-ff { font-size: 1.1rem; padding: 16px 32px; width: 100%; justify-content: center; }

.btn-outline-ff {
  border: 2px solid var(--brown);
  color: var(--brown);
  background: transparent;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline-ff:hover { background: var(--brown); color: var(--white); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, #FFF8EE 100%);
  padding: 60px 0 80px;
}

/* ── PRODUCT GRID ────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--cream);
}
.product-card__body { padding: 16px; }
.product-card__title { font-size: .92rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; color: var(--text); }
.product-card__stars { color: #F5A623; font-size: .82rem; margin-bottom: 6px; }
.product-card__stars span { color: var(--muted); margin-left: 4px; }
.product-card__price { display: flex; align-items: center; gap: 8px; }
.price-now { font-size: 1.15rem; font-weight: 800; color: var(--brown-dark); }
.price-old { font-size: .88rem; color: var(--muted); text-decoration: line-through; }
.badge-discount {
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.badge-free-ship {
  background: var(--green);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── PRODUCT PAGE ────────────────────────────────────────── */
.product-gallery { position: sticky; top: 20px; }
.gallery-main {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: opacity .2s;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s, opacity .15s;
  opacity: .8;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--amber); opacity: 1; }

.product-title { font-size: 1.6rem; font-weight: 800; color: var(--brown-dark); line-height: 1.25; }
.product-subtitle { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ── PRICE BOX ───────────────────────────────────────────── */
.price-hero { display: flex; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.price-hero .price-now { font-size: 2.2rem; font-weight: 900; color: var(--brown-dark); }
.price-hero .price-old { font-size: 1.2rem; }
.price-hero .badge-discount { font-size: .85rem; padding: 4px 12px; }

/* ── COUNTDOWN ───────────────────────────────────────────── */
.urgency-box {
  background: #FFF8EE;
  border: 1.5px solid var(--amber-light);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.countdown-display {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
}
.stock-wrap { margin: 10px 0; }
.stock-bar {
  height: 8px;
  background: #EEE;
  border-radius: 4px;
  overflow: hidden;
}
.stock-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--red));
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ── CUSTOM INPUT ────────────────────────────────────────── */
.custom-input-box {
  background: var(--amber-light);
  border: 1.5px solid var(--amber);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
}
.custom-input-box label { font-weight: 700; font-size: .9rem; color: var(--brown-dark); margin-bottom: 6px; display: block; }
.custom-input-box input {
  width: 100%;
  border: 1.5px solid var(--amber-dark);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  background: var(--white);
}
.custom-input-box input:focus { outline: none; border-color: var(--brown); }

/* ── FEATURE LIST ────────────────────────────────────────── */
.features-list { list-style: none; padding: 0; margin: 16px 0; }
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: .93rem;
}
.features-list li i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* ── SHIPPING INFO BOX ───────────────────────────────────── */
.shipping-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}
.shipping-box__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.shipping-box__row:last-child { border-bottom: none; }
.shipping-box__row i { color: var(--brown); width: 18px; flex-shrink: 0; }
.shipping-box__label { color: var(--muted); font-size: .82rem; }

/* ── REVIEWS ─────────────────────────────────────────────── */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--cream);
  border-radius: 12px;
  margin-bottom: 24px;
}
.reviews-summary__score {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--brown-dark);
  line-height: 1;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow .2s;
}
.review-card:hover { box-shadow: var(--shadow); }
.review-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.reviewer-name { font-weight: 700; font-size: .95rem; }
.reviewer-meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.review-stars { color: #F5A623; font-size: .9rem; }
.review-text { font-size: .93rem; line-height: 1.6; color: #333; }
.review-photos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.review-photos img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.verified-badge { color: var(--green); font-size: .78rem; font-weight: 600; margin-top: 8px; }

/* ── CHECKOUT ────────────────────────────────────────────── */
.checkout-page { background: var(--cream); min-height: 100vh; padding: 40px 0; }
.checkout-container { max-width: 580px; margin: 0 auto; padding: 0 16px; }
.checkout-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.checkout-card__header {
  background: linear-gradient(135deg, var(--brown), var(--brown-dark));
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.checkout-card__header h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.checkout-card__header p { font-size: .85rem; opacity: .85; margin: 2px 0 0; }
.checkout-card__body { padding: 24px; }

.order-mini {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.order-mini img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.order-mini__price { font-size: 1.2rem; font-weight: 800; color: var(--brown-dark); white-space: nowrap; }
.order-mini__price-old { font-size: .8rem; color: var(--muted); text-decoration: line-through; }

.form-section-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 20px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-field label .req { color: var(--red); margin-left: 2px; }
.form-field input, .form-field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,168,83,.15);
}
.form-field input.is-invalid { border-color: var(--red); }
.form-field .field-error { font-size: .78rem; color: var(--red); margin-top: 4px; display: none; }
.form-field input.is-invalid + .field-error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* intl-tel-input override — flex-based, no padding-left fight */
.iti {
  width: 100% !important;
  display: flex !important;
}
.iti input[type="tel"] {
  flex: 1 !important;
  width: auto !important;        /* override .form-field input width:100% */
  padding: 11px 14px !important; /* uniform — iti handles left space via flex */
  border: 1.5px solid var(--border) !important;
  border-radius: 0 8px 8px 0 !important;
  font-size: .95rem !important;
  height: auto !important;
  min-width: 0 !important;
}
.iti input[type="tel"]:focus {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 3px rgba(212,168,83,.15) !important;
  outline: none !important;
}
/* Flag + dial code container styling */
.iti__flag-container,
.iti__country-container {
  position: relative !important; /* not absolute — flex child */
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-right: none !important;
  border-radius: 8px 0 0 8px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.iti__selected-flag { background: transparent !important; padding: 0 !important; }
.iti--separate-dial-code .iti__selected-dial-code { font-size: .88rem; color: var(--text); margin-left: 4px; }

/* Tom Select override */
.ts-wrapper .ts-control {
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: .95rem !important;
  min-height: 44px !important;
  background: var(--white) !important;
  box-shadow: none !important;
}
.ts-wrapper.focus .ts-control {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 3px rgba(212,168,83,.15) !important;
}

.payment-notice {
  background: #F8F8F8;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: .85rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.payment-notice i { color: var(--amber); margin-top: 2px; flex-shrink: 0; }
.payment-icons-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.payment-icons-row img { height: 24px; border: 1px solid #DDD; border-radius: 4px; padding: 2px 6px; background: var(--white); }

.submit-btn-wrap { margin-top: 4px; }
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.trust-row i { color: var(--green); }

/* ── PROGRESS STEPS ──────────────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
}
.step.active { color: var(--brown); font-weight: 700; }
.step__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
}
.step.active .step__dot { background: var(--amber); border-color: var(--amber); color: var(--white); }
.step.done .step__dot { background: var(--green); border-color: var(--green); color: var(--white); }
.step-line { width: 32px; height: 2px; background: var(--border); }

/* ── THANK YOU ───────────────────────────────────────────── */
.thanks-wrap { max-width: 520px; margin: 60px auto; text-align: center; padding: 0 16px; }
.thanks-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 48px 32px; box-shadow: var(--shadow-lg); }
.thanks-icon { font-size: 4rem; margin-bottom: 16px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--brown-dark); color: #C9BAB0; padding: 48px 0 24px; margin-top: 80px; }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer a { color: #C9BAB0; text-decoration: none; font-size: .88rem; line-height: 2; }
.footer a:hover { color: var(--amber); }
.footer-heading { color: var(--white); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #4A3428; margin-top: 32px; padding-top: 20px; font-size: .8rem; text-align: center; }

/* ── TRUST BAR ───────────────────────────────────────────── */
.trust-bar { background: var(--cream); border-top: 2px solid var(--amber-light); padding: 32px 0; }
.trust-bar__item { text-align: center; }
.trust-bar__icon { font-size: 1.8rem; color: var(--amber); margin-bottom: 8px; }
.trust-bar__title { font-weight: 700; font-size: .9rem; }
.trust-bar__sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-brand img { height: 56px; width: auto; }
  .navbar { padding: 12px 0; }
  .hero { padding: 40px 0; }
  .product-title { font-size: 1.3rem; }
  .price-hero .price-now { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .reviews-summary { flex-direction: column; text-align: center; }
  .checkout-card__body { padding: 16px; }
}
