/**
 * Single Product – Benetton tarzi (galeri sol, bilgi sag, tablar tam genislik)
 */

/* Tek urun sayfasinda filtre sidebar tamamen gizle (hangi sablon kullanilirsa kullanilsin) */
body.single-product .bg-shop-sidebar,
body.single-product aside.bg-shop-sidebar,
body.single-product .bg-shop-layout .bg-shop-sidebar {
  display: none !important;
}

body.single-product .bg-shop-layout {
  display: block !important;
}

body.single-product .bg-shop-layout .bg-shop-main {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Breadcrumb */
.bg-main--product .bg-product-single__breadcrumb {
  margin-bottom: 20px;
  padding: 12px 0;
}

.bg-main--product .bg-breadcrumb,
.bg-main--product .woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12px;
  color: #666;
}

.bg-main--product .bg-breadcrumb a,
.bg-main--product .woocommerce-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.bg-main--product .bg-breadcrumb a:hover,
.bg-main--product .woocommerce-breadcrumb a:hover {
  color: #111;
}

.bg-main--product .bg-breadcrumb li + li::before {
  content: '/';
  margin: 0 8px;
  color: #bbb;
  font-weight: 400;
}

/* Ust bolum: iki sutun (galeri + ozet) */
.bg-product-single__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
  margin-bottom: 48px;
}

/* Bottom section (tabs, related products) full width */
.bg-product-single__top > .bg-product-single__bottom {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .bg-product-single__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Galeri – sol sutun; her zaman gorunur */
.bg-product-single__gallery-col {
  min-height: 300px;
  display: block !important;
}

.bg-product-single__top .images,
.bg-product-single__top .woocommerce-product-gallery {
  position: sticky;
  top: 24px;
  min-height: 280px;
  display: block !important;
}

/* Galeri her zaman gorunur (inline opacity:0 tema override ile kaldirildi, yine de zorla) */
body.single-product .woocommerce-product-gallery,
body.single-product .images,
.bg-product-single .woocommerce-product-gallery {
  margin: 0;
  opacity: 1 !important;
  min-height: 200px;
  visibility: visible !important;
  display: block !important;
}

.bg-product-single .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__wrapper {
  min-height: 180px;
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  visibility: visible !important;
  gap: 8px 0;
}
/* Main image full width; thumbnails side by side below */
.bg-product-single .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child,
body.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
  flex: 0 0 100%;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}
.bg-product-single .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child),
body.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
  flex: 0 0 calc(25% - 6px);
  min-width: 60px;
  max-width: 120px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
}

body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image--placeholder {
  display: block !important;
  visibility: visible !important;
  position: relative;
}

body.single-product .woocommerce-product-gallery__image a,
body.single-product .woocommerce-product-gallery__image--placeholder a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.bg-product-single .woocommerce-product-gallery__image--placeholder img,
.bg-product-single .woocommerce-product-gallery__image img,
.bg-product-single__gallery-col .woocommerce-product-gallery__image--placeholder img,
.bg-product-single__gallery-col .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  background: #f5f5f5;
}

.bg-product-single .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Thumbnail list (if flex-control-thumbs) – side by side */
.bg-product-single .flex-control-thumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bg-product-single .flex-control-thumbs li {
  width: calc(25% - 6px);
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
}

.bg-product-single .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
}

.bg-product-single .flex-control-thumbs li img.flex-active,
.bg-product-single .flex-control-thumbs li img:hover {
  opacity: 1;
  border-color: #111;
}

/* Sale flash */
.bg-product-single .onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: var(--begreat-product-accent, #c8ff00);
  color: #1a1a1a;
}

/* Ozet – sag sutun (no line above title) */
.single-product .summary.entry-summary,
.bg-product-single__summary {
  padding: 0;
  margin: 0;
  border-top: none !important;
}

.bg-product-single__summary .product_title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
  padding-top: 0;
  border-top: none !important;
  color: #111;
}

.bg-product-single__summary .price {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
}

