

.sb-page {
    width: 100%;
    margin: 0;
    padding: 28px 0;
    background:#FCF4EE;
  }

  .sb-container{
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .sb-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
  }
  @media (max-width: 1024px) {
    .sb-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .sb-grid { grid-template-columns: 1fr; }
  }

.sb-card {
    display: grid;
    grid-template-rows: 224px auto;
    background: #FFFBF8;
    border: 1px solid #ececec;
    border-radius: 18px;
    overflow: hidden;
    min-height: 320px;  /* Changed from height to min-height */
}


  .sb-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
  }


  .sb-body-empty {
    background: #fbefd6;
    padding: 10px 18px;

  }

  .shop-intro {
    font-size: 20px;
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #6a1d1d;
    line-height: 1.6;
    text-align: left;
    max-width: 700px;
    margin: 0 0 100px 40px;
  }

  .order-title {
    font-size: 100px;
    font-family: 'Ranchers', serif;
    font-style: italic;
    font-weight: bold;
    color: #902525;
    line-height: 1.6;
    text-align: left;
    max-width: 700px;
    margin: 0 0 20px 40px;
  }


.intro-section{
    position: relative;
    min-height: 260px;
  }

  .intro-icons{
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(48vw, 680px);
    pointer-events: none;
    z-index: 1;
  }

  .intro-icons img{
    position: absolute;
    opacity: .18;
    width: clamp(90px, 12vw, 180px);
    height: auto;
    filter: saturate(90%) contrast(85%);
  }

  .intro-icons img:nth-child(1){ right: 50%; top: -15px; transform: rotate(-6deg); }
  .intro-icons img:nth-child(2){ right: 23%; top: 150px; transform: rotate( 4deg); }
  .intro-icons img:nth-child(3){ right: -10%; top: 70px; transform: rotate(-2deg); }
  .intro-icons img:nth-child(4){ right: 85%; top: 180px; transform: rotate( 7deg); }


  @media (max-width: 900px){
    .intro-icons{ display: none; }
  }

  .sb-thumb-empty img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .sb-body-empty h3{
    font-size: 24px;
    font-family: 'Plus Jakarta Sans';
    font-weight: bold;
    color: #000000;
    line-height: 1.3;
    text-align: left;
    margin: 0 0 15px 10px;
  }

  .sb-body-empty p{
    font-size: 18px;
    color: #595959;
    font-weight:800;
    line-height: 1.3;
    text-align: left;
    margin: 0 0 15px 10px;
  }

  .sb-bottom{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
  }


  .sb-box {
    background: linear-gradient(to right, #f9ada7 50%, #a4d8fc 50%);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    width: 200px;
    height: 32px;
  }


  .sb-box .icon-btn{
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 100%;
    cursor: pointer;
  }

  .sb-box .icon-btn.cart:hover   {
     background:#f87d74;
  }
  .sb-box .icon-btn.cart:active  {
    background:#fb4b3f;
  }
  .sb-box .icon-btn.arrow:hover  {
    background:#6fc3ff;
  }
  .sb-box .icon-btn.arrow:active {
    background:#149dfe;
  }


  .sb-box .icon-btn img{
    width: 25px;
    height: 25px;
    display: block;
  }


  .sb-detailsPage {
    width: 100%;
    margin: 0;
    padding: 28px 0;
    background:#FCF4EE;
    min-height: 100vh;
  }

  .details-title {
    font-size: 100px;
    font-family: 'Ranchers', serif;
    font-style: italic;
    font-weight: bold;
    color: #902525;
    line-height: 1.6;
    text-align: left;
    max-width: 700px;
    margin: 0 0 20px 40px;
  }

  .product-id {
    font-size: 30px;
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #6a1d1d;
    line-height: 1.6;
    text-align: left;
    max-width: 700px;
    margin: 0 0 100px 40px;
  }
  .contact-background {
    background: #FCF4EE;
    width: 100%;
    font-size: 100%;
    --bs-body-font-size: 1rem;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow: hidden;          /* no scrollbars */
    overscroll-behavior: none;

}

.payment-title {
  font-size: 100px;
  font-family: 'Ranchers', serif;
  font-style: italic;
  font-weight: bold;
  color: #902525;
  line-height: 1.6;
  text-align: left;
  max-width: 700px;
  margin: 0 0 20px 40px;
}

.pay-information {
  font-size: 25px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #881818;
  line-height: 1.6;
  text-align: left;
  max-width: 700px;
  margin: 0 0 100px 40px;
}

.total-price {
  font-size: 40px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #881818;
  line-height: 1.6;
  text-align: left;
  max-width: 700px;
  margin: 0 0 100px 40px;
}
/* Promo badge that doesn't squeeze the image */
.sb-thumb-empty {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    z-index: 10;
    text-transform: uppercase;
}

/* Price container fixes */
.price-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-left: 10px;
}

