/* ===== Product Card ===== */
.szbd-product-box {
  background: #ffffff;
  overflow: hidden;
  border-radius: 7px;
  transition: box-shadow 0.25s ease;
}
.szbd-product-box button:active {
  outline: none;
  border: none;
}

.szbd-product-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.szbd-product-image2 {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.5;
  background: #f5f5f5;
  isolation: isolate;
}

/* FIX 1: inline <a> ke block banalam, jeno img 100% height pay */
.szbd-product-image2 > a {
  display: block;
  width: 100%;
  height: 100%;
}

.szbd-product-image2 img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.4s ease;
  /* FIX 2: smooth rendering */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.szbd-product-box:hover .szbd-product-image2 img {
  transform: scale(1.06);
}

/* ===== Product Content ===== */
.szbd-product-content {
  padding: 12px 10px 14px;
}

/* FIX 3: title overlay approach, layout shift hobe na */
.szbd-product-content .szbd-title {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 6px;
  height: 36px;
  /* 2 line er fixed height */
}

.szbd-product-content .szbd-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #222;
  text-decoration: none;
}

.szbd-product-content .szbd-title a:hover {
  color: #e65200;
}

.szbd-product-content .szbd-price {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 10px;
  font-family: "Rubik", sans-serif;
}

.szbd-product-content .szbd-price del {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-left: 6px;
  font-family: "Rubik", sans-serif;
}

.szbd-product-content .btn-primary {
  display: block;
  width: 100%;
  background-color: #ff5d00;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 6px;
}

.szbd-product-content .btn-primary:hover {
  background-color: #c94b03;
}

@media (max-width: 575px) {
  .szbd-product-content {
    padding: 10px 8px 12px;
  }

  .szbd-product-content .szbd-title {
    font-size: 12.5px;
    height: 32px;
  }

  .szbd-product-content .szbd-price {
    font-size: 13px;
  }

  .szbd-product-content .btn-primary {
    font-size: 12px;
    padding: 7px 0;
  }
}

/* ===== Discount badge ===== */
.szbd-product-image2 > .szbd-discount-box {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 10;
  float: none;
}

.szbd-discount-box span {
  position: relative;
  display: block;
  background: #e60023;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px;
  text-align: center;
  font-family: "Rubik", sans-serif;
}

