/* Home page styles extracted from styles.css */

body.hero-main-active{
  background: #ffffff !important;
}

body.hero-main-active main.wrap{
  padding-top: 0 !important;
}

/* Static topbar on home page (no sticky/fixed behavior) */
body.hero-main-active::before{
  content: none;
}

body.hero-main-active .topbar,
html.dark-theme body.hero-main-active .topbar{
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  z-index: auto !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.hero-main-active .topbar::after,
html.dark-theme body.hero-main-active .topbar::after{
  display: none !important;
}

body.hero-main-active .topbar.scrolled{
  background: #fff !important;
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html.dark-theme body.hero-main-active .topbar.scrolled{
  background: #fff !important;
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: none !important;
}

body.hero-main-active .topbar .logoText,
body.hero-main-active .topbar .topLinks.plain .topLink,
body.hero-main-active .topbar .iconbtn,
body.hero-main-active .topbar .search input,
body.hero-main-active .topbar .theme-toggle{
  color: var(--text);
}

body.hero-main-active .topbar .icon-svg{
  stroke: currentColor;
}

body.hero-main-active .topbar .search,
body.hero-main-active .topbar .iconbtn,
body.hero-main-active .topbar .theme-toggle{
  background: rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.12);
}

body.hero-main-active .topbar .search input::placeholder{
  color: rgba(15,23,42,.45);
}

@media (min-width: 981px){
  body.hero-main-active .topbar-row{
    justify-content: flex-start;
  }

  body.hero-main-active #topLinks.topLinks.plain{
    order: 1;
    margin-right: 14px;
  }

  body.hero-main-active .logo{
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    order: 2;
    margin-right: 0;
  }

  body.hero-main-active .logo:hover{
    transform: translate(-50%, -50%) !important;
  }

  body.hero-main-active .search{
    order: 3;
    flex: 0 1 380px;
    min-width: 240px;
    margin-right: 10px;
    margin-left: auto;
  }

  body.hero-main-active .actions{
    order: 4;
    margin-left: 0;
  }
}

/* Home topbar variant with right "how it works" link */
body.hero-main-active .topbar-row.topbar-has-how-right .logoText,
body.hero-main-active .topbar-row.topbar-has-how-right .topLinks.plain .topLink,
body.hero-main-active .topbar-row.topbar-has-how-right .iconbtn,
body.hero-main-active .topbar-row.topbar-has-how-right .search input,
body.hero-main-active .topbar-row.topbar-has-how-right .theme-toggle{
  color: var(--text) !important;
}

body.hero-main-active .topbar-row.topbar-has-how-right .icon-svg{
  stroke: currentColor !important;
}

body.hero-main-active .topbar-row.topbar-has-how-right .search input::placeholder{
  color: rgba(15,23,42,.45) !important;
}

body.hero-main-active .topbar.scrolled .logoText,
body.hero-main-active .topbar.scrolled .topLinks.plain .topLink,
body.hero-main-active .topbar.scrolled .iconbtn,
body.hero-main-active .topbar.scrolled .search input,
body.hero-main-active .topbar.scrolled .theme-toggle{
  color: var(--text);
}

body.hero-main-active .topbar.scrolled .icon-svg{
  stroke: currentColor;
}

body.hero-main-active .topbar.scrolled .search,
body.hero-main-active .topbar.scrolled .iconbtn,
body.hero-main-active .topbar.scrolled .theme-toggle{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}

html.dark-theme body.hero-main-active .topbar.scrolled .logoText,
html.dark-theme body.hero-main-active .topbar.scrolled .topLinks.plain .topLink,
html.dark-theme body.hero-main-active .topbar.scrolled .iconbtn,
html.dark-theme body.hero-main-active .topbar.scrolled .search input,
html.dark-theme body.hero-main-active .topbar.scrolled .theme-toggle{
  color: var(--text);
}

html.dark-theme body.hero-main-active .topbar.scrolled .icon-svg{
  stroke: currentColor;
}

html.dark-theme body.hero-main-active .topbar.scrolled .search,
html.dark-theme body.hero-main-active .topbar.scrolled .iconbtn,
html.dark-theme body.hero-main-active .topbar.scrolled .theme-toggle{
  background: rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.12);
}

