.swpb-container,
.swpb-collection,
.swpb-single {
  max-width: 1280px;
  margin: 0 auto;
}
.swpb-purchase-row a.swpb-checkout-btn {
    width: 100% !important;
    display: none;
}
button.swpb-sizechart-trigger {
    text-decoration: none !important;
    padding: 12px;
}
.swpb-page-shell {
  padding: 24px 16px 48px;
}

.swpb-notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  color: #0f172a;
}

.swpb-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.swpb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.swpb-head-controls-only {
  justify-content: flex-end;
}

.swpb-title,
.swpb-single-title {
  margin: 0;
  color: #0f172a;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.swpb-title {
  font-size: clamp(28px, 4vw, 42px);
}

.swpb-single-title {
  font-size: clamp(30px, 4.5vw, 42px);
}

.swpb-description {
  margin: 16px 0 0;
  color: #475569;
}

.swpb-description-html *:last-child {
  margin-bottom: 0;
}

.swpb-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.swpb-products-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(295px, 295px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.swpb-products-slider::-webkit-scrollbar {
  display: none;
}

.swpb-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    overflow: hidden;
/*     box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06); */
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.swpb-card:hover {
  transform: translateY(-3px);
}

.swpb-thumb-wrap {
  display: block;
  background: #f8fafc;
  aspect-ratio: 1 / 1;
}

.swpb-thumb,
.swpb-main-image,
.swpb-gallery-thumb-btn img,
.swpb-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swpb-main-image {
  object-fit: contain;
  background: #fff;
}

.swpb-thumb-placeholder,
.swpb-cart-item-image-placeholder {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  width: 100%;
  height: 100%;
}

.swpb-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.swpb-card-title {
  display: block;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.28;
  margin-bottom: 10px;
}

.swpb-price-row {
     display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.swpb-price-row-large {
  margin: 14px 0 0;
}

.swpb-price {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.swpb-price.is-crossed,
.swpb-card-soldout .swpb-price {
  text-decoration: line-through;
  opacity: 0.7;
}

.swpb-compare-price {
  color: #64748b;
  text-decoration: line-through;
}

.swpb-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.swpb-chip {
  font-size: 12px;
  line-height: 1;
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: 8px 10px;
}

.swpb-chip.is-disabled {
  text-decoration: line-through;
  opacity: 0.55;
}

.swpb-view-btn,
.swpb-checkout-btn,
.swpb-secondary-btn,
.swpb-slider-btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
  transition:all .3s ease-in-out;
}

.swpb-view-btn,
.swpb-checkout-btn {
  background: #081635;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 0;
transition:all .3s ease-in-out;
}
.swpb-checkout-btn {
	flex:1;
}
.swpb-view-btn:hover,
.swpb-checkout-btn:hover {
	color:#fff;
	background:#C9191A;
}

.swpb-description ul {
    margin-top: 20px;
}
.swpb-view-btn {
    width: 100%;
    margin-top: auto;
}
.swpb-view-btn:hover {
	color:#fff;
	background:#C9191A;
}

.swpb-checkout-btn {
  min-width: 190px;
}

.swpb-secondary-btn {
  color: #0f172a;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 999px;
  background: #fff;
	flex: 1;
}

.swpb-view-btn:hover,
.swpb-checkout-btn:hover,
.swpb-secondary-btn:hover,
.swpb-slider-btn:hover {
  transform: translateY(-1px);
}

.swpb-checkout-btn.is-disabled,
.swpb-secondary-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.swpb-slider-controls {
  display: flex;
  gap: 10px;
}

.swpb-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.05);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.swpb-badge-soldout {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #991b1b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  z-index: 2;
}

.swpb-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 36px;
  align-items: start;
}

.swpb-gallery-main {
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  aspect-ratio: 1 / 1;
}

.swpb-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.swpb-gallery-thumb-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.swpb-gallery-thumb-btn.is-active {
  border-color: #081635;
}

.swpb-summary {
  padding: 8px 0;
}

.swpb-stock {
  margin-top: 18px;
  font-weight: 700;
  font-size: 16px;
  color: #166534;
}

.swpb-stock.is-out {
  color: #991b1b;
}

.swpb-option-groups {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.swpb-option-group label {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 10px;
}

.swpb-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swpb-option-pill {
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.swpb-option-pill.is-active {
  background: #081635;
  color: #fff;
  border-color: #081635;
}

.swpb-option-pill.is-disabled,
.swpb-option-pill:disabled {
  text-decoration: line-through;
  opacity: 0.45;
  cursor: not-allowed;
}

.swpb-purchase-row {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.swpb-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swpb-qty-wrap label {
  font-weight: 800;
  color: #0f172a;
}

.swpb-qty {
  width: 110px;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 18px;
}

.swpb-meta-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.swpb-cart-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 999px;
  background: #081635;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.22);
  cursor: pointer;
}

.swpb-cart-fab-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
}

.swpb-cart-fab-icon svg {
    width: 24px;
    flex-shrink: 0;
    height: 24px;
    vertical-align: middle;
}

.swpb-cart-count,
.swpb-cart-inline-count {
  background: #dc2626;
  color: #fff;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swpb-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
}

.swpb-cart-inline-count {
  margin-left: 8px;
  vertical-align: middle;
}

.swpb-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  z-index: 9998;
}

