/*
* Theme Name: ShopPro
* Theme Slug: shoppro
* Theme URI: http://shoppro.com
* Author: Webforia Studio
* Author URI: shoppro
* Description: Simple & clean theme by ShopPro studio
* Version: 2.32.4
* PLicense: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: shoppro
* Tags: one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
* Requires at least: 6.0
* Tested up to: 6.2
* Requires PHP: 7.4

/* Product title clamp to 2 lines */
.rt-product__title,
.rt-product__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  max-height: 2.4em;
}


/* Product title clamp to 2 lines with ellipsis and equal height */
.rt-product__title,
.rt-product__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-height: 2.4em;
  min-height: 2.4em;
}


/* Force product title clamp (2 lines) */
.woocommerce ul.products li.product .rt-product__title,
.woocommerce ul.products li.product .rt-product__title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
  max-height: 2.4em !important;
  min-height: 2.4em !important;
}


/* Font stack (Tokopedia-like) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
.retheme-root {
  --theme-font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --theme-font-family-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}


/* Font stack (Tokopedia-like) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
.retheme-root {
  --theme-font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --theme-font-family-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Product title clamp (2 lines) + price font tuning */
.woocommerce ul.products li.product .rt-product__title,
.woocommerce ul.products li.product .rt-product__title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
  max-height: 2.4em !important;
  min-height: 2.4em !important;
  white-space: normal !important;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .rt-product__price,
.woocommerce ul.products li.product .amount {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.1px !important;
}
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price ins {
  font-weight: 600 !important;
}

/* Shopee-like font + tighter product card typography */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
.retheme-root {
  --theme-font-family-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --theme-font-family-secondary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
.woocommerce ul.products li.product .rt-product__title,
.woocommerce ul.products li.product .rt-product__title a,
.woocommerce-loop-product__title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  line-height: 1.2 !important;
  max-height: 2.4em !important;
  min-height: 2.4em !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .rt-product__price,
.woocommerce ul.products li.product .amount {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.1px !important;
  line-height: 1.2 !important;
}

/* Compact marketplace-like product card */
.woocommerce ul.products li.product .rt-product__body {
  padding-top: 6px;
}
.woocommerce ul.products li.product .rt-product__title,
.woocommerce ul.products li.product .rt-product__title a {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.woocommerce ul.products li.product .price {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price ins {
  font-weight: 700 !important;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .amount {
  color: inherit !important;
}

/* Force 2-line product title + bold price */
.woocommerce ul.products li.product .rt-product__title {
  margin-bottom: 6px !important;
  line-height: 1.1 !important;
  max-height: 2.2em !important;
  min-height: 2.2em !important;
}
.woocommerce ul.products li.product .rt-product__title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  max-height: 2.2em !important;
  min-height: 2.2em !important;
  text-transform: none !important;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .amount {
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}

/* Marketplace-like tighter product grid */
.woocommerce ul.products {
  gap: 10px 10px;
}
.woocommerce ul.products li.product {
  margin-bottom: 12px !important;
}
.woocommerce ul.products li.product .rt-product__thumbnail {
  margin-bottom: 6px !important;
}
.woocommerce ul.products li.product .rt-product__body {
  padding-top: 4px !important;
}
.woocommerce ul.products li.product .rt-product__title,
.woocommerce ul.products li.product .rt-product__title a {
  font-size: 11px !important;
  line-height: 1.15 !important;
  max-height: 2.3em !important;
  min-height: 2.3em !important;
}
.woocommerce ul.products li.product .price {
  margin-top: 4px !important;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .amount {
  font-size: 13px !important;
  font-weight: 700 !important;
}
.woocommerce ul.products li.product .price .from,
.woocommerce ul.products li.product .price .woocommerce-Price-amount {
  display: inline-block;
}

/* Stronger price emphasis */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .amount,
.woocommerce ul.products li.product .price .amount {
  font-weight: 800 !important;
}

/* Force 2-line clamp with ellipsis on title (h3 + a) */
.woocommerce ul.products li.product .rt-product__title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.woocommerce ul.products li.product .rt-product__title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}

/* Hard clamp (single-line fallback) + strong price */
.woocommerce ul.products li.product .rt-product__title,
.woocommerce ul.products li.product .rt-product__title a {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .amount,
.woocommerce ul.products li.product .price .amount {
  font-weight: 800 !important;
}

/* 2-line title with ellipsis + bold price */
.woocommerce ul.products li.product .rt-product__title,
.woocommerce ul.products li.product .rt-product__title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .amount,
.woocommerce ul.products li.product .price .amount {
  font-weight: 800 !important;
}

/* Price like example (bold, compact) */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .amount,
.woocommerce ul.products li.product .price .amount {
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}

/* Price style match (black, bold) */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .amount,
.woocommerce ul.products li.product .price .amount {
  color: #000 !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}

/* Reduce gap between main product image and gallery thumbnails */
.woocommerce-product-gallery {
  margin-bottom: 10px !important;
}
.woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 8px !important;
}
.woocommerce-product-gallery .flex-control-thumbs li {
  margin-bottom: 0 !important;
}

/* Tighter gallery spacing (single product) */
.single-product .woocommerce-product-gallery {
  margin-bottom: 6px !important;
}
.single-product .woocommerce-product-gallery__wrapper {
  margin-bottom: 4px !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 4px !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Extra tight gallery spacing */
.single-product .woocommerce-product-gallery {
  margin-bottom: 0 !important;
}
.single-product .woocommerce-product-gallery__wrapper {
  margin-bottom: 0 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 0 !important;
}

/* Gallery spacing like reference */
.single-product .woocommerce-product-gallery {
  margin-bottom: 4px !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 6px !important;
}

/* Ultra tight gallery spacing (hijab style) */
.single-product .woocommerce-product-gallery {
  margin-bottom: 0 !important;
}
.single-product .woocommerce-product-gallery__wrapper {
  margin-bottom: 0 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 2px !important;
}

/* Extra tight gallery spacing (0px) */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 0 !important;
}

/* Final gallery spacing (balanced) */
.single-product .woocommerce-product-gallery {
  margin-bottom: 0 !important;
}
.single-product .woocommerce-product-gallery__wrapper {
  margin-bottom: 0 !important;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 4px !important;
}

/* Match reference: tighter thumbnail spacing */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 2px !important;
}

/* Limit visible thumbnails like Shopee (scrollable row) */
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 4px !important;
  scroll-snap-type: x mandatory;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 auto !important;
  scroll-snap-align: start;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
  height: 6px;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 6px;
}
