@media (max-width: 1399px) {
  .col-gd {
      width: 25%;
  }
  .hero-area3.hero-area4 .item {
      height: 450px;
  }
}
@media (max-width: 1366px) {
  .slider-area-wrapper .item-inner {
      max-width: 70%;
  }
  .flash-sell-area.three_column_product .section-title h2{
      font-size: 24px;
  }
  .flash-sell-area.three_column_product .section-title h2 {
      font-size: 20px;
  }
}

@media (max-width: 1050px) {
  .left-category-area .category-list .navi-link img{
      display: none;
  }
  .left-category-area .category-list .navi-link {
      padding: 17px 8px;
  }
  .left-category-area .category-list {
      padding: 14px 0px;
  }
  .left-category-area .category-list .navi-link i {
      top: 5px;
  }

}

@media (max-width: 991px) {
  .hero-area3 .right-img img {
      max-width: 220px;
      display: inline-block;
      margin-bottom: 20px;
  }
  .slider-area-wrapper .item-inner {
      max-width: 100%;
  }

  .hero-area3 .left-content .title {
      font-size: 24px;
      line-height: 34px;
  }
  .hero-area3 .left-content{
      text-align: center;
      width: 100%;
  }
  .owl-carousel .owl-prev, .owl-carousel .owl-next {
      width: 30px;
      height: 30px;
      line-height: 30px;
  }
  .hero-area3 .left-content .subtitle {
      font-size: 30px;
  }
  .service-section.mt-60.pt-0{
      margin-top: 30px !important;
  }

  .col-gd {
      width: 33.333%;
  }
  .newproduct-section .section-title,
  .sps-two .section-title
  {
      display: block;
      text-align: center;
  }
  .sps-two  .section-title h2,
  .newproduct-section  .section-title h2
  {
      display: inline-block;
      margin-bottom : 20px;
  }
  .newproduct-section .section-title .links,
  .sps-two .section-title .links
  {
      display : block;
  }
  .newproduct-section .section-title .links, 
  .sps-two .section-title .links 
  {
      padding-bottom: 10px;
  }
  .section-title .links a::before {
      display: none;
  }
  .widget.p-4 {
      padding: 0px !important;
      box-shadow: none !important;
  }
  .contact-page .card.widget.p-4,
  .checkut-page .card.widget.p-4
  {
      border-radius: 5px !important;
      padding: 1.5rem !important;
  }
  .topbar{
      position: relative;
  }
  .compare-mobile {
      margin-right: 0px;
      margin-left: 10px;
  }
  .site-header .search-box-wrap{
      position: absolute;
      left: 0px;
      width: 100%;
      background: transparent !important;
      width: 100%;
      height: 100%;
      top: 0px;
      z-index: 999;
  }
  .close-m-serch{
      font-size: 24px;
      margin-left: 20px;
      cursor: pointer;
  }
  .track-order-link.wishlist-mobile{
      margin-right: 10px;
  }
  .t-h-dropdown {
      margin-right: 10px;
  }
  .hero-slider .item {
      height: 430px;
  }
  .body_theme2 .hero-slider .item {
      height: 430px;
  }
}

