/* Loja template — small hand-written overrides Tailwind utilities don't cover. */

/* Prevent horizontal scroll on desktop: nothing in this template intentionally
   overflows the viewport width, so any stray overflow (e.g. a mis-transformed
   banner image) should be clipped instead of growing the page. */
html, body {
    overflow-x: hidden;
}

/* Breadcrumb hero banner (common/breadcrumb.blade.php): fixed-height cover image
   with a title overlay. These classes previously had no CSS backing at all — the
   wrapper had no height, and a stray inline `translate3d(-50%, 83px, 0)` (leftover
   from an old parallax.js integration that was never wired up) shifted the image
   half off-screen, which also caused the horizontal scrollbar on desktop. */
.breadcrumbs-custom {
    overflow: hidden;
}
.parallax-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #0f172a;
}
.parallax-container .material-parallax {
    display: block;
}
@media (min-width: 768px) {
    .parallax-container {
        height: 260px;
    }
}
@media (min-width: 1024px) {
    .parallax-container {
        height: 300px;
    }
}

/* Lucide icons: size them like a font icon via the surrounding text-* class. */
svg.lucide {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* Header nav (block_header.blade.php): links no longer wrap to a second line —
   they scroll horizontally instead, on both desktop and mobile. Give that scroll
   affordance a thin, low-contrast scrollbar (rather than the browser's default
   fat one, and rather than hiding it entirely) so it reads as an intentional
   "there's more here" cue instead of a broken/clipped nav row. */
.nav-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}
.nav-scroll::-webkit-scrollbar {
    height: 6px;
}
.nav-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.nav-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 9999px;
}
.nav-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Swiper theme tuned to the storefront palette (news carousel + product gallery) */
.swiper-pagination-bullet-active {
    background: #0284c7;
}
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Hero banner (block/banner_image.blade.php): plain CSS scroll-snap carousel, no
   Swiper — see the blade comment for why. Slide sizing comes from normal box layout
   (flex item = 100% of the track), so it can't be corrupted the way a JS-computed
   pixel width can. */
.hero-banner-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hero-banner-track::-webkit-scrollbar {
    display: none;
}
.hero-banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.hero-banner-prev,
.hero-banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: grid;
    place-items: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.35);
    color: #ffffff;
    transition: background-color 0.2s ease;
}
.hero-banner-prev:hover,
.hero-banner-next:hover {
    background: rgba(15, 23, 42, 0.55);
}
.hero-banner-prev {
    left: 0.75rem;
}
.hero-banner-next {
    right: 0.75rem;
}
.hero-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.4rem;
}
.hero-banner-dot {
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
    transition: background-color 0.2s ease, width 0.2s ease;
}
.hero-banner-dot.is-active {
    background: #ffffff;
    width: 1.25rem;
    border-radius: 9999px;
}

/* bs-stepper: keep the circle/line accents in the storefront's sky/emerald palette */
.bs-stepper .step-trigger {
    background: transparent;
}
.bs-stepper .bs-stepper-circle {
    background-color: #e2e8f0;
    color: #334155;
}
.bs-stepper .active .bs-stepper-circle {
    background-color: #0284c7;
    color: #ffffff;
}
.bs-stepper .line {
    background-color: #e2e8f0;
}
