/* Black Swan Collection responsive card and blog system - v4.1.0 */
:root {
  --bs-card-gap: clamp(20px, 3vw, 38px);
  --bs-card-line: #d9d9d9;
  --bs-card-ink: #050505;
}

/* Shared overflow hardening for storefront widgets. */
.bs-curated-grid,
.bs-catalog-grid,
.blog-grid {
  align-items: stretch;
  row-gap: var(--bs-card-gap);
}

.bs-curated-product,
.bs-product-item,
.blog-grid-item,
.sin-product,
.sin-product-s,
.sin-feature,
.widget-post,
.widget-post-content {
  min-width: 0;
}

.bs-curated-product,
.bs-product-item,
.blog-grid-item {
  display: flex;
  margin-bottom: 0 !important;
}

.bs-curated-product .sin-product,
.bs-product-item .sin-product,
.blog-grid-item .blog-card {
  width: 100%;
}

/* Canonical product-card structure used by homepage and category pages. */
.bs-curated-product .sin-product.style-two,
.bs-product-item .sin-product.style-two {
  display: flex;
  height: 100%;
  min-height: 0 !important;
  flex-direction: column;
  margin: 0 !important;
  overflow: visible;
  text-align: left;
}

.bs-product-image {
  display: block;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  overflow: hidden;
}

.bs-product-image .pro-img {
  width: 100%;
  aspect-ratio: 3 / 4 !important;
  overflow: hidden;
  background: #f4f4f4 !important;
}

.bs-product-image .pro-img::after,
.sin-product:hover .pro-img::after {
  display: none !important;
}

.bs-product-image .pro-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  opacity: 1 !important;
}

.bs-product-content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 14px 0 0;
}

.bs-product-summary {
  display: grid;
  min-width: 0;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 10px;
}

.bs-product-summary .pro-title {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  font: inherit;
  line-height: 1.35;
}

.bs-product-summary .pro-title a {
  display: -webkit-box !important;
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--bs-card-ink) !important;
  font-size: clamp(12px, 1.05vw, 15px) !important;
  font-weight: 500 !important;
  line-height: 1.35;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: normal !important;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bs-product-price {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: #333 !important;
  font-size: clamp(11px, 1vw, 14px) !important;
  font-weight: 500 !important;
  line-height: 1.35;
  text-align: right !important;
  white-space: nowrap;
}

.bs-product-actions {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
}

.bs-product-actions .btn {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0;
  min-height: 42px !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 !important;
  padding: 8px 6px !important;
  overflow: hidden;
  border-radius: 0 !important;
  font-size: clamp(8px, .8vw, 10px) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .035em !important;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap !important;
}

.bs-product-actions .btn span {
  min-width: 0;
  float: none !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

.bs-product-actions .favoriyeekle span[aria-hidden="true"] {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

/* Legacy panel widgets receive the same no-overflow layout if re-enabled. */
.sin-product.style-two > .container {
  width: 100%;
  min-width: 0;
}

.sin-product.style-two > .container > .row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.sin-product.style-two > .container > .row > .mid-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.sin-product.style-two > .container > .row > [class*="col-"]:not(.mid-wrapper) {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0 3px !important;
}

.sin-product.style-two > .container > .row > [class*="col-"]:not(.mid-wrapper):nth-last-child(2) {
  padding-left: 0 !important;
}

.sin-product.style-two > .container > .row > [class*="col-"]:last-child {
  padding-right: 0 !important;
}

.sin-product.style-two > .container > .row .pro-title,
.sin-product.style-two > .container > .row .mid-wrapper p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sin-product-s {
  display: grid;
  grid-template-columns: minmax(72px, 92px) minmax(0, 1fr);
  gap: 14px;
}

.sin-product-s .sp-img,
.sin-product-s .small-pro-details,
.sin-product-s .title,
.sin-product-s .title a {
  min-width: 0;
  max-width: 100%;
}

.sin-product-s .title a {
  overflow-wrap: anywhere;
}

/* Blog cards, loading placeholders and scroll sentinel. */
.blog-grid {
  margin-bottom: 0;
}

.blog-card {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bs-card-line);
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
}

.blog-card .blog-img,
.blog-card .blog-img a {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #f3f3f3;
}

.blog-card .blog-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
}

.blog-card .blog-content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(17px, 2.2vw, 24px);
  text-align: left;
}

.blog-card .blog-content h4 {
  min-width: 0;
  margin: 0 0 12px;
}

.sin-blog.single-page .blog-content h1 {
  margin: 0 0 18px;
  color: #111;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.blog-card .title {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  color: #050505 !important;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card .blog-details {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.blog-card .blog-details p {
  margin: 0 0 18px;
  color: #4b4b4b;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.blog-card .blog-details > a {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid #050505;
  color: #050505 !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.blog-skeleton-row {
  width: auto !important;
  margin: var(--bs-card-gap) -15px 0;
  row-gap: var(--bs-card-gap);
}

.blog-skeleton {
  height: 100%;
  min-height: 420px;
  margin: 0 !important;
  border: 1px solid #e0e0e0;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#blogLoadSentinel {
  width: 100%;
  height: 2px;
  margin-top: 4px;
}

.blog-load-status {
  min-height: 24px;
  margin: 20px 0 0;
  color: #555;
  font-size: 12px;
  text-align: center;
}

.blog-load-more {
  min-height: 46px;
  margin: 8px auto 0;
  padding: 0 22px;
  border: 1px solid #050505;
  color: #fff;
  background: #050505;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.blog-load-more[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .bs-curated-grid,
  .bs-catalog-grid {
    margin-right: -5px !important;
    margin-left: -5px !important;
    row-gap: 24px;
  }

  .bs-curated-product,
  .bs-product-item {
    padding-right: 5px !important;
    padding-left: 5px !important;
  }

  .bs-product-content {
    padding-top: 10px;
  }

  .bs-product-summary {
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 6px;
  }

  .bs-product-summary .pro-title a {
    font-size: clamp(11px, 3.25vw, 13px) !important;
  }

  .bs-product-price {
    font-size: clamp(10px, 2.9vw, 12px) !important;
  }

  .bs-product-actions {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 5px;
    padding-top: 8px;
  }

  .bs-product-actions .btn {
    min-height: 40px !important;
    padding: 7px 3px !important;
    font-size: clamp(7px, 2.25vw, 9px) !important;
    letter-spacing: .02em !important;
  }

  .bs-product-actions .favoriyeekle span[aria-hidden="true"] {
    font-size: 13px;
  }

  .blog-grid {
    row-gap: 18px;
  }

  .blog-card .title {
    min-height: 0;
    font-size: 20px;
  }

  .blog-skeleton-row {
    margin-top: 18px;
    row-gap: 18px;
  }
}

@media (max-width: 359px) {
  .bs-curated-grid,
  .bs-catalog-grid {
    margin-right: -3px !important;
    margin-left: -3px !important;
  }

  .bs-curated-product,
  .bs-product-item {
    padding-right: 3px !important;
    padding-left: 3px !important;
  }

  .bs-product-actions {
    gap: 3px;
  }

  .bs-product-actions .btn {
    min-height: 38px !important;
    font-size: 7px !important;
  }

  .bs-product-actions .favoriyeekle {
    gap: 2px;
    font-size: 8px !important;
    letter-spacing: 0 !important;
  }

  .bs-product-actions .favoriyeekle span[aria-hidden="true"] {
    font-size: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs-product-image .pro-img img,
  .blog-card .blog-img img {
    transition: none !important;
  }
}
