body{
  overflow-x: hidden;
}

#navigation-header {
  transform: translateY(0);
}

#navigation-header.slide-down {
  animation: slideDown 0.3s ease-in-out forwards;
}

#navigation-header.slide-up {
  animation: slideUp 0.3s ease-in-out forwards;
}

.header-dynamic-bg-color {
  background-color: var(--header-background-color, var(--color-primary-50)) !important;
}

.header-dynamic-text-color {
  color: var(--header-text-color, var(--gray-400));
}

.footer-dynamic-bg-color {
  background-color: var(--footer-background-color);
}

.footer-dynamic-text-color {
  color: var(--footer-text-color, var(--gray-600)) !important;
}

.footer-dynamic-title-text-color {
  color: var(--footer-text-color, rgba(18,21,53,var(--tw-text-opacity))) !important;
}

.footer-bottom-dynamic-bg-color {
  background-color: var(--footer-bottom-background-color, var(--color-primary-50));
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

.offer-dialog {
  --body-spacing: 0;
}

.offer-dialog::part(overlay) {
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.5);
}

.shine-effect-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
}

.shine-effect-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 10;
}

.shine-effect-wrapper:hover::before {
  left: 100%;
}

.btn-outline {
  border: 2px solid var(--color-primary-600);
  background-color: transparent;
  color: var(--color-primary-600) !important;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--color-primary-600);
  color: white !important;
}

.btn-white {
  border: 2px solid white;
  background-color: white;
  color: black !important;
  transition: all 0.3s ease;
}

.mobile-search-container .search-form__wrapper {
  display: block !important;
  width: 100% !important;
}
.mobile-search-container input {
  width: 100% !important;
}

.mobile-search-container .search-category {
  height: auto !important;
}

.hero-slide-1 {
  height: 510px !important;
}

.hero-slide-1 img {
  height: 100%;
  width: 100%;
  object-fit: cover !important;
}

/* Mobile media query for hero slide */
@media (max-width: 768px) {
  .hero-slide-1 {
    height: 400px !important;
  }
}

.reels-video-dialog {
  --sl-z-index-dialog: 10000;
  --width: 90vw;
}

.reels-video-dialog::part(panel) {
  background-color: transparent;
  border: 0;
  box-shadow: none;
}

.reels-video-dialog::part(overlay) {
  background-color: rgba(0, 0, 0, 0.9);
}

.reels-video-dialog::part(close-button) {
  color: white;
  font-size: 2.25rem;
}

.reels-video-dialog::part(close-button__base) {
  border-radius: 100px;
  transition: all 0.3s ease;
}

.reels-video-dialog::part(close-button__base):hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.reels-video-dialog::part(body) {
  overflow: hidden;
  height: 90vh;
}

.list-view .product-card__badge {
  position: absolute;
  top: 10px;
}

.loader {
  width: 25px;
  height: 25px;
  font-size: 24px; /* size of loader */
}

/* while add-to-cart loader visible, hide the cart icon/label */
.add-to-cart-progress:not(.hidden) ~ .add-to-cart-icon,
.buy-now-progress:not(.hidden) ~ .buy-now-icon {
  display: none !important;
}

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

.badge-name-product-card {
  border-radius: 10px !important;
  right: 10px !important;
  top: 10px !important;
  z-index: 40 !important;
}

.home-section {
  margin-top: 40px !important;
  z-index: 20;
}

/* Product card image slider (first 3 images, only when the product has 2+) */
.product-card__slides {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 0.375rem;
}
.product-card__slides::-webkit-scrollbar {
  display: none;
}
.product-card__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.product-card__slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}
.product-card__slider-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.product-card__slider-dot.is-active {
  width: 14px;
  background: #fff;
}
.product-card__slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.product-card__slider-arrow--prev {
  inset-inline-start: 8px;
}
.product-card__slider-arrow--next {
  inset-inline-end: 8px;
}
[dir="rtl"] .product-card__slider-arrow i {
  display: inline-block;
  transform: scaleX(-1);
}
@media (hover: hover) and (pointer: fine) {
  .product-card__slider-arrow {
    display: flex;
  }
  .product-card__image-wrapper:hover .product-card__slider-arrow {
    opacity: 1;
  }
  .product-card__slider-arrow[disabled] {
    visibility: hidden;
  }
}

.loyalty-points-products-section {
  font-size: 1rem !important;
  padding: 5px 10px !important;
  border-radius: 33px !important;
}
.loyalty-points-products-section .loyalty-points-rewards-logo {
  margin: 0 5px !important;
}

/* START PRODUCT VARIANTS AND CUSTOM INPUTS */
#product-variants-options .form-group label span {
  font-weight: 400;
}

#product-variants-options .form-group ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-right: 1px;
}

#product-variants-options .form-group ul li {
  border: 1px solid #d1d5db;
  padding: 2px 14px;
  cursor: pointer;
  font-weight: 500;
  opacity: 0.9;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-radius: 5px;
}

#product-variants-options .form-group ul li img {
  width: 80px;
  height: auto;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
}

#product-variants-options .form-group ul li.active,
#product-variants-options .form-group ul li:hover {
  border-color: var(--color-primary-500);
  color: var(--color-primary-500);
  border: solid 1px;
  opacity: 1;
}

#product-variants-options .form-group ul.ul-images li {
  padding: 0;
  flex-direction: column-reverse;
}

