:root {
  --ys-primary: #d17a4a;
  --ys-primary-dark: #b5623a;
  --ys-navy: #d17a4a;
  --ys-navy-dark: #b5623a;
  --ys-sage: #8a9a7e;
  --ys-sage-dark: #79886e;
  --ys-gold: #8a9a7e;
  --ys-cream: #fbf3ec;
  --ys-blush: #f4e2d3;
  --ys-page-bg: #fbf3ec;
  --ys-text: #3a2c28;
  --ys-text-soft: #8d7a70;
  --ys-hairline: #ecdccd;

  /* Dark/moody surfaces used for the nav, footer, hero overlay, and category section — warm-tinted
     near-black rather than a cold gray, so it reads as an extension of the terracotta/sage brand
     rather than a bolted-on second theme. */
  --ys-ink: #1e1a17;
  --ys-ink-light: #2c2621;
  --ys-on-dark: #f6efe7;
  --ys-on-dark-soft: #c7b9ab;
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ys-text);
  background: var(--ys-page-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, .ys-serif {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--ys-primary);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ---- Brand ---- */

.ys-navbar {
  background: #fffdfb;
  border-bottom: 1px solid var(--ys-hairline);
}

/* So jumping to an in-page anchor (e.g. #catalog-results after picking a category) doesn't
   land the target underneath the sticky nav. */
#catalog-results {
  scroll-margin-top: 130px;
}

.ys-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ys-text);
  font-weight: 600;
  letter-spacing: .01em;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
}

.ys-navbar .navbar-brand img {
  height: 76px;
  width: 76px;
  object-fit: cover;
  border-radius: 50%;
  background-color: #1c2949;
}

.ys-navbar .nav-link {
  color: var(--ys-text) !important;
  opacity: .85;
  font-weight: 500;
}

.ys-navbar .nav-link:hover {
  opacity: 1;
  color: var(--ys-primary) !important;
}

.ys-search-form {
  flex: 1 1 auto;
  max-width: 380px;
}

.ys-search-form .form-control {
  border-radius: 999px 0 0 999px;
  border: 1px solid var(--ys-hairline);
  border-right: none;
  background: var(--ys-cream);
  color: var(--ys-text);
}

.ys-search-form .form-control::placeholder {
  color: var(--ys-text-soft);
}

.ys-search-form .form-control:focus {
  background: #fff;
  color: var(--ys-text);
}

.ys-search-form .btn {
  border-radius: 0 999px 999px 0;
  background: var(--ys-sage);
  border-color: var(--ys-sage);
  color: #fff;
  font-weight: 500;
}

.ys-search-form .btn:hover {
  background: var(--ys-sage-dark);
  border-color: var(--ys-sage-dark);
}

.ys-cart-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--ys-text) !important;
}

.ys-cart-icon-wrap {
  position: relative;
  display: inline-flex;
}

.ys-cart-icon {
  width: 24px;
  height: 24px;
  transition: transform .2s ease;
}

.ys-cart-link:hover .ys-cart-icon {
  transform: scale(1.15) rotate(-8deg);
  color: var(--ys-primary);
}

.ys-cart-text {
  font-weight: 600;
}

.ys-cart-badge {
  position: absolute;
  top: -7px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  background: var(--ys-primary) !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px #fffdfb;
  animation: ys-badge-pop .3s ease;
}

@keyframes ys-badge-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ys-cart-icon,
  .ys-cart-badge {
    transition: none;
    animation: none;
  }
}

/* ---- Section headings & panels ---- */

.ys-section-title {
  font-weight: 600;
  color: var(--ys-text);
  position: relative;
  padding-bottom: .6rem;
  margin-bottom: 1.5rem;
}

.ys-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: var(--ys-primary);
  border-radius: 999px;
}

.ys-panel {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.75rem;
  box-shadow: 0 .5rem 1.5rem rgba(58, 44, 40, 0.07);
}

@media (max-width: 575.98px) {
  .ys-panel {
    padding: 1.1rem;
  }
}

/* ---- Filters ---- */

.ys-filter-form {
  background: #fff;
  border-radius: .8rem;
  padding: .4rem .6rem;
  box-shadow: 0 .2rem .6rem rgba(58, 44, 40, 0.07);
}

.ys-filter-form .form-select {
  width: 150px;
}