.swpb-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(440px, 100vw);
  background: #fff;
  box-shadow: -16px 0 40px rgba(2, 6, 23, 0.14);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.swpb-cart-drawer.is-open {
  transform: translateX(0);
}

.swpb-cart-drawer-head,
.swpb-cart-footer {
  padding: 20px;
}

.swpb-cart-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.swpb-cart-kicker {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swpb-cart-drawer-head h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.swpb-cart-close {
    border: none;
    background: #f8fafc;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #0f172a;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.swpb-cart-body {
  padding: 18px 20px;
  overflow: auto;
  display: grid;
  gap: 14px;
  flex: 1;
}

.swpb-cart-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  padding: 24px;
  color: #64748b;
}

.swpb-cart-empty strong {
  color: #0f172a;
  font-size: 18px;
}

.swpb-cart-empty-icon {
  font-size: 30px;
}

.swpb-cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.swpb-cart-item-image {
  width: 82px;
  height: 82px;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
}

.swpb-cart-item-title {
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.swpb-cart-item-variant {
  font-size: 13px;
  color: #64748b;
  margin-top: 5px;
}

.swpb-cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.swpb-cart-item-price {
  font-weight: 800;
  color: #081635;
}

.swpb-cart-item-qty-wrap {
  display: inline-flex;
  align-items: center;
  padding: 4px;
}

.swpb-cart-item-qty-wrap button {
    width: 36px;
    height: 36px;
    border: 0;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
	 flex-shrink: 0
}
.swpb-cart-item-qty-wrap span {
    min-width: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
	flex-shrink: 0
}

.swpb-cart-item-remove {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 26px;
    cursor: pointer;
    padding: 0 2px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.swpb-cart-footer {
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
  background: #fff;
  box-shadow: 0 -10px 30px rgba(2, 6, 23, 0.04);
}

.swpb-cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  margin-bottom: 8px;
}

.swpb-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.swpb-cart-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .swpb-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .swpb-single {
    grid-template-columns: 1fr;
  }
}
@media (max-width:991px) {
	.swpb-products-slider {
    grid-auto-columns: minmax(210px, 295px);
}
	.swpb-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 767px) {
  .swpb-page-shell {
    padding: 18px 12px 36px;
  }

  .swpb-head {
    align-items: center;
  }

  .swpb-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }



  .swpb-card-body {
    padding: 14px;
  }

  .swpb-card-title {
    font-size: 16px;
  }

  .swpb-price {
    font-size: 20px;
  }

  .swpb-products-slider {
    grid-auto-columns: minmax(220px, 82vw);
    gap: 14px;
  }

  .swpb-gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80px;
    overflow-x: auto;
    grid-template-columns: none;
    gap: 10px;
    padding-bottom: 2px;
  }

  .swpb-summary {
    padding-top: 6px;
  }

  .swpb-purchase-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .swpb-qty {
    width: 100%;
  }

  .swpb-checkout-btn,
  .swpb-secondary-btn {
    width: 100%;
  }

  .swpb-cart-drawer {
    width: 100vw;
  }

  .swpb-cart-drawer-head,
  .swpb-cart-footer {
    padding: 16px;
  }

  .swpb-cart-body {
    padding: 14px 16px 18px;
  }

  .swpb-cart-actions {
    grid-template-columns: 1fr;
  }

  .swpb-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

  .swpb-cart-item-image {
    width: 64px;
    height: 64px;
  }

  .swpb-cart-item-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .swpb-cart-fab {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 520px) {
  .swpb-products-grid {
    grid-template-columns: 1fr;
  }

  .swpb-single-title {
    font-size: clamp(28px, 9vw, 30px);
}
	.swpb-products-slider {
    grid-auto-columns: minmax(240px, 82vw);
    gap: 14px;
    margin-right: -42px;
}
	.swpb-main-image {
    object-fit: cover;
}
	.swpb-gallery-main {
    border-radius: 10px;
}
}

/* Size chart popup */
.swpb-sizechart-trigger-wrap { margin-top: 18px; }
.swpb-sizechart-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  color: #081635;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.swpb-sizechart-overlay[hidden],
.swpb-sizechart-modal[hidden] { display: none !important; }
.swpb-sizechart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.52);
  z-index: 10000;
}
.swpb-sizechart-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10001;
}
.swpb-sizechart-modal-inner {
  width: min(760px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.24);
}
.swpb-sizechart-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
}
.swpb-sizechart-modal-head h3 { margin: 0; font-size: 22px; }
.swpb-sizechart-close {
  width: 42px; height: 42px; border: 0; border-radius: 999px; background: #f1f5f9; cursor: pointer; font-size: 26px; line-height: 1;
}
.swpb-sizechart-modal-body { padding: 20px; }
.swpb-sizechart-image { width: 100%; height: auto; display: block; }
.swpb-sizechart-content table { width: 100%; border-collapse: collapse; }
.swpb-sizechart-content th,
.swpb-sizechart-content td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: center; }
.swpb-sizechart-content th { background: #f8fafc; }
body.swpb-sizechart-open { overflow: hidden; }
@media (max-width: 767px) {
  .swpb-sizechart-modal { align-items: flex-end; padding: 0; }
  .swpb-sizechart-modal-inner {
    width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0;
  }
  .swpb-sizechart-modal-head h3 { font-size: 18px; }
}