#product-variants-options .form-group ul.ul-images li span {
  padding: 4px;
  line-height: 20px;
}

#product-variants-options .form-group ul.ul-colors li {
  position: relative;
  width: 24px;
  height: 24px;
  border-color: #fff;
  border-width: 2px;
  border-radius: 50%;
  padding: 0;
  box-shadow:
    rgba(0, 0, 0, 0.02) 0 1px 3px 0,
    rgb(27 31 35 / 21%) 0 0 0 1px;
  opacity: 1;
}

#product-variants-options .form-group ul.ul-colors li.active {
  box-shadow: 0 0 0 1px var(--tp-text-body);
}

#product-variants-options .form-group label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 3px;
}

#product-variants-options .form-group {
  margin: 20px 0;
}

/* Product Options - Custom User Fields (markup: vitrin:products/custom_input_fields.jinja, CSS only) */
.product-options {
  --opt-accent: var(--primary-color, #111827);
  --opt-border: #e5e7eb;
  --opt-border-strong: #d1d5db;
  --opt-muted: #6b7280;
  --opt-radius: 10px;
  --opt-tint: color-mix(in srgb, var(--opt-accent) 6%, #fff);
}

.product-options .border-product {
  margin: 8px 0 20px !important;
  border-top: 1px solid var(--opt-border);
}

/* Fields are spaced, not divided */
.product-options .custom-field-separator {
  height: 0;
  margin: 0 0 20px;
  background: none;
}

.product-options .form-group {
  margin-bottom: 0;
}

/* Field labels: every type */
.product-options .form-group label.input-label,
.product-options #product-custom-user-dropdown-fields .form-group label,
.product-options [option-id] > label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tp-heading-primary, #111827);
  margin-bottom: 10px;
}

.product-options .text-color-primary {
  color: inherit;
}

.product-options [option-id] > label small {
  font-size: 13px;
  font-weight: 400;
  color: var(--opt-muted);
}

/* Field price "( + 10 SAR )" -> "+ 10 SAR" pill */
.product-options label.input-label > span:nth-child(2):nth-last-child(4),
.product-options label.input-label > span:nth-child(5):last-child,
.product-options .custom-checkbox-label > span:nth-child(2) > span:first-child,
.product-options .custom-checkbox-label > span:nth-child(2) > span:last-child {
  display: none;
}

.product-options label.input-label > span:nth-child(3):nth-last-child(3) {
  margin-inline-start: 2px;
}

.product-options label.input-label > span:nth-child(3):nth-last-child(3),
.product-options label.input-label > span:nth-child(4):nth-last-child(2) {
  font-size: 12px;
  font-weight: 600;
  color: var(--opt-accent);
  background: var(--opt-tint);
  padding: 2px 0;
}

.product-options label.input-label > span:nth-child(3):nth-last-child(3) {
  padding-inline-start: 8px;
  border-start-start-radius: 999px;
  border-end-start-radius: 999px;
  margin-inline-end: -6px;
}

.product-options label.input-label > span:nth-child(4):nth-last-child(2) {
  padding-inline-end: 8px;
  padding-inline-start: 3px;
  border-start-end-radius: 999px;
  border-end-end-radius: 999px;
}

/* Text, number, date, time, textarea, select */
.product-options .form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--opt-border-strong);
  border-radius: var(--opt-radius);
  background-color: #fff;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.product-options .form-control:hover {
  border-color: #9ca3af;
}

.product-options .form-control:focus,
.product-options .form-control:focus-within {
  outline: none;
  border-color: var(--opt-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--opt-accent) 15%, transparent);
}

.product-options input.form-control::placeholder,
.product-options textarea.form-control::placeholder {
  color: #9ca3af;
}

.product-options select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 40px;
  cursor: pointer;
}

[dir="ltr"] .product-options select.form-control {
  background-position: right 14px center;
  padding-left: 16px;
  padding-right: 40px;
}

/* Checkbox choices: selectable rows */
.product-options [option-id] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-options [option-id] > label {
  margin-bottom: 2px;
}

.product-options [option-id] .form-group > label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--opt-border-strong);
  border-radius: var(--opt-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.product-options [option-id] .form-group > label:hover {
  border-color: #9ca3af;
}

.product-options [option-id] .form-group > label:has(input:checked) {
  border-color: var(--opt-accent);
  background: var(--opt-tint);
}

.product-options .checkbox-container {
  position: relative;
  flex: none;
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.product-options .checkbox-container input.custom-checkbox-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.product-options .custom-checkmark {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--opt-border-strong);
  border-radius: 6px;
  background: #fff center / 14px no-repeat;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  pointer-events: none;
}

.product-options .custom-checkbox-input:checked + .custom-checkmark {
  border-color: var(--opt-accent);
  background-color: var(--opt-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.product-options .custom-checkbox-input:focus-visible + .custom-checkmark {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--opt-accent) 25%, transparent);
}

.product-options .custom-checkbox-input:disabled + .custom-checkmark {
  background-color: #f3f4f6;
}

.product-options .custom-checkbox-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}

.product-options .custom-checkbox-label > span:nth-child(2) {
  font-size: 13px;
  font-weight: 600;
  color: var(--opt-muted);
  white-space: nowrap;
}

.product-options [option-id] .form-group > label:has(input:checked) .custom-checkbox-label > span:nth-child(2) {
  color: var(--opt-accent);
}

