/*
Theme Name:   Hermeshop
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

/* Keep product variation/SKU swatch images compact on XStore product pages. */
.single-product table.variations .st-swatch-preview,
.single-product table.variations .st-swatch-preview img,
.single-product table.variations .et_st-default-holder,
.single-product table.variations .et_st-default-holder img,
.single-product table.variations .et-swatch-preview,
.single-product table.variations .et-swatch-preview img,
.single-product table.variations .swatch-preview,
.single-product table.variations .swatch-preview img,
.single-product table.variations .variable-item-image,
.single-product table.variations .variable-item-image img,
.single-product table.variations .image-variable-item,
.single-product table.variations .image-variable-item img {
  width: 56px !important;
  max-width: 56px !important;
  height: 56px !important;
  max-height: 56px !important;
  object-fit: cover;
}

.single-product table.variations .image-variable-wrapper,
.single-product table.variations .variable-items-wrapper,
.single-product table.variations .st-swatch-in-loop,
.single-product table.variations .et_st-default-holder,
.single-product table.variations .image-variable-item {
  gap: 8px;
}

.single-product table.variations .image-variable-item,
.single-product table.variations .variable-item,
.single-product table.variations .st-swatch-preview,
.single-product table.variations .et-swatch-preview,
.single-product table.variations .swatch-preview {
  overflow: hidden;
  border-radius: 4px;
  line-height: 1;
}

@media (max-width: 767px) {
  .single-product table.variations .st-swatch-preview,
  .single-product table.variations .st-swatch-preview img,
  .single-product table.variations .et_st-default-holder,
  .single-product table.variations .et_st-default-holder img,
  .single-product table.variations .et-swatch-preview,
  .single-product table.variations .et-swatch-preview img,
  .single-product table.variations .swatch-preview,
  .single-product table.variations .swatch-preview img,
  .single-product table.variations .variable-item-image,
  .single-product table.variations .variable-item-image img,
  .single-product table.variations .image-variable-item,
  .single-product table.variations .image-variable-item img {
    width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
  }
}

/* Some marketplace sync tools place SKU option images in the product summary before variations. */
.single-product .summary .woocommerce-product-details__short-description img,
.single-product .summary.entry-summary > p img,
.single-product .product-information-inner > p img,
.single-product .product-information > p img,
.single-product .product_meta + p img,
.single-product form.variations_form.cart ~ p img {
  width: 56px !important;
  max-width: 56px !important;
  height: 56px !important;
  max-height: 56px !important;
  object-fit: cover;
  display: inline-block;
  margin: 0 8px 8px 0;
  border-radius: 4px;
  vertical-align: top;
}

@media (max-width: 767px) {
  .single-product .summary .woocommerce-product-details__short-description img,
  .single-product .summary.entry-summary > p img,
  .single-product .product-information-inner > p img,
  .single-product .product-information > p img,
  .single-product .product_meta + p img,
  .single-product form.variations_form.cart ~ p img {
    width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
  }
}
