@charset "UTF-8";

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

html {
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

body {
  direction: var(--theme-direction);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

p, div, span {
  font-weight: 400;
}

strong, b {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

a.disabled {
  pointer-events: none;
  opacity: 0.4;
}

input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--c-primary-soft);
  color: var(--c-ink);
}

.main-content {
  display: block;
  min-height: 60vh;
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container) !important;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  .container {
    padding-inline: 24px;
  }
}

.spacer {
  flex-grow: 1;
}

.splide {
  direction: ltr;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   Icons
   ========================================================= */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: currentColor;
  font-size: 20px;
  vertical-align: middle;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}


[dir=rtl] .icon--flip {
  transform: scaleX(-1);
}

[hidden],
.hidden {
  display: none !important;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-btn);
  color: inherit;
  position: relative;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--c-primary) 9%, transparent);
  color: var(--c-primary);
}

.icon-btn .icon {
  width: 22px;
  height: 22px;
}

/* =========================================================
   Buttons
   ========================================================= */
.yc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--control-h);
  padding: 12px 22px;
  border: 1px solid var(--c-primary);
  border-radius: var(--r-btn);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.yc-btn span,
.yc-btn > * {
  color: inherit;
  font-weight: inherit;
}

.yc-btn:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}

.yc-btn:disabled,
.yc-btn[data-type=loading]:disabled {
  background: var(--c-line-strong);
  border-color: var(--c-line-strong);
  color: var(--c-bg);
  cursor: not-allowed;
}

.yc-btn--outline {
  background: var(--c-bg);
  color: var(--c-primary);
  border-color: var(--c-primary-line);
}

.yc-btn--outline:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}

.yc-btn--dark {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-bg);
}

.yc-btn--dark:hover {
  background: color-mix(in srgb, var(--c-ink) 85%, var(--c-bg));
  border-color: transparent;
}

.yc-btn--lg {
  min-height: 54px;
  font-size: 16px;
  font-weight: 700;
}

.yc-btn--sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
}

.yc-btn--auto {
  width: auto;
}

.yc-btn .icon {
  width: 18px;
  height: 18px;
}

.btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.yc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--control-h);
  padding: 0 18px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-btn);
  background: var(--c-bg);
  color: var(--c-ink);
  font-weight: 600;
  white-space: nowrap;
}

.yc-btn-secondary:hover {
  border-color: var(--c-hover-line);
  box-shadow: var(--hover-ring);
  color: var(--c-primary);
}

.yc-btn-secondary .spinner {
  width: 18px;
  height: 18px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   Form controls
   ========================================================= */
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 6px;
}

input:not([type=radio]):not([type=checkbox]):not([type=file]),
select,
textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 10px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: var(--hover-t);
}

@media (hover: hover) {
  input:not([type=radio]):not([type=checkbox]):not([type=file]):hover:not(:focus):not(.error):not([aria-invalid="true"]),
  select:hover:not(:focus):not(.error),
  textarea:hover:not(:focus):not(.error):not([aria-invalid="true"]) {
    border-color: var(--c-hover-line);
  }
}

/* Prevent iOS Safari from zooming into fields (needs >= 16px). */
@media (max-width: 767px) {
  input:not([type=radio]):not([type=checkbox]):not([type=file]),
  select,
  textarea {
    font-size: 16px;
  }
}

select {
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  cursor: pointer;
}

[dir=ltr] select {
  background-position: right 14px center;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--c-subtle);
  opacity: 1;
}

input:not([type=radio]):not([type=checkbox]):focus,
select:focus,
textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}

input.error,
textarea.error,
select.error,
fieldset.error {
  border-color: var(--c-danger) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-danger) 12%, transparent) !important;
}

.validation-error {
  color: var(--c-danger);
  font-size: 13px;
  font-weight: 500;
}

.validation-error:empty {
  display: none;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* =========================================================
   Section backgrounds
   ========================================================= */
.yc-section--soft {
  padding-block: 40px;
  background: var(--c-surface);
}

@media (min-width: 768px) {
  .yc-section--soft {
    padding-block: 64px;
  }
}

/* =========================================================
   Section heading
   ========================================================= */
.yc-section {
  margin-block: 40px;
}

@media (min-width: 768px) {
  .yc-section {
    margin-block: 64px;
  }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 28px;
  }
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
}

.yc-section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

@media (min-width: 768px) {
  .yc-section-title {
    font-size: 28px;
  }
}

.section-head__icon {
  width: 24px;
  height: 24px;
  margin-inline-end: 6px;
  color: var(--c-accent);
  vertical-align: -3px;
}

.section-head__sub {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 15px;
}