.szbd-discount-box span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5em;
  width: 100%;
  height: 0.5em;
  background:
    linear-gradient(-45deg, transparent 75%, #e60023 75%) 0 0,
    linear-gradient(45deg, transparent 75%, #e60023 75%) 0 0;
  background-size: 0.5em 0.5em;
  background-repeat: repeat-x;
}

/* ===== Hover action icons (Quick View / Wishlist / Cart) ===== */
.szbd-social {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
  will-change: transform, opacity;
}

.szbd-product-box:hover .szbd-social {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.szbd-social li {
  margin: 0;
  padding: 0;
  position: relative;
}

.szbd-social li a,
.szbd-social li .szbd-wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #fff;
  color: #222;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.szbd-social li .szbd-wishlist-btn span {
  font-size: 11px;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
}

.szbd-social li a:hover,
.szbd-social li .szbd-wishlist-btn:hover {
  background: #ff5d00;
  color: #fff;
}

/* Tooltip */
.szbd-social li [data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: #222;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s;
}

.szbd-social li [data-tip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Touch device e icon sobsomoy dekha jabe */
@media (hover: none) {
  .szbd-social {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

/* ===== Product Grid (5 column + gap) ===== */
.szbd-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 25px;
}

.szbd-product-grid .szbd-product-column,
.szbd-product-grid .szbd-product-box {
  height: 100%;
}

@media (max-width: 1199.98px) {
  .szbd-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .szbd-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 575.98px) {
  .szbd-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ===== Modal Shell ===== */
.szbd-modal-modern .szbd-modal-content-modern {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.szbd-modal-header-modern {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 0;
  border-bottom: none;
}

.szbd-modal-header-modern .btn-close {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  opacity: 1;
  cursor: pointer;
  background-color: #f4f4f4 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px !important;
  filter: none;
}

.szbd-modal-header-modern .btn-close:hover {
  background-color: #e65200 !important;
  color: #fff !important;
}

.szbd-modal-body-modern {
  padding: 0 20px 20px;
}

/* ===== Option blocks ===== */
.szbd-option-block {
  margin-bottom: 18px;
  overflow: visible;
}

.szbd-option-title {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 10px;
}

.szbd-swatch-item input,
.szbd-pill-item input {
  display: none;
}

.szbd-swatch-item,
.szbd-pill-item {
  position: relative;
}

/* ===== Color swatch ===== */
.szbd-color-swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 8px 0 0;
  overflow: visible;
}

.szbd-swatch-label {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.szbd-swatch-label img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.szbd-swatch-item input:checked + .szbd-swatch-label {
  border-color: #ff5d00;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #ff5d00;
}

/* ===== Size pill ===== */
.szbd-size-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 8px 0 0;
  overflow: visible;
}

.szbd-pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid #e2e2e2;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.szbd-pill-item input:checked + .szbd-pill-label {
  border-color: #ff5d00;
  background-color: #fff4ee;
  color: #ff5d00;
}

/* ===== Green tick badge (color + size) ===== */
.szbd-tick {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: #28a745;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  z-index: 10;
  pointer-events: none;
}

.szbd-swatch-item input:checked ~ .szbd-tick,
.szbd-pill-item input:checked ~ .szbd-tick {
  display: flex;
}

@media (max-width: 480px) {
  .szbd-swatch-label {
    width: 36px;
    height: 36px;
  }

  .szbd-pill-label {
    min-width: 38px;
    height: 34px;
    font-size: 12px;
  }
}

.szbd-product-modal-box .szbd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

/* ===== Modal Product Info ===== */
.szbd-product-modal-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.szbd-product-modal-box .szbd-img {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}

.szbd-product-modal-box .szbd-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.szbd-product-modal-box .szbd-p-name .szbd-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 8px;
  height: auto;
  /* card er fixed height eikhane lagbe na */
}

.szbd-modal-price .szbd-current {
  font-size: 20px;
  font-weight: 700;
  color: #ff5d00;
}

.szbd-modal-price .szbd-original {
  font-size: 13px;
  color: #999;
  margin-left: 8px;
}

/* ===== Options ===== */
.szbd-option-block {
  margin-bottom: 8px;
}

.szbd-option-title {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}

.szbd-color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.szbd-swatch-item input {
  display: none;
}

.szbd-swatch-label {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.szbd-swatch-item input:checked + .szbd-swatch-label {
  border-color: #ff5d00;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #ff5d00;
}

.szbd-swatch-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.szbd-size-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.szbd-pill-item input {
  display: none;
}

.szbd-pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid #e2e2e2;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.szbd-pill-item input:checked + .szbd-pill-label {
  border-color: #ff5d00;
  background-color: #fff4ee;
  color: #ff5d00;
}

/* Quantity */
.szbd-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #fff4ee;
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}

.szbd-qty-btn {
  width: 38px;
  height: 38px;
  background: #fff4ee;
  border: none;
  color: #111;
  font-size: 13px;
  transition: 0.2s;
}

.szbd-qty-btn:hover {
  background: #ff5d00;
  color: #fff;
}

.szbd-qty-input {
  width: 48px;
  height: 38px;
  border: none;
  border-left: 1.5px solid #e2e2e2;
  border-right: 1.5px solid #e2e2e2;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.szbd-qty-input:focus {
  outline: none;
}

/* ===== Modal Footer Buttons ===== */
.szbd-modal-footer-modern {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
}

.szbd-modal-footer-modern .szbd-btn-outline-modern,
.szbd-modal-footer-modern .szbd-btn-primary-modern {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 13px 10px !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: 0.2s ease;
  cursor: pointer;
}

.szbd-modal-footer-modern .szbd-btn-outline-modern {
  background-color: #fff !important;
  color: #ff5d00 !important;
  border: 1.8px solid #ff5d00 !important;
}

.szbd-modal-footer-modern .szbd-btn-outline-modern:hover {
  background-color: #ff5d00 !important;
  color: #fff !important;
}

.szbd-modal-footer-modern .szbd-btn-primary-modern {
  background-color: #ff5d00 !important;
  color: #fff !important;
  border: 1.8px solid #ff5d00 !important;
  box-shadow: 0 4px 10px rgba(255, 93, 0, 0.25);
}

.szbd-modal-footer-modern .szbd-btn-primary-modern:hover {
  background-color: #e65200 !important;
  border-color: #e65200 !important;
}

.szbd-modal-footer-modern i {
  font-size: 13px;
}

@media (max-width: 480px) {
  .szbd-modal-footer-modern {
    flex-direction: column;
  }

  .szbd-product-modal-box .szbd-img {
    width: 64px;
    height: 80px;
  }

  .szbd-product-modal-box .szbd-p-name .szbd-title {
    font-size: 13.5px;
  }

  .szbd-modal-price .szbd-current {
    font-size: 17px;
  }

  .szbd-swatch-label {
    width: 36px;
    height: 36px;
  }

  .szbd-pill-label {
    min-width: 38px;
    height: 34px;
    font-size: 12px;
  }
}

/* ===== Validation error ===== */
.szbd-option-error {
  color: #e60023;
  font-size: 12px;
  font-weight: 500;
  margin: -4px 0 8px;
}

.szbd-has-error .szbd-swatch-label,
.szbd-has-error .szbd-pill-label {
  border-color: #e60023;
}

.szbd-has-error {
  animation: szbd-shake 0.35s ease;
}

@keyframes szbd-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(3px);
  }
}

.szbd-qty-stepper.input-group {
  display: inline-flex;
  flex-wrap: nowrap;
  width: fit-content;
  align-items: center;
}

.szbd-qty-stepper .szbd-qty-input.input-pm-number {
  width: 48px;
  flex: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.szbd-qty-stepper button:focus {
  outline: none;
}
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 28px;
    border: 1.5px solid #f26d21;
    border-radius: 50px;
    background: #fff;
    color: #f26d21;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #f26d21;
    color: #fff;
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

/* Mini size */
.btn-view-all-sm {
    padding: 0 14px;
    font-size: 12px;
    gap: 4px;
    border-width: 1px;
}

.btn-view-all-sm i {
    font-size: 12px;
}
.product-slider .section-heading-title a i {
  font-size: 18px;
}