/* ============== SHOP PAGE STYLES ============== */

/* Shop toolbar */
.bg-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px !important;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1;
  width: 100%;
  clear: both;
}

.bg-shop-toolbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.bg-shop-toolbar__center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.bg-shop-toolbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Breadcrumb */
.bg-shop-toolbar .woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
}

.bg-shop-toolbar .woocommerce-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.bg-shop-toolbar .woocommerce-breadcrumb a:hover {
  color: #111;
}

.bg-shop-toolbar .woocommerce-breadcrumb::before {
  display: none;
}

/* Show options */
.bg-shop-show-label {
  font-size: 13px;
  color: #666;
  margin-right: 4px;
}

.bg-shop-show-options {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
}

.bg-shop-show-option {
  color: #999;
  text-decoration: none;
  padding: 0 4px;
  transition: color 0.2s;
}

.bg-shop-show-option:hover {
  color: #111;
}

.bg-shop-show-option.active {
  color: #111;
  font-weight: 600;
}

.bg-shop-show-option:not(:last-child)::after {
  content: '/';
  margin: 0 4px;
  color: #ccc;
  font-weight: normal;
}

/* View toggle */
.bg-shop-view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid #eee;
}

.bg-shop-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #999;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.bg-shop-view-btn:hover {
  color: #111;
  background: #f5f5f5;
}

.bg-shop-view-btn.active {
  color: #111;
  background: #f0f0f0;
}

.bg-shop-main .woocommerce-result-count {
  display: none !important;
}

.bg-shop-toolbar form.woocommerce-ordering {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 4px;
  margin: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  transition: border-color 0.2s;
}

.bg-shop-toolbar form.woocommerce-ordering:hover {
  border-bottom-color: #111;
}

.bg-shop-toolbar .woocommerce-ordering label {
  display: none;
}

.bg-shop-toolbar .woocommerce-ordering select {
  min-width: 180px;
  padding: 4px 24px 4px 0;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.bg-shop-toolbar .woocommerce-ordering select:focus {
  outline: none;
}

/* ---------- Product grid (3 columns) ---------- */
/* WooCommerce clearfix pseudo-element'lerini gizle */
ul.products::before,
ul.products::after,
.bg-shop-main ul.products::before,
.bg-shop-main ul.products::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

/* First: direct rule for columns-3 (highest priority) */
ul.products.columns-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px 20px !important;
  list-style: none !important;
  margin: 32px 0 40px 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: stretch !important;
  clear: both !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 0 !important;
}

/* General selector – independent of WooCommerce wrappers */
.bg-shop-main ul.products,
.bg-shop-main .woocommerce ul.products,
.bg-shop-main ul.products.columns-3,
.bg-shop-main ul.products[class*="columns-"],
section.bg-shop-main ul.products,
section.bg-shop-main .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px 20px !important;
  list-style: none !important;
  margin: 32px 0 40px 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: stretch !important;
  clear: both !important;
  overflow: visible !important;
  position: relative;
  z-index: 0;
}

/* First: direct rule for li.product inside columns-3 */
ul.products.columns-3 li.product,
ul.products.columns-3 li.product.first,
ul.products.columns-3 li.product.last {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex-basis: auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

.bg-shop-main ul.products li.product,
.bg-shop-main .woocommerce ul.products li.product,
.bg-shop-main ul.products.columns-3 li.product,
.bg-shop-main ul.products[class*="columns-"] li.product,
.bg-shop-main ul.products li.product.first,
.bg-shop-main ul.products li.product.last,
section.bg-shop-main ul.products li.product,
section.bg-shop-main .woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex-basis: auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

/* Product card */
.bg-shop-main ul.products li.product .bg-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, z-index 0s;
  z-index: 0;
}