/* =========================================================
   Badges, tags, prices
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--c-accent);
  color: var(--c-on-accent);
}

.badge--primary {
  background: var(--c-primary);
  color: var(--c-on-primary);
}

.badge--soft {
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.badge--success {
  background: color-mix(in srgb, var(--c-success) 12%, var(--c-bg));
  color: var(--c-success);
}

.badge .icon {
  width: 14px;
  height: 14px;
}

.tag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: 12px;
  font-weight: 700;
}

.price {
  color: var(--c-price-now, #16a34a);
  font-weight: 700;
}

.price-compare,
del {
  color: var(--c-price-old, #dc2626);
  font-weight: 400;
  text-decoration: line-through;
}

/* =========================================================
   Product card (shared by every product grid & slider)
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-mobile, 2), minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(var(--cols-desktop, 4), minmax(0, 1fr));
    gap: 24px;
  }
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.p-card {
  transition: var(--hover-t);
}

.p-card:hover {
  border-color: var(--c-hover-line);
  box-shadow: var(--shadow-md);
}

.p-card__media {
  position: relative;
  display: block;
  aspect-ratio: var(--product-image-ratio, 1 / 1);
  background: var(--c-surface);
  overflow: hidden;
}

.p-card__media .p-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--product-image-fit, cover);
  object-position: center;
  transition: opacity .24s ease, transform .35s ease;
}

/* Theme-editor placeholders use a plain img rather than the product-card image classes. */
.p-card__media > img:not(.p-card__image),
.p-card__media > svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--product-image-fit, cover);
  object-position: center;
}

.p-card__image--primary { opacity: 1; }
.p-card__image--hover { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .p-card__media.has-hover-image:hover .p-card__image--primary { opacity: 0; }
  .p-card__media.has-hover-image:hover .p-card__image--hover { opacity: 1; }
  .p-card__media:hover .p-card__image { transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  .p-card__media .p-card__image { transition: none; }
}

.p-card__badges {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.p-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
  padding: 12px;
}

@media (min-width: 768px) {
  .p-card__body {
    padding: 16px;
    gap: 10px;
  }
}

.p-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-ink);
}

@media (min-width: 768px) {
  .p-card__title {
    font-size: 15px;
  }
}

.p-card__title:hover {
  color: var(--c-primary);
}

.p-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: auto;
}

.p-card__prices .price {
  font-size: 16px;
}

@media (min-width: 768px) {
  .p-card__prices .price {
    font-size: 18px;
  }
}

.p-card__prices .price-compare {
  font-size: 13px;
}

.p-card__cta {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 14px;
}

.p-card--placeholder {
  cursor: default;
}

.p-card--placeholder:hover {
  box-shadow: none;
}

.p-card--placeholder .p-card__media img {
  object-fit: contain;
  padding: 14%;
}

/* =========================================================
   Variant options
   ========================================================= */
.yc-options-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yc-options-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-bg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.yc-options-item,
.yc-image-options-list .yc-image-options-item,
.yc-colors-select .color-item,
.yc-radio .yc-radio-buttons,
.dropdown-input .dropbtn,
.yc-upload {
  transition: var(--hover-t);
}

.yc-options-item:hover,
.yc-image-options-list .yc-image-options-item:hover,
.yc-colors-select .color-item:hover,
.yc-radio .yc-radio-buttons:hover,
.dropdown-input .dropbtn:hover {
  border-color: var(--c-hover-line);
  box-shadow: var(--hover-ring);
}

.yc-options-item.active {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--c-primary);
}

.yc-image-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yc-image-options-list .yc-image-options-item {
  width: 72px;
  height: 72px;
  padding: 3px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-bg);
  cursor: pointer;
}

.yc-image-options-list .yc-image-options-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.yc-image-options-list .yc-image-options-item.active {
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 1px var(--c-primary);
}

.yc-colors-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.yc-colors-select .color-item {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  cursor: pointer;
}

.yc-colors-select .color-item .preview {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.yc-colors-select .color-item .value {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.yc-colors-select .color-item.active {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 1px var(--c-primary);
}

.yc-radio {
  display: grid;
  gap: 8px;
}

.yc-radio .yc-radio-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r);
  cursor: pointer;
}

.yc-radio .yc-radio-buttons input[type=radio] {
  display: none;
}

.yc-radio .yc-radio-buttons .checkmark {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: 50%;
  background: var(--c-bg);
}

.yc-radio .yc-radio-buttons input[type=radio]:checked + .checkmark {
  border-color: var(--c-primary);
}

.yc-radio .yc-radio-buttons input[type=radio]:checked + .checkmark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--c-primary);
}