@media (max-width: 575.98px) {
  .ys-filter-form {
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .ys-filter-form .form-select {
    width: auto;
    flex: 1 1 0;
  }
}

/* ---- New Arrivals horizontal strip ---- */

.ys-scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.ys-scroll-item {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
}

@media (max-width: 575.98px) {
  .ys-scroll-item {
    width: 62vw;
  }
}

/* ---- Product cards ---- */

.ys-product-card {
  border: none;
  border-radius: 1.15rem;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  background: #fff;
  box-shadow: 0 .4rem 1rem rgba(58, 44, 40, 0.08);
}

.ys-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .9rem 1.8rem rgba(58, 44, 40, 0.14);
}

.ys-product-card .card-img-wrap {
  aspect-ratio: 4 / 5;
  background: var(--ys-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 575.98px) {
  .ys-product-card .card-body {
    padding: .75rem;
  }

  .ys-product-card .card-title {
    font-size: .9rem;
  }

  .ys-price {
    font-size: 1rem;
  }
}

.ys-product-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ys-product-card .card-body {
  padding: 1.1rem;
}

.ys-product-card .card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .2rem;
}

.ys-price {
  color: var(--ys-primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.ys-btn-primary {
  background: var(--ys-primary);
  border-color: var(--ys-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

.ys-btn-primary:hover {
  background: var(--ys-primary-dark);
  border-color: var(--ys-primary-dark);
  color: #fff;
}

/* ---- Variant swatches ---- */

.swatch-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem .35rem .5rem;
  border-radius: 999px;
  border: 1.5px solid var(--ys-hairline);
  background: #fff;
  color: var(--ys-text);
  font-size: .85rem;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.swatch-pill:hover {
  border-color: var(--ys-primary);
  color: var(--ys-text);
  text-decoration: none;
}

.swatch-pill-selected {
  border-color: var(--ys-primary);
  background: var(--ys-blush);
  font-weight: 600;
}

.swatch-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(58, 44, 40, 0.15);
  flex-shrink: 0;
}

/* ---- Top nav links ---- */

.ys-navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.ys-navbar-links-mobile {
  gap: 1rem;
  padding-bottom: .6rem;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.ys-nav-link {
  color: var(--ys-text);
  opacity: .75;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding-bottom: .2rem;
}

.ys-nav-link:hover {
  opacity: 1;
  color: var(--ys-primary);
}

.ys-nav-link.active {
  opacity: 1;
  color: var(--ys-primary);
  font-weight: 600;
}

.ys-nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ys-primary);
  border-radius: 999px;
}

/* ---- Home hero (full-bleed) ---- */

/* Break out of the page's Bootstrap .container (and its pt-4 top padding) so the hero and
   category section render truly edge-to-edge, matching a full-bleed hero banner. */
.ys-full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.ys-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 480px;
  margin-top: -1.5rem;
  background: var(--ys-cream);
  color: var(--ys-text);
}

.ys-hero-text {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
  .ys-hero-text {
    padding: 3rem 2rem 3rem 4rem;
  }
}

.ys-hero-media {
  flex: 1 1 420px;
  min-height: 320px;
  background: var(--ys-blush);
  overflow: hidden;
}

.ys-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ys-hero-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ys-primary-dark);
  margin-bottom: 1rem;
}

.ys-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ys-primary-dark);
  margin-bottom: .5rem;
}

.ys-hero-headline {
  font-size: 2.75rem;
  line-height: 1.15;
  color: var(--ys-text);
  margin-bottom: 1rem;
}

.ys-hero-subtext {
  color: var(--ys-text-soft);
  margin-bottom: 1.75rem;
  max-width: 42ch;
}

.ys-hero .ys-btn-hero {
  display: inline-block;
  align-self: flex-start;
  background: var(--ys-primary);
  color: #fff;
  border-radius: .4rem;
  padding: .8rem 1.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}

.ys-hero .ys-btn-hero:hover {
  background: var(--ys-primary-dark);
  color: #fff;
}

@media (max-width: 767.98px) {
  .ys-hero {
    min-height: 0;
  }

  .ys-hero-media {
    min-height: 260px;
    order: -1;
  }

  .ys-hero-headline {
    font-size: 1.9rem;
  }

  .ys-hero-text {
    padding: 2rem 1.25rem;
  }
}

/* ---- Trust bar ---- */

.ys-trust-bar {
  background: var(--ys-ink);
  color: var(--ys-on-dark-soft);
  padding: .9rem 0;
}

.ys-trust-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  overflow-x: auto;
  padding: 0 1.5rem;
  white-space: nowrap;
  scrollbar-width: none;
}

.ys-trust-bar-row::-webkit-scrollbar {
  display: none;
}

.ys-trust-bar-item {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ys-on-dark);
}

.ys-trust-bar-dot {
  color: var(--ys-primary);
  font-size: .75rem;
}

