/* --- products.html, category_page.html, product_detail.html, product_reviews.html ---*/
.review-stars {
  color: #FFC107;
  letter-spacing: 1px;
}
.review-stars .empty {
  color: #d5d9dd;
}
/* --- products.html, category_page.html, product_detail.html, product_reviews.html ---*/


/* --- products.html, category_page.html, product_detail.html --- */
.product-price { font-weight: 700; color: #111;}
.save-badge{
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .92;
  transform: scale(.96);
  transition:
    opacity .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}
/* --- products.html, category_page.html, product_detail.html --end */


/* --- products.html, category_page.html --- */
.product-content {
  padding: 14px 16px 16px;
  text-align: left;
}
.product-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;     /* ✅ prevents tiny gaps */
  border-radius: 0;   /* ✅ let the card round it */
  margin-bottom: 0;   /* ✅ no extra space under image */
}
.product-name { 
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111;
  line-height: 1.2;
 }
.product-name:hover { color: #FECF3F; }

.product-image-wrapper .save-badge{
  position:absolute;
  top:10px;
  right:10px;
}

.add-pill{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #ffe58f;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
  background: white;
  color: #000;
  opacity: 0;
  transform: translateY(8px);
  transition: .18s ease;
  backdrop-filter: blur(8px);
}
.product.card:hover .add-pill{ opacity:1; transform: translateY(0); }
.add-pill:hover{ background: #FFC107; color: #000; border-color: #FFC107; }

.product.card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.08) !important;
}

.product-container { 
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;  /* If it feels too empty → keep gap at 24–28px and cap max-width */
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 992px){
  .product-container{ grid-template-columns: repeat(2, minmax(0, 1fr)); } /* tablet */
}
@media (max-width: 576px){
  .product-container{ grid-template-columns: 1fr; } /* mobile */
}

.save-badge i{
  font-size: 1.1rem;
  color: #555;
  transition: color .18s ease, transform .18s ease;
}
.save-badge.saved{
  background: #fff;
  border-color: #FECF3F;
  opacity: 1;          /* saved should feel “locked in” */
  transform: scale(1); /* don’t look pressed in */
}
.save-badge.saved i{
  color: #e0a800; 
}
.save-badge:hover i{
  transform: scale(1.06);
}
.save-badge:hover{
  background: #fff;
  border-color: rgba(0,0,0,.25);
}
.product.card:hover .save-badge{
  opacity: 1;
  transform: scale(1) translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.stock-badge{
  position:absolute;
  top:12px;
  left:12px;
  padding:6px 10px;
  font-size:.75rem;
  font-weight:600;
  border-radius:999px;

  background: rgba(255,255,255,.95);
  border:1px solid transparent;

  opacity:.92;
  transform: scale(.96);
  transition:
    opacity .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}
.product.card:hover .stock-badge{
  opacity:1;
  transform: scale(1) translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.stock-badge--neutral{
  color:#868e96;
  border-color:#e9ecef;
}
.stock-badge--out{
  color:#dc3545;
  border-color:#dc3545;
}

.grid-stepper{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 14px;
  background: white;
  border: 1px solid #ffe58f;
  border-radius: 999px;
  font-weight: 600;
}
.grid-stepper button{
  background:none;
  border:none;
  font-size:16px;
}
.grid-stepper-inline{
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  background:#fff8d6;
  border:1px solid #ffe58f;
  border-radius:999px;
  font-weight:600;
  font-size:.85rem;
}
.grid-stepper-inline button{
  background:none;
  border:none;
  font-size:14px;
  padding:0;
}
.product-rating{
    font-size: 0.85rem;
    line-height: 1;
}
/* --- products.html, category_page.html ---end */


/* --- product_detail.html, product_reviews.html --- */
.review-summary-card,
.review-form-card,
.review-list-card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.review-summary-score {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: #111;
}

.review-card {
  border: 1px solid #eceff3;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.review-card:hover {
  border-color: #dee2e6;
  box-shadow: 0 .4rem 1rem rgba(0,0,0,.05);
  transform: translateY(-1px);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.review-card--mine {
  border-color: #ffd54f;
  background: #fffdf7;
  box-shadow: 0 .5rem 1rem rgba(255, 193, 7, .08);
}
.review-card + .review-card{
  margin-top: 6px;
}

.review-verified-note {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 14px;
}

.review-author{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.review-author span{
  font-weight:600;
  color:#111;
}
.review-meta {
  color: #6c757d;
  font-size: .875rem;
}

.review-comment {
   margin-top: 12px;
  color: #444;
  line-height: 1.65;
  font-size: .95rem;
}
.review-tip {
  background: #fff8e1;
  border: 1px solid #ffe8a1;
  color: #6b5a20;
  border-radius: 12px;
  padding: 10px 12px;
}

.review-form-card .form-control,
.review-form-card .form-select {
  border-radius: 12px;
}

.review-empty {
  border: 1px dashed #dee2e6;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #6c757d;
  background: #fcfcfd;
}
.review-badge-mine {
  background: #fff3cd;
  color: #7a5d00;
  border: 1px solid #ffe08a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
}

.review-response{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background:#f6f8fa;
  border:1px solid #e6eaef;
}

.review-response-label{
  font-size: .85rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.review-response-text{
  font-size: .95rem;
  color: #555;
  line-height: 1.6;
}
/* --- product_detail.html, product_reviews.html --- end*/


/* --- product_detail.html --- */
.notify-form .input-group-text,
.notify-form .form-control{
  border-color: #e5e7eb;
}

.notify-form .input-group-text{
  background: #fff;
}

.notify-success{ color:#198754; }
.notify-error{ color:#dc3545; }

.pd-main-img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}
.pd-thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, border-color .15s ease, opacity .15s ease;
  opacity: .95;
}
.pd-thumb:hover { transform: translateY(-2px); opacity: 1; }
.pd-thumb.active { border-color: #FFC107; opacity: 1; }
.pd-sticky .card {
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
@media (min-width: 992px){
  .pd-sticky { position: sticky; top: 24px; }
}

.star { color: #FFC107; }
.pd-stepper{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:space-between;
    padding:10px 12px;
    background-color: #FFC107; 
    border: 1px solid #ffe58f;   
    border-radius: 14px;
  }

.pd-stepper-mid{
  flex:1;
  text-align:center;
  user-select:none;
}
.pd-title-wrap{
  position: relative;
  padding-right: 48px; /* reserve space so text never overlaps button */
}

.pd-title{
  line-height: 1.25;
}

.save-badge--title{
  position:absolute;
  top:2px;
  right:0;
  background: rgba(255,255,255,.95);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

.review-section {
  margin-top: 3rem;
}
/* --- product_detail.html --- end */


/* --- create_your_own.html, custom_product_edit.html --- */
.row.align-items-stretch > [class*="col-"] {
  display: flex;
}

#image-preview {
    width: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ccc;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 15px;
}

#image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.uploaded-images ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.uploaded-images li {
    position: relative;
}

.uploaded-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    padding: 4px 7px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.uploaded-images li:hover .remove-image {
    opacity: 1;
}

.remove-image:hover {
    background-color: darkred;
}

#add-to-cart-btn {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #ffc107; /* Bootstrap warning */
    color: #000;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#add-to-cart-btn:hover {
    background-color: #e0a800;
}

#add-to-cart-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}
/* --- create_your_own.html, custom_product_edit.html ---end */