.bg-product-single__summary .price del {
  color: #999;
  font-weight: 400;
  margin-right: 8px;
  text-decoration: line-through;
}

.bg-product-single__summary .price ins {
  text-decoration: none;
  color: #7fb23b;
}

.bg-product-single__summary .woocommerce-product-details__short-description,
.bg-product-single__summary .short-description {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* ========== Varyasyonlar – Renk (resimli swatch + carousel) & Beden (chip butonlar) ========== */
.bg-variations {
  margin-bottom: 24px;
}

.bg-variation-row {
  margin-bottom: 24px;
}

.bg-variation-row__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.bg-variation-row__label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.bg-variation-row__selected {
  font-weight: 500;
  color: #111;
}

.bg-variation-row__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #888;
  cursor: help;
}

.bg-variation-row__info svg {
  width: 16px;
  height: 16px;
}

.bg-variation-row__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.bg-variation-row__nav-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.bg-variation-row__nav-btn:hover:not(:disabled) {
  border-color: var(--begreat-product-accent, #c8ff00);
  background: #f0ffe0;
  color: #2d3d00;
}

.bg-variation-row__nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bg-variation-row__options--carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.bg-variation-row__options--carousel::-webkit-scrollbar {
  height: 6px;
}

.bg-variation-row__options--carousel::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.bg-variation-option--color {
  flex: 0 0 auto;
  width: 72px;
  height: 96px;
  position: relative;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0;
  background: #f5f5f5;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bg-variation-option--color:hover {
  border-color: #ccc;
}

.bg-variation-option--color.selected {
  border-color: var(--begreat-product-accent, #c8ff00);
  box-shadow: 0 0 0 2px rgba(200, 255, 0, 0.35);
}

.bg-variation-option__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--begreat-product-accent, #c8ff00);
  color: #1a1a1a;
  border-radius: 4px;
}

.bg-variation-option__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-variation-option__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #666;
  text-align: center;
  padding: 4px;
}

.bg-variation-row__options:not(.bg-variation-row__options--carousel) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bg-variation-option--size {
  position: relative;
  min-width: 48px;
  padding: 10px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.bg-variation-option--size:hover:not(:disabled) {
  border-color: #ccc;
  background: #fafafa;
}

.bg-variation-option--size.selected {
  border-color: var(--begreat-product-accent, #c8ff00);
  background: #f0ffe0;
  color: #2d3d00;
}

.bg-variation-option--size.out-of-stock,
.bg-variation-option--size:disabled {
  border-color: #e8e8e8;
  color: #bbb;
  cursor: not-allowed;
  background: #fafafa;
}

.bg-variation-option__bell {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 12px;
  opacity: 0.8;
}

/* Size hint + estimated shipping – ref: light green box, thin border, rounded (orange → theme green) */
.bg-variation-row__hint,
.bg-variation-row__shipping-date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #A5D6A7;
  border-radius: 12px;
  background: #E8F5E9;
  box-sizing: border-box;
}

.bg-variation-row__hint {
  color: #1b1b1b;
}

.bg-variation-row__hint-icon-wrap,
.bg-variation-row__shipping-date-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #C8E6C9;
  color: #2E7D32;
}

.bg-variation-row__hint-icon,
.bg-variation-row__shipping-date-icon {
  width: 24px;
  height: 24px;
}

.bg-variation-row__hint-icon {
  color: #2E7D32;
}

.bg-variation-row__hint-text {
  flex: 1;
  min-width: 0;
  color: #1b1b1b;
}

.bg-variation-row__shipping-date {
  margin-top: 10px;
  color: #1b1b1b;
}

.bg-variation-row__shipping-date-icon {
  color: #2E7D32;
}

.bg-variation-row__shipping-date-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}

.bg-variation-row__shipping-date-label {
  color: #424242;
  font-weight: 400;
}

.bg-variation-row__shipping-date-value {
  font-weight: 700;
  color: #2E7D32;
}