/* File / image upload: dashed drop area, the whole area opens the picker */
.product-options .form-control:has(.file-label) {
  position: relative;
  padding: 0;
  border-style: dashed;
  background: #fafafa;
}

.product-options .form-control:has(.file-label):hover {
  border-color: var(--opt-accent);
  background: var(--opt-tint);
}

.product-options .file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--opt-muted);
  cursor: pointer;
}

.product-options .file-label [id^="file-name-"] {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-options .file-label [id^="file-preview-"] img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
}

.product-options .file-label button[id^="file-upload-"] {
  order: -1;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 0;
  color: transparent;
  border: 0;
  border-radius: 8px;
  background: var(--opt-tint) center / 18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}

.product-options .file-label button[id^="file-upload-"]::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-options .file-label [id^="file-delete-"] {
  position: relative;
  z-index: 1;
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--opt-border);
  cursor: pointer;
}

.product-options .file-label [id^="file-delete-"] .icon-close::before {
  content: "\00d7";
  font-size: 18px;
  line-height: 1;
  color: #111827;
}

/* END PRODUCT VARIANTS AND CUSTOM INPUTS */

/* START PRODUCT FILTERS STYLES */
.product-attributes {
  width: 100% !important;
  padding: 0 !important;
}
.products-filters-attribute-form {
  position: relative;
}
.product-attributes .form-group {
  margin-bottom: 10px;
}

.product-attributes h6,
.product-attributes .form-group span {
  font-size: 1rem !important;
  margin-bottom: 5px !important;
  font-weight: unset !important;
  color: unset;
  font-family: unset;
}

.product-attributes .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.product-attributes .attribute-name {
  font-weight: 500;
  font-size: 20px;
}

.product-attributes .attribute {
  all: unset;
  background-color: unset;
}

.product-attributes .attribute-group {
  padding: 12px;
  border-radius: 8px;
}

.product-attributes .attribute-header {
  align-items: center;
  padding: 0;
  margin-bottom: 10px;
}

.product-attributes .filter-row {
  padding: 0;
  gap: 10px;
  align-items: center;
  margin-bottom: 3px;
}

.product-attributes .attribute-label {
  padding: 0;
  margin: 0;
  gap: 7px;
  font-size: 15px;
  opacity: 0.8;
}

.product-attributes .attribute-label .filter-count {
  display: none;
}

.product-attributes .filter-row .checkbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--color-primary-400);
}

.product-attributes .products-filters-container {
  all: unset !important;
}

.product-attributes .attribute-color {
  padding: 0;
  width: 20px;
  height: 20px;
  box-shadow:
    rgba(0, 0, 0, 0.02) 0 1px 3px 0,
    rgb(27 31 35 / 8%) 0 0 0 1px;
}

.product-attributes .attribute-more {
  bottom: 0;
  justify-content: flex-start;
}

.product-attributes .attribute-body.attribute-price-body .form-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.product-attributes .attribute-body.attribute-price-body .form-row .form-group {
  width: 100%;
  flex: unset;
}

.product-attributes
  .attribute-body.attribute-price-body
  .form-row
  .form-control {
  padding: 8px 15px;
  font-size: 17px;
  border-color: #d1d5db;
  border-radius: 10px;
  color: #000;
  direction: rtl;
}

.product-attributes .attribute-footer {
  gap: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  bottom: -60px;
}

.product-attributes .attribute-footer .highlight-button {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  background: var(--color-primary-500);
  color: var(--color-primary-500);
  border: 1px solid var(--color-primary-100);
  border-radius: 110px;
}

.product-attributes .attribute-footer .filter-form-clear {
  border-bottom: 1px solid;
  padding-bottom: 7px;
  font-size: 17px;
  color: var(--color-gray-400);
}
/* END PRODUCT FILTERS STYLES */

/* START CART PAGE */
.loyalty-points-section {
  border-radius: 10px !important;
  font-size: 1rem !important;
  padding: 8px;
}

.loyalty-points-section .flex-shrink-0 {
  text-align: end !important;
}

/* Cart page: Zid's v2 product list (vitrin:v2/cart/*) + naseej summary. Markup in templates/cart.jinja,
   behaviour in assets/common/cart-page.js. */
.naseej-cart-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-foreground, #171717);
  margin: 0;
}

.naseej-cart-ship {
  background: #f5f4f2;
  border-radius: 14px;
  padding: 14px 16px;
}
.naseej-cart-ship__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-600);
  font-size: 18px;
}
.naseej-cart-ship.is-done .naseej-cart-ship__icon {
  background: #16a34a;
  color: #fff;
}
.naseej-cart-ship__bar {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e7e5e1;
  overflow: hidden;
}
.naseej-cart-ship__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary-600);
  transition: width 0.4s ease;
}

.naseej-cart-cols {
  margin-top: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
  font-size: 12px;
  color: #737373;
  gap: 24px;
}

