@import "tailwindcss";
@import "../../../node_modules/intl-tel-input/build/css/intlTelInput.css";
@import "../../../node_modules/swiper/swiper-bundle.css";
@import "../../../node_modules/photoswipe/dist/photoswipe.css";

@layer base {
  .iti {
    --iti-path-flags-1x: url("/assets/flags-9d6d818a.webp");
    --iti-path-flags-2x: url("/assets/flags@2x-889044c0.webp");

    display: block;
  }
}

@theme {
  --color-brand-primary: var(--brand-primary, #4F46E5);
  --color-brand-secondary: var(--brand-secondary, #7C3AED);
  --color-brand-background: var(--brand-background, #FFFFFF);
  --color-brand-text: var(--brand-text, #111827);
  --radius-brand: var(--brand-radius, 0.5rem);
  --my-grid-cols: 6;
}


/* width */
::-webkit-scrollbar {
  width: 10px;
  height: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: var(--brand-primary, #4F46E5);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.storefront-header {
  background-color: var(--brand-primary);
  color: #fff;
  padding: 1rem 2rem;
}

.storefront-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.storefront-logo {
  max-height: 2.5rem;
  width: auto;
}

.storefront-name {
  font-size: 1.25rem;
  font-weight: 700;
}



.scroll-container {
    width: 100%;
    font-family: Montserrat;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    color: #fff;
}

.scroll-container .scroll {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: fit-content;
    white-space: nowrap;
    animation: loop 5s linear infinite;
}

.fade {
    width: 100%;
    position: absolute;
    inset: 0;
    pointer-event: none;
}

@keyframes loop {
    0% {transform: translateX(0%);}
    100% {transform: translateX(-50%);}
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* Rich text content styles (Action Text / Lexxy output) */
.lexxy-content,
.trix-content {
  h1 { font-size: 1.75rem; font-weight: 700; margin-block: 0.75em; }
  h2 { font-size: 1.5rem; font-weight: 600; margin-block: 0.75em; }
  h3 { font-size: 1.25rem; font-weight: 600; margin-block: 0.5em; }
  h4 { font-size: 1.125rem; font-weight: 600; margin-block: 0.5em; }
  p { margin-block: 0.5em; }
  ol { list-style: decimal; padding-left: 1.5em; margin-block: 0.5em; }
  ul { list-style: disc; padding-left: 1.5em; margin-block: 0.5em; }
  li { margin-block: 0.25em; }
  blockquote { border-left: 3px solid #d1d5db; padding-left: 1em; margin-block: 0.5em; color: #6b7280; }
  pre { background: #f3f4f6; padding: 0.75em 1em; border-radius: 0.375rem; overflow-x: auto; margin-block: 0.5em; font-family: monospace; }
  a { color: #2563eb; text-decoration: underline; }
  u { text-decoration: underline; }
  s, del, strike { text-decoration: line-through; }
  strong { font-weight: 700; }
  em { font-style: italic; }
}

/* Hide scrollbar for mobile filter chips */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Pagy pagination */
@layer components {
  .pagy {
    @apply flex gap-x-0.5 text-sm font-semibold leading-7 mt-6 justify-center;

    a:not([role="separator"]) {
      @apply block rounded-full px-3 py-0.5 bg-gray-100 border-0 text-gray-700 no-underline;
    }

    a[href]:hover {
      @apply bg-gray-200 text-gray-900;
    }

    a:not([href]) {
      @apply cursor-default;
    }

    a[role="link"]:not([aria-current]) {
      @apply opacity-60;
    }

    a[aria-current] {
      @apply bg-brand-primary text-white;
    }
  }
}
