:root {
  --sr-bg: #f6f4ee;
  --sr-surface: #ffffff;
  --sr-text: #1d1b17;
  --sr-muted: #5d584e;
  --sr-border: rgba(29, 27, 23, 0.14);
  --sr-dark: #121212;
  --sr-accent: #154230;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.shripech-body {
  background: var(--sr-bg);
  color: var(--sr-text);
  font-size: 16px;
  line-height: 1.6;
}

.top-notice {
  background: var(--sr-dark);
  color: #f7f4ec;
  letter-spacing: .04em;
}

.letter-wide {
  letter-spacing: .12em;
}

.icon-touch {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
}

.nav-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem 1rem;
  position: relative;
}

.nav-left {
  min-width: 0;
}

.nav-left-links .nav-link {
  padding: .375rem .4rem;
}

.brand-center {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  z-index: 3;
}

.site-logo-image {
  display: block;
  width: auto;
  height: clamp(30px, 3.2vw, 42px);
  max-width: min(240px, 56vw);
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.nav-right {
  justify-self: end;
}

.nav-mobile-panel {
  grid-column: 1 / -1;
  padding-top: .45rem;
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--sr-muted);
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--sr-text);
}

.hero-shell {
  background: linear-gradient(rgba(10, 10, 10, 0.52), rgba(10, 10, 10, 0.74)), var(--hero-image, none), #0a0a0a;
  background-size: cover;
  background-position: center;
  min-height: clamp(460px, 72vh, 860px);
}

.hero-shell h1 {
  font-size: clamp(2rem, 5.3vw, 4rem);
  letter-spacing: .01em;
}

.hero-shell p {
  max-width: 56ch;
}

.home-scroll-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .15rem .1rem .7rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.home-scroll-rail::-webkit-scrollbar {
  height: 8px;
}

.home-scroll-rail::-webkit-scrollbar-thumb {
  background: rgba(29, 27, 23, 0.26);
  border-radius: 999px;
}

.home-scroll-card {
  flex: 0 0 clamp(185px, 19vw, 255px);
  min-width: 0;
  scroll-snap-align: start;
}

.section-heading {
  font-size: clamp(1.125rem, 2.5vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.section-subtext {
  color: var(--sr-muted);
}

.collection-section {
  padding-block: clamp(2.8rem, 6vw, 5rem);
}

.shop-head-section {
  padding-bottom: 1.25rem !important;
}

.shop-subtitle {
  max-width: 46ch;
}

.category-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .48rem .95rem;
  border: 1px solid rgba(29, 27, 23, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--sr-text);
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .01em;
}

.category-pill:hover,
.category-pill:focus-visible {
  background: #fff;
  border-color: rgba(29, 27, 23, 0.56);
  color: var(--sr-text);
}

.category-pill.is-active {
  background: var(--sr-dark);
  border-color: var(--sr-dark);
  color: #fff;
}

.product-grid .col,
.product-row .col {
  min-width: 0;
}

.product-card {
  border: 1px solid var(--sr-border);
  border-radius: .75rem;
  background: var(--sr-surface);
  overflow: hidden;
  height: 100%;
}

.product-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ede9df;
}

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