.promo-price {
    color: #ff0000;
    font-weight: 800;
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
}

.original-price.crossed {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

/* Ensure regular price stays consistent */
.sb-body-empty p {
    font-size: 18px;
    color: #595959;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    margin: 0 0 15px 10px;
}

/* Fix for promo card */
.promo-card .sb-thumb-empty,
.has-promo .sb-thumb-empty {
    position: relative;
}
.sb-pagination {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 24px 0 8px;
}

/* Button-like look */
.sb-pagination .page-link,
.sb-pagination .page-item > span.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border: 1px solid #e6d8cd;
  border-radius: 999px;
  background: #fff7f0;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.sb-pagination .page-item.active > .page-link,
.sb-pagination .page-item.active > span.page-link {
  background: #902525;
  border-color: #902525;
  color: #fff;
}

.sb-pagination .page-item.disabled > .page-link,
.sb-pagination .page-item.disabled > span.page-link {
  opacity: .45;
  cursor: not-allowed;
}

#message.form-control { font-size: 1.25rem;  min-height: 15rem;   font-size: 1rem;    resize: vertical; }
#message::placeholder { font-size: 1.25rem; }

/* Ensure labels aren’t tiny */
/* Counter */
.word-counter {
  margin-top: 6px;
  font-size: 12px;
  color: #6c757d;       /* bootstrap-ish muted */
  text-align: right;
}
.word-counter.over { color: #b00020; font-weight: 600; }

.payment-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.payment-page h1 {
  color: #8B0000;
}

.payment-page ul {
  list-style-type: none;
  padding: 0;
}

.payment-page li {
  margin: 5px 0;
}

.success-msg {
  background: #e6ffe6;
  border: 1px solid #4CAF50;
  padding: 10px;
  margin-bottom: 20px;
}

.total-price {
  color: darkred;
  font-weight: bold;
}

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: #8B0000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.sb-pagination {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 24px 0 8px;
}

.sb-pagination .page-link,
.sb-pagination .page-item > span.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border: 1px solid #e6d8cd;
  border-radius: 999px;
  background: #fff7f0;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.sb-pagination .page-item.active > .page-link,
.sb-pagination .page-item.active > span.page-link {
  background: #902525;
  border-color: #902525;
  color: #fff;
}

.sb-pagination .page-item.disabled > .page-link,
.sb-pagination .page-item.disabled > span.page-link {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===== Payment page ===== */
.payment-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.payment-page h1 { color: #8B0000; }

.payment-page ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-page li { margin: 5px 0; }

.success-msg {
  background: #e6ffe6;
  border: 1px solid #4CAF50;
  padding: 10px;
  margin-bottom: 20px;
}

.total-price { color: darkred; font-weight: bold; }

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: #8B0000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.jakarta {
  font-family: 'Plus Jakarta Sans';
}
/* Header Section */
.header-section {
    margin-bottom: 40px;
}

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

.search-wrapper {
    flex-shrink: 0;
}

.search-bar {
    display: flex;
    gap: 10px;
}

/* Price Display */
.price-display {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 10px;
}

.promo-price {
    color: #ff0000;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

/* Category Filter Bar */
.category-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
}

.category-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-select {
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Sections */
.promotions-section,
.items-section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 20px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.sb-pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5px;
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: start;
    }

    .search-wrapper {
        width: 100%;
        margin-top: 20px;
    }

    .category-filter-bar {
        flex-direction: column;
        align-items: start;
    }
}
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFD700;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    z-index: 10;
    text-transform: uppercase;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