ul.products li.product .bg-product-card:hover,
ul.products li.product .bg-product-card.bg-product-card--hover,
.bg-shop-main ul.products li.product .bg-product-card:hover,
.bg-shop-main ul.products li.product .bg-product-card.bg-product-card--hover,
.woocommerce ul.products li.product .bg-product-card:hover,
.woocommerce ul.products li.product .bg-product-card.bg-product-card--hover {
  z-index: 2 !important;
  border-color: #e0e0e0 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease !important;
}

.bg-shop-main ul.products li.product .woocommerce-loop-product__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image area */
.bg-shop-main ul.products li.product .bg-product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #f8f8f8;
  overflow: hidden;
}

.bg-shop-main ul.products li.product .bg-product-card__img-wrap .woocommerce-loop-product__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-shop-main ul.products li.product .bg-product-card__img-wrap .bg-product-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.7s ease;
}

.bg-shop-main ul.products li.product .bg-product-card__img-wrap .bg-product-card__img--primary {
  opacity: 1;
  z-index: 1;
}

.bg-shop-main ul.products li.product .bg-product-card__img-wrap .bg-product-card__img--secondary {
  opacity: 0;
  z-index: 2;
}

/* Show second image on hover */
ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--primary,
ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--primary,
.bg-shop-main ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--primary,
.bg-shop-main ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--primary,
.woocommerce ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--primary,
.woocommerce ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--primary {
  opacity: 0 !important;
  transform: scale(1.1) !important;
}

ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--secondary,
ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--secondary,
.bg-shop-main ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--secondary,
.bg-shop-main ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--secondary,
.woocommerce ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--secondary,
.woocommerce ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--secondary {
  opacity: 1 !important;
  transform: scale(1.08) !important;
}

/* If no second image use zoom */
ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--primary:only-child,
ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--primary:only-child,
.bg-shop-main ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--primary:only-child,
.bg-shop-main ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--primary:only-child,
.woocommerce ul.products li.product .bg-product-card:hover .bg-product-card__img-wrap .bg-product-card__img--primary:only-child,
.woocommerce ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__img-wrap .bg-product-card__img--primary:only-child {
  opacity: 1 !important;
  transform: scale(1.08) !important;
}

/* Overlay removed – short description now in body */

