/* WordPress-only fixes — do not override SiteGiant layout CSS */

html { margin-top: 0 !important; }
body.admin-bar { margin-top: 32px !important; }

/* Original site fades .motion in via scroll JS — we show content immediately */
#page-wrapper .motion {
  opacity: 1 !important;
  transform: none !important;
}

/* Account icon mask needs background to render */
#Header6 .account-icon-w-text {
  display: inline-block !important;
  background-color: #4A4A4A !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
}

/* Footer social icons keep circular frames; header top-bar is plain (see next-image-styled) */
#SocialMediaComponent .social-media-list .social-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border: 2px solid #4A4A4A !important;
  border-radius: 50% !important;
  color: #4A4A4A !important;
  margin: 0 3px !important;
}

#SocialMediaComponent .social-media-list .social-icon svg {
  display: block !important;
  fill: currentColor !important;
}

/* Top bar currency selector */
#Header6 .currency-social-media .currency select {
  border: none !important;
  background: transparent !important;
  color: #535B53 !important;
  font-size: 14px !important;
  cursor: default !important;
  padding: 0 4px !important;
}

/* Slick carousel arrows — ensure visible on homepage */
#FeaturedStyle .slick-arrow,
#LatestStyle .slick-arrow,
#CollectionCarouselStyle .slick-arrow,
#ProductReviewsStyle1 .slick-arrow,
#Banner1Style .slick-arrow {
  z-index: 2 !important;
}

/* Homepage carousel cards — ensure collection images visible */
#CollectionCarouselStyle .single-collection-box {
  display: block !important;
}

#FeaturedStyle .single-product-box,
#LatestStyle .single-product-box {
  display: block !important;
}

#CollectionCarouselStyle .collection-images .evtedN {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

#CollectionCarouselStyle .collection-images .next-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  opacity: 1 !important;
}

#CollectionCarouselStyle .collection-images img {
  object-fit: contain !important;
  opacity: 1 !important;
}

#CollectionCarouselStyle .collection-content h3 {
  color: #0C2028 !important;
}

#FeaturedStyle .single-product-box .ew-product-img-hover,
#LatestStyle .single-product-box .ew-product-img-hover,
#Styled_ProductCard .single-product-box .ew-product-img-hover {
  opacity: 0 !important;
}

/* Original CDN feature/latest CSS hides ALL .swappable > img on hover — override per case */
@media (min-width: 1024px) {
  #FeaturedStyle .inner-container .products-components .single-product-box:not(:has(.ew-product-img-hover)):hover .product-images .swappable > img,
  #LatestStyle .inner-container .products-components .single-product-box:not(:has(.ew-product-img-hover)):hover .product-images .swappable > img {
    opacity: 1 !important;
  }

  #FeaturedStyle .inner-container .products-components .single-product-box:has(.ew-product-img-hover):hover .product-images .swappable > .ew-product-img-primary,
  #LatestStyle .inner-container .products-components .single-product-box:has(.ew-product-img-hover):hover .product-images .swappable > .ew-product-img-primary {
    opacity: 0 !important;
  }

  #FeaturedStyle .inner-container .products-components .single-product-box:has(.ew-product-img-hover):hover .product-images .swappable > .ew-product-img-hover,
  #LatestStyle .inner-container .products-components .single-product-box:has(.ew-product-img-hover):hover .product-images .swappable > .ew-product-img-hover {
    opacity: 1 !important;
  }
}

@media (min-width: 1132px) {
  #Styled_ProductCard .single-product-box:not(:has(.ew-product-img-hover)):hover .product-image .swappable > img {
    opacity: 1 !important;
  }

  #Styled_ProductCard .single-product-box:has(.ew-product-img-hover):hover .product-image .swappable > .ew-product-img-primary {
    opacity: 0 !important;
  }

  #Styled_ProductCard .single-product-box:has(.ew-product-img-hover):hover .product-image .swappable > .ew-product-img-hover {
    opacity: 1 !important;
  }
}

#FeaturedStyle .single-product-box:has(.ew-product-img-hover):hover .ew-product-img-primary,
#LatestStyle .single-product-box:has(.ew-product-img-hover):hover .ew-product-img-primary {
  opacity: 0 !important;
}

#FeaturedStyle .single-product-box:has(.ew-product-img-hover):hover .ew-product-img-hover,
#LatestStyle .single-product-box:has(.ew-product-img-hover):hover .ew-product-img-hover {
  opacity: 1 !important;
}

