/* AvantLush storefront redesign — Pawfect-inspired layout, AvantLush brand */

:root {
  --sf-ink: #0f172a;
  --sf-muted: #64748b;
  --sf-line: #e2e8f0;
  --sf-bg: #ffffff;
  --sf-soft: #f8fafc;
  --sf-accent: #003745;
  --sf-accent-2: #0a5c6e;
  --sf-promo: #fff1e8;
  --sf-promo-ink: #7c2d12;
  --sf-price: #b42318;
  --sf-radius: 14px;
  --sf-radius-sm: 10px;
}

.page--storefront {
  background: var(--sf-bg);
}

/* —— Promo bar —— */
.sf-promo {
  background: var(--sf-promo);
  color: var(--sf-promo-ink);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.55rem 1rem;
}
.sf-promo-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
}
.sf-promo-link:hover {
  text-decoration: underline;
}
.sf-promo-code {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— Header —— */
.sf-header {
  background: #fff;
  border-bottom: 1px solid var(--sf-line);
  position: sticky;
  top: 0;
  z-index: 80;
}
.sf-header-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}
.sf-header .nav-toggle {
  display: none;
}
.sf-search {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--sf-soft);
}
.sf-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  font: inherit;
  min-width: 0;
}
.sf-search-input:focus {
  outline: none;
}
.sf-search-btn {
  border: 0;
  background: var(--sf-accent);
  color: #fff;
  padding: 0 1.1rem;
  cursor: pointer;
}
.sf-utilities {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.sf-util-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sf-ink);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}
.sf-util-link:hover {
  color: var(--sf-accent-2);
}
.sf-promo-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.sf-currency-select {
  border: 1px solid var(--sf-line);
  border-radius: 8px;
  padding: 0.35rem 0.4rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fff;
}

/* Display-only currency switcher */
.currency-switch {
  display: inline-flex;
  align-items: center;
}
.currency-switch__select {
  border-radius: 8px;
  border: 1px solid rgba(124, 45, 18, 0.2);
  background: rgba(255, 255, 255, 0.45);
  padding: 0.25rem 0.45rem;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sf-promo-ink);
  cursor: pointer;
}
.currency-switch__select--header {
  max-width: 5.5rem;
  border: 1px solid var(--sf-line);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sf-accent);
}
.currency-switch__select--mobile {
  width: 100%;
  max-width: 12rem;
  margin: 0.35rem 0;
  font-size: 0.8125rem;
}
.nav-mobile-currency {
  display: none;
  padding: 0.35rem 0;
}
@media (max-width: 900px) {
  .nav-mobile-currency {
    display: block;
  }
  .sf-utilities .currency-switch--header {
    display: none;
  }
}
.checkout-currency-note:not([hidden]) {
  margin-top: 0.5rem;
  color: var(--sf-muted, #64748b);
}
.sf-cart .cart-count {
  background: var(--sf-accent);
}
.sf-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem 0.65rem;
  border-top: 0;
  box-shadow: none;
  background: transparent;
}
.sf-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  justify-content: flex-start;
  padding: 0;
}
.sf-nav .nav-links > a,
.sf-nav .nav-dropdown-parent {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sf-ink);
  text-decoration: none;
}
.sf-nav .nav-mobile-cta {
  display: none;
}

@media (max-width: 900px) {
  .sf-header-top {
    grid-template-columns: auto 1fr auto;
  }
  .sf-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }
  .sf-util-link span {
    display: none;
  }
  .sf-header .nav-toggle {
    display: inline-flex;
    order: 2;
  }
  .sf-utilities {
    order: 1;
  }
  .sf-nav {
    display: none;
  }
  .sf-header.is-open .sf-nav {
    display: block;
    padding-bottom: 1rem;
  }
  .sf-header.is-open .sf-nav .nav-links,
  .sf-nav .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .sf-nav .nav-mobile-cta {
    display: inline-flex;
    width: fit-content;
  }
}

/* —— Dual hero —— */
.sf-dual-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1240px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}
.sf-dual-card {
  position: relative;
  border-radius: var(--sf-radius);
  overflow: hidden;
  min-height: 320px;
  display: block;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.sf-dual-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.sf-dual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 55, 69, 0.72), rgba(0, 0, 0, 0.18));
  z-index: 1;
}
.sf-dual-copy {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  gap: 0.65rem;
}
.sf-dual-copy h2 {
  font-family: Outfit, Manrope, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.15;
  margin: 0;
  max-width: 14ch;
}
.sf-dual-copy p {
  margin: 0;
  max-width: 32ch;
  opacity: 0.92;
  font-size: 0.95rem;
}
.sf-dual-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.35rem;
  background: #ff7a3d;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .sf-dual-hero {
    grid-template-columns: 1fr;
  }
  .sf-dual-card,
  .sf-dual-copy {
    min-height: 260px;
  }
}