/* Short description – in body, between price and button */
.bg-shop-main ul.products li.product .bg-product-card__body .bg-product-card__short-desc {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__short-desc,
ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__short-desc,
.bg-shop-main ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__short-desc,
.bg-shop-main ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__short-desc,
.woocommerce ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__short-desc,
.woocommerce ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__short-desc {
  opacity: 1 !important;
  visibility: visible !important;
  max-height: 50px !important;
  margin-top: 8px !important;
  margin-bottom: 4px !important;
}

/* Product attributes – show on hover */
.bg-shop-main ul.products li.product .bg-product-card__body .bg-product-card__attributes {
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__attributes,
ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__attributes,
.bg-shop-main ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__attributes,
.bg-shop-main ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__attributes,
.woocommerce ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__attributes,
.woocommerce ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__attributes {
  opacity: 1 !important;
  visibility: visible !important;
  max-height: 100px !important;
  margin-top: 8px !important;
  margin-bottom: 4px !important;
}

.bg-product-card__attribute {
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bg-product-card__attribute:last-child {
  margin-bottom: 0;
}

.bg-product-card__attribute-label {
  font-weight: 600;
  color: #666;
  flex-shrink: 0;
}

.bg-product-card__attribute-options {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bg-product-card__attribute-option {
  color: #666;
}

.bg-product-card__attribute-separator {
  margin: 0;
  color: #ccc;
}

.bg-product-card__attribute-more {
  color: #999;
  font-style: italic;
}

/* Color swatches */
.bg-product-card__attribute--color .bg-product-card__attribute-options {
  gap: 8px;
}

.bg-product-card__color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.bg-product-card__color-swatch:hover {
  transform: scale(1.15);
  border-color: #7fb23b;
  box-shadow: 0 0 0 2px rgba(127, 178, 59, 0.2);
}

/* Actions – in body, below price */
.bg-shop-main ul.products li.product .bg-product-card__body .bg-product-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-top: 8px;
  flex-shrink: 0;
  flex-grow: 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__actions,
ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__actions,
.bg-shop-main ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__actions,
.bg-shop-main ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__actions,
.woocommerce ul.products li.product .bg-product-card:hover .bg-product-card__body .bg-product-card__actions,
.woocommerce ul.products li.product .bg-product-card.bg-product-card--hover .bg-product-card__body .bg-product-card__actions {
  opacity: 1 !important;
  visibility: visible !important;
  max-height: 60px !important;
  margin-top: 8px !important;
}

.bg-shop-main ul.products li.product .bg-product-card__body .bg-product-card__btn,
.bg-shop-main ul.products li.product .bg-product-card__body .button,
.bg-shop-main ul.products li.product .bg-product-card__body .add_to_cart_button {
  width: 100%;
  background: #7fb23b !important;
  background-color: #7fb23b !important;
  color: #fff !important;
  border: none;
  min-height: 36px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bg-shop-main ul.products li.product .bg-product-card__body .bg-product-card__btn:hover,
.bg-shop-main ul.products li.product .bg-product-card__body .button:hover,
.bg-shop-main ul.products li.product .bg-product-card__body .add_to_cart_button:hover {
  background: #6a9a30 !important;
  background-color: #6a9a30 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Badge */
.bg-shop-main ul.products li.product .bg-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
}

.bg-shop-main ul.products li.product .bg-product-card__badge--sale {
  background: #e2401c;
  color: #fff;
}

.bg-shop-main ul.products li.product .bg-product-card__badge--outofstock {
  background: #111;
  color: #fff;
}

.bg-shop-main ul.products li.product .bg-product-card__badge--color-options {
  top: auto;
  left: auto;
  bottom: 12px;
  right: 12px;
  background: #c8ff00;
  color: #000;
}

/* Body */
.bg-shop-main ul.products li.product .bg-product-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
}

.bg-shop-main ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
  text-decoration: none;
}

.bg-shop-main ul.products li.product .woocommerce-loop-product__title a {
  color: #000;
  text-decoration: none;
}

.bg-shop-main ul.products li.product .woocommerce-loop-product__title:hover,
.bg-shop-main ul.products li.product .woocommerce-loop-product__title a:hover {
  color: #7fb23b;
}

/* Campaign text - marquee kayan yazi */
.bg-shop-main ul.products li.product .bg-product-card__campaign {
  margin-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 22px;
  line-height: 22px;
  width: 100%;
  background: transparent;
}

.bg-shop-main ul.products li.product .bg-product-card__campaign-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
}

.bg-shop-main ul.products li.product .bg-product-card__campaign-marquee__content {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: #7fb23b;
  font-weight: 500;
  padding-right: 80px;
  will-change: transform;
}

/* Fiyat tek satirda, indirimde normal fiyat uzeri cizili */
.bg-shop-main ul.products li.product .price {
  margin: 0 0 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 8px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.bg-shop-main ul.products li.product .price > span,
.bg-shop-main ul.products li.product .price > del,
.bg-shop-main ul.products li.product .price > ins {
  display: inline !important;
}

.bg-shop-main ul.products li.product .price del {
  color: #999 !important;
  font-weight: 400 !important;
  margin-right: 4px !important;
  text-decoration: line-through !important;
}

.bg-shop-main ul.products li.product .price ins {
  text-decoration: none !important;
  color: #7fb23b !important;
}

.bg-shop-main ul.products li.product .price .amount {
  color: inherit;
}

/* Mobile: short description and button always visible */
@media (hover: none) and (max-width: 768px) {
  .bg-shop-main ul.products li.product .bg-product-card__body .bg-product-card__short-desc,
  .bg-shop-main ul.products li.product .bg-product-card__body .bg-product-card__actions {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 100px !important;
  }
}

.bg-product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bg-product-card__action--main {
  flex: 1;
  min-width: 0;
}

.bg-product-card__action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.bg-product-card__action-link:hover {
  color: #7fb23b;
  background: rgba(127, 178, 59, 0.08);
}

/* Pagination – sayfa numaralari ve sonraki/onceki (aktif #c8ff00) */
.bg-shop-main .woocommerce-pagination {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.bg-shop-main .woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bg-shop-main .woocommerce-pagination .page-numbers li,
.bg-shop-main .woocommerce-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bg-shop-main .woocommerce-pagination a.page-numbers,
.bg-shop-main .woocommerce-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: #fff;
}

.bg-shop-main .woocommerce-pagination a.page-numbers:hover {
  border-color: #bbb;
  color: #333;
  background: #f9f9f9;
}

/* Aktif sayfa: #c8ff00 arka plan, siyah yazi */
.bg-shop-main .woocommerce-pagination span.page-numbers.current {
  background: #c8ff00;
  border-color: #c8ff00;
  color: #000;
}

/* Sonraki / onceki oku – ayni kutu stil, gri metin */
.bg-shop-main .woocommerce-pagination a.prev.page-numbers,
.bg-shop-main .woocommerce-pagination a.next.page-numbers {
  color: #555;
  font-size: 16px;
}

/* Sale badge */
.bg-shop-main ul.products li.product .bg-product-card__img-wrap .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: #e2401c;
  color: #fff;
}

.bg-shop-main ul.products li.product .bg-product-card__img-wrap .outofstock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: #111;
  color: #fff;
}

/* No products */
.bg-shop-main .woocommerce-info,
.bg-shop-main .woocommerce-no-products-found {
  padding: 24px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 24px;
}

/* Single product page - Campaign text */
.bg-product-single__campaign {
  margin: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 24px;
  line-height: 24px;
  width: 100%;
  background: transparent;
}

.bg-product-single__campaign-inner {
  display: inline-block;
  white-space: nowrap;
  animation: bg-campaign-scroll 10s linear infinite;
}

.bg-product-single__campaign-text {
  display: inline-block;
  font-size: 13px;
  color: #7fb23b;
  font-weight: 500;
  white-space: nowrap;
  padding-right: 100px;
}

@keyframes bg-campaign-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* View modes: list, grid-2, grid (default 3) */
.begreat-shop-view-list .bg-shop-main ul.products {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}

.begreat-shop-view-list .bg-shop-main ul.products li.product {
  width: 100% !important;
}

.begreat-shop-view-list .bg-shop-main ul.products li.product .bg-product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  text-align: left !important;
  height: auto !important;
}