/* Ref: Urgent shipping banner – full width, light green, truck icon, bold part green */
.bg-shipping-urgent-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.45;
  background: #E8F8E8;
  border-radius: 10px;
  box-sizing: border-box;
}

.bg-shipping-urgent-banner__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #2E7D32;
}

.bg-shipping-urgent-banner__text {
  flex: 1;
  min-width: 0;
  color: #1b1b1b;
}

.bg-shipping-urgent-banner__text strong,
.bg-shipping-urgent-banner__text b {
  color: #2E7D32;
  font-weight: 700;
}

/* Ref: Two-column shipping box – Estimated delivery (left) + Location (right), (i) icon */
.bg-shipping-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 16px 20px;
  border: 1px solid #A5D6A7;
  border-radius: 12px;
  background: #E8F5E9;
  box-sizing: border-box;
}

.bg-shipping-box__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.bg-shipping-box__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #C8E6C9;
  color: #2E7D32;
}

.bg-shipping-box__truck {
  width: 24px;
  height: 24px;
}

.bg-shipping-box__delivery {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Featured specs (Öne Çıkan Özellikler) */
.bg-product-single__featured-specs {
  margin-top: 20px;
}

.bg-product-single__featured-specs-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1b1b1b;
}

.bg-product-single__featured-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.bg-featured-spec {
  flex: 0 0 calc(25% - 6px);
  max-width: calc(25% - 6px);
  padding: 10px 12px;
  background: #f7f7f7;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 56px;
}

@media (max-width: 900px) {
  .bg-featured-spec {
    flex: 0 0 calc(33.333% - 6px);
    max-width: calc(33.333% - 6px);
  }
}

@media (max-width: 600px) {
  .bg-featured-spec {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
}

.bg-featured-spec__label {
  font-size: 11px;
  color: #777;
  margin-bottom: 2px;
}

.bg-featured-spec__value {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.bg-shipping-box__delivery-label {
  font-size: 13px;
  color: #424242;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bg-shipping-box__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2E7D32;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: help;
}

.bg-shipping-box__delivery-value {
  font-size: 15px;
  font-weight: 700;
  color: #2E7D32;
}

.bg-shipping-box__right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2E7D32;
  font-size: 14px;
  font-weight: 500;
}

.bg-shipping-box__pin {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.bg-shipping-box__location-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.bg-shipping-box__arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Coupons – ref structure (coupon-coupon-container, master-coupon-tag, coupon-seperator) + green theme */
.bg-product-coupon-payment {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E8F5E9;
}

.coupon-coupon-container.master-coupon-item {
  display: flex;
  margin-bottom: 20px;
  min-height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #A5D6A7;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
  box-sizing: border-box;
  position: relative;
}

.coupon-coupon-container.master-coupon-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  border-radius: 14px;
}

.master-coupon-tag-container {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
}

.master-coupon-tag {
  width: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2E7D32;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
  padding: 16px 0;
  border-radius: 14px 0 0 14px;
}

.coupon-coupon.master-coupon {
  flex: 1;
  min-width: 0;
  display: flex;
}

.master-coupon-content {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.coupon-left {
  flex: 0 1 auto;
  padding: 16px 20px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.coupon-discount-container {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coupon-discount {
  text-align: center;
  width: 100%;
}

.coupon-discount span {
  font-size: 36px;
  font-weight: 700;
  color: #1b1b1b;
  line-height: 1.2;
  display: block;
  text-align: center;
}

.master-coupon-in-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1b1b1b;
}

.master-coupon-in-cart-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: #FFCDD2;
  border-radius: 4px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
  mask-size: cover;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  background-color: #C62828;
}

.coupon-seperator {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  padding: 12px 0;
}

.coupon-seperator-circle-wrapper {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.coupon-seperator-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FDFDF8;
  border: 2px solid #A5D6A7;
  box-sizing: border-box;
}

.coupon-seperator-line {
  flex: 1;
  width: 0;
  min-height: 20px;
  border-left: 2px dashed #A5D6A7;
  margin: 4px 0;
}

.coupon-right {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.coupon-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #424242;
  background: rgba(255, 255, 255, 0.5);
  padding: 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.coupon-details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.coupon-details > div span:first-child {
  font-weight: 600;
  color: #1b1b1b;
}

.coupon-products-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2E7D32;
  text-decoration: none;
}

.coupon-products-link:hover {
  color: #1B5E20;
  text-decoration: underline;
}

.coupon-products-link-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
  vertical-align: middle;
}

.bg-product-payment__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1b1b1b;
}

