/* Minimal React-only additions — loaded AFTER styles.css, no Bootstrap/Swiper overrides */

#root {
  min-height: 100vh;
}

.nav-icon .count-box {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #181818;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon .nav-icon-item {
  position: relative;
}

.filter-sidebar-mobile {
  display: none;
}

.filter-sidebar-mobile.show {
  display: block;
}

@media (max-width: 991px) {
  .filter-sidebar-desktop {
    display: none;
  }

  .filter-sidebar-mobile.show {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: #fff;
    overflow-y: auto;
    padding: 1.5rem;
  }
}

.product-list-layout .card-product {
  display: flex;
  gap: 20px;
}

.product-list-layout .card-product-wrapper {
  flex: 0 0 200px;
  max-width: 200px;
}

.product-list-layout .card-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.swatch-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-block;
}

.swatch-color.active {
  border-color: #181818;
}

.swatch-size {
  min-width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}

.swatch-size.active {
  border-color: #181818;
  background: #181818;
  color: #fff;
}

.product-gallery-thumb {
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
}

.product-gallery-thumb.active {
  opacity: 1;
  border-color: #181818;
}

.form-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
}

.form-success {
  color: #27ae60;
  font-size: 14px;
  margin-top: 8px;
}

.announcement-marquee {
  padding: 10px 0;
}

.announcement-marquee .marquee-wrapper {
  animation-duration: 35s;
}

.announcement-marquee .marquee-child-item {
  white-space: nowrap;
}

.header-default .logo-header {
  display: inline-flex;
  align-items: center;
}

.header-default .mobile-menu {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.mobile-menu-backdrop {
  z-index: 3040 !important;
}

.mobile-menu-panel {
  z-index: 3050 !important;
  visibility: visible !important;
  background-color: #fff;
}

.mobile-menu-panel .mb-menu-link {
  display: block;
  padding: 12px 0;
  color: var(--main);
  font-weight: 500;
}

.flat-collection-circle .tf-sw-collection {
  overflow: hidden;
}

.flat-collection-circle .collection-circle {
  max-width: 180px;
  margin: 0 auto;
}

.tf-sw-iconbox {
  overflow: hidden;
  padding-bottom: 8px;
}

.tf-sw-iconbox + .sw-pagination-iconbox {
  margin-top: 20px;
}

.sw-pagination-collection,
.sw-pagination-categories,
.sw-pagination-iconbox {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .flat-collection-circle .collection-circle {
    max-width: 140px;
  }

  .flat-collection-circle .collection-content .text {
    font-size: 13px;
  }

  .flat-collection-circle .collection-content .count {
    font-size: 12px;
  }

  .tf-icon-box {
    gap: 12px;
    padding: 8px 4px;
  }

  .tf-icon-box .icon-box {
    font-size: 32px;
  }

  .tf-icon-box .content h6 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .tf-icon-box .content p {
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 575px) {
  .flat-collection-circle .collection-circle {
    max-width: 120px;
  }
}

.card-product .list-product-btn {
  pointer-events: auto;
  z-index: 7;
}

.card-product .list-product-btn .box-icon {
  pointer-events: auto;
}

@media (min-width: 1200px) {
  .card-product:not(.style-list, .list-st-2, .list-st-3) .card-product-wrapper:hover .list-product-btn .box-icon,
  .card-product:hover:not(.style-list, .list-st-2, .list-st-3) .list-product-btn .box-icon {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(0) !important;
  }
}

.modal-quick-view.show {
  display: block;
}

.flat-countdown-banner .banner-right {
  display: flex;
  justify-content: flex-end;
}

/* Landing page mobile responsiveness */
@media (max-width: 1199px) {
  .flat-countdown-banner .banner-left {
    text-align: center;
  }

  .flat-countdown-banner .banner-left .btn-banner {
    display: flex;
    justify-content: center;
  }

  .flat-countdown-banner .banner-right {
    justify-content: center;
    margin-top: 24px;
  }

  .flat-countdown-banner .tf-countdown-lg .countdown__timer {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .tf-topbar .topbar-left {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    padding: 6px 0;
  }

  .heading-section-2 {
    text-align: center;
  }

  .heading-section-2 .text-secondary {
    width: 100%;
  }

  .flat-collection-circle .tf-sw-collection {
    padding-bottom: 8px;
  }
}

@media (max-width: 767px) {
  .tf-slideshow .wrap-slider .box-content {
    padding: 24px 16px;
  }

  .tf-slideshow .wrap-slider .content-slider {
    max-width: 100%;
  }

  .tf-slideshow .wrap-slider .box-btn-slider .tf-btn {
    width: 100%;
    justify-content: center;
  }

  .tf-grid-layout.tf-col-2 {
    column-gap: 12px;
    row-gap: 20px;
  }

  .card-product.style-list {
    flex-direction: column;
    gap: 16px;
  }

  .card-product.style-list .card-product-wrapper,
  .card-product.style-list .card-product-info {
    max-width: 100%;
    width: 100%;
  }

  .testimonial-item-v2 h4 {
    font-size: 18px;
    line-height: 1.45;
    padding: 0 8px;
  }

  .gallery-item .img-style {
    aspect-ratio: 1;
  }

  .gallery-item .img-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .announcement-marquee .marquee-child-item p {
    font-size: 12px;
  }

  .flat-spacing,
  .flat-spacing-2,
  .flat-spacing-3 {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 575px) {
  .tf-topbar .topbar-left li:nth-child(3) {
    display: none;
  }

  .flat-countdown-banner .box-title h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  .tf-countdown-lg .countdown__timer {
    gap: 8px;
    flex-wrap: wrap;
  }

  .tf-countdown-lg .countdown__item {
    min-width: 64px;
  }

  .heading-section .heading,
  .heading-section-2 .heading {
    font-size: 22px;
    line-height: 1.3;
  }

  .tf-icon-box.style-2 {
    padding: 8px 4px;
  }
}