/* product rows */
.naseej-cart-list {
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
}
.naseej-cart-list.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.naseej-cart-list > .cart-product-item,
.naseej-cart-list > .cart-bundle {
  padding: 20px 0;
  border-bottom: 1px solid #ececec;
}
.naseej-cart-list > .cart-product-item + p,
.naseej-cart-list > p {
  margin-top: 8px !important;
}
.naseej-cart-list > .cart-bundle {
  padding: 0;
  margin: 16px 0;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
}
.naseej-cart-list .cart-bundle .cart-product-item {
  padding: 0;
  border: 0;
}
/* abaya photos are portrait: 3:4 thumbnails instead of v2's square */
.naseej-cart-list .cart-product-item > a:first-child {
  width: 80px;
  height: 107px;
  border-radius: 10px;
  background: #f5f4f2;
}
@media (min-width: 1024px) {
  .naseej-cart-list .cart-product-item > a:first-child {
    width: 96px;
    height: 128px;
  }
}
.naseej-cart-list .cart-product-item a.line-clamp-2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.naseej-cart-list .cart-product-item .text-destructive.line-through {
  color: #a3a3a3;
}
.naseej-cart-list [data-wishlist-btn].is-wished {
  color: #e11d48;
}
.naseej-cart-list [data-wishlist-btn].is-wished svg path {
  fill: currentColor;
}
.naseej-cart-list [data-action="product-remove"]:hover {
  color: #dc2626;
}
.naseej-cart-list .text-small {
  font-size: 12px;
}

/* Zid's v2 cart cards use Tailwind utilities (layered in tailwind.css). theme.css carries an old unlayered Tailwind
   build (.flex, .hidden, .flex-col ...) and unlayered CSS always beats layered CSS, so `flex lg:hidden` stayed visible
   on desktop. Re-declared here, scoped to the list, so the v2 layout works. theme.css also has an old
   !important spacing scale (.w-48 = 3rem, .gap-2 = 2px, .mt-4 = 4px), hence !important here. */