/* ---- Category tiles ---- */

/* Dark full-bleed wrapper used on Home, matching the hero's mood; Catalog reuses the same tiles
   on its normal light page background, so tile text color is set per-context below rather than
   baked into .ys-category-tile itself. */
.ys-category-section {
  background: var(--ys-ink);
  color: var(--ys-on-dark);
  padding: 3rem 0;
}

.ys-category-section .ys-section-title {
  color: var(--ys-on-dark);
}

.ys-category-tile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.ys-scroll-row.ys-category-tile-row {
  flex-wrap: nowrap;
}

.ys-category-tile {
  display: block;
  width: 150px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ys-text);
  transition: transform .15s ease;
}

/* On Home, the tile is nested in a .ys-scroll-item wrapper that sets its own inline width —
   let the tile fill that instead of using its own fixed width. */
.ys-scroll-item .ys-category-tile {
  width: 100%;
}

.ys-category-tile:hover {
  transform: translateY(-3px);
  color: var(--ys-text);
}

.ys-category-section .ys-category-tile {
  color: var(--ys-on-dark);
}

.ys-category-section .ys-category-tile:hover {
  color: var(--ys-on-dark);
}

.ys-category-tile-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: .6rem;
  overflow: hidden;
  background: var(--ys-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color .15s ease;
}

.ys-category-section .ys-category-tile-img {
  background: var(--ys-ink-light);
}

.ys-category-tile:hover .ys-category-tile-img {
  border-color: var(--ys-primary);
}

.ys-category-tile-selected .ys-category-tile-img {
  border-color: var(--ys-primary);
}

.ys-category-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ys-category-tile-fallback {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ys-primary);
}

.ys-category-tile-name {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  margin-top: .75rem;
}

.ys-category-tile-selected .ys-category-tile-name {
  color: var(--ys-primary);
}

.ys-category-tile-arrow {
  display: inline-block;
  margin-left: .3rem;
  transition: transform .15s ease;
}

.ys-category-tile:hover .ys-category-tile-arrow {
  transform: translateX(3px);
}

/* ---- Product Details main image ---- */

/* Bounded so a very tall/portrait source photo still previews fully within the
   viewport (no oversized scroll-to-see-it-all), while a wide/landscape photo
   still fills the column width — object-fit isn't used here since width/height
   are both left to "auto" and constrained only by max-width/max-height. */
.ys-main-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
}

.ys-main-image-wrap img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
}

/* ---- WhatsApp-only checkout notice ---- */

.ys-payment-note {
  font-size: .85rem;
  color: var(--ys-text-soft);
  background: var(--ys-blush);
  border-left: 3px solid var(--ys-sage);
  border-radius: .4rem;
  padding: .6rem .9rem;
  max-width: 42rem;
  margin-bottom: 0;
}

/* ---- Special Offers pricing ---- */

.ys-price-compare {
  color: var(--ys-text-soft);
  text-decoration: line-through;
  font-weight: 500;
  font-size: .95rem;
  margin-right: .4rem;
}

.ys-badge-offer {
  display: inline-block;
  background: var(--ys-sage);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
  margin-left: .5rem;
  vertical-align: middle;
}

/* ---- Home contact info ---- */

.ys-contact-card {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.75rem;
  box-shadow: 0 .4rem 1rem rgba(58, 44, 40, 0.08);
}

.ys-contact-card a {
  color: var(--ys-primary-dark);
}

/* ---- Footer ---- */

.ys-footer {
  background: var(--ys-ink);
  color: var(--ys-on-dark-soft);
  margin-top: 4rem;
  padding: 2rem 1rem;
}

.ys-footer a {
  color: var(--ys-on-dark);
  text-decoration: none;
  font-weight: 500;
}

.ys-footer a:hover {
  text-decoration: underline;
}

/* ---- Product image lightbox ---- */

.ys-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(30, 26, 23, 0.92);
}

.ys-lightbox.open {
  display: flex;
}

.ys-lightbox-viewport {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.ys-lightbox-viewport img {
  max-width: 100%;
  max-height: 100%;
  cursor: zoom-in;
  transition: max-width .15s ease, max-height .15s ease;
}

.ys-lightbox-viewport img.ys-zoomed-in {
  max-width: none;
  max-height: none;
  width: auto;
  cursor: zoom-out;
}

.ys-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--ys-on-dark);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- Product Details hover-to-zoom lens ---- */

.ys-zoom-container {
  position: relative;
}

.ys-zoom-lens {
  display: none;
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-color: var(--ys-blush);
  box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 5;
}
