
/* Site 2 image/container + chrome fixes */
#vape-img-fix, #vape-hero-fix { display:none; }
img[src*="brand-logo"],
.elementor-widget-theme-site-logo img,
.custom-logo-link img,
.site-logo-img img {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
@media (max-width: 921px) {
  img[src*="brand-logo"],
  .elementor-widget-theme-site-logo img,
  .custom-logo-link img,
  .site-logo-img img {
    width: 72px !important;
    max-width: 72px !important;
    max-height: 56px !important;
  }
}
.elementor-widget-slides .elementor-swiper,
.elementor-widget-slides .swiper,
.elementor-slides-wrapper {
  min-height: 380px !important;
  height: 380px !important;
  max-height: 380px !important;
}
@media (max-width: 767px) {
  .elementor-widget-slides .elementor-swiper,
  .elementor-widget-slides .swiper,
  .elementor-slides-wrapper {
    min-height: 240px !important;
    height: 240px !important;
    max-height: 240px !important;
  }
}
.swiper-slide-bg {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-color: #111 !important;
}
.elementor-widget-image:not(.elementor-widget-theme-site-logo) img {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f1ec;
}
.woocommerce ul.products li.product img,
.attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
.vape-static-gallery {
  width: 100%;
}
.vape-static-gallery__frame {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #f4f1ec;
  position: relative;
}
.vape-static-gallery__main {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
.vape-static-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.woocommerce-product-gallery {
  opacity: 1 !important;
}
.woocommerce-product-gallery .flex-viewport {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  overflow: hidden !important;
}
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper {
  background: #f4f1ec;
}
.woocommerce-product-gallery__wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.woocommerce-product-gallery__image:first-child {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
}
.woocommerce-product-gallery__image:not(:first-child) {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
}
.woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
  height: 100%;
}
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}
.woocommerce-product-details__short-description .vape-spec-in-desc {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  margin: 12px 0 4px;
}
.woocommerce-product-details__short-description .vape-spec-in-desc th,
.woocommerce-product-details__short-description .vape-spec-in-desc td {
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
.woocommerce-product-details__short-description .vape-spec-in-desc th {
  width: 140px;
  color: #555;
  font-weight: 600;
}
.elementor-widget-woocommerce-product-content,
.elementor-element-61c1eeec,
.native-vape-details {
  display: none !important;
}
.wpsr-reviewer-avatar {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 50%;
}
.wpsr-review-platform-icon {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}
table.variations,
.variation-radios,
.woocommerce-variation,
.reset_variations,
.single_variation_wrap .woocommerce-variation-availability {
  display: none !important;
}
.vape-tg-buy {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  background: #c0664e;
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
}
.vape-tg-buy:hover { background: #d8856f; color: #fff !important; }
.woocommerce-pagination,
.onsale { display: none !important; }

.elementor-widget-theme-site-logo img,
img[src*="brand-logo.png"] {
  width: 120px !important;
  max-width: 120px !important;
  min-width: 72px !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain !important;
}
.elementor-widget-slides,
.elementor-widget-slides .elementor-swiper,
.elementor-widget-slides .swiper,
.elementor-slides-wrapper {
  height: 380px !important;
  max-height: 380px !important;
  min-height: 380px !important;
}
.elementor-element-51638b8,
.elementor-element-69eed2d,
.elementor-element-7b71f55 {
  min-height: 0 !important;
  height: auto !important;
}
.elementor-widget-image:not(.elementor-widget-theme-site-logo) .elementor-widget-container {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  max-height: 420px !important;
  overflow: hidden !important;
  background: #f4f1ec !important;
}
.elementor-widget-image:not(.elementor-widget-theme-site-logo) img {
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
}
.ast-shop-product-out-of-stock { display:none !important; }

.variation-radios, .variation-radios.tag, .tag-list { display:none !important; }

/* Desktop header: keep 9 nav items on one row */
@media (min-width: 1025px) {
  header.elementor-328 .elementor-element-aa63cdc > .e-con-inner,
  .elementor-location-header .elementor-element-aa63cdc > .e-con-inner {
    max-width: none !important;
    width: 100% !important;
  }
  .elementor-element-163f4c3 {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 140px !important;
  }
  .elementor-element-f2422a1 {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .elementor-element-42cc112 {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .elementor-328 .elementor-nav-menu--main ul.elementor-nav-menu,
  #menu-1-22a9427 {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .elementor-328 .elementor-nav-menu--main .elementor-item {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
  .elementor-element-4c89fa5 {
    display: none !important;
  }
}

/* Remove original coffee decorative backgrounds */
.elementor-element-7b71f55,
.elementor-element-da5c9ff,
.elementor-element-42f8b4b,
.elementor-element-474bf563,
.elementor-element-7b71f55:not(.elementor-motion-effects-element-type-background),
.elementor-element-da5c9ff:not(.elementor-motion-effects-element-type-background),
.elementor-element-42f8b4b:not(.elementor-motion-effects-element-type-background),
.elementor-element-474bf563:not(.elementor-motion-effects-element-type-background),
.elementor-element-7b71f55 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-element-da5c9ff > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-element-42f8b4b > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-element-474bf563 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: none !important;
}

/* Homepage banner: replace leftover coffee-bean photo with site product image */
.elementor-element-28e028d7,
.elementor-element-28e028d7:not(.elementor-motion-effects-element-type-background),
.elementor-element-28e028d7 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("../products/SP2SMAX系列主機/全家福.webp") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #1c1612 !important;
}
.elementor-element-28e028d7 > .elementor-background-overlay {
  background-color: #140e0a !important;
  opacity: 0.45 !important;
}

/* Homepage: lock every image into a fixed frame */
body.home .elementor-element-51638b8,
body.home .elementor-element-69eed2d,
body.home .elementor-widget-slides,
body.home .elementor-widget-slides .elementor-swiper,
body.home .elementor-widget-slides .swiper,
body.home .elementor-slides-wrapper,
body.home .elementor-widget-slides .swiper-slide {
  height: 380px !important;
  max-height: 380px !important;
  min-height: 380px !important;
  overflow: hidden !important;
}
@media (max-width: 767px) {
  body.home .elementor-element-51638b8,
  body.home .elementor-element-69eed2d,
  body.home .elementor-widget-slides,
  body.home .elementor-widget-slides .elementor-swiper,
  body.home .elementor-widget-slides .swiper,
  body.home .elementor-slides-wrapper,
  body.home .elementor-widget-slides .swiper-slide {
    height: 240px !important;
    max-height: 240px !important;
    min-height: 240px !important;
  }
}
body.home .swiper-slide-bg {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-color: #111 !important;
}
body.home .elementor-widget-image:not(.elementor-widget-theme-site-logo) .elementor-widget-container,
body.home .elementor-widget-image:not(.elementor-widget-theme-site-logo) figure {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  max-height: 420px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f1ec !important;
}
body.home .elementor-widget-image:not(.elementor-widget-theme-site-logo) img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
body.home .elementor-widget-image.elementor-absolute:not(.elementor-widget-theme-site-logo) {
  width: 240px !important;
  height: 380px !important;
}
body.home .elementor-widget-image.elementor-absolute:not(.elementor-widget-theme-site-logo) .elementor-widget-container {
  width: 240px !important;
  height: 380px !important;
}
body.home .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.home .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: block !important;
  width: 250px !important;
  height: 250px !important;
  max-width: 100% !important;
  overflow: hidden !important;
  background: #f4f1ec !important;
}
body.home .woocommerce ul.products li.product img {
  width: 250px !important;
  height: 250px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
body.home .elementor-image-box-img,
body.home .elementor-widget-image-box img {
  width: 280px !important;
  height: 280px !important;
  object-fit: cover !important;
  background: #f4f1ec;
}
body.home .elementor-widget-posts .elementor-post__thumbnail,
body.home .elementor-widget-posts .elementor-post__thumbnail__link {
  display: block !important;
  height: 180px !important;
  overflow: hidden !important;
  background: #f4f1ec !important;
}
body.home .elementor-widget-posts img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  object-position: center center !important;
}
body.home .wpsr-reviewer-avatar {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
}

/* Inner pages (FAQ / shop / categories): center the content column */
#content.site-content > .ast-container.vape-wrap,
#content.site-content > .ast-container:has(.woocommerce-products-header),
#content.site-content > .ast-container:has(ul.products) {
  display: block !important;
  max-width: 1180px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 36px 24px 64px !important;
  box-sizing: border-box !important;
}
.vape-faq {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.vape-faq h1 {
  text-align: center;
  margin: 0 0 20px;
}
.vape-faq p {
  text-align: center;
  line-height: 1.8;
  margin: 0 0 16px;
}
.woocommerce-products-header {
  text-align: center !important;
  max-width: 760px;
  margin: 0 auto 32px !important;
}
.woocommerce-products-header .page-title,
.woocommerce-products-header p {
  text-align: center !important;
}
#content ul.products.elementor-grid,
#content ul.products.columns-3,
#content .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px 24px !important;
  justify-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}
#content ul.products li.product,
#content ul.products li.product.ast-full-width,
#content ul.products li.product.ast-grid-common-col {
  width: 100% !important;
  max-width: 360px !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}
#content ul.products li.product .astra-shop-thumbnail-wrap,
#content ul.products li.product .woocommerce-LoopProduct-link {
  margin-left: auto !important;
  margin-right: auto !important;
}
#content ul.products li.product .woocommerce-loop-product__title,
#content ul.products li.product .price,
#content ul.products li.product .ast-woo-product-category,
#content ul.products li.product .button {
  text-align: center !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 921px) {
  #content ul.products.elementor-grid,
  #content ul.products.columns-3,
  #content .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  #content ul.products.elementor-grid,
  #content ul.products.columns-3,
  #content .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}