.naseej-cart-list .flex { display:flex !important; }
.naseej-cart-list .inline-flex { display:inline-flex !important; }
.naseej-cart-list .block { display:block !important; }
.naseej-cart-list .hidden { display:none !important; }
.naseej-cart-list .flex-col { flex-direction:column !important; }
.naseej-cart-list .flex-1 { flex:1 1 0% !important; }
.naseej-cart-list .min-w-0 { min-width:0 !important; }
.naseej-cart-list .shrink-0 { flex-shrink:0 !important; }
.naseej-cart-list .items-center { align-items:center !important; }
.naseej-cart-list .items-start { align-items:flex-start !important; }
.naseej-cart-list .items-end { align-items:flex-end !important; }
.naseej-cart-list .justify-between { justify-content:space-between !important; }
.naseej-cart-list .justify-center { justify-content:center !important; }
.naseej-cart-list .justify-end { justify-content:flex-end !important; }
.naseej-cart-list .gap-1 { gap:.25rem !important; }
.naseej-cart-list .gap-2 { gap:.5rem !important; }
.naseej-cart-list .gap-2\.5 { gap:.625rem !important; }
.naseej-cart-list .gap-4 { gap:1rem !important; }
.naseej-cart-list .size-3 { width:.75rem !important;height:.75rem !important; }
.naseej-cart-list .size-4 { width:1rem !important;height:1rem !important; }
.naseej-cart-list .size-6 { width:1.5rem !important;height:1.5rem !important; }
.naseej-cart-list .size-8 { width:2rem !important;height:2rem !important; }
.naseej-cart-list .size-10 { width:2.5rem !important;height:2.5rem !important; }
.naseej-cart-list .size-full { width:100% !important;height:100% !important; }
.naseej-cart-list .w-full { width:100% !important; }
.naseej-cart-list .w-48 { width:12rem !important; }
.naseej-cart-list .text-xs { font-size:.75rem !important;line-height:1rem !important; }
.naseej-cart-list .text-sm { font-size:.875rem !important;line-height:1.25rem !important; }
.naseej-cart-list .font-medium { font-weight:500 !important; }
.naseej-cart-list .line-through { text-decoration-line:line-through !important; }
.naseej-cart-list .underline { text-decoration-line:underline !important; }
.naseej-cart-list .truncate { overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important; }
.naseej-cart-list .line-clamp-2 { overflow:hidden !important;display:-webkit-box !important;-webkit-box-orient:vertical !important;-webkit-line-clamp:2 !important; }
.naseej-cart-list .object-cover { object-fit:cover !important; }
.naseej-cart-list .overflow-hidden { overflow:hidden !important; }
.naseej-cart-list .rounded { border-radius:.25rem !important; }
.naseej-cart-list .text-foreground { color:#171717 !important; }
.naseej-cart-list .text-muted { color:#737373 !important; }
.naseej-cart-list .text-muted-foreground { color:#737373 !important; }
.naseej-cart-list .text-destructive { color:#dc2626 !important; }
.naseej-cart-list .text-success { color:#16a34a !important; }
.naseej-cart-list .text-accent { color:var(--color-primary-600) !important; }
.naseej-cart-list .bg-secondary { background-color:#f5f4f2 !important; }
.naseej-cart-list .mt-1 { margin-top:.25rem !important; }
.naseej-cart-list .mt-4 { margin-top:1rem !important; }
.naseej-cart-list .-mt-2 { margin-top:-.5rem !important; }
.naseej-cart-list .p-2 { padding:.5rem !important; }
.naseej-cart-list .pb-2 { padding-bottom:.5rem !important; }
.naseej-cart-list .ps-\[88px\] { padding-inline-start:88px !important; }
.naseej-cart-list .p-4 { padding:1rem !important; }
.naseej-cart-list .px-2 { padding-inline:.5rem !important; }
.naseej-cart-list .px-4 { padding-inline:1rem !important; }
.naseej-cart-list .py-1 { padding-block:.25rem !important; }
.naseej-cart-list .py-3 { padding-block:.75rem !important; }
.naseej-cart-list a.text-foreground { color: #171717 !important; }
.naseej-cart-list .hover\:underline:hover { text-decoration-line: underline !important; }
.naseej-cart-list .hover\:bg-secondary:hover { background-color: #f5f4f2 !important; }
@media (min-width: 1024px) {
  .naseej-cart-list .lg\:hidden { display:none !important; }
  .naseej-cart-list .lg\:flex { display:flex !important; }
  .naseej-cart-list .lg\:block { display:block !important; }
  .naseej-cart-list .lg\:inline { display:inline !important; }
  .naseej-cart-list .lg\:flex-row { flex-direction:row !important; }
  .naseej-cart-list .lg\:flex-col { flex-direction:column !important; }
  .naseej-cart-list .lg\:flex-none { flex:none !important; }
  .naseej-cart-list .lg\:items-start { align-items:flex-start !important; }
  .naseej-cart-list .lg\:justify-start { justify-content:flex-start !important; }
  .naseej-cart-list .lg\:gap-2 { gap:.5rem !important; }
  .naseej-cart-list .lg\:gap-6 { gap:1.5rem !important; }
  .naseej-cart-list .lg\:w-48 { width:12rem !important; }
  .naseej-cart-list .lg\:w-full { width:100% !important; }
  .naseej-cart-list .lg\:mt-0 { margin-top:0 !important; }
  .naseej-cart-list .lg\:mt-1 { margin-top:.25rem !important; }
  .naseej-cart-list .lg\:p-3 { padding:.75rem !important; }
  .naseej-cart-list .lg\:ps-0 { padding-inline-start:0 !important; }
}

/* prices: one line, clear hierarchy (sale price, old price, per item) */
.naseej-cart-list .cart-product-item p {
  white-space: nowrap;
}
.naseej-cart-list .cart-product-item p.font-medium {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4;
}
.naseej-cart-list .cart-product-item p.line-through {
  font-size: 13px !important;
  line-height: 1.4;
}
.naseej-cart-list .cart-product-item p.text-xs {
  font-size: 12px !important;
  color: #737373 !important;
}
.naseej-cart-list .cart-product-item .riyal-svg {
  margin-inline-start: 2px;
}

/* v2 quantity input */
.naseej-cart .qty-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 4px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.naseej-cart .qty-input:hover,
.naseej-cart .qty-input:focus-within {
  border-color: #171717;
}
.naseej-cart .qty-input-full {
  width: 100%;
  max-width: 132px;
}
.naseej-cart .qty-input-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  color: #171717;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.naseej-cart .qty-input-btn:hover {
  background: #f5f4f2;
}
.naseej-cart .qty-input-btn:disabled {
  color: #c4c4c4;
  background: transparent;
  cursor: not-allowed;
}
.naseej-cart .qty-input-btn[hidden] {
  display: none;
}
.naseej-cart .qty-input-btn svg {
  width: 16px;
  height: 16px;
}
.naseej-cart .qty-input-field {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  outline: none;
  -moz-appearance: textfield;
}
.naseej-cart .qty-input-field::-webkit-outer-spin-button,
.naseej-cart .qty-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.naseej-cart .form-input {
  height: 42px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 0 12px;
}

.naseej-cart-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
}
.naseej-cart-back:hover {
  text-decoration: underline;
}

/* summary */
.naseej-cart-summary {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 24px;
}
@media (min-width: 1024px) {
  .naseej-cart-summary {
    padding: 28px;
  }
}
.naseej-cart-coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 6px 0 6px;
  padding-inline-start: 14px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.naseej-cart-coupon:focus-within {
  border-color: #171717;
}
.naseej-cart-coupon > .ph {
  color: #737373;
  font-size: 18px;
}
.naseej-cart-coupon input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}
.naseej-cart-coupon.is-applied {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.naseej-cart-coupon.is-applied > .ph,
.naseej-cart-coupon.is-applied input {
  color: #15803d;
  font-weight: 600;
}
.naseej-cart-coupon__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  background: #171717;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.naseej-cart-coupon__btn:hover {
  opacity: 0.85;
}
.naseej-cart-coupon__btn.is-remove {
  background: transparent;
  color: #dc2626;
}
.naseej-cart-coupon.is-busy .naseej-cart-coupon__btn {
  pointer-events: none;
  opacity: 0.6;
}

.naseej-cart-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--color-primary-600);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease;
}
.naseej-cart-cta:hover {
  background: var(--color-primary-700);
}
.naseej-cart-cta.is-disabled {
  background: #a3a3a3;
  cursor: not-allowed;
}
.naseej-cart-gift {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 1px dashed #d4d4d4;
  border-radius: 999px;
  color: #404040;
  font-weight: 500;
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.naseej-cart-gift:hover {
  border-color: #db2777;
  color: #db2777;
}
.naseej-cart-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: #737373;
}
.naseej-cart-secure svg {
  width: 16px;
  height: 16px;
  color: #16a34a;
}

/* mobile checkout bar */
.naseej-cart-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}
.naseej-cart-bar .naseej-cart-cta {
  min-height: 48px;
  width: auto;
}
@media (max-width: 1023.98px) {
  .naseej-cart {
    padding-bottom: 72px;
  }
}


.cart-section:hover,
.menu-section li {
  cursor: pointer;
}

.cart-section .cart-icon-section {
  display: grid;
  grid-gap: 15px;
}

.cart-section .cart-icon-section * {
  grid-column: 1;
  grid-row: 1;
}

.cart-total-price {
  font-size: 1.286rem;
  line-height: 33px;
  color: #fff;
}

/* END CART PAGE */


/* CLS Prevention - Reserve space for dynamic content */
.hero-slider-wrapper {
  min-height: 400px;
  contain: layout;
}

.hero-slider {
  min-height: 510px;
}

@media (max-width: 768px) {
  .hero-slider-wrapper,
  .hero-slider {
    min-height: 400px;
  }
}

/* Prevent font swap layout shifts */
body, html {
  font-display: swap;
}

/* Reserve space for slick slider initialization */
.slick-slider {
  contain: layout style;
}

/* Prevent CLS from offer cards */
.offer-card__thumb {
  min-width: 200px;
  min-height: 200px;
}

@media (min-width: 768px) {
  .offer-card__thumb {
    min-width: 250px;
    min-height: 250px;
  }
}

/* Prevent CLS from product cards */
.product-card__image-wrapper {
  aspect-ratio: 300/210;
  contain: layout;
}

/* Optimize image loading */
img {
  content-visibility: auto;
}

/* Reduce paint operations */
.slick-track {
  will-change: transform;
}


  #splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    transition: opacity 0.15s;
    opacity: 1;
    width: 100vw;
    height: 100vh;
  }
  .splash-center {
    text-align: center;
  }
  .splash-logo {
    margin-bottom: 2rem;
  }
  .splash-logo-circle img{
    height: 100px;
  }
  .splash-logo-icon {
    color: white;
    font-size: 3.5rem;
  }
  .splash-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(1.25rem);
  }
  .splash-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(1.25rem);
  }

  .delay-0 {
    animation-delay: 0s;
  }
  .delay-150 {
    animation-delay: 0.15s;
  }
  .delay-300 {
    animation-delay: 0.3s;
  }
  .splash-loading-text {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    opacity: 0;
    transform: translateY(1.25rem);
  }
  @keyframes bounce-slow {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px);
    }
  }
  @keyframes fade-in-up {
    from {
      opacity: 0;
      transform: translateY(1.25rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes pulse-dot {
    0%,
    100% {
      opacity: 0.3;
      transform: scale(0.8);
    }
    50% {
      opacity: 1;
      transform: scale(1.2);
    }
  }
  .animate-fade-in-up {
    animation: fade-in-up 0.3s ease-out forwards;
    animation-delay: 0.05s;
  }
  .animate-fade-in-up-delay {
    animation: fade-in-up 0.3s ease-out forwards;
    animation-delay: 0.1s;
  }
  .animate-fade-in-up-delay-2 {
    animation: fade-in-up 0.3s ease-out forwards;
    animation-delay: 0.2s;
  }
  #splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .feature-item__thumb img {
    height: 130px;
    object-fit: contain;
  }

  .countdown {
    direction: ltr;
  }


/* START MARQUEE */
  .marquee {
  --gap: 1rem;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}

.marquee__content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
}

.marquee__content li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

/* Pause animation when reduced-motion is set */
@media (prefers-reduced-motion: reduce) {
  .marquee__content {
    animation-play-state: paused !important;
  }
}

/* Enable animation */
.enable-animation .marquee__content {
  animation: scroll var(--marquee-duration, 10s) linear infinite;
}

/* Reverse animation */
.marquee--reverse .marquee__content {
  animation-direction: reverse;
}

/* Pause on hover */
.marquee--hover-pause:hover .marquee__content {
  animation-play-state: paused;
}

/* Attempt to size parent based on content. Keep in mind that the parent width is equal to both content containers that stretch to fill the parent. */
.marquee--fit-content {
  max-width: fit-content;
}

/* A fit-content sizing fix: Absolute position the duplicate container. This will set the size of the parent wrapper to a single child container. Shout out to Olavi's article that had this solution 👏 @link: https://olavihaapala.fi/2021/02/23/modern-marquee.html  */
.marquee--pos-absolute .marquee__content:last-child {
  position: absolute;
  top: 0;
  left: 0;
}

/* Enable position absolute animation on the duplicate content (last-child) */
.enable-animation .marquee--pos-absolute .marquee__content:last-child {
  animation-name: scroll-abs;
}

@keyframes scroll-abs {
  from {
    transform: translateX(calc(100% + var(--gap)));
  }
  to {
    transform: translateX(0);
  }
}

/* END MARQUEE */

.section-heading h5 {
  color: var(--color-primary-500);
}

.pswp__bg {
  opacity: 0.85 !important;
}

/* ─── Preorder campaign ────────────────────────────────── */

/* Badge – pill using theme primary */
.preorder-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 300;
  line-height: 1.4;
  background-color: var(--primary-color);
  /* text on the primary colour: it was forced dark (rgb 18 21 53), invisible on a dark primary */
  color: #fff !important;
  white-space: nowrap;
  margin-bottom: 8px;
}
/* ============================================================
   Fixed header style: hero slider full viewport
   ============================================================ */