/* Home page square style */
.homePage .heroMainWrap .miniCarousel,
.homePage .heroMainWrap .miniSlideCta,
.homePage .heroMainEyebrow,
.homePage .heroMainLink,
.homePage .heroMainWrap .miniArrow,
.homePage .popCard,
.homePage .p,
.homePage .category-card,
.homePage .category-link {
  border-radius: 0 !important;
}

.homePage .heroMainWrap .miniDot,
.homePage .heroMainWrap .miniDot.isActive {
  border-radius: 0 !important;
}

.homePage .heroMainWrap .miniCarousel,
.homePage .popCard,
.homePage .p,
.homePage .category-card {
  box-shadow: none !important;
}

.homePage .popCard,
.homePage .p,
.homePage .category-card {
  border: 1px solid var(--line);
}

.homePage .category-card:hover,
.homePage .popCard:hover,
.homePage .p:hover {
  transform: none !important;
  box-shadow: none !important;
}

.homePage .pinfo,
.homePage .popBody {
  border-radius: 0 !important;
}

.homePage .img,
.homePage .popImg,
.homePage .category-image,
.homePage .category-overlay {
  border-radius: 0 !important;
}

.homePage .heroMainWrap .miniCarousel {
  border: 1px solid rgba(0,0,0,.08);
}

html.dark-theme .homePage .heroMainWrap .miniCarousel,
html.dark-theme .homePage .popCard,
html.dark-theme .homePage .p,
html.dark-theme .homePage .category-card {
  border-color: rgba(255,255,255,.12);
}

.heroMainSection{
  margin-top: 0;
  margin-bottom: 28px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.heroMainWrap{
  position: relative;
  width: 100%;
}

.heroMainWrap .miniCarousel{
  min-height: clamp(749px, 96.7vh, 1092px);
  border-radius: 0;
  border: 0;
  box-shadow: 0 20px 56px rgba(15,23,42,.12);
}

.heroMainWrap .miniSlide{
  isolation: isolate;
}

.heroMainWrap .miniSlideOverlay{
  background: linear-gradient(180deg, rgba(7,10,16,.60) 0%, rgba(7,10,16,.36) 26%, rgba(7,10,16,.18) 46%, rgba(7,10,16,.58) 74%, rgba(7,10,16,.78) 100%);
}

.heroMainWrap .miniSlideText{
  left: 50%;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(92vw, 1100px);
  text-align: center;
}

.heroMainWrap .miniSlideText h2{
  margin: 0 0 14px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 500;
  white-space: normal;
  text-wrap: balance;
}

.heroMainWrap .miniSlideText p{
  margin: 0 0 22px;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255,255,255,.86);
  white-space: normal;
  text-wrap: balance;
}

