.container {
  margin: 0 auto;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
  row-gap: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .product-card--horizontal .product-card {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
  }

  .product-card--horizontal .product-card__image {
    width: 160px;
    flex-shrink: 0;
  }

  .product-card--horizontal .product-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }

  .product-card--horizontal .product-card__countdown {
    display: none;
  }

  .product-card--horizontal .btn {
    width: 100%;
  }

  .product-card--horizontal h5 {
    font-size: 17px;
  }

  .product-card--horizontal span {
    font-size: 16px;
  }

  .product-card--horizontal .main-image {
    height: 195px !important;
  }
}

.product-card--horizontal .main-image {
  object-fit: contain;
  margin-top: 10px;
}

.product-discount-badge {
  background-color: #cb0233;
  color: white;
  line-height: 22px;
  font-size: var(--text-sm);
  padding-inline: calc(var(--spacing) * 2);
  border-radius: calc(infinity * 1px);
}

.footer-text-color {
  color: var(--footer-text-color, #caf8e4) !important;
}

.footer-bg-color {
  background-color: var(--footer-background-color, var(--color-primary-500));
}

@keyframes custom-spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: custom-spin 1s linear infinite !important;
}

.quantity-btn {
  cursor: pointer;
}

button {
  cursor: pointer;
}

/* 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 */

/* 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 */

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

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

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


.quantity-input{
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* START PRODUCT OPTIONS (icon/color swatches) */
.product-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-options__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-options__label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text, var(--color-gray-900));
}

/* Base pill item (text choices). Icon/color modifiers below override it. */
.product-options__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-gray-300, #d1d5db);
  border-radius: var(--radius-lg, 8px);
  background: #fff;
  color: var(--text, var(--color-gray-900));
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.product-options__item:hover {
  border-color: var(--text, var(--color-gray-900));
}

.product-options__item.active {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: #fff;
}

/* Force the icon/color option list into a wrapping horizontal row.
   Platform markup sets inline display:flex; we override direction/wrap/gap. */
.product-options__list {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.product-options__item--icon {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

/* Show the name label under the avatar for icon options.
   Overrides the .--sr visually-hidden rule for these items only. */
.product-options__item--icon .product-options__item-text {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  color: var(--text, inherit);
  max-width: 64px;
}

.product-options__item--icon:hover {
  transform: translateY(-2px);
}

.product-options__item--icon:focus-visible {
  outline: none;
}

.product-options__item--icon:focus-visible .product-options__thumb {
  box-shadow: 0 0 0 2px var(--primary);
}

.product-options__item--color {
  padding: 1px;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.product-options__item--color:hover {
  transform: translateY(-2px);
}

.product-options__swatch {
  display: block;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  box-sizing: border-box;
}

.product-options__thumb {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  object-fit: cover;
  box-sizing: border-box;
}

/* Swatch/thumb items keep their own background when active;
   undo the filled-pill treatment from .product-options__item.active. */
.product-options__item--color.active {
  background: transparent;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 2px var(--color-primary-500);
}

.product-options__item--icon.active {
  background: transparent;
  color: var(--text, inherit);
  transform: translateY(-2px);
}

.product-options__item--icon.active .product-options__thumb {
  box-shadow: 0 0 0 2px var(--color-primary-500);
}

/* Hidden text label; the choice is also exposed via title/aria/alt. */
.product-options__item-text--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dropdown style option */
.product-options__select {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 2.5rem;
  border: 1px solid var(--color-gray-300, #d1d5db);
  border-radius: var(--radius-lg, 8px);
  background: #fff;
  color: var(--text, var(--color-gray-900));
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  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='%23545352' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

[dir="rtl"] .product-options__select {
  background-position: left 0.75rem center;
  padding-right: 1rem;
  padding-left: 2.5rem;
}

.product-options__select:hover {
  border-color: var(--text, var(--color-gray-900));
}

.product-options__select:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--color-primary-500) 20%, transparent);
}
/* END PRODUCT OPTIONS (icon/color swatches) */