body.header-fixed-active .hero-slider-wrapper {
  margin-bottom: 0 !important;
}

body.header-fixed-active .hero-slider-wrapper > .md\:container-lg,
body.header-fixed-active .hero-slider-wrapper > .mx-auto,
body.header-fixed-active .hero-slider-wrapper > div {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.header-fixed-active .hero-slider-wrapper .hero-slider-height {
  aspect-ratio: auto !important;
  height: 100dvh !important;
}

body.header-fixed-active .hero-slider,
body.header-fixed-active .hero-slider .slick-list,
body.header-fixed-active .hero-slider .slick-track,
body.header-fixed-active .hero-slider .slick-slide,
body.header-fixed-active .hero-slider .slick-slide > div {
  height: 100% !important;
}

body.header-fixed-active .hero-slide-1 {
  height: 100vh !important;
  height: 100dvh !important;
  width: 100% !important;
}

body.header-fixed-active .hero-slide-1 > a,
body.header-fixed-active .hero-slide-1 > a > img,
body.header-fixed-active .hero-slide-1 img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* ============================================================
   Fixed header: settings-driven bg/text + scrolled state
   ============================================================ */
#fixed-header-wrapper .fixed-header-bar {
  background-color: var(--header-background-color, transparent);
  color: var(--header-text-color, inherit);
}