@media (max-width: 767px) {
  .hero-area3.hero-area4 .item {
      height: 320px;
  }
  .body_theme2 .genius-banner{
      margin-bottom: 30px;
  }
  .body_theme3 .genius-banner{
      margin-bottom: 30px;
  }
  .body_theme4 .genius-banner{
      margin-bottom: 30px;
  }
  .shop-top-filter-wrapper .gd-text-sm-center{
      text-align: center;
  }
  .shop-top-filter-wrapper select.form-control:not([size]):not([multiple]) {
      height: 35px;
  }
  .quickFilter .quickFilter-title{
      height: 35px;
      line-height: 35px;
  }
  .shop-top-filter-wrapper .shop-sorting .form-control {
      max-width: 155px;
  }
  .shop-top-filter-wrapper .gd-text-sm-center .sptfl{
      justify-content: center;
      display: block;
  }
  .shop-top-filter-wrapper .shop-view{
      float: unset;
      margin-top: 15px;
  }
  .shop-top-filter-wrapper  .shop-sorting{
      display: block;
      flex: unset;
      margin-top: 15px;
      text-align: center;
  }

  .col-gd {
      width: 50%;
  }
  .hero-slider .owl-carousel .owl-nav div {
      width: 35px;
      height: 35px;
      line-height: 35px;
  }
  .hero-slider .item {
      padding: 0px 20px;
  }
  .payment-methods .single-payment-method {
      width: 50%;
  }
  .details-page-top-right-content{
      margin-top: 30px;
  }
  .t-m-s-a{
      text-align: center;
  }
  a.genius-banner {
      margin-bottom: 30px;
  }
  /* Two-column home banners: keep pair on one row on phones (uses col-6); reduce extra gap */
  .bannner-section .row.gx-3 > [class*="col-"] > a.genius-banner {
      margin-bottom: 0;
  }
  .deal-of-day-section .section-title{
      display: block;
      text-align: center;
  }
  .deal-of-day-section .section-title h2{
      display: inline-block;
  }
  .deal-of-day-section .countdown{
      display: table;
      margin: 0 auto;
  }
  .deal-of-day-section .section-title .right-area{
      padding: 10px 0px 10px;
  }
  .flash-sell-area .section-title{
      text-align: left;
  }

}
@media (max-width: 576px) {
  .shop-top-filter-wrapper  .shop-sorting #sorting{
      display: block;
      margin: 0 auto;
  }
  .hero-slider .item {
      height: 340px;
  }
  .announcement-with-content .left-area {
      display: none;
  }
  .announcement-with-content .right-area {
      padding-left: 0px;
  }
  .announcement-with-content .right-area h3{
      font-size: 24px;
      font-weight: 600;
  }
}


@media (max-width: 500px) {
  .hero-area3.hero-area4 .item {
      height: 250px;
  }
  .slider-area-wrapper .item-inner .title {
      font-size: 30px;
  }
  .slider-area-wrapper .item-inner .subtitle {
      font-size: 15px;
      line-height: 24px;
  }

  .selected-product-section .features-slider .owl-nav div{
      top: 50% !important;
      transform: translateY(-50%);
  }
  .selected-product-section .features-slider .owl-nav div.owl-prev{
      left: -10px;
      right: auto;
  }
  .selected-product-section .features-slider .owl-nav div.owl-next{
      right: -10px;
  }
  .product-card .product-title > a {
      font-size: 13px !important;
      display: block;
  }
  .product-card .product-category>a{
      font-size: 12px;
  }
  .deal-of-day-section .section-title .h3::before{
      display: none;
  }
  .site-header .toolbar .toolbar-item {
      width: 34px;
      margin-left: 6px;
  }
  .flash-sell-new-section .product-card{
      display: block;
  }
  .flash-sell-new-section .product-card .product-thumb{
      width: 100%;
  }
  .flash-sell-area .section-title h2{
      font-size: 20px;
  }
  .p-action-button{
      display: block;
      margin-top: 12px;
  }
  .details-page-top-right-content .product-quantity{
      float: none;
  }
  .site-header .search-box-wrap .input-group{
      position: unset;
      background: transparent !important;
  }
  .site-header .search-box-wrap .search-box-inner{
      position: relative;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
  }
}

@media (max-width: 414px) {
  .g-3, .gy-3 {
      --bs-gutter-y: 10px !important;
  }
  .g-3, .gx-3 {
      --bs-gutter-x: 10px !important;
  }
  .t-h-dropdown {
      margin-right: 8px;
  }
  .section-title h2 {
      font-size: 20px;
  }
  .details-page-top-right-content .p-title-main {
      font-size: 20px;
      line-height: 30px;
  }
 
}
@media (max-width: 390px) {
  .product-card .product-price > del{
      display: block;
  }
}
@media (max-width: 360px) {
  .product-card .product-title > a {
      font-size: 12px !important;
  }
  .product-card .product-card-body {
      padding: 10px 5px 0px;
  }
  .product-card.p-col .product-thumb {
      width: 100px;
      margin-right: 20px;
  }
  .genius-banner .inner-content h4 {
      font-size: 20px;
  }
}