.yc-radio .yc-radio-buttons.active {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}

.yc-radio .yc-radio-buttons .label-text {
  font-size: 15px;
  font-weight: 500;
}

.dropdown-input {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.dropdown-input .dropbtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--control-h);
  padding: 10px 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-bg);
  font-size: 14px;
}

.dropdown-input .dropbtn span {
  font-weight: 600;
}

.dropdown-input .dropbtn .icon {
  color: var(--c-muted);
  pointer-events: none;
}

.dropdown-input .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  max-height: 280px;
  overflow-y: auto;
}

.dropdown-input .dropdown-content li,
.dropdown-input .dropdown-content a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  cursor: pointer;
}

.dropdown-input .dropdown-content li:hover,
.dropdown-input .dropdown-content a:hover {
  background: var(--c-surface);
}

.dropdown-input .dropdown-content li.selected {
  color: var(--c-primary);
  font-weight: 700;
}

.dropdown-input .show {
  display: block;
}

.yc-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1.5px dashed var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.yc-upload:hover {
  border-color: var(--c-hover-line);
  color: var(--c-primary);
}

.yc-upload input {
  display: none;
}

.yc-upload .upload-icon {
  width: 26px;
  height: 26px;
}

/* =========================================================
   Feedback: spinner, toast, progress, overlay
   ========================================================= */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.yc-alert {
  position: fixed;
  top: 16px;
  inset-inline: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin-inline: auto;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  opacity: 0;
}

.yc-alert.show {
  visibility: visible;
  opacity: 1;
}

.yc-alert .alert-msg {
  color: inherit;
  font-weight: 500;
}

.yc-alert .icon {
  width: 22px;
  height: 22px;
}

.yc-alert.success .icon {
  color: #4ADE80;
}

.yc-alert.error .icon {
  color: #F87171;
}

.yc-alert.warning .icon {
  color: #FBBF24;
}

.progress-bar {
  height: 8px;
  background: var(--c-line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar .progress {
  height: 100%;
  width: 0;
  background: var(--c-accent);
  border-radius: 999px;
}

.global-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.5);
  visibility: hidden;
  opacity: 0;
}

/* =========================================================
   Modal (checkout popup, reviews)
   ========================================================= */
.yc-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.yc-modal[hidden] {
  display: none;
}

.yc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.yc-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--c-bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .yc-modal {
    align-items: center;
    padding: 24px;
  }

  .yc-modal__panel {
    max-width: 520px;
    max-height: 88vh;
    border-radius: var(--r-lg);
  }
}

.yc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--c-line);
}

[dir=rtl] .yc-modal__head {
  padding: 14px 20px 14px 16px;
}

.yc-modal__title {
  font-size: 17px;
  font-weight: 700;
}

.yc-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  overscroll-behavior: contain;
}

.yc-modal__grabber {
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: var(--c-line-strong);
}

@media (min-width: 768px) {
  .yc-modal__grabber {
    display: none;
  }
}

body.has-modal {
  overflow: hidden;
}

/* =========================================================
   Stars
   ========================================================= */
.yc-reviews-stars {
  --percent: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
}

.yc-reviews-stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, var(--c-rating, var(--c-primary)) var(--percent), var(--c-line-strong) var(--percent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[dir=rtl] .yc-reviews-stars::before {
  background: linear-gradient(270deg, var(--c-rating, var(--c-primary)) var(--percent), var(--c-line-strong) var(--percent));
  -webkit-background-clip: text;
  background-clip: text;
}

/* =========================================================
   Breadcrumbs & empty states
   ========================================================= */
.breadcrumbs-container .breadcrumbs-listings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 20px 0 8px;
  font-size: 13px;
  color: var(--c-subtle);
}

.breadcrumbs-container .breadcrumbs-listings a:hover {
  color: var(--c-primary);
}

.breadcrumbs-container .breadcrumbs-listings .third-listing,
.breadcrumbs-container .breadcrumbs-listings .second-listing:last-child {
  color: var(--c-ink);
  font-weight: 600;
}

.breadcrumbs-container .breadcrumbs-listings .arrow-item .icon {
  width: 14px;
  height: 14px;
}

.empty-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 0 64px;
  text-align: center;
}

.empty-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
}

.empty-result__icon .icon {
  width: 32px;
  height: 32px;
}

.empty-result .title {
  font-size: 22px;
  font-weight: 700;
}

.empty-result .desciption,
.empty-result .description {
  color: var(--c-muted);
}

.empty-result .yc-btn {
  width: auto;
  margin-top: 12px;
}

/* =========================================================
   Splide (sliders) — unified arrows & dots
   ========================================================= */