/* —— Category pills —— */
.sf-cat-strip {
  max-width: 1240px;
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
}
.sf-cat-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}
.sf-cat-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--sf-soft);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius-sm);
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  text-decoration: none;
  color: var(--sf-ink);
  min-width: 150px;
}
.sf-cat-chip img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.sf-cat-chip strong {
  font-size: 0.8125rem;
  line-height: 1.25;
}

/* —— Recipients —— */
.sf-recipients {
  max-width: 1240px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}
.sf-section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.sf-section-head h2 {
  font-family: Outfit, Manrope, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 0.4rem;
  color: var(--sf-ink);
}
.sf-section-head p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--sf-muted);
}
.sf-recipient-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.sf-recipient {
  text-align: center;
  text-decoration: none;
  color: var(--sf-ink);
}
.sf-recipient-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  background: var(--sf-soft);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--sf-line);
  margin-bottom: 0.75rem;
}
.sf-recipient-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sf-recipient strong {
  font-size: 0.9375rem;
}
@media (max-width: 760px) {
  .sf-recipient-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— Trust —— */
.sf-trust {
  background: var(--sf-soft);
  padding: 2rem 1.25rem;
  margin: 2rem 0;
}
.sf-trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.sf-trust-item {
  text-align: center;
  padding: 0.5rem;
}
.sf-trust-item i {
  color: var(--sf-accent);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.sf-trust-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}
.sf-trust-item span {
  color: var(--sf-muted);
  font-size: 0.8125rem;
}
@media (max-width: 760px) {
  .sf-trust-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Product cards —— */
.sf-products {
  max-width: 1240px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}
.sf-products-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.sf-products-head h2 {
  font-family: Outfit, Manrope, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin: 0;
}
.sf-products-head a {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--sf-accent);
  text-decoration: none;
}
.sf-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.sf-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--sf-ink);
  background: #fff;
  border-radius: var(--sf-radius-sm);
  overflow: hidden;
}
.sf-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sf-soft);
}
.sf-product-meta {
  padding: 0.75rem 0.15rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sf-product-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #ca8a04;
  font-size: 0.75rem;
  font-weight: 600;
}
.sf-product-rating span {
  color: var(--sf-muted);
  font-weight: 500;
}
.sf-product-name {
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 600;
}
.sf-product-price {
  color: var(--sf-price);
  font-weight: 800;
  font-size: 0.9375rem;
}
.sf-product-price-old {
  color: var(--sf-muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 0.35rem;
  font-size: 0.8125rem;
}
@media (max-width: 960px) {
  .sf-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .sf-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tone down old home hero when dual mode shows */
.page--storefront .hero-slider {
  margin-top: 0;
}

/* —— Product detail (PDP) —— */
.sf-pdp-hero {
  padding-bottom: 1.5rem;
}
.sf-pdp-layout {
  gap: 2rem;
}
.sf-pdp .product-detail-content h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.5rem;
}
.sf-pdp .product-detail-price .price,
.sf-pdp .sf-pdp-selected-price .price {
  color: var(--sf-price);
  font-size: 1.35rem;
  font-weight: 700;
}
.sf-pdp-option-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sf-muted);
  margin-bottom: 0.55rem;
}
.sf-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sf-variant-chip {
  appearance: none;
  border: 1px solid var(--sf-line);
  background: #fff;
  color: var(--sf-ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.sf-variant-chip:hover {
  border-color: var(--sf-accent);
}
.sf-variant-chip.is-active {
  background: var(--sf-accent);
  border-color: var(--sf-accent);
  color: #fff;
}
.sf-pdp-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sf-pdp-option-group {
  position: relative;
  margin-bottom: 1.1rem;
}
.sf-pdp-trust {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--sf-line);
  display: grid;
  gap: 0.4rem;
  color: var(--sf-muted);
  font-size: 0.9rem;
}
.sf-pdp-trust li::before {
  content: "✓ ";
  color: var(--sf-accent-2);
  font-weight: 700;
}
.sf-pdp-reviews {
  padding: 2rem 1.25rem 3rem;
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--sf-line);
}
.sf-pdp-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.sf-pdp-reviews-head h2 {
  margin: 0;
  font-size: 1.35rem;
}
.sf-pdp-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.sf-pdp-review {
  padding: 1rem 0;
  border-bottom: 1px solid var(--sf-line);
}
.sf-pdp-review h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.05rem;
}
.sf-pdp-review p {
  margin: 0.25rem 0;
  color: var(--sf-ink);
}
.sf-pdp-review-meta {
  color: var(--sf-muted) !important;
  font-size: 0.85rem;
}