.heroMainWrap .miniSlideCta{
  display: inline-flex;
  margin: 0 auto;
  padding: 13px 22px;
  border-radius: 999px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.heroMainWrap .miniSlideCta:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.heroMainFooter{
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.heroMainWrap .miniArrow{
  display: none !important;
}

.heroMainWrap .miniArrow:hover{
  transform: none;
}

.heroMainWrap .miniArrow.prev{ left: auto; right: 108px; }
.heroMainWrap .miniArrow.next{ right: 44px; }

.heroMainWrap .miniDotsBelow{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  min-height: 0;
}

.miniCursorHint{
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: scale(.86);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.miniCursorHint.isVisible{
  opacity: 1;
  transform: scale(1);
}

.miniCursorHintCore{
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.96);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 12px 28px rgba(7,10,16,.16);
}

.miniCursorHintCore::before{
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.22);
}

.miniCursorHintCore::after{
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid transparent;
  border-top-color: rgba(17,17,17,.95);
  border-right-color: rgba(17,17,17,.55);
  opacity: 0;
}

.miniCursorHint.isCycling .miniCursorHintCore::after{
  opacity: 1;
  animation: miniCursorOrbit var(--slide-cycle-ms, 6500ms) linear 1 both;
}

.miniCursorHint.isPaused .miniCursorHintCore::after{
  animation-play-state: paused;
}

.heroMainWrap .miniDots{
  gap: 8px;
  align-items: center;
}

.heroMainWrap .miniDot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 0;
  box-shadow: none;
  transition: width var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.heroMainWrap .miniDot.isActive{
  width: 34px;
  height: 6px;
  background: var(--accent);
  box-shadow: none;
}

html.dark-theme .heroMainWrap .miniCarousel{
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
}

html.dark-theme .heroMainWrap .miniDot{
  background: rgba(255,255,255,.48);
}

html.dark-theme .heroMainWrap .miniDot.isActive{
  background: var(--accent);
}

html.dark-theme .miniCursorHintCore{
  background: rgba(255,255,255,.94);
  border-color: rgba(255,255,255,.98);
  box-shadow: 0 18px 36px rgba(0,0,0,.24);
}

html.dark-theme .miniCursorHintCore::before{
  border-color: rgba(255,255,255,.16);
}

.miniCursorHintCore::after{
  content: none;
}

html.dark-theme .miniCursorHintCore::after{
  border-top-color: rgba(17,17,17,.95);
  border-right-color: rgba(17,17,17,.55);
}

@keyframes miniCursorOrbit{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

@media (hover: hover) and (pointer: fine){
  .heroMainWrap .miniCarousel{
    cursor: none;
  }
}

@media (max-width: 900px){
  .heroMainWrap .miniCarousel{
    min-height: 93.6vh;
    border-radius: 0;
  }

  .heroMainWrap .miniSlideText{
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(92vw, 900px);
  }

  .heroMainMeta{
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .heroMainFooter{
    right: 24px;
    bottom: 24px;
    min-height: 0;
    padding: 0;
  }

  .heroMainWrap .miniDotsBelow{
    justify-content: center;
  }

  .heroMainWrap .miniArrow{
    bottom: 24px;
  }

  .heroMainWrap .miniArrow.prev{ right: 82px; }
  .heroMainWrap .miniArrow.next{ right: 24px; }
}

@media (max-width: 640px){
  .heroMainSection{
    margin-top: 12px;
  }

  .heroMainWrap .miniCarousel{
    min-height: 87.4vh;
    border-radius: 0;
  }

  .heroMainWrap .miniSlideText h2{
    font-size: clamp(26px, 9.8vw, 40px);
  }

  .heroMainWrap .miniSlideText p{
    font-size: 13px;
    max-width: 100%;
  }

  .heroMainFooter{
    right: 18px;
    bottom: 18px;
    min-height: 0;
    padding: 0;
  }

  .heroMainWrap .miniDots{
    gap: 7px;
  }

  .heroMainWrap .miniDot{
    width: 7px;
    height: 7px;
  }

  .heroMainWrap .miniDot.isActive{
    width: 28px;
    height: 5px;
  }

  .heroMainMeta{
    flex-wrap: wrap;
    gap: 10px;
  }

  .heroMainWrap .miniArrow{
    width: 44px;
    height: 44px;
  }

  .heroMainWrap .miniArrow.prev{ right: 74px; }
  .heroMainWrap .miniArrow.next{ right: 18px; }
}

.miniDotsBelow{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}

.miniDots{
  display:flex;
  gap: 10px;
}

.miniDot{
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.28);
  background: rgba(0,0,0,.16);
  cursor:pointer;
  transition: all var(--transition-base);
}

.miniDot.isActive{
  background: rgba(0,0,0,.75);
  transform: scale(1.25);
}
html.dark-theme .miniDot{
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.28);
}
html.dark-theme .miniDot.isActive{
  background: rgba(255,255,255,.9);
}
.miniArrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 64px;
  height: 64px;
  border: none;
  background: rgba(0,0,0,.3);
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  user-select: none;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.miniArrow.prev{
  left: 20px;
}

.miniArrow.next{
  right: 20px;
}

.miniArrow:hover{
  background: rgba(0,0,0,.5);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 720px){
  .miniCarousel{ min-height: 360px; }
  .miniSlideOverlay{ background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.40) 34%, rgba(0,0,0,.60) 100%); }
  .miniSlideText{ left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); max-width: calc(100% - 100px); }
  .miniSlideText h2{ font-size: 24px; }
  .miniSlideText p{ font-size: 13px; }
  .miniSlideCta{ padding: 10px 18px; font-size: 13px; }
  .miniArrow{ width: 46px; height: 46px; font-size: 26px; }
  .miniArrow.prev{ left: 12px; }
  .miniArrow.next{ right: 12px; }
  .miniDotsBelow{ margin-top: 8px; }
  .miniDot{ width: 10px; height: 10px; }
}