.bg-product-payment {
  padding: 16px 20px;
  border: 1px solid #A5D6A7;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
  box-sizing: border-box;
}

.bg-product-payment__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.bg-product-payment__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.bg-product-payment__icon img {
  max-height: 32px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
}

.bg-variation-row select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bg-product-single__summary .single_variation_wrap {
  margin-top: 16px;
}

/* Eski variations tablosu (fallback) */
.bg-product-single__summary .variations {
  margin-bottom: 20px;
}

.bg-product-single__summary .variations tr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
}

.bg-product-single__summary .variations td {
  padding: 0;
  border: none;
  display: block;
  width: 100%;
}

.bg-product-single__summary .variations .label {
  padding: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.bg-product-single__summary .variations .value {
  width: 100%;
}

.bg-product-single__summary .variations select {
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

/* Renk swatch’leri (attribute pa_color vb. icin) */
.bg-product-single__summary .value .variable-items-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bg-product-single__summary .single_variation_wrap {
  margin-top: 16px;
}

/* Sepete ekle */
.bg-product-single__summary .cart {
  margin: 24px 0 0;
}

.bg-product-single__summary .single_add_to_cart_button,
.single-product .single_add_to_cart_button {
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 6px;
  background: var(--begreat-product-accent, #c8ff00) !important;
  background-color: var(--begreat-product-accent, #c8ff00) !important;
  color: #1a1a1a !important;
  cursor: pointer;
  transition: background 0.2s, filter 0.2s;
}

.bg-product-single__summary .single_add_to_cart_button:hover,
.single-product .single_add_to_cart_button:hover {
  filter: brightness(0.92);
  background: var(--begreat-product-accent, #c8ff00) !important;
  background-color: var(--begreat-product-accent, #c8ff00) !important;
  color: #1a1a1a !important;
}

.bg-product-single__summary .quantity {
  margin-right: 12px;
}

.bg-product-single__summary .quantity input {
  width: 60px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

/* Stock – hidden (do not show stock count) */
.bg-product-single__summary .stock,
.single-product .product .stock {
  display: none !important;
}

.bg-product-single__summary .stock.out-of-stock {
  color: #2d3d00;
}

/* Campaign text (mevcut) */
.bg-product-single__summary .bg-product-single__campaign {
  margin: 16px 0 0;
}

.bg-product-single__summary .bg-product-single__size-hint {
  margin: 10px 0 8px;
  padding: 12px 16px;
  border-radius: 10px;
}

.bg-product-single__summary .bg-product-single__size-hint .bg-variation-row__hint-icon-wrap {
  width: 36px;
  height: 36px;
}

.bg-product-single__summary .bg-product-single__size-hint .bg-variation-row__hint-icon {
  width: 20px;
  height: 20px;
}

/* Single product: top spacing so header & breadcrumb aren't cropped */
.single-product .bg-main .bg-container {
  padding-top: 20px;
}

/* Tablar – tam genislik, Benetton tarzi */
.bg-product-single__bottom {
  width: 100%;
  border-top: 1px solid #eee;
  padding-top: 32px;
}

.bg-product-single__bottom .woocommerce-tabs.wc-tabs-wrapper {
  width: 100%;
}

.bg-product-single__bottom .wc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0 0 24px;
  padding: 0 0 16px;
  list-style: none;
  border-bottom: 2px solid #eee;
}

.bg-product-single__bottom .wc-tabs li {
  margin: 0;
}

.bg-product-single__bottom .wc-tabs li a {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.bg-product-single__bottom .wc-tabs li:first-child a,
.bg-product-single__bottom .wc-tabs li.active a,
.bg-product-single__bottom .wc-tabs li a:hover {
  color: #111;
  border-bottom-color: #111;
}

.bg-product-single__bottom .woocommerce-Tabs-panel {
  margin: 0;
  padding: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.bg-product-single__bottom .woocommerce-Tabs-panel h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

/* Related / Upsells */
.bg-product-single__bottom .related.products,
.bg-product-single__bottom .upsells.products {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

  .bg-product-single__bottom .related.products h2,
  .bg-product-single__bottom .upsells.products h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.bg-product-single__summary .product_meta {
  font-size: 13px;
  word-break: break-word;
}

/* WC wrapper temizligi – single product’ta gereksiz wrapper’lari daraltma */
.bg-main--product .woocommerce .woocommerce-product-gallery {
  position: relative;
}

.bg-main--product .woocommerce-message,
.bg-main--product .woocommerce-info,
.bg-main--product .woocommerce-error {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  list-style: none;
}

.bg-main--product .woocommerce-error {
  border-left: 4px solid var(--begreat-product-accent, #c8ff00);
  background: #f0ffe0;
}

.bg-main--product .woocommerce-message {
  border-left: 4px solid #7fb23b;
  background: #f5faf5;
}

/* ========== Mobile (single product only): never target .bg-container alone – always use .single-product .bg-main .bg-container so header is never affected ========== */
.single-product .bg-main {
  overflow-x: hidden;
  min-width: 0;
}

@media (max-width: 768px) {
  .single-product .bg-main .bg-container {
    max-width: 100%;
    box-sizing: border-box;
  }
  body.single-product {
    overflow-x: hidden;
  }
  .single-product .bg-shop-layout,
  .single-product .bg-shop-main {
    min-width: 0;
  }
  .single-product .bg-product-single__top {
    min-width: 0;
  }
  .bg-main--product .bg-product-single__breadcrumb {
    display: none !important;
  }

  .bg-product-single__top {
    gap: 20px;
    margin-bottom: 32px;
  }

  /* Product gallery mobile: large main image on top, horizontal row of small square thumbnails below */
  .bg-product-single__top .images,
  .bg-product-single__top .woocommerce-product-gallery {
    position: static;
    min-height: 0;
  }

  .bg-product-single__gallery-col {
    min-height: 0;
  }

  .single-product .woocommerce-product-gallery__wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 8px;
    align-items: stretch;
  }

  .single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
  }

  .single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    border-radius: 0;
  }

  .single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
    flex: 0 0 calc(33.333% - 6px);
    min-width: 0;
    max-width: none;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
  }

  .single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .single-product .flex-control-thumbs {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .single-product .flex-control-thumbs::-webkit-scrollbar {
    display: none;
  }

  .single-product .flex-control-thumbs li {
    flex: 0 0 calc(33.333% - 6px);
    min-width: 80px;
    max-width: 120px;
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
  }

  .single-product .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .bg-product-single__summary .product_title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .bg-product-single__summary .price {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .bg-product-single__summary .woocommerce-product-details__short-description,
  .bg-product-single__summary .short-description {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .bg-variation-row {
    margin-bottom: 20px;
  }

  .bg-variation-row__header {
    margin-bottom: 10px;
  }

  .bg-variation-option--color {
    width: 56px;
    height: 72px;
    min-width: 56px;
  }

  .bg-variation-option__badge {
    font-size: 9px;
    padding: 2px 4px;
  }

  .bg-variation-option--size {
    min-width: 44px;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .bg-variation-row__hint,
  .bg-variation-row__shipping-date {
    padding: 14px 16px;
    gap: 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .bg-variation-row__hint-icon-wrap,
  .bg-variation-row__shipping-date-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .bg-variation-row__hint-icon,
  .bg-variation-row__shipping-date-icon {
    width: 22px;
    height: 22px;
  }

  .bg-shipping-urgent-banner {
    padding: 10px 14px;
    font-size: 13px;
    gap: 10px;
  }

  .bg-shipping-box {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .bg-shipping-box__right {
    padding-top: 8px;
    border-top: 1px solid #C8E6C9;
    justify-content: flex-start;
  }

  .bg-shipping-box__location-text {
    max-width: none;
  }

  .coupon-coupon-container.master-coupon-item {
    min-height: 100px;
  }

  .master-coupon-tag {
    width: 38px;
    min-width: 38px;
    font-size: 11px;
  }

  .coupon-discount span {
    font-size: 28px;
  }

  .master-coupon-content {
    flex-wrap: wrap;
  }

  .coupon-left {
    padding: 12px 14px;
  }

  .coupon-right {
    padding: 12px 14px;
  }

  .bg-product-single__summary .cart {
    margin-top: 20px;
  }

  .bg-product-single__summary .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .bg-product-single__summary .single_add_to_cart_button {
    max-width: none;
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 14px 20px;
  }

  .bg-product-single__summary .quantity {
    margin-right: 0;
    margin-bottom: 0;
  }

  .bg-product-single__summary .quantity input {
    width: 72px;
    min-height: 48px;
    font-size: 16px;
  }

  .bg-product-single__bottom {
    padding-top: 24px;
  }

  .bg-product-single__bottom .wc-tabs {
    gap: 0 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .bg-product-single__bottom .wc-tabs li a {
    font-size: 13px;
    padding: 10px 0;
  }

  .bg-product-single__bottom .woocommerce-Tabs-panel {
    padding-bottom: 20px;
    font-size: 13px;
  }

  .bg-product-single__bottom .related.products,
  .bg-product-single__bottom .upsells.products {
    margin-top: 32px;
    padding-top: 24px;
  }

  /* Mobile related/upsells: 1 product per row */
  .bg-product-single__bottom .related.products ul.products,
  .bg-product-single__bottom .upsells.products ul.products {
    grid-template-columns: 1fr !important;
  }

  .bg-product-single__bottom .related.products ul.products li.product,
  .bg-product-single__bottom .upsells.products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .single-product .bg-main .bg-container {
    padding-left: var(--container-pad, 16px);
    padding-right: var(--container-pad, 16px);
    box-sizing: border-box;
  }
  .single-product .bg-shop-main {
    min-width: 0;
    overflow-x: hidden;
  }

  .bg-product-single__top {
    gap: 16px;
    margin-bottom: 24px;
  }

  .bg-product-single__summary .product_title {
    font-size: 16px;
  }

  .bg-product-single__summary .price {
    font-size: 16px;
  }

  .bg-variation-option--color {
    width: 48px;
    height: 64px;
    min-width: 48px;
  }

  .bg-variation-row__options--carousel {
    padding-bottom: 6px;
    margin: 0 -4px;
  }

  .bg-variation-row__hint,
  .bg-variation-row__shipping-date {
    padding: 12px 14px;
    gap: 10px;
    font-size: 13px;
    border-radius: 10px;
    margin-top: 10px;
  }

  .bg-variation-row__hint-icon-wrap,
  .bg-variation-row__shipping-date-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .bg-variation-row__hint-icon,
  .bg-variation-row__shipping-date-icon {
    width: 20px;
    height: 20px;
  }

  .bg-shipping-urgent-banner {
    padding: 10px 12px;
    font-size: 12px;
  }

  .bg-shipping-box {
    padding: 12px 14px;
  }

  .bg-shipping-box__delivery-value {
    font-size: 14px;
  }

  .bg-product-single__bottom .wc-tabs {
    flex-direction: column;
    gap: 0;
  }

  .bg-product-single__bottom .wc-tabs li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .bg-product-single__bottom .wc-tabs li a {
    display: block;
    padding: 12px 0;
  }
}