/* —— Shop PLP cards (align with home cards) —— */
.page--storefront .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.page--storefront .product-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.page--storefront .product-card__media {
  position: relative;
  border-radius: var(--sf-radius);
  overflow: hidden;
  background: var(--sf-soft);
  aspect-ratio: 1;
}
.page--storefront .product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.page--storefront .product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.page--storefront .product-card__body {
  padding: 0.75rem 0.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.page--storefront .product-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.page--storefront .product-card__title a {
  color: var(--sf-ink);
  text-decoration: none;
}
.page--storefront .product-card__desc {
  display: none;
}
.page--storefront .product-card__rating .product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--sf-muted);
}
.page--storefront .product-card__rating .stars {
  color: #eab308;
  font-size: 0.75rem;
}
.page--storefront .product-card__meta {
  display: none;
}
.page--storefront .product-card__price {
  color: var(--sf-price);
  font-weight: 700;
  font-size: 0.95rem;
}
.page--storefront .product-card__price .price-original {
  color: var(--sf-muted);
  font-weight: 500;
  text-decoration: line-through;
  margin-left: 0.35rem;
  font-size: 0.85rem;
}
.page--storefront .product-card__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}
.page--storefront .product-card__reviews {
  display: none;
}
.page--storefront .product-card__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.page--storefront .product-card__buttons .btn {
  flex: 1 1 auto;
}
@media (max-width: 960px) {
  .page--storefront .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .page--storefront .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— Customize page —— */
.sf-customize .sf-customize-hero {
  margin-top: 0.75rem;
}
.sf-customize .sf-customize-builder {
  max-width: 1240px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}
.sf-customize .section-title {
  text-align: left;
  margin-bottom: 1rem;
}
.sf-customize .section-title h2 {
  margin-bottom: 0.4rem;
}
.sf-customize .custom-layout {
  gap: 1.5rem;
}
.sf-customize .custom-form,
.sf-customize .preview-card,
.sf-customize .preview-proofs {
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.sf-customize .custom-form {
  padding: 1.1rem;
}
.sf-customize .custom-form .form-group label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sf-muted);
  font-weight: 700;
}
.sf-customize .custom-form input,
.sf-customize .custom-form select {
  border: 1px solid var(--sf-line);
  border-radius: 10px;
}
.sf-customize .custom-form input:focus,
.sf-customize .custom-form select:focus {
  outline: 2px solid rgba(10, 92, 110, 0.2);
  border-color: var(--sf-accent-2);
}
.sf-customize .quality-panel {
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: var(--sf-soft);
}
.sf-customize .quality-panel .badge {
  border-radius: 999px;
  font-weight: 700;
}
.sf-customize .preview-card {
  padding: 1rem;
}
.sf-customize .preview-title {
  font-weight: 700;
  color: var(--sf-ink);
}
.sf-customize .preview-image {
  border: 1px dashed var(--sf-line);
}
.sf-customize .preview-proofs {
  padding: 1rem 1rem 0.95rem;
}
.sf-customize .preview-proofs__title {
  color: var(--sf-ink);
  font-weight: 700;
}

/* —— Checkout page —— */
.sf-checkout {
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}
.sf-checkout .checkout-header {
  border-bottom: 1px solid var(--sf-line);
  padding-bottom: 0.85rem;
}
.sf-checkout .checkout-title {
  font-family: Outfit, Manrope, sans-serif;
}
.sf-checkout .checkout-step {
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}
.sf-checkout .checkout-step-line {
  opacity: 0.4;
}
.sf-checkout .checkout-step--active {
  border-color: var(--sf-accent);
  box-shadow: 0 0 0 2px rgba(0, 55, 69, 0.08);
}
.sf-checkout .checkout-section {
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.sf-checkout .checkout-section-title {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 1.25rem;
}
.sf-checkout .checkout-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sf-muted);
}
.sf-checkout .checkout-field input,
.sf-checkout .checkout-field select {
  border-radius: 10px;
  border: 1px solid var(--sf-line);
}
.sf-checkout .checkout-field input:focus,
.sf-checkout .checkout-field select:focus,
.sf-checkout .checkout-state-search:focus {
  border-color: var(--sf-accent-2);
  box-shadow: 0 0 0 2px rgba(10, 92, 110, 0.14);
}
.sf-checkout .checkout-checkbox-card,
.sf-checkout .checkout-shipping-option,
.sf-checkout .checkout-payment-option {
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: #fff;
}
.sf-checkout .checkout-shipping-option.is-selected {
  border-color: var(--sf-accent-2);
  background: #f5fbfc;
}
.sf-checkout .checkout-summary-card {
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.sf-checkout .checkout-summary-title {
  font-family: Outfit, Manrope, sans-serif;
}
.sf-checkout .checkout-pay-btn {
  background: var(--sf-accent);
  border-radius: 999px;
}
.sf-checkout .checkout-pay-btn:hover {
  background: var(--sf-accent-2);
}