.splide__arrow {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid var(--c-line) !important;
  border-radius: 50% !important;
  background: var(--c-bg) !important;
  box-shadow: var(--shadow-sm);
  opacity: 1 !important;
}

.splide__arrow svg {
  width: 14px !important;
  height: 14px !important;
  fill: var(--c-ink) !important;
}

.splide__arrow {
  transition: var(--hover-t);
}

.splide__arrow:hover:not(:disabled) {
  border-color: var(--c-hover-line) !important;
  box-shadow: var(--hover-ring);
}

.splide__arrow:disabled {
  opacity: 0.4 !important;
}

.splide__pagination__page {
  width: 8px !important;
  height: 8px !important;
  margin: 3px !important;
  background: color-mix(in srgb, var(--c-ink) 22%, transparent) !important;
  opacity: 1 !important;
  transform: none !important;
}

.splide__pagination__page.is-active {
  width: 22px !important;
  border-radius: 999px !important;
  background: var(--c-primary) !important;
}

/* Spacing for the sticky buy bar on mobile */
@media (max-width: 767px) {
  body.has-sticky-buy {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  body.has-sticky-buy.sticky-buy-all {
    padding-bottom: 88px;
  }
}

/* =========================================================
   Unified hover — every bordered control shares the same
   border tint (--c-hover-line), soft ring and timing.
   ========================================================= */
[data-bundle],
.subcategory-chip,
.yc-pagination-wrapper .paginate-btn,
.yc-pagination-wrapper .paginate-btn-prev,
.yc-pagination-wrapper .paginate-btn-next,
.yc-btn-secondary,
.quantity-field,
.collection-card,
.icon-btn {
  transition: var(--hover-t);
}

.quantity-field:hover,
.ec-form__quantity .quantity-field:hover {
  border-color: var(--c-hover-line);
}

/* =========================================================
   Empty-state media placeholders (snippets/placeholder.liquid)
   ========================================================= */
.yc-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #F1F2F4;
  color: #D5D8DD;
}

.yc-ph__icon {
  width: clamp(30px, 26%, 72px);
  height: auto;
  fill: currentColor;
}

.yc-ph--hero {
  position: absolute;
  inset: 0;
  background: #E6E8EB;
  color: #D0D3D8;
}

.yc-ph--hero .yc-ph__icon { width: clamp(64px, 9vw, 120px); }

.p-card__media > .yc-ph,
.main-media > .yc-ph {
  position: absolute;
  inset: 0;
}

.collection-card__media .yc-ph { border-radius: inherit; }
.subcategory-chip .yc-ph { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; }
.subcategory-chip .yc-ph .yc-ph__icon { width: 18px; }

/* Compact "view all" link under product grids */
.featured-products__more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.featured-products__more-btn {
  width: auto;
  min-height: 38px;
  padding: 7px 16px;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
}

.featured-products__more-btn .icon { width: 15px; height: 15px; }

@media (max-width: 767px) {
  .featured-products__more { margin-top: 16px; }
  .featured-products__more-btn { min-height: 34px; padding: 6px 14px; font-size: 13px; }
}

/* =========================================================
   WhatsApp — floating button + product order button
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: calc(var(--wa-offset, 20px) + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wa-size, 56px);
  height: var(--wa-size, 56px);
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .18s ease, bottom .2s ease;
}

.wa-float svg { width: 54%; height: 54%; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.wa-float--right { right: 16px; }
.wa-float--left { left: 16px; }

.wa-float--pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #25D366;
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: .5; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 767px) {
  .wa-float--desktop { display: none; }
  /* Stay above the sticky order bar on product pages */
  body:has(.sticky-buy.is-visible) .wa-float { bottom: calc(var(--wa-offset, 20px) + 76px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 768px) {
  .wa-float--mobile { display: none; }
}

html.has-ec-modal .wa-float,
body.has-modal .wa-float { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wa-float--pulse::before { animation: none; }
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #25D366;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: var(--hover-t);
}

.wa-btn svg { flex: 0 0 20px; width: 20px; height: 20px; }
.wa-btn--solid { background: #25D366; color: #fff; }
.wa-btn--solid:hover { background: #1FB855; border-color: #1FB855; }
.wa-btn--outline { background: var(--c-bg); color: #128C7E; }
.wa-btn--outline:hover { background: color-mix(in srgb, #25D366 8%, var(--c-bg)); box-shadow: 0 0 0 3px color-mix(in srgb, #25D366 12%, transparent); }
.wa-btn-note { margin: 0; color: var(--c-muted); font-size: 13px; }

.product-block--whatsapp_contact { margin-top: -6px; }