#FeaturedStyle .single-product-box .ew-product-img-primary,
#LatestStyle .single-product-box .ew-product-img-primary {
  opacity: 1 !important;
}

#FeaturedStyle .slick-slide,
#LatestStyle .slick-slide,
#CollectionCarouselStyle .slick-slide {
  height: auto !important;
}

#FeaturedStyle .slick-slide > div,
#LatestStyle .slick-slide > div,
#CollectionCarouselStyle .slick-slide > div {
  height: 100% !important;
}

/* Section titles use PT Serif */
#FeaturedStyle .products-title,
#LatestStyle .products-title,
#CollectionCarouselStyle .collections-title,
#ProductReviewsStyle1 .product-reviews-heading,
#Instagram1Style .instagram-title {
  font-family: var(--font-pt-serif, 'PT Serif', Georgia, serif) !important;
}

/* Shop listing toolbar */
#Styled_ProductListing .filter-options {
  margin-bottom: 24px;
  align-items: flex-end;
}

#Styled_ProductListing .page-title h1 {
  font-family: var(--font-pt-serif, 'PT Serif', serif);
  font-size: 24px;
  margin: 0 0 4px;
}

#Styled_ProductListing .items-found {
  color: #9B9B9B;
  font-size: 13px;
  margin: 0;
}

#Styled_ProductListing .filter-options-2 {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

#Styled_AdvancedFilterDesktop .price-range-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

#Styled_AdvancedFilterDesktop .price-range-filter .ant-input {
  width: 100%;
  border: 1px solid rgba(155, 155, 155, 0.4);
  border-radius: 4px;
  padding: 8px 10px;
}

.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

/* Shop page flex layout — match original SiteGiant structure */
@media (min-width: 1132px) {
  #Styled_AllProducts.container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #Styled_AllProducts .sidebar-block-layout {
    width: auto !important;
    min-width: auto !important;
    flex: 0 0 236px !important;
  }

  #Styled_AllProducts .block-layout {
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
}

.ew-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}

.ew-mobile-menu.is-open { display: block; }

.ew-mobile-menu-inner {
  background: #fff;
  width: min(320px, 90vw);
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}

.ew-mobile-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  float: right;
}

/* Homepage section spacing — align with original SiteGiant layout */
@media (min-width: 1025px) {
  #FeaturedStyle .inner-container .products-components .products-title,
  #LatestStyle .inner-container .products-components .products-title,
  #CollectionCarouselStyle .inner-container .collections-components .collections-title {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #FeaturedStyle .inner-container,
  #LatestStyle .inner-container,
  #CollectionCarouselStyle .inner-container {
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ===== Mobile responsive — global + shop polish ===== */
html, body {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .kcvMZE,
  #page-wrapper {
    overflow-x: clip;
  }

  #Styled_ProductListing .filter-options {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }

  #Styled_ProductListing .filter-options-2,
  #Styled_ProductCollections .products-filter-options .products-ordering {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
    justify-content: flex-start !important;
    width: 100%;
  }

  #Styled_ProductCollections .products-filter-options .products-ordering-item {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    max-width: 100%;
  }

  #Styled_ProductCollections .products-filter-options .products-ordering-item select,
  #Styled_ProductCollections .products-filter-options .products-ordering-list,
  #Styled_ProductCollections .products-filter-options .products-result-list {
    width: 100% !important;
    max-width: 100% !important;
  }

  #Header6 .logo img,
  #Header6 .logo .next-image {
    max-width: 120px;
    height: auto;
  }

  .ew-cart-drawer {
    max-width: 100% !important;
    width: 100% !important;
  }

  #Styled_ProductListing .filter-options,
  #Styled_ProductListing .row.filter-options,
  #Styled_AllProducts .filter-options {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* Shop pagination — horizontal page numbers */
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 32px 0 16px;
  clear: both;
}

.woocommerce-pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100%;
}

.woocommerce-pagination ul.page-numbers li {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  list-style: none !important;
}

.woocommerce-pagination ul.page-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;
  background: #fff;
}

.woocommerce-pagination ul.page-numbers .page-numbers.current {
  background: #4a4a4a;
  border-color: #4a4a4a;
  color: #fff;
  font-weight: 700;
}

.woocommerce-pagination ul.page-numbers a.page-numbers:hover {
  border-color: #4a4a4a;
  color: #0c2028;
}

.woocommerce-pagination ul.page-numbers .page-numbers.dots {
  border: none;
  background: transparent;
  min-width: 24px;
}