/* Home new grid: simple orange price + simple orange border on hover */
#homeNewGrid .pprice {
  color: var(--accent) !important;
}

#homeNewGrid .p {
  border: 1px solid transparent !important;
  transition: none !important;
}

#homeNewGrid .p:hover {
  border-color: var(--accent) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* --- Home: New arrivals hover accent --- */
#homeNewGrid .p{
  transition: border-color var(--transition-fast);
}
#homeNewGrid .p:hover{
  border-color: var(--accent);
}

/* New arrivals: simple orange border on hover */
.home-new-grid .p{
  transition: border-color var(--transition-fast);
}
.home-new-grid .p:hover{
  border-color: var(--accent);
}

.home-new-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.home-new-grid .p {
  height: var(--catalog-card-h);
}

.home-new-grid .img {
  height: auto;
}

html.dark-theme .home-new-grid .p {
  background: var(--card) !important;
}

html.dark-theme .home-new-grid .pname,
html.dark-theme .home-new-grid .pprice,
html.dark-theme .home-new-grid .pcategory {
  color: inherit !important;
}

@media (max-width: 768px) {
  .home-new-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .home-new-grid .p {
    height: 340px !important;
  }

  .home-new-grid .img {
    height: 200px;
  }
}

@media (max-width: 520px) {
  .home-new-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .home-new-grid .p {
    height: 300px !important;
  }

  .home-new-grid .img {
    height: 168px;
  }
}

@media (max-width: 768px) {
  body.hero-main-active main.wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .homePage .section {
    margin-top: 14px;
  }

  .heroMainSection {
    margin-bottom: 18px;
  }

  .heroMainWrap .miniCarousel {
    min-height: 72svh;
  }

  .heroMainWrap .miniSlideText {
    width: min(100% - 32px, 520px);
  }

  .heroMainWrap .miniSlideText p {
    margin-bottom: 16px;
  }

  .heroMainWrap .miniSlideCta {
    padding: 12px 18px;
    font-size: 14px;
  }

  .categories-section {
    margin-top: 28px;
    padding: 18px 0 28px;
  }

  .categories-grid {
    gap: 14px;
    margin-top: 20px;
  }

  .category-card {
    height: 300px;
  }

  .category-overlay {
    padding: 16px;
  }

  .category-title {
    font-size: 17px;
  }

  .category-desc {
    font-size: 12px;
  }

  .popHead {
    gap: 12px;
    padding: 4px 0 14px;
  }

  .popTitle {
    font-size: 22px;
  }

  .popTabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .popTabs::-webkit-scrollbar {
    display: none;
  }

  .popTab {
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .popStripWrap {
    padding: 0 10px 8px;
  }

  .popStrip {
    gap: 10px;
    padding: 4px 4px 12px;
  }

  .popCard {
    width: min(78vw, 300px);
    height: 520px;
  }

  .stats-section {
    margin-top: 32px;
    padding: 20px 14px;
  }

  .stats-grid {
    gap: 16px !important;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 520px) {
  .heroMainWrap .miniCarousel {
    min-height: 66svh;
  }

  .heroMainWrap .miniSlideText {
    width: calc(100% - 24px);
  }

  .heroMainWrap .miniSlideText h2 {
    font-size: clamp(24px, 8.6vw, 34px);
    margin-bottom: 10px;
  }

  .heroMainWrap .miniSlideText p {
    font-size: 12px;
    line-height: 1.4;
  }

  .categories-grid {
    gap: 12px;
  }

  .category-card {
    height: 260px;
  }

  .popCard {
    width: min(84vw, 280px);
    height: 480px;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}