.product-name {
  font-size: .9rem;
  letter-spacing: .05em;
  line-height: 1.32;
  min-height: calc(1.32em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-line {
  font-size: .98rem;
  color: var(--sr-text);
}

.price-compare {
  color: #86807a;
  text-decoration: line-through;
  font-size: .8rem;
}

.filter-shell {
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: .75rem;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .43rem .84rem;
  border: 1px solid rgba(29, 27, 23, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--sr-text);
  text-decoration: none;
  font-size: .87rem;
  line-height: 1;
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(29, 27, 23, 0.5);
  color: var(--sr-text);
  background: rgba(255, 255, 255, 0.62);
}

.filter-chip.is-active {
  background: var(--sr-dark);
  border-color: var(--sr-dark);
  color: #fff;
}

.filter-chip.dropdown-toggle::after {
  margin-left: .45rem;
}

.item-count-label {
  text-align: center;
  white-space: nowrap;
}

.sort-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
}

.sort-inline .form-select {
  width: min(100%, 220px);
}

.sort-label {
  color: var(--sr-text);
  letter-spacing: .02em;
  white-space: nowrap;
}

.dropdown-price-panel {
  min-width: 240px;
}

.shop-product-grid {
  margin-top: .35rem;
}

.product-info-wrap {
  padding: .85rem .85rem .9rem;
  gap: 0;
}

.product-submeta {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .045em;
  color: var(--sr-muted);
  min-height: 1.2em;
}

.product-view-link {
  display: inline-flex;
  align-items: center;
  color: var(--sr-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
}

.product-view-link:hover,
.product-view-link:focus-visible {
  color: var(--sr-text);
  text-decoration: underline;
}

.product-badge {
  position: absolute;
  top: .58rem;
  left: .58rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: .18rem .55rem;
  border-radius: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.product-badge--limited {
  background: #6f2030;
  color: #fff;
}

.product-badge--soldout {
  background: rgba(18, 18, 18, 0.9);
  color: #fff;
}

.footer-link {
  color: var(--sr-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--sr-text);
  text-decoration: underline;
}

.newsletter-status {
  color: var(--sr-accent);
}

.newsletter-status.is-error {
  color: #8a1f2e;
}

.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2.4vw, 1.5rem);
  bottom: calc(clamp(1rem, 2.4vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 56px;
  min-height: 56px;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #154230;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: 0 .7rem 1.8rem rgba(0, 0, 0, .18);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  background: #1c5a40;
  transform: translateY(-2px);
}

.whatsapp-float i {
  font-size: 1.45rem;
  line-height: 1;
}

.whatsapp-float span {
  line-height: 1;
}

.account-nav-link {
  border: 1px solid var(--sr-border);
  border-radius: .5rem;
  padding: .65rem .9rem;
  text-decoration: none;
  color: var(--sr-muted);
  font-weight: 600;
}

.account-nav-link.active,
.account-nav-link:hover {
  color: var(--sr-text);
  border-color: var(--sr-text);
}

.panel-card {
  border: 1px solid var(--sr-border);
  border-radius: .75rem;
  background: var(--sr-surface);
}

.placeholder-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6a645d;
  background: #ece8de;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.product-thumb {
  width: 84px;
  height: 84px;
  border: 1px solid var(--sr-border);
  background: #fff;
  border-radius: .45rem;
  overflow: hidden;
  padding: 0;
}

.product-thumb.is-active {
  border-color: var(--sr-text);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-3x4 {
  --bs-aspect-ratio: calc(4 / 3 * 100%);
}

.official-product-main {
  border-radius: .55rem;
  overflow: hidden;
  background: #f4f1e9;
}

.product-main-image {
  object-fit: contain;
  background: #f4f1e9;
  object-position: center;
  display: block;
}

.variant-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.variant-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: .5rem .8rem;
  border: 1px solid var(--sr-border);
  border-radius: .45rem;
  background: #fff;
  cursor: pointer;
}

.variant-chip input:checked + span {
  background: var(--sr-dark);
  color: #fff;
  border-color: var(--sr-dark);
}

.stock-note {
  font-size: .9rem;
  color: var(--sr-muted);
  border: 1px solid var(--sr-border);
  border-radius: .55rem;
  background: #f9f7f1;
  padding: .6rem .7rem;
}

.product-info-sticky {
  position: sticky;
  top: 98px;
}

.product-thumb-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: .55rem;
  overflow-x: auto;
  padding-bottom: .2rem;
}

.product-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.product-assurance span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .3rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--sr-border);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sr-muted);
  background: rgba(255, 255, 255, 0.72);
}

.cart-choice-modal {
  border: 1px solid var(--sr-border);
  border-radius: .8rem;
  background: var(--sr-surface);
}

.empty-state {
  border: 1px dashed var(--sr-border);
  border-radius: .75rem;
  background: #fdfcf9;
  padding: 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .form-control,
  .form-select,
  .form-check-input,
  .nav-link,
  a,
  .product-card {
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .8rem 1.4rem rgba(0, 0, 0, .08);
  }
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.skeleton {
  position: relative;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.48) 38%, rgba(255, 255, 255, 0) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
  pointer-events: none;
}

.skeleton.is-loaded::after {
  animation: none;
  opacity: 0;
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 991.98px) {
  .nav-grid {
    grid-template-columns: auto 1fr auto;
  }

  .brand-center {
    position: static;
    transform: none;
    left: auto;
    justify-self: center;
    margin-inline: auto;
  }

  .site-logo-image {
    height: clamp(28px, 5.6vw, 38px);
    max-width: min(180px, 50vw);
  }

  .nav-right {
    gap: .4rem;
  }

  .nav-right .icon-touch {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .nav-mobile-panel .navbar-nav {
    padding-top: .5rem;
    border-top: 1px solid var(--sr-border);
  }

  .item-count-label {
    text-align: left;
  }

  .sort-inline {
    justify-content: flex-start;
  }

  .sort-inline .form-select {
    width: 100%;
  }

  .shop-head-section {
    padding-bottom: 1rem !important;
  }

  .filter-shell {
    margin-bottom: 1rem !important;
  }

  .product-info-wrap {
    padding: .78rem .72rem .8rem;
  }

  .category-pill {
    min-height: 40px;
    padding: .42rem .82rem;
    font-size: .86rem;
  }

  .product-info-sticky {
    position: static;
  }

  .home-scroll-card {
    flex-basis: clamp(170px, 45vw, 230px);
  }
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
  }

  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .sort-inline {
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
  }

  .sort-label {
    padding-left: .15rem;
  }

  .filter-chip-row {
    gap: .45rem;
  }

  .filter-chip {
    min-height: 40px;
    padding: .42rem .78rem;
  }

  .shop-product-grid {
    margin-top: .1rem;
  }
}

@media (max-width: 359.98px) {
  .shop-product-grid.row.row-cols-2 > * {
    width: 50%;
    flex: 0 0 auto;
  }

  .shop-product-grid {
    --bs-gutter-x: .55rem;
    --bs-gutter-y: .9rem;
  }

  .product-info-wrap {
    padding: .65rem .58rem .7rem;
  }

  .product-name {
    font-size: .78rem;
  }

  .product-submeta,
  .product-view-link {
    font-size: .7rem;
  }

  .product-card .btn-sm {
    --bs-btn-padding-x: .45rem;
    --bs-btn-font-size: .76rem;
  }

  .home-scroll-card {
    flex-basis: min(86vw, 265px);
  }
}

@media (min-width: 992px) {
  .brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-mobile-panel,
  .nav-mobile-panel.show,
  .nav-mobile-panel.collapsing {
    display: none !important;
  }
}