#fixed-header-wrapper .fixed-header-bar i,
#fixed-header-wrapper .fixed-header-bar a,
#fixed-header-wrapper .fixed-header-bar button {
  color: var(--header-text-color, white);
}

#fixed-header-wrapper.scrolled .fixed-header-bar {
  background-color: var(--header-background-color-scrolled, var(--header-background-color, #fff));
  color: var(--header-text-color-scrolled, var(--header-text-color, #111));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#fixed-header-wrapper.scrolled .fixed-header-bar i,
#fixed-header-wrapper.scrolled .fixed-header-bar a,
#fixed-header-wrapper.scrolled .fixed-header-bar button {
  color: var(--header-text-color-scrolled, var(--header-text-color, #111));
}

/* Mobile drawer collapsible submenu */
.mobile-drawer details > summary {
  list-style: none;
}
.mobile-drawer details > summary::-webkit-details-marker {
  display: none;
}
.mobile-drawer details > summary .ph-caret-down {
  transition: transform 0.2s ease;
}
.mobile-drawer details[open] > summary .ph-caret-down {
  transform: rotate(180deg);
}

/* Pin product-card CTA to bottom regardless of title/content height */
.product-card__cta-wrapper {
  margin-top: auto;
}

/* Reserve 2 lines for the title so short titles don't leave a gap above the CTA */
.product-card .title {
  min-height: 3.5rem;
}

/* Custom-color CTAs: keep hover feedback even though inline style wins over class */
.product-card__cta--custom {
  transition: filter 0.2s ease, transform 0.2s ease;
}
.product-card__cta--custom:hover {
  filter: brightness(0.92);
}
.product-card__cta--custom:active {
  filter: brightness(0.85);
}
.product-card__cta-icon {
  height: 1.1em;
  width: auto;
  object-fit: contain;
  display: inline-block;
}

/* Product card on phones: taller image, tighter text, one-line CTA (utilities carry !important, hence the overrides) */
@media (max-width: 767px) {
  .product-card {
    padding: 6px !important;
    border-radius: 14px !important;
  }
  .product-card__image-wrapper {
    height: auto !important;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px !important;
  }
  .product-card__image-wrapper img,
  .product-card__slides {
    border-radius: 10px !important;
  }
  .product-card__details {
    padding: 8px 2px 0 !important;
  }
  .product-card .title {
    font-size: 0.875rem !important;
    line-height: 1.45 !important;
    min-height: 2.9em;
    max-height: none !important;
    margin: 0 !important;
  }
  .product-card__meta {
    margin-top: 6px !important;
  }
  .product-card__price {
    height: auto !important;
    min-height: 1.5rem;
  }
  .product-card__price-current {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: inherit;
    gap: 0 6px;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
  }
  .product-card__price-old {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
  }
  .product-card__stats:not(:has(p)) {
    display: none;
  }
  .product-card__stats .text-xs {
    font-size: 0.6875rem;
    font-weight: 500;
  }
  .product-card__cta-wrapper .product-card__cta {
    height: 40px;
    margin-top: 10px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
    overflow: hidden;
  }
  .product-card__cta i {
    flex-shrink: 0;
    font-size: 1.05rem;
  }
  .product-card__cta-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-card__slider-dots {
    bottom: 8px;
    padding: 3px 5px;
    gap: 4px;
  }
  .product-card__slider-dot {
    width: 5px;
    height: 5px;
  }
  .product-card__slider-dot.is-active {
    width: 12px;
  }
}

.product-details__thumb{
  border-radius: 10px;
  overflow: hidden;
}
.product-payment .tabby-product-widget{
  margin-top:0 !important;
}

.product-payment > .tamara-product-widget,
.product-payment > .tabby-product-widget {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.hero-slider .slick-list {
  padding:0 !important;
}
/* slick sliders before slick runs (window.slickPreinit in layout.jinja sets --spv-now / --spv-pad-now from the
   slider's own config): one row at the final slide width, hidden until initialized (hidden elements are not layout
   shifts), revealed after 3s in case slick never runs */
.slick-preinit:not(.slick-initialized) {
  display: flex;
  overflow: hidden;
  visibility: hidden;
  animation: slick-preinit-reveal 0s 3s forwards;
  padding-inline: var(--spv-pad-now, 0px);
}
.slick-preinit:not(.slick-initialized) > * {
  flex: 0 0 calc(100% / var(--spv-now, 1));
  min-width: 0;
}
@keyframes slick-preinit-reveal {
  to { visibility: visible; }
}
/* PDP gallery (fade, one slide): only the first photo before slick runs, not a stack of every photo */
#product-images-slick:not(.slick-initialized) > :not(:first-child) {
  display: none;
}
/* hero slider (LCP): stays visible, only the first slide before slick runs, not a stack of every slide */
.hero-slider:not(.slick-initialized) > :not(:first-child) {
  display: none;
}

/* ---- Discount badge (theme setting product_card_show_discount), both card styles ---- */
.product-card__discount {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 35;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary-color, rgb(18 21 53));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ---- Product card: editorial style (product_card_style = editorial) ---- */
.product-card--editorial {
  --pce-ink: rgb(18 21 53);
  gap: 10px;
}
.product-card--editorial .pce-media {
  overflow: hidden;
  border-radius: 4px;
  background: rgb(18 21 53 / 0.04);
}
.product-card--editorial .pce-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.8s ease;
}
.product-card--editorial .pce-img--contain { object-fit: contain; }
.product-card--editorial .pce-img--hover { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .product-card--editorial:hover .pce-img--hover { opacity: 1; }
  .product-card--editorial:hover .pce-img:not(.pce-img--hover) { transform: scale(1.03); }
}
.product-card--editorial .pce-badges {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.product-card--editorial .pce-badges .product-card__discount { position: static; }
.product-card--editorial .pce-badge--muted {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--pce-ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.product-card--editorial .pce-preorder {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 10px;
  z-index: 30;
}
.product-card--editorial .pce-preorder .preorder-badge {
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgb(255 255 255 / 0.92);
  color: var(--pce-ink) !important;
  backdrop-filter: blur(6px);
}
.product-card--editorial .pce-wishlist {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 40;
}
.product-card--editorial .pce-round,
.product-card--editorial .pce-fab {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--pce-ink);
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.product-card--editorial .pce-round:hover { background: var(--pce-ink); color: white; }
.product-card--editorial .pce-fab {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  z-index: 40;
  width: 40px;
  height: 40px;
}
.product-card--editorial .pce-fab .product-card__cta-icon,
.product-card--editorial .pce-bar .product-card__cta-icon { height: 1.1em; width: auto; }
.product-card--editorial .pce-bar {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.94);
  color: var(--pce-ink);
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}
.product-card--editorial .pce-bar:hover { background: var(--pce-ink); color: white; }
.product-card--editorial .pce-bar .product-card__cta-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .product-card--editorial .pce-fab { display: none; }
  .product-card--editorial .pce-bar { display: flex; }
  .product-card--editorial:hover .pce-bar,
  .product-card--editorial .pce-bar:focus-visible,
  .product-card--editorial:focus-within .pce-bar { opacity: 1; transform: none; }
  .product-card--editorial:hover .pce-preorder { opacity: 0; }
}
.product-card--editorial .pce-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}
.product-card--editorial .pce-body--center { align-items: center; text-align: center; }
.product-card--editorial .pce-body--end { align-items: flex-end; text-align: end; }
.product-card--editorial .pce-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card--editorial .pce-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card--editorial .pce-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  height: auto;
}
.product-card--editorial .pce-body--center .pce-price { justify-content: center; }
.product-card--editorial .pce-price-now { color: var(--pce-ink); font-size: 1rem; font-weight: 700; }
.product-card--editorial .pce-price-old { color: rgb(18 21 53 / 0.45); font-size: 0.8125rem; text-decoration: line-through; }
.product-card--editorial .pce-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0;
  color: rgb(18 21 53 / 0.55);
  font-size: 0.75rem;
}
@media (max-width: 767px) {
  .product-card--editorial .pce-name { font-size: 0.875rem; }
  .product-card--editorial .pce-price-now { font-size: 0.9375rem; }
  .product-card--editorial .pce-badges, .product-card--editorial .product-card__discount { top: 8px; inset-inline-start: 8px; }
  .product-card--editorial .pce-wishlist { top: 8px; inset-inline-end: 8px; }
  .product-card--editorial .pce-round { width: 32px; height: 32px; font-size: 1rem; }
}
@media (max-width: 767px) {
  .product-card.product-card--editorial { padding: 0 !important; border-radius: 0 !important; }
  .product-card--editorial .pce-media.product-card__image-wrapper { border-radius: 4px !important; }
}
/* Vitrin's product badge pins itself top/right inline; in the editorial card it sits bottom-start, clear of discount + wishlist */
.product-card--editorial .badge-name-product-card {
  top: auto !important;
  bottom: 10px !important;
  right: auto !important;
  left: auto !important;
  inset-inline-start: 10px !important;
  margin: 0 !important;
  z-index: 36 !important;
  font-size: 11px !important;
}
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .product-card--editorial:hover .badge-name-product-card { opacity: 0; }
}
.product-card--editorial .pce-bundle { inset-inline-end: 10px; }
