/**
 * CardRelics Product Page Styles
 * Exact layout, typography, and component styling matching reference screenshot.
 */

.cr-product-page {
  padding-bottom: 60px;
}

/* ===================================================
   1. MAIN PRODUCT STAGE (3 COLUMNS)
   =================================================== */
.cr-stage-grid {
  display: grid;
  grid-template-columns: 1.28fr 1.15fr 250px;
  gap: 32px;
  align-items: start;
  margin-top: 14px;
}

/* --- Left: Product Gallery --- */
.cr-stage-gallery {
  width: 100%;
}

.cr-gallery {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cr-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 70px;
  flex-shrink: 0;
}

.cr-thumb-btn {
  width: 70px;
  height: 52px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cr-white);
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
}

.cr-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFFFF;
}

.cr-thumb-btn.active {
  border: 1.5px solid #2563EB;
}

.cr-thumb-btn:hover:not(.active) {
  border-color: #94A3B8;
}

.cr-thumb-btn.is-video .cr-video-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
}

.cr-video-badge svg {
  width: 16px;
  height: 16px;
  fill: #FFFFFF;
}

.cr-gallery-main {
  position: relative;
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.cr-main-img-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cr-main-img-wrap img {
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

/* --- Center: Product Buy Box --- */
.cr-stage-buybox {
  width: 100%;
}

@media (min-width: 1025px) {
  .cr-stage-buybox {
    position: sticky;
    top: 84px;
    align-self: start;
    z-index: 20;
  }
}

@media (max-width: 1024px) {
  .cr-stage-buybox {
    position: static;
    top: auto;
  }
}

.cr-buybox {
  display: flex;
  flex-direction: column;
}

.cr-cat-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.cr-title {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.cr-subtitle {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 12px;
}

.cr-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.cr-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cr-score {
  font-weight: 700;
  color: #0F172A;
}

.cr-rev-link {
  color: #2563EB;
  text-decoration: none;
}

.cr-rev-link:hover {
  text-decoration: underline;
}

.cr-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.cr-price-now {
  font-size: 30px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.cr-price-was {
  font-size: 16px;
  color: #94A3B8;
  text-decoration: line-through;
}

.cr-discount-pill {
  background-color: #E02424;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.cr-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.cr-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #1E293B;
}

.cr-check-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-check-icon svg {
  width: 11px;
  height: 11px;
  stroke: #FFFFFF;
}

.cr-stock-urgency {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 10px;
}

.cr-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #16A34A;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.cr-delivery-promise {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 20px;
}

.cr-truck-icon {
  width: 16px;
  height: 16px;
  stroke: #475569;
  flex-shrink: 0;
}

.cr-timer-highlight {
  color: #EA580C;
  font-weight: 700;
}

/* CTA Row */
.cr-cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.cr-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  height: 44px;
  width: 105px;
  flex-shrink: 0;
  background: #FFFFFF;
}

.cr-stepper-btn {
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.cr-stepper-btn:hover {
  color: #0F172A;
}

.cr-stepper-input {
  width: 40px;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  outline: none;
  -moz-appearance: textfield;
}

.cr-stepper-input::-webkit-outer-spin-button,
.cr-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cr-btn-atc {
  flex: 1;
  height: 44px;
  background-color: #FF4722;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.05s ease;
  box-shadow: 0 1px 2px rgba(255, 71, 34, 0.2);
}

.cr-btn-atc:hover {
  background-color: #E63B17;
}

.cr-btn-atc:active {
  background-color: #D0300F;
  transform: scale(0.99);
}

.cr-btn-buy-now {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 10px;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  color: #0F172A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, border-color 0.15s;
}

.cr-btn-buy-now:hover {
  background-color: #F8FAFC;
  border-color: #94A3B8;
}

/* Trust Payments */
.cr-checkout-trust {
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cr-trust-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #64748B;
}

.cr-payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cr-pay-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  font-size: 10px;
  font-weight: 700;
  padding: 0 8px;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  background: #FFFFFF;
  color: #475569;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.cr-visa { font-style: italic; color: #1A1F71; font-weight: 900; letter-spacing: -0.2px; }
.cr-mc { position: relative; width: 30px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.mc-c1, .mc-c2 { width: 12px; height: 12px; border-radius: 50%; display: inline-block; position: absolute; }
.mc-c1 { background: #EB001B; left: 4px; }
.mc-c2 { background: #F79E1B; right: 4px; opacity: 0.9; }
.cr-amex { background: #006FCF; color: #FFF; border-color: #006FCF; }
.cr-pp { color: #003087; font-weight: 800; }
.cr-apple { color: #0F172A; font-weight: 600; }
.cr-shop { background: #5A31F4; color: #FFF; border-color: #5A31F4; font-weight: 700; }

/* --- Right: 4 Trust Cards Sidebar --- */
.cr-stage-trust {
  width: 100%;
}

.cr-trust-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cr-trust-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cr-trust-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cr-tcard-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cr-tcard-icon svg {
  width: 22px;
  height: 22px;
  stroke: #1E293B;
}

.cr-tcard-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.cr-tcard-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.35;
}

/* ===================================================
   2. TABS SECTION
   =================================================== */
.cr-tabs-section {
  margin-top: 48px;
}

.cr-tabs-wrap {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding-top: 2px;
}

.cr-tabs-nav {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #E2E8F0;
}

.cr-tab-nav-btn {
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  padding: 13px 2px;
  position: relative;
  cursor: pointer;
  transition: color 0.15s;
}

.cr-tab-nav-btn:hover {
  color: #0F172A;
}

.cr-tab-nav-btn.active {
  color: #0F172A;
  font-weight: 700;
}

.cr-tab-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #0F172A;
}

.cr-tab-pane {
  display: none;
  padding: 26px 0;
}

.cr-tab-pane.active {
  display: block;
}

.cr-sec-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.cr-overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.cr-overview-p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
}

.cr-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.cr-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.cr-feat-svg {
  width: 18px;
  height: 18px;
  stroke: #475569;
  flex-shrink: 0;
}

/* Customer Photos Row */
.cr-cust-photos-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cr-cust-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
}

.cr-cust-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cr-photo-overlay .cr-more-photos-badge {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rating Breakdown Summary Card */
.cr-rating-summary-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px;
}

.cr-avg-label {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 500;
}

.cr-avg-score-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 2px 0;
}

.cr-avg-number {
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
}

.cr-avg-scale {
  font-size: 16px;
  color: #64748B;
  font-weight: 600;
}

.cr-avg-stars {
  display: flex;
  gap: 2px;
  margin: 4px 0;
}

.cr-based-text {
  font-size: 11.5px;
  color: #64748B;
  margin-bottom: 12px;
}

.cr-histogram {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cr-histo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #475569;
}

.cr-histo-star {
  width: 20px;
  flex-shrink: 0;
  font-size: 11px;
}

.cr-histo-track {
  flex: 1;
  height: 7px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.cr-histo-fill {
  height: 100%;
  background: #FF5A36;
  border-radius: 9999px;
}

.cr-histo-pct {
  width: 26px;
  text-align: right;
  font-size: 11px;
}

/* Specs Table */
.cr-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.cr-specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
}

.cr-specs-table td:first-child {
  font-weight: 600;
  width: 200px;
  color: #334155;
  background: #F8FAFC;
}

.cr-included-list {
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #334155;
}

.cr-faq-item {
  margin-bottom: 16px;
}

.cr-faq-item strong {
  display: block;
  font-size: 14px;
  color: #0F172A;
  margin-bottom: 4px;
}

.cr-faq-item p {
  font-size: 13px;
  color: #475569;
}

/* ===================================================
   3. CUSTOMER REVIEWS (4-COLUMN GRID)
   =================================================== */
.cr-reviews-section {
  margin-top: 36px;
}

.cr-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cr-sec-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}

.cr-btn-write-rev {
  padding: 7px 15px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0F172A;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.cr-btn-write-rev:hover {
  border-color: #94A3B8;
  background-color: #F8FAFC;
}

.cr-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cr-rev-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cr-rev-user-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cr-rev-avatar {
  width: 32px;
  height: 32px;
  background: #E2E8F0;
  color: #334155;
  font-weight: 700;
  font-size: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-rev-user-meta {
  flex: 1;
}

.cr-rev-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cr-rev-name {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.cr-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #10B981;
}

.cr-rev-stars-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.cr-stars-sm {
  display: flex;
  gap: 1px;
}

.cr-rev-time {
  font-size: 11px;
  color: #94A3B8;
}

.cr-rev-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 5px;
}

.cr-rev-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cr-rev-photos {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.cr-rev-photo {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.cr-rev-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================
   4. FREQUENTLY BOUGHT TOGETHER
   =================================================== */
.cr-fbt-section {
  margin-top: 36px;
}

.cr-fbt-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
}

.cr-fbt-items-stage {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cr-fbt-thumb-card {
  width: 76px;
  height: 56px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #FFFFFF;
}

.cr-fbt-thumb-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cr-fbt-plus {
  font-size: 18px;
  font-weight: 600;
  color: #94A3B8;
}

.cr-fbt-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cr-fbt-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cr-fbt-total-label {
  font-size: 13px;
  color: #334155;
}

.cr-fbt-price-val {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}

.cr-fbt-was-val {
  font-size: 13px;
  color: #94A3B8;
  text-decoration: line-through;
}

.cr-fbt-savings {
  font-size: 12px;
  font-weight: 700;
  color: #DC2626;
}

.cr-btn-fbt-add {
  height: 38px;
  padding: 0 18px;
  background-color: #FF4722;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.cr-btn-fbt-add:hover {
  background-color: #E63B17;
}

/* ===================================================
   5. YOU MAY ALSO LIKE (4-COLUMN CARDS)
   =================================================== */
.cr-related-section {
  margin-top: 36px;
}

.cr-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.cr-rel-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cr-rel-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cr-rel-img-wrap {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  padding: 2px;
}

.cr-rel-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cr-rel-info {
  flex: 1;
}

.cr-rel-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
}

.cr-rel-sub {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 3px;
}

.cr-rel-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-rel-price {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.cr-rel-rating {
  font-size: 11px;
  color: #F59E0B;
  font-weight: 700;
}

.cr-rel-count {
  color: #94A3B8;
  font-weight: 400;
}

/* ===================================================
   RESPONSIVE DESIGN BREAKPOINTS
   =================================================== */
@media (max-width: 1200px) {
  .cr-stage-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cr-stage-trust {
    grid-column: span 2;
  }
  .cr-trust-sidebar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .cr-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cr-overview-col-right {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .cr-stage-grid {
    grid-template-columns: 1fr;
  }
  .cr-stage-trust {
    grid-column: span 1;
  }
  .cr-trust-sidebar {
    grid-template-columns: 1fr 1fr;
  }
  .cr-reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cr-related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cr-fbt-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .cr-gallery {
    flex-direction: column-reverse;
  }
  .cr-gallery-thumbs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }
  .cr-trust-sidebar {
    grid-template-columns: 1fr;
  }
  .cr-overview-grid {
    grid-template-columns: 1fr;
  }
  .cr-reviews-grid {
    grid-template-columns: 1fr;
  }
  .cr-related-grid {
    grid-template-columns: 1fr;
  }
  .cr-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    gap: 16px;
  }
}

/* ===================================================
   MOBILE STICKY BOTTOM PURCHASE BAR (< 1025px)
   =================================================== */
.cr-mobile-sticky-bar {
  display: none;
}

@media (max-width: 1024px) {
  .cr-mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .cr-mobile-sticky-bar.visible,
  .cr-mobile-sticky-bar.active {
    transform: translateY(0);
  }

  .cr-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 100%;
  }

  .cr-sticky-prod {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
  }

  .cr-sticky-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
  }

  .cr-sticky-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
  }

  .cr-sticky-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cr-sticky-price {
    font-size: 14px;
    font-weight: 800;
    color: #EA580C;
    line-height: 1.2;
    margin-top: 2px;
  }

  .cr-sticky-btn {
    background: #EA580C;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px; /* comfortable tap target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
  }

  .cr-sticky-btn:active {
    background: #C2410C;
  }
}

/* ===================================================
   WOOCOMMERCE ARCHIVE & CATEGORY CARDS UNIFICATION
   =================================================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin: 24px 0 48px !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 680px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

.woocommerce ul.products li.product {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  position: relative !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08) !important;
  border-color: #CBD5E1 !important;
}

/* Red rectangular sale badge */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  background: #DC2626 !important;
  color: #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  min-height: auto !important;
  min-width: auto !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2) !important;
  z-index: 2 !important;
}

/* Product image container */
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1 !important;
  background: #FFFFFF !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img {
  aspect-ratio: 1 / 1 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: #FFFFFF !important;
  border-radius: 4px !important;
  transition: transform 0.25s ease !important;
}

.woocommerce ul.products li.product:hover a.woocommerce-loop-product__link img {
  transform: scale(1.04) !important;
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  line-height: 1.35 !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 38px !important;
}

/* Price */
.woocommerce ul.products li.product .price {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  margin: 0 0 14px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.woocommerce ul.products li.product .price del {
  color: #94A3B8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.woocommerce ul.products li.product .price ins {
  color: #DC2626 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Add to cart / Read more buttons */
.woocommerce ul.products li.product .button {
  background: #0F172A !important;
  color: #FFFFFF !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
  margin-top: auto !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 42px !important;
}

.woocommerce ul.products li.product .button:hover {
  background: #EA580C !important;
  color: #FFFFFF !important;
}