.pagination {
  display: block; 
}
.pagination li {
  display: inline-block;
  margin: 3px 3px;
}

/* Mobile header compact density */
@media (min-width: 992px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1035;
  }

  /* Override legacy sticky script styles: keep header + menu together */
  .navbar-stuck .topbar,
  .navbar-stuck .navbar {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
  }
}

@media (max-width: 991.98px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1035;
  }

  /* Override legacy sticky script styles: keep header + menu together */
  .navbar-stuck .topbar,
  .navbar-stuck .navbar {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
  }

  .site-header .topbar {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .site-header .site-branding {
    padding: 6px 0 !important;
  }

  .site-header .site-branding .site-logo > img {
    max-height: 30px;
    width: auto;
  }

  .site-header .toolbar .toolbar-item {
    width: 30px;
    margin-left: 6px;
  }

  .site-header .toolbar .toolbar-item > a {
    padding: 2px;
  }

  .site-header .toolbar .toolbar-item > a > div i {
    margin-bottom: 0;
    font-size: 18px;
  }

  .site-header .toolbar .toolbar-item > a > div > .text-label {
    display: none;
  }

  .site-header .search-box-wrap {
    height: auto;
    min-height: 38px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .site-header .search-box-wrap .search-box .input-group {
    min-height: 34px;
  }

  .site-header .search-box-wrap .search-box .form-control {
    height: 34px;
    min-height: 34px;
    font-size: 12px;
  }

  .site-header .search-box-wrap .search-box .input-group-addon,
  .site-header .search-box-wrap .search-box .input-group-btn button {
    height: 34px;
    min-height: 34px;
    line-height: 34px;
  }
}

@media (max-width: 767.98px) {
  .site-header .topbar {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .site-header .site-branding .site-logo > img {
    max-height: 26px;
  }

  .site-header .search-box-wrap {
    min-height: 34px;
    padding-top: 1px;
    padding-bottom: 1px;
  }

  .site-header .search-box-wrap .search-box .input-group,
  .site-header .search-box-wrap .search-box .form-control,
  .site-header .search-box-wrap .search-box .input-group-addon,
  .site-header .search-box-wrap .search-box .input-group-btn button {
    min-height: 32px;
    height: 32px;
    line-height: 32px;
  }

  /* Hide featured category sections on mobile */
  .featured-categories-hero,
  .selected-product-section.featured_cat_sec,
  .featured-for-home3 {
    display: none !important;
  }
}

/* Product card: thumbnail image links to product detail (keeps same layout as .product-thumb > img) */
.product-card .product-thumb > a.product-thumb-detail {
  display: block;
  width: 100%;
  overflow: hidden;
}
.product-card .product-thumb > a.product-thumb-detail > img {
  display: block;
  width: 100%;
  padding-top: 0;
  transform: scale(1);
  -webkit-transition: 0.3s linear;
  -moz-transition: 0.3s linear;
  transition: 0.3s linear;
}
.product-card:hover .product-thumb > a.product-thumb-detail > img {
  transform: scale(1.1);
}

/* Single-line topbar: logo | search (flex) | toolbar — no wrap */
.site-header .header-topbar-row {
  flex-wrap: nowrap;
}
@media (min-width: 992px) {
  .site-header .header-topbar-row .search-box-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .site-header .header-topbar-row .search-box-wrap .search-box-inner,
  .site-header .header-topbar-row .search-box-wrap .search-box {
    width: 100%;
    max-width: 100%;
  }
}
.site-header .header-toolbar-layout {
  flex: 1 1 auto;
  min-width: 0;
}
.site-header .header-toolbar-center {
  min-width: 0;
}
.site-header .header-toolbar-center .header-toolbar-cart-item {
  position: relative;
}

/* Centered cart: align mini-cart panel under the icon */
@media (min-width: 992px) {
  .site-header .header-toolbar-center .header-toolbar-cart-item .toolbar-dropdown.cart-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* —— Product grid cards: hover overlay + full-width “Add to cart” bar —— */
.product-card:not(.product-list) .product-thumb > a.product-thumb-detail {
  position: relative;
  z-index: 0;
}

.product-card:not(.p-col):not(.product-list) {
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:not(.p-col):not(.product-list):hover {
  transform: translateY(-3px);
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.10);
}

/* Clean card: focus on product image (no crop) */
.product-card:not(.p-col):not(.product-list) .product-thumb {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: #fff;
}

.product-card:not(.p-col):not(.product-list) .product-thumb > a.product-thumb-detail {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 22px 18px;
  overflow: hidden;
}

.product-card:not(.p-col):not(.product-list) .product-thumb > a.product-thumb-detail > img {
  width: 100%;
  height: 100%;
  max-width: 170px;
  max-height: 170px;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.28s ease;
}

.product-card:not(.p-col):not(.product-list):hover .product-thumb > a.product-thumb-detail > img {
  transform: scale(1.1);
}

/* Product cards (all pages): make image much larger without changing card size */
.product-card:not(.p-col):not(.product-list) .product-thumb > a.product-thumb-detail {
  padding: 8px 6px;
}

.product-card:not(.p-col):not(.product-list) .product-thumb > a.product-thumb-detail > img,
.product-card:not(.p-col):not(.product-list) .product-thumb > img {
  max-width: 220px;
  max-height: 220px;
  transform: scale(1.14);
}

.product-card:not(.p-col):not(.product-list):hover .product-thumb > a.product-thumb-detail > img,
.product-card:not(.p-col):not(.product-list):hover .product-thumb > img {
  transform: scale(1.22);
}

/* Keep all labels/badges (discount, flash, etc.) over image area */
.product-card:not(.p-col):not(.product-list) .product-badge,
.product-card:not(.p-col):not(.product-list) .product-badge.product-badge2 {
  top: 10px;
  z-index: 12;
}

.product-card:not(.p-col):not(.product-list) .product-card-body {
  padding: 10px 16px 16px;
}

/* Screenshot-style: hide category + stars for a cleaner card */
.product-card:not(.p-col):not(.product-list) .product-category,
.product-card:not(.p-col):not(.product-list) .rating-stars {
  display: none !important;
}

.product-card:not(.p-col):not(.product-list) .product-title {
  margin-bottom: 10px;
}

.product-card:not(.p-col):not(.product-list) .product-title > a {
  height: auto;
  max-height: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
}

.product-card:not(.p-col):not(.product-list) .product-price {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 15px;
}

.product-card:not(.p-col):not(.product-list) .product-price > del {
  margin-right: 0;
  font-size: 13px;
}

/* Compact floating pills */
.product-card:not(.p-col):not(.product-list) .product-badge {
  top: 12px;
  left: 12px;
  height: 24px;
  line-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.product-card:not(.p-col):not(.product-list) .product-badge.product-badge2 {
  left: auto;
  right: 12px;
  border-radius: 999px;
}

.product-card:not(.product-list) .product-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.product-card:not(.product-list):hover .product-thumb::before {
  opacity: 0;
}

.product-card:not(.product-list) .product-button-group {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px;
  text-align: left;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.product-card:not(.product-list) .product-button-group a.product-button {
  pointer-events: auto;
}

.product-card:not(.product-list) .product-button-group .wishlist_store,
.product-card:not(.product-list) .product-button-group .product_compare {
  position: absolute;
  top: 12px;
  z-index: 3;
  margin: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  background: #daa520;
  color: #fff !important;
  border: 1px solid #daa520;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.product-card:not(.product-list) .product-button-group .wishlist_store i,
.product-card:not(.product-list) .product-button-group .product_compare i {
  color: #fff !important;
  font-size: 14px;
}

.product-card:not(.product-list) .product-button-group .wishlist_store {
  left: 12px;
  right: auto;
  top: auto;
  /* Keep it visible above the full-width Add to Cart CTA */
  bottom: 62px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Keep action icons always visible (no hover-only reveal) */
.product-card:not(.product-list):hover .product-button-group {
  opacity: 1 !important;
  visibility: visible !important;
}

.product-card:not(.product-list) .product-button-group .product_compare {
  right: 12px;
}

/* Compare removed: keep safe even if any template still has it */
.product-card:not(.product-list) .product-button-group .product_compare {
  display: none !important;
}

.product-card:not(.product-list) .product-button-group .add_to_single_cart {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  top: auto;
  z-index: 3;
  margin: 0;
  width: auto;
  height: auto;
  min-height: 42px;
  line-height: 1.35;
  padding: 10px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  background: var(--theme-primary, #377dff);
  color: #fff !important;
}

.product-card:not(.product-list) .product-button-group .add_to_single_cart i {
  color: #fff !important;
  font-size: 18px;
  flex-shrink: 0;
}

.product-card:not(.product-list) .product-button-group .add_to_single_cart .product-button-label {
  display: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff !important;
}

.product-card:not(.product-list):hover .product-button-group .add_to_single_cart .product-button-label {
  display: inline;
}

/* Details / affiliate: keep compact circle, centered bottom */
.product-card:not(.product-list) .product-button-group > a.product-button:not(.wishlist_store):not(.product_compare):not(.add_to_single_cart) {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  margin: 0;
  z-index: 3;
  background: #fff;
  color: #333 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-card:not(.product-list) .product-button-group > a.product-button:not(.wishlist_store):not(.product_compare):not(.add_to_single_cart) i {
  color: #333 !important;
}

[dir="rtl"] .product-card:not(.product-list) .product-button-group .wishlist_store {
  left: auto;
  right: 12px;
}

[dir="rtl"] .product-card:not(.product-list) .product-button-group .product_compare {
  right: auto;
  left: 12px;
}

/* Force wishlist icon to stay visible in all product-card states */
.product-card .product-button-group .wishlist_store {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #daa520 !important;
  border: 1px solid #daa520 !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
  z-index: 5 !important;
}

.product-card .product-button-group .wishlist_store:hover,
.product-card .product-button-group .wishlist_store:focus,
.product-card .product-button-group .wishlist_store:active {
  background: #daa520 !important;
  background-color: #daa520 !important;
  background-image: none !important;
  border-color: #daa520 !important;
  color: #fff !important;
}

.product-card .product-button-group .wishlist_store i {
  color: #fff !important;
}

/* New Arrival / Hot Collection / Featured / Recommended (theme1 .new-product-grid): 6 equal columns desktop (no empty slot); 2 cols on phones */
.new-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.new-product-grid__item {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .new-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Recommended + New Upload blocks above blog */
.home-products-block .home-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-products-block .home-products-grid__item {
  min-width: 0;
}

.home-products-block .product-card {
  height: 100%;
  margin: 0;
}

@media (max-width: 991.98px) {
  .home-products-block .home-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Highest-priority fill color for wishlist button */
.product-card .product-button-group a.product-button.wishlist_store,
.product-card .product-button-group a.product-button.wishlist_store:hover,
.product-card .product-button-group a.product-button.wishlist_store:focus,
.product-card .product-button-group a.product-button.wishlist_store:active,
.product-card .product-button-group a.product-button.wishlist_store.active {
  background: #daa520 !important;
  background-color: #daa520 !important;
  background-image: none !important;
  border-color: #daa520 !important;
}

.product-card .product-button-group {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Product card: always-visible CTA row (list / home) */
.product-card-cta-row {
  margin-top: 10px;
  width: 100%;
}

.product-card .product-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.product-card .product-card-cta--outline {
  border: 2px solid var(--theme-primary, #377dff);
  background: #fff;
  color: var(--theme-primary, #377dff) !important;
}

.product-card .product-card-cta--outline:hover {
  background: var(--theme-primary, #377dff);
  color: #fff !important;
}

.product-card .product-card-cta--outline:hover i {
  color: #fff !important;
}

.product-card .product-card-cta--muted {
  display: block;
  text-align: center;
  padding: 10px;
  color: #888;
  font-size: 13px;
}

.product-card-qty {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--theme-primary, #377dff);
  background: #fff;
}

.product-card-qty__btn {
  flex: 0 0 44px;
  border: none;
  background: var(--theme-primary, #377dff);
  color: #fff !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.product-card-qty__btn:hover {
  filter: brightness(1.05);
}

.product-card-qty__input {
  flex: 1 1 auto;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  min-width: 0;
  background: #fff;
  color: #222;
}

.product-card.product-list .product-card-inner .product-card-cta-row {
  margin-top: 12px;
}

.product-card.product-list .product-card-cta,
.product-card.product-list .product-card-qty {
  max-width: 280px;
}

@media (max-width: 767.98px) {
  .product-card .product-card-cta {
    gap: 6px;
    font-size: 12px;
    min-height: 40px;
    padding: 8px 8px;
    white-space: nowrap;
    overflow: hidden;
  }

  .product-card .product-card-cta span {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1;
  }

  .product-card .product-card-cta i {
    flex: 0 0 auto;
    font-size: 12px;
  }

  /* Keep variant CTA text on one line in narrow mobile cards */
  .product-card .product-card-cta--outline .icon-arrow-right {
    display: none !important;
  }

  .product-card .product-card-cta--outline span {
    font-size: 11px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }
}

/* Variant popup for product cards: premium look */
.variant-card-modal .variant-card-modal__dialog {
  max-width: 560px;
}

.variant-card-modal .variant-card-modal__content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

.variant-card-modal .modal-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(239, 41, 76, 0.08), rgba(255, 255, 255, 1));
  padding: 14px 16px;
}

.variant-card-modal .modal-header .close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--theme-primary, #ef294c);
  color: #fff !important;
  opacity: 1;
  text-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.variant-card-modal .modal-header .close:hover {
  filter: brightness(1.05);
}

.variant-card-modal .modal-title {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.variant-card-modal .modal-body {
  padding: 14px 16px 8px;
  max-height: 62vh;
  overflow-y: auto;
}

.variant-card-modal .product-variant-field {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 10px;
}

.variant-card-modal .product-variant-field__label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.variant-card-modal .product-variant-radio {
  position: relative;
  margin-right: 6px;
  margin-bottom: 6px;
}

.variant-card-modal .product-variant-radio__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-card-modal .product-variant-radio__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
}

.variant-card-modal .product-variant-radio__input:checked + .product-variant-radio__face {
  background: rgba(239, 41, 76, 0.08);
  border-color: var(--theme-primary, #ef294c);
  color: var(--theme-primary, #ef294c);
}

.variant-card-modal .modal-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 16px 14px;
}

.variant-card-modal .js-vcm-submit {
  min-width: 138px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(239, 41, 76, 0.24);
}

@media (max-width: 575.98px) {
  .variant-card-modal .variant-card-modal__dialog {
    margin: 10px;
  }

  .variant-card-modal .modal-title {
    font-size: 15px;
  }

  .variant-card-modal .modal-body {
    max-height: 68vh;
  }
}

/* Flash Deal (homepage slider): styles.min.css uses row flex + 250px thumb — narrower than each slide on phones,
   so the text column collapses, countdown crams into one broken line, and +/- clips after add-to-cart. */
@media (max-width: 991.98px) {
  .flash-sell-new-section .product-card {
    display: block;
  }
  .flash-sell-new-section .product-card .product-thumb {
    width: 100% !important;
    max-width: 100%;
  }
  .flash-sell-new-section .product-card .product-card-inner {
    display: block;
    width: 100%;
    align-items: stretch;
  }

  .flash-sell-new-section .product-card .countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .flash-sell-new-section .product-card .countdown span {
    min-width: 0 !important;
    margin-right: 0 !important;
    display: block;
    text-align: center;
  }

  .flash-sell-new-section .product-card-qty {
    max-width: 100%;
    min-width: 0;
  }

  .flash-sell-new-section .product-card-qty__btn {
    flex: 0 0 34px;
    min-width: 28px;
    max-width: 40px;
    font-size: 17px;
    padding: 0 2px;
  }

  .flash-sell-new-section .product-card-qty__input {
    font-size: 13px;
    padding: 6px 2px;
    min-width: 0;
  }
}