/* Swapno Chowa overrides on top of the Shopingo theme (bootstrap.min.css has primary recoloured to #9f1239). */
body { font-family: 'Raleway', 'Hind Siliguri', system-ui, sans-serif; letter-spacing: 0.5px; background: #fff; color: #797979; }
.top-header .logo-img { height: 44px; width: auto; }
.top-header .secondary-menu .cart-badge { background-color: #f59e0b; color: #4c0519; font-weight: 700; }
.top-header .primary-menu .navbar-nav a.nav-link { white-space: nowrap; }
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 28px; line-height: 24px; overflow: hidden; background: #4c0519; color: #fecdd3; font-size: 13px; z-index: 25; }
.topbar a { color: #fecdd3; text-decoration: none; }
.topbar a:hover { color: #fff; }
.page-content { padding-top: 65px; }
.btn-ecomm.btn-amber { background: #fbbf24; color: #4c0519; border-color: #fbbf24; }
.btn-ecomm.btn-amber:hover { background: #f59e0b; border-color: #f59e0b; color: #4c0519; }
.section-title { color: #4c0519; }
.product-thumbs .card .product-name, .product-grid .card .product-name { color: #323232; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { color: #9f1239; }
.product-price del { color: #9ca3af; font-weight: 400; margin-left: .35rem; font-size: .85em; }
.card-badge { position: absolute; top: 8px; left: 8px; z-index: 6; font-size: 12px; font-weight: 700; padding: 2px 8px; background: #9f1239; color: #fff; }
.card-badge.hot { left: auto; right: 8px; background: #fbbf24; color: #4c0519; }
.card-img-top.ratio-img { aspect-ratio: 8/9; object-fit: cover; width: 100%; }
.hero-slide { position: relative; aspect-ratio: 16/9; background: #4c0519; overflow: hidden; }
@media (min-width: 768px) { .hero-slide { aspect-ratio: 2.6/1; } }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .hero-caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 1.5rem; max-width: 36rem; color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.25) 70%, transparent); }
.hero-slide .hero-caption h1, .hero-slide .hero-caption h2 { color: #fff; }
.hero-slide { transition: opacity .7s; }
.cat-tile { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: #e5e7eb; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .cat-label { position: absolute; inset: auto 0 0 0; padding: 1.5rem .75rem .75rem; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
.footer-section .logo-img { height: 56px; width: auto; }
.mobile-bottom-bar { position: fixed; inset: auto 0 0 0; z-index: 30; background: #fff; border-top: 1px solid #e5e7eb; display: grid; grid-template-columns: repeat(4, 1fr); }
.mobile-bottom-bar a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 6px 0; font-size: 11px; color: #6b7280; text-decoration: none; }
.mobile-bottom-bar a.active { color: #9f1239; }
.mobile-bottom-bar i { font-size: 20px; line-height: 1.2; }
.wa-float { position: fixed; right: 16px; bottom: 76px; z-index: 31; width: 48px; height: 48px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
@media (min-width: 992px) { .wa-float { bottom: 24px; } }
.mini-search { display: flex; flex: 1; max-width: 420px; }
.nav-drawer { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 85vw; background: #fff; z-index: 50; transform: translateX(-100%); transition: transform .3s; padding: 1rem; overflow-y: auto; }
.nav-drawer.open { transform: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 49; }
.header-search { position: fixed; top: 93px; left: 0; right: 0; z-index: 19; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
.slider-section .carousel-item { min-height: 460px; }
.slider-section .hero-media { position: relative; height: 460px; overflow: hidden; }
/* whole photo, never cropped; a blurred copy of it fills the space around portrait or very wide photos */
.slider-section .hero-media .hero-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(22px) brightness(.9); }
.slider-section .hero-media .hero-photos { position: absolute; inset: 0; display: flex; justify-content: center; gap: 6px; }
.slider-section .hero-media .hero-photos img { height: 100%; width: auto; min-width: 0; flex: 0 1 auto; object-fit: contain; }
.slider-section .carousel-item .row { --bs-gutter-x: 0; }
.cartegory-box .card img { aspect-ratio: 8/9; object-fit: cover; }
.blog-cards .card-img-top { aspect-ratio: 16/10; object-fit: cover; }
.product-thumbs .card .card-img-top, .tabular-product .card .card-img-top { aspect-ratio: 8/9; object-fit: cover; }
.bg-red { background-color: #b91c1c !important; }
.bg-purple { background-color: #6b21a8 !important; }
.bg-maroon { background-color: #4c0519 !important; }
.bg-gold { background-color: #b45309 !important; }
/* Before the theme's Slick script starts, lay slides out in a row instead of stacking them. */
.product-thumbs:not(.slick-initialized), .cartegory-box:not(.slick-initialized) { display: flex; overflow: hidden; }
.product-thumbs:not(.slick-initialized) > *, .cartegory-box:not(.slick-initialized) > * { flex: 0 0 20%; max-width: 20%; padding: 0 10px; }
@media (max-width: 1024px) { .product-thumbs:not(.slick-initialized) > *, .cartegory-box:not(.slick-initialized) > * { flex-basis: 25%; max-width: 25%; } }

/* ---- Hero banner animations: text and photos move separately ---- */
/* Text: each line slides in from the left, one after another. */
.hero-animated .carousel-item .hero-text > * { opacity: 0; }
.hero-animated .carousel-item.active .hero-text > *,
.hero-animated .carousel-item-next .hero-text > *,
.hero-animated .carousel-item-prev .hero-text > * { animation: heroTextIn .8s cubic-bezier(.2, .75, .25, 1) both; }
.hero-animated .hero-text > :nth-child(1) { animation-delay: .15s !important; }
.hero-animated .hero-text > :nth-child(2) { animation-delay: .32s !important; }
.hero-animated .hero-text > :nth-child(3) { animation-delay: .49s !important; }
.hero-animated .hero-text > :nth-child(4) { animation-delay: .66s !important; }
.hero-animated .hero-text h1, .hero-animated .hero-text h3 { color: inherit; }
@keyframes heroTextIn { from { opacity: 0; transform: translateX(-90px); } to { opacity: 1; transform: none; } }

/* Photos: a random entrance per showing (data-anim), each photo a little after the previous one. */
.hero-animated .carousel-item .hero-photos img { opacity: 0; }
.hero-animated .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev) .hero-photos img { animation: 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-animated .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev)[data-anim="right"] .hero-photos img { animation-name: photoRight; }
.hero-animated .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev)[data-anim="blur"] .hero-photos img { animation-name: photoBlur; animation-duration: 1.3s; }
.hero-animated .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev)[data-anim="zoom"] .hero-photos img { animation-name: photoZoom; }
.hero-animated .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev)[data-anim="up"] .hero-photos img { animation-name: photoUp; }
.hero-animated .carousel-item:is(.active, .carousel-item-next, .carousel-item-prev)[data-anim="down"] .hero-photos img { animation-name: photoDown; }
.hero-animated .hero-photos img:nth-child(1) { animation-delay: .3s !important; }
.hero-animated .hero-photos img:nth-child(2) { animation-delay: .5s !important; }
.hero-animated .hero-photos img:nth-child(3) { animation-delay: .7s !important; }
.hero-animated .hero-photos img:nth-child(4) { animation-delay: .9s !important; }
@keyframes photoRight { from { opacity: 0; transform: translateX(160px); } to { opacity: 1; transform: none; } }
@keyframes photoBlur { from { opacity: 0; filter: blur(24px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes photoZoom { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
@keyframes photoUp { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes photoDown { from { opacity: 0; transform: translateY(-90px); } to { opacity: 1; transform: none; } }
.hero-animated .carousel-item { transition-duration: .7s; }
@media (prefers-reduced-motion: reduce) {
  .hero-animated .hero-text > *, .hero-animated .hero-photos img { animation: none !important; opacity: 1 !important; }
}
.top-header .secondary-menu .lang-switch { font-size: 14px; font-weight: 700; border: 1px solid #d1d5db; padding: 2px 8px !important; margin: 0 6px; line-height: 1.6; }
.top-header .secondary-menu .lang-switch:hover { border-color: #9f1239; color: #9f1239; }
/* The slide that is leaving clears its text and photos quickly, so they never overlap the incoming ones. */
.hero-animated .carousel-item.active:is(.carousel-item-start, .carousel-item-end) .hero-text,
.hero-animated .carousel-item.active:is(.carousel-item-start, .carousel-item-end) .hero-photos { opacity: 0; transition: opacity .25s ease; }