.begreat-shop-view-list .bg-shop-main ul.products li.product .bg-product-card__img-wrap {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  aspect-ratio: auto !important;
  flex-shrink: 0 !important;
}

.begreat-shop-view-list .bg-shop-main ul.products li.product .bg-product-card__body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 20px 24px !important;
}

.begreat-shop-view-grid-2 .bg-shop-main ul.products {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Responsive grid – 3 columns above 1024px */
@media (min-width: 1025px) {
  ul.products.columns-3,
  .bg-shop-main ul.products,
  .bg-shop-main ul.products.columns-3,
  .bg-shop-main ul.products[class*="columns-"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .bg-shop-main ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .bg-shop-main ul.products.columns-3,
  .bg-shop-main ul.products[class*="columns-"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .begreat-shop-view-grid-2 .bg-shop-main ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  /* Hide sidebar on mobile */
  .bg-shop-sidebar {
    display: none !important;
  }
  .bg-shop-layout {
    grid-template-columns: 1fr !important;
  }

  /* Hide desktop toolbar on mobile */
  .bg-shop-toolbar {
    display: none !important;
  }

  .bg-shop-toolbar .woocommerce-breadcrumb {
    display: none !important;
  }

  .bg-shop-main ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 14px;
  }

  .bg-shop-main ul.products.columns-3,
  .bg-shop-main ul.products[class*="columns-"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .bg-shop-main ul.products li.product {
    width: 100% !important;
  }

  .bg-shop-main ul.products li.product .bg-product-card__body {
    padding: 14px 12px 16px;
  }

  .bg-shop-main ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
  }

  .bg-shop-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 16px !important;
    padding: 10px 0;
  }
  .bg-shop-toolbar__left {
    display: none;
  }
  .bg-shop-toolbar__center {
    gap: 10px;
  }
  .bg-shop-show-label {
    font-size: 12px;
  }
  .bg-shop-show-options {
    font-size: 12px;
  }
  .bg-shop-view-toggle {
    margin-left: 8px;
    padding-left: 12px;
    gap: 4px;
  }
  .bg-shop-view-btn {
    width: 28px;
    height: 28px;
  }
  .bg-shop-toolbar .woocommerce-ordering select {
    min-width: 120px;
    font-size: 12px;
  }

  /* YITH / sidebar filter blocks: less vertical space */
  .yith-wcan-filters .yith-wcan-filter,
  .bg-shop-sidebar .yith-wcan-filter {
    margin-bottom: 14px !important;
  }
  .yith-wcan-filters .yith-wcan-filter .filter-title,
  .bg-shop-sidebar .yith-wcan-filter .filter-title {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }
  .yith-wcan-filters .yith-wcan-filter .filter-content,
  .bg-shop-sidebar .yith-wcan-filter .filter-content {
    margin-top: 0 !important;
  }
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-dropdown,
  .yith-wcan-filters .yith-wcan-filter select {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  /* Sidebar filters: compact; color swatches = small circles in a row only */
  .bg-shop-layout .bg-shop-sidebar .bg-shop-widget,
  .bg-sidebar.bg-shop-sidebar .bg-shop-widget {
    margin-bottom: 16px !important;
  }
  .bg-shop-layout .bg-shop-sidebar .bg-shop-widget__title,
  .bg-shop-layout .bg-shop-sidebar .widgettitle,
  .bg-sidebar.bg-shop-sidebar .widgettitle {
    margin-bottom: 10px !important;
    font-size: 13px !important;
  }

  /* ---- Widget: ul.yith-wcan-color ---- */
  .bg-shop-sidebar ul.yith-wcan-color,
  .bg-sidebar ul.yith-wcan-color {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    grid-template-columns: unset !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  .bg-shop-sidebar ul.yith-wcan-color > li > a,
  .bg-sidebar ul.yith-wcan-color > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    text-indent: -9999px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    overflow: hidden !important;
    grid-template-columns: unset !important;
    column-gap: 0 !important;
  }
  .bg-shop-sidebar ul.yith-wcan-color > li > a::before,
  .bg-sidebar ul.yith-wcan-color > li > a::before {
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    flex-shrink: 0;
  }
  .bg-shop-sidebar ul.yith-wcan-color > li > a small,
  .bg-shop-sidebar ul.yith-wcan-color > li > a em,
  .bg-shop-sidebar ul.yith-wcan-color > li > a .count {
    display: none !important;
  }

  /* ---- YITH Preset/Shortcode: .yith-wcan-filters (anywhere on page) – small circles in a row ---- */
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-color {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
  }
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-color .filter-item.color,
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-color .filter-item.filter-has-1-column,
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-color .filter-item[class*="filter-has-"] {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    vertical-align: middle !important;
  }
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-color .filter-item.color > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
  }
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-color .filter-item.color .term-label {
    display: none !important;
  }
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-color .filter-item.color .term-color {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    margin: 0 !important;
    border-radius: 999px !important;
  }
  .yith-wcan-filters .yith-wcan-filter .filter-items.filter-color .filter-item.color .term-color .color-swatch {
    width: 100% !important;
    height: 100% !important;
    border-radius: 999px !important;
  }

  /* Sidebar variant (same rules if inside sidebar) */
  .bg-shop-sidebar .yith-wcan-filter ul.filter-items.filter-color,
  .bg-sidebar .yith-wcan-filter ul.filter-items.filter-color {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .bg-shop-sidebar .yith-wcan-filter .filter-item.color .term-label,
  .bg-sidebar .yith-wcan-filter .filter-item.color .term-label {
    display: none !important;
  }
  .bg-shop-sidebar .yith-wcan-filter .filter-item.color .term-color,
  .bg-sidebar .yith-wcan-filter .filter-item.color .term-color {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 999px !important;
  }
  .bg-sidebar .yith-wcan-filter .yith-wcan-color-swatch {
    width: 22px !important;
    height: 22px !important;
    margin: 0 6px 6px 0 !important;
  }
}

/* ========== Mobile Filter & Sort Button & Drawer ========== */
/* Hide button and drawer on desktop by default */
.bg-mobile-filter-btn,
.bg-mobile-filter-drawer {
  display: none !important;
}

/* Ensure sidebar is visible on desktop */
@media (min-width: 769px) {
  .bg-shop-sidebar {
    display: block !important;
  }
  .bg-shop-layout {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 36px !important;
  }
}

@media (max-width: 768px) {
  /* Show button on mobile */
  .bg-container .bg-mobile-filter-btn,
  .bg-mobile-filter-btn {
    display: flex !important;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    margin: 16px 0;
    background: #111 !important;
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }
  .bg-mobile-filter-btn:hover,
  .bg-mobile-filter-btn:active {
    background: #333;
  }
  .bg-mobile-filter-btn svg {
    flex-shrink: 0;
  }

  /* Show drawer on mobile (only when active) */
  .bg-mobile-filter-drawer {
    display: block !important;
    visibility: visible !important;
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .bg-mobile-filter-drawer.active {
    pointer-events: auto;
    opacity: 1;
  }
  .bg-mobile-filter-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
  }
  .bg-mobile-filter-drawer__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  .bg-mobile-filter-drawer.active .bg-mobile-filter-drawer__content {
    transform: translateY(0);
  }
  .bg-mobile-filter-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
  }
  .bg-mobile-filter-drawer__header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111;
  }
  .bg-mobile-filter-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #666;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
  }
  .bg-mobile-filter-drawer__close:hover,
  .bg-mobile-filter-drawer__close:active {
    background: #f5f5f5;
    color: #111;
  }
  .bg-mobile-filter-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .bg-mobile-filter-drawer__filters {
    margin-bottom: 24px;
  }
  .bg-mobile-filter-drawer__sort {
    padding-top: 20px;
    border-top: 1px solid #eee;
  }
  .bg-mobile-filter-drawer__sort .woocommerce-ordering {
    width: 100%;
  }
  .bg-mobile-filter-drawer__sort .woocommerce-ordering select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
  }

  /* Drawer içindeki filtreler için kompakt stiller */
  .bg-mobile-filter-drawer__filters .bg-shop-widget,
  .bg-mobile-filter-drawer__filters .yith-wcan-filter {
    margin-bottom: 20px;
  }
  .bg-mobile-filter-drawer__filters .bg-shop-widget__title,
  .bg-mobile-filter-drawer__filters .widgettitle,
  .bg-mobile-filter-drawer__filters .filter-title {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 700;
  }
  /* Drawer içinde renk swatch'leri küçük daireler */
  .bg-mobile-filter-drawer__filters ul.yith-wcan-color,
  .bg-mobile-filter-drawer__filters .yith-wcan-filter .filter-items.filter-color {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .bg-mobile-filter-drawer__filters ul.yith-wcan-color > li > a,
  .bg-mobile-filter-drawer__filters .filter-item.color > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
  }
  .bg-mobile-filter-drawer__filters ul.yith-wcan-color > li > a::before {
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
  }
  .bg-mobile-filter-drawer__filters .filter-item.color .term-label {
    display: none !important;
  }
  .bg-mobile-filter-drawer__filters .filter-item.color .term-color {
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
  }
}
