/* ===================================
    Jai Soni Tex - theme (red, blue, white)
    Loaded after demos/fashion-store/fashion-store.css
====================================== */
:root {
    --base-color: #e31e24;   /* logo red  */
    --dark-gray: #0b2a85;    /* logo blue */
    --jst-blue-deep: #071d5e;
}
/* top bar: white text on red */
.header-top-bar.bg-base-color,
.header-top-bar.bg-base-color a { color: #ffffff; }
.header-top-bar.bg-base-color a:hover { color: #ffffff; opacity: .85; }

/* logo size */
header .navbar-brand img { max-height: 54px; }
header .navbar-brand { padding: 14px 0; }
.footer-logo img { max-height: 56px; }

/* footer: deep blue */
.bg-nero-grey, .bg-nero-grey:focus { background-color: var(--jst-blue-deep); }
footer.footer-dark a:hover { color: #ffffff; }

/* text on red pills/buttons reads white */
.bg-base-color.text-dark-gray,
.bg-base-color .text-dark-gray,
.content-arrow.bg-base-color i { color: #ffffff !important; }

/* buttons */
.btn.btn-dark-gray:hover, .btn.btn-dark-gray:active,
.btn.btn-box-shadow.btn-dark-gray:hover, .btn.btn-box-shadow.btn-dark-gray:active {
    background-color: var(--base-color);
    border-color: var(--base-color);
    color: #ffffff;
}
.shop-box .shop-buttons-wrap .btn:hover { background-color: var(--base-color); color: #ffffff; }

/* sale price in red */
.shop-footer .price { color: var(--base-color); font-weight: 600; }
.shop-footer .price del { color: var(--medium-gray); font-weight: 400; }
.lable.new { background-color: var(--base-color); color: #ffffff; }
.lable.hot { background-color: var(--dark-gray); color: #ffffff; }

/* keep nav labels on one line */
.navbar .navbar-nav .nav-link { white-space: nowrap; }
/* footer text readable on blue */
footer.footer-dark, footer.footer-dark a, footer.footer-dark p { color: rgba(255,255,255,.75); }
footer.footer-dark a:hover { color: #ffffff; }

/* WhatsApp floating icon - glass effect */
.jst-whatsapp {
    position: fixed; right: 24px; bottom: 24px; z-index: 1050;
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(46,196,96,.94) 0%, rgba(28,160,72,.92) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 10px 30px rgba(11,42,133,.22), 0 2px 8px rgba(0,0,0,.12),
                inset 0 1px 1px rgba(255,255,255,.75), inset 0 -6px 14px rgba(0,90,40,.25);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: visible;
}
.jst-whatsapp svg { position: relative; z-index: 2; filter: drop-shadow(0 1px 2px rgba(0,60,25,.35)); }
/* glossy top highlight */
.jst-whatsapp::after {
    content: ""; position: absolute; z-index: 1; left: 12%; right: 12%; top: 6%; height: 42%;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.04) 100%);
    pointer-events: none;
}
/* soft glass pulse ring */
.jst-whatsapp::before {
    content: ""; position: absolute; inset: -1px; border-radius: 50%; z-index: -1;
    border: 2px solid rgba(37,180,90,.6); background: rgba(37,180,90,.14);
    animation: jst-wa-pulse 2.4s ease-out infinite;
}
.jst-whatsapp:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 34px rgba(11,42,133,.28), 0 3px 10px rgba(0,0,0,.14), inset 0 1px 1px rgba(255,255,255,.8), inset 0 -6px 14px rgba(0,90,40,.25); }
@keyframes jst-wa-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.65); opacity: 0; } }
@media (max-width: 575px) { .jst-whatsapp { width: 56px; height: 56px; right: 16px; bottom: 16px; } }
/* browsers without backdrop blur: keep it solid enough to read */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .jst-whatsapp { background: linear-gradient(145deg, #2ec460 0%, #1ca048 100%); }
}
/* keep scroll-to-top clear of the WhatsApp icon */
.scroll-progress { bottom: 110px; }

/* Bulk / B2B */
.shop-footer .price .jst-unit { color: var(--medium-gray); font-weight: 400; font-size: 14px; }
.shop-footer .price .jst-moq { display: block; font-size: 13px; color: var(--dark-gray); font-weight: 500; letter-spacing: .3px; }
.jst-moq-box { background: #eef2fb; border-left: 4px solid var(--base-color); padding: 18px 20px; border-radius: 4px; }
.jst-moq-box span { color: var(--dark-gray); }
.jst-detail-moq { display: flex; flex-wrap: wrap; gap: 10px; }
.jst-detail-moq span { background: #eef2fb; color: var(--dark-gray); padding: 6px 14px; border-radius: 30px; font-size: 15px; }
.jst-step { background: #f7f8fc; border-radius: 8px; padding: 30px 26px; height: 100%; border-top: 4px solid var(--dark-gray); }
.jst-steps .col:nth-child(even) .jst-step { border-top-color: var(--base-color); }
.jst-step-no { display: inline-block; font-size: 34px; font-weight: 700; color: var(--base-color); line-height: 1; margin-bottom: 12px; font-family: var(--alt-font); }
.jst-step p { font-size: 15px; line-height: 26px; margin: 0; }
.jst-steps .col { margin-bottom: 24px; }

/* red underline highlight: leave a gap between text and the line */
.text-highlight { display: inline-block; padding-bottom: 14px; line-height: 1.2; }
.text-highlight > span.bg-base-color { bottom: 0 !important; height: 5px !important; border-radius: 3px; }

/* equal-height product cards: product name always takes exactly 2 lines */
.shop-footer > a {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; line-height: 28px; height: 56px; margin-bottom: 6px;
}
.shop-footer .price { min-height: 46px; }
.shop-box .shop-image img { aspect-ratio: 600 / 765; object-fit: cover; width: 100%; }

/* Jai Soni highlights ticker (replaces brand logo strip) */
.jst-ticker { background: var(--base-color); overflow: hidden; padding: 22px 0 !important; position: relative; }
.jst-ticker-track { display: flex; width: max-content; animation: jst-tick 40s linear infinite; }
.jst-ticker:hover .jst-ticker-track { animation-play-state: paused; }
.jst-ticker-row { display: flex; align-items: center; flex-shrink: 0; }
.jst-tick-item { color: #ffffff; font-family: var(--alt-font); font-size: 22px; font-weight: 500; white-space: nowrap; padding: 0 26px; }
.jst-tick-sep { color: rgba(255,255,255,.75); font-size: 18px; }
@keyframes jst-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 767px) { .jst-tick-item { font-size: 17px; padding: 0 16px; } .jst-ticker { padding: 16px 0 !important; } }
@media (prefers-reduced-motion: reduce) { .jst-ticker-track { animation: none; } }
.container .jst-ticker, div.jst-ticker { border-radius: 8px; margin: 10px 0 40px; }

/* working product filters */
.category-filter li.jst-on .product-cb { background: var(--base-color); border-color: var(--base-color); box-shadow: inset 0 0 0 3px #fff; }
.category-filter li.jst-on a { color: var(--dark-gray); font-weight: 600; }
.tag-cloud a.jst-on { background: var(--dark-gray); border-color: var(--dark-gray); color: #fff; }
.jst-filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; font-size: 15px; color: var(--medium-gray); }
.jst-filter-clear { color: var(--base-color); font-weight: 600; text-decoration: underline; }
.jst-filter-empty { display: none; padding: 40px 0; text-align: center; font-size: 17px; }
.shop-wrapper .grid-item.jst-hide { display: none !important; }

/* Products page: CSS grid instead of masonry (set by js/jai-soni.js) */
.shop-wrapper.jst-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); height: auto !important; position: static !important; }
.shop-wrapper.jst-grid .grid-sizer { display: none !important; }
.shop-wrapper.jst-grid .grid-item { position: static !important; left: auto !important; top: auto !important; width: auto !important; transform: none !important; opacity: 1 !important; }
@media (max-width: 1399px) { .shop-wrapper.jst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .shop-wrapper.jst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* phones: keep the model visible in the home slider, text readable */
@media (max-width: 767px) {
    .swiper-slide .cover-background { background-position: 82% center !important; }
    .swiper-slide .cover-background::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244,245,249,.92) 0%, rgba(244,245,249,.75) 55%, rgba(244,245,249,0) 100%); }
    .swiper-slide .cover-background .container { position: relative; z-index: 1; }
}
/* About: hide the rotating badge on very small screens (it overlaps the breadcrumb) */
@media (max-width: 575px) { .border-radius-100:has(> img[src*="badge-ring-170"]) { display: none !important; } }
.tag-cloud a .jst-tag-n { font-size: 12px; opacity: .7; }
.tag-cloud a.jst-off { opacity: .35; cursor: not-allowed; pointer-events: auto; }

/* About page: slow zoom in / zoom out on pictures */
.jst-zoom { overflow: hidden; position: relative; }
.jst-zoom > img { animation: jst-breathe 9s ease-in-out infinite alternate; transform-origin: center; will-change: transform; transition: transform .6s ease; }
.jst-zoom:hover > img { animation-play-state: paused; transform: scale(1.14); }
@keyframes jst-breathe { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .jst-zoom > img { animation: none; } }
/* header nav: no fading; red text + red underline on hover and on the current page */
header .navbar .navbar-nav .nav-item .nav-link { opacity: 1 !important; color: var(--dark-gray); position: relative; transition: color .25s ease; }
header .navbar .navbar-nav .nav-item .nav-link::after { content: ""; position: absolute; left: 50%; bottom: 22px; width: 0; height: 2px; border-radius: 2px; background: #e31e24; transform: translateX(-50%); transition: width .3s ease; }
header .navbar .navbar-nav .nav-item:hover > .nav-link,
header .navbar .navbar-nav .nav-item.jst-current > .nav-link { color: #e31e24 !important; }
header .navbar .navbar-nav .nav-item:hover > .nav-link::after,
header .navbar .navbar-nav .nav-item.jst-current > .nav-link::after { width: 26px; }
header .navbar .navbar-nav .nav-item.jst-current > .nav-link { font-weight: 600; }
header .navbar .navbar-nav .nav-item:hover > .dropdown-toggle { color: #e31e24; }
@media (max-width: 991px) {
  header .navbar .navbar-nav .nav-item .nav-link::after { left: 0; bottom: 6px; transform: none; }
}

/* ---------- responsive tweaks ---------- */
.jst-filter-toggle { display: none; }
@media (max-width: 991px) {
  .row > .shop-sidebar { order: -1; margin-bottom: 25px; }
  .shop-sidebar .jst-moq-box { margin-bottom: 15px !important; padding: 16px 18px !important; }
  .jst-filter-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 18px; border: 1px solid #d9def0; border-radius: 6px;
    background: #fff; color: var(--dark-gray); font-weight: 600; font-size: 16px; text-align: left; }
  .jst-filter-toggle span:first-child { flex: 1; }
  .jst-filter-badge { display: none; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; background: #e31e24; color: #fff; font-size: 12px; text-align: center; padding: 0 6px; }
  .jst-filter-caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .25s; }
  .shop-sidebar.jst-open .jst-filter-caret { transform: rotate(-135deg); margin-top: 4px; }
  .jst-filter-panel { display: none; padding: 20px 4px 0; }
  .shop-sidebar.jst-open .jst-filter-panel { display: block; }
  .jst-filter-panel .mb-30px { margin-bottom: 22px !important; }
}
@media (max-width: 575px) {
  .shop-wrapper.jst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.xs-grid-2col.gutter-extra-large { margin: 0 -6px; }
  .grid.xs-grid-2col.gutter-extra-large li { padding: 6px; }
  .shop-wrapper .shop-footer > a { font-size: 14px; line-height: 20px; height: 40px; margin-bottom: 4px; }
  .shop-wrapper .shop-footer { padding-top: 12px !important; padding-bottom: 12px !important; }
  .shop-wrapper .shop-footer .price { font-size: 15px; min-height: 40px; }
  .shop-wrapper .shop-footer .price .jst-unit { font-size: 12px; }
  .shop-wrapper .shop-footer .price .jst-moq { font-size: 11px; letter-spacing: 0; }
  .shop-wrapper .shop-hover { display: none !important; }
  footer { padding-bottom: 70px; }
  .jst-filter-bar { flex-wrap: wrap; gap: 6px; font-size: 14px; }
}
/* "x items" badges on category tiles: readable on any photo */
div.border-radius-100px.position-absolute.text-uppercase.fs-11 { background: rgba(255,255,255,.92); }
/* contact enquiry form (WhatsApp) */
#jst-enquiry .form-control.jst-invalid { border-color: #e31e24 !important; }
.jst-enquiry-msg { font-size: 14px; line-height: 22px; text-align: center; padding: 8px 14px; border-radius: 4px; display: none; }
.jst-enquiry-msg.jst-err { display: block; background: #fdecec; color: #b3141a; }
.jst-enquiry-msg.jst-ok { display: block; background: #e8f7ee; color: #157a3e; }
#jst-enquiry button .fa-whatsapp { font-size: 16px; }
.jst-enquiry-msg.jst-wait { display: block; background: #eef1fa; color: var(--dark-gray); }
.jst-thanks { text-align: center; padding: 30px 20px; border: 1px solid #dfe5f5; border-radius: 8px; background: #f7f9fe; }
.jst-thanks-icon { width: 58px; height: 58px; line-height: 58px; margin: 0 auto 14px; border-radius: 50%; background: #1ca048; color: #fff; font-size: 28px; }
.jst-thanks h3 { font-size: 24px; color: var(--dark-gray); margin-bottom: 10px; font-weight: 600; }
.jst-thanks p { margin-bottom: 8px; }
.jst-thanks-ref { color: var(--dark-gray); }
.jst-thanks-small { font-size: 14px; }
.jst-thanks-actions { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.jst-thanks-again { color: #e31e24; text-decoration: underline; }
.jst-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
