/* app/static/css/style.css */
/* --- GLOBAL, base.html --- */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
}

body {
  padding-top: 76px;
}
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.alert {
  margin-bottom: 0.5rem;
}

:root {
  --navbar-height: 76px;
  --announcement-height: 44px;
}

body {
  padding-top: calc(var(--navbar-height) + var(--announcement-height));
}

#navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

#site-announcement {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  z-index: 1020;
  border-radius: 0;
  margin: 0;
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
    --announcement-height: 60px;
  }

  #site-announcement {
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 12px;
    padding-right: 12px;
  }
}

.app-toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + var(--announcement-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  width: min(92vw, 420px);
  
}

.app-toast {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

@media (max-width: 768px) {
  .app-toast-container {
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .app-toast {
    width: 100%;
    max-width: 420px;
  }
}



.app-toast + .app-toast {
  margin-top: 12px;
}

.app-toast .toast-body {
  font-weight: 500;
}

.breadcrumbs-container {
  margin: 10px auto 20px auto;
  padding: 0 20px;
  font-size: 0.9rem;
  color: #555;
}
.breadcrumbs a {
  color: #007bff;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  color: #333;
  font-weight: 600;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;

}

main {
  flex: 1;
  width: 100%;
}

/* --- Global --- */
.list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.btn-warning {
    background-color: #FFC107;
    border-color: #FFC107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-outline-warning {
    color: #000;
    border-color: #FFC107;
}

.btn-outline-warning:hover {
    background-color: #FFC107;
    color: #000;
}
/* --- GLOBAL, base.html ---end */


/* ---navbar.html ---*/
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1rem;
}

.navbar-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.navbar-brand .text-warning {
  color: #FECF3F !important;
}

.navbar-brand .text-dark {
  color: #333 !important;
}

.navbar .nav-link {
  color: #333;
  font-weight: 500;
  margin: 0 0.25rem;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: #F6D35B;
  text-decoration: none;
}

.nav-link:focus,
.nav-link.dropdown-toggle:focus {
  box-shadow: none !important;
  outline: none !important;
}

.navbar .dropdown-toggle {
  display: inline-flex;
  align-items: center;
}

.navbar .dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 240px;
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  padding: 0.65rem 1rem;
  font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #F6D35B;
  color: #000;
}

.navbar .dropdown-item:active {
  background-color: #F6D35B;
  color: #000;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu {
    margin-top: 0.35rem;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    text-align: center;
  }

  .navbar-brand .brand-name {
    font-size: 1.25rem;
  }
}

form.d-flex input[type="text"] {
  border-radius: 6px;
  border: 1px solid #ddd;
}

.navbar-search-form {
  min-width: 280px;
}

.navbar-search-form button {
  border-radius: 6px;
  border-color: #FECF3F;
  color: #333;
}

.navbar-search-form button:hover {
  background-color: #FFC107;
  color: black;
}

#navbar-search-suggestions {
  top: calc(100% + 6px);
  left: 0;
  z-index: 1055;
  max-height: 360px;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem;
  border-bottom: 1px solid #f1f1f1;
  margin-bottom: 0;
  border-radius: 0;
}

.search-suggestion-item:last-child {
  border-bottom: 0;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: #f8f9fa;
  color: inherit;
  text-decoration: none;
}

.search-suggestion-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--bs-border-color);
  flex-shrink: 0;
  background: #fff;
}

.search-suggestion-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px dashed var(--bs-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--bs-secondary-color);
  background: #f8f9fa;
  flex-shrink: 0;
}

.search-suggestion-text {
  min-width: 0;
}

.search-suggestion-name {
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.search-suggestion-price {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}

.search-no-results {
  margin-bottom: 0;
  border-radius: 0;
}
/* ---navbar.html ---end*/


/* --- search_results.html ---*/
.product-thumb {
    height: 220px;
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa; /* light gray fill so empty space looks clean */
    padding: 5px;
    border-radius: 8px;
}
/* --- search_results.html ---end */


/* --- home.html --- */
.hero-split{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* image slightly bigger */
  gap: 18px;
  align-items: stretch;
}

.hero-media{
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
}

.hero-image{
  width: 100%;
  height: 420px;
  object-fit: contain; background: white;     /* fills nicely, may crop */
  display: block;
  transition: opacity .4s ease;
}

.fade-out{ opacity: 0; }

.hero-side{
  display: flex;
  align-items: center;
}

.hero-card{
  width: 100%;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.06);
}

@media (max-width: 992px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .hero-image{
    height: 340px;
  }
}
@media (max-width: 576px){
  .hero-image{
    height: 260px;
  }
}
/* --- home.html ---end */


/* --- 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, edit_custom_product.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, edit_custom_product.html ---end */


/* --- admin_dashboard.html, and admin pages ---*/
.divider {
    border-bottom: 1px solid #ddd;
    opacity: 0.7;
}

.badge.bg-warning {
  font-weight: 600;
}

.badge.bg-info {
  font-weight: 600;
}
.badge.bg-primary {
  font-weight: 600;
}
.badge.bg-success {
  font-weight: 600;
}
.btn-outline-dark {
  min-width: 70px;
}
.btn-outline-secondary {
  min-width: 85px;
}

@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.85rem;
  }
  .btn-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

/* --- admin_manage_orders.html ---*/
.btn-outline-success {
  min-width: 85px;
}

/* --- admin_pack_order.html ---*/
.highlight-packed {
  background-color: #eafbea !important;
}

/* --- admin_manage_reviews.html */
.modal-content {
    background-color: #ffffff !important;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25) !important;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
}
/* --- admin_dashboard.html, and admin pages ---end*/


/* --- admin_manage_products.html ---*/
.product-name-link {
    text-decoration: none;
    color: inherit;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    max-width: 220px;
}

.product-name-link:hover {
    color: var(--bs-primary);
}
/* --- admin_manage_products.html --- end*/


/* --- admin_product_detail.html --- */
.admin-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.admin-product-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.info-tile {
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
    background: var(--bs-body-bg);
}

.info-tile .label {
    font-size: .82rem;
    color: var(--bs-secondary-color);
    margin-bottom: .35rem;
}

.info-tile .value {
    font-weight: 600;
}

.main-image-wrap {
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: #fff;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.main-image-wrap img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.empty-state {
    border: 1px dashed var(--bs-border-color);
    border-radius: 16px;
    background: #f8f9fa;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--bs-secondary-color);
}

.thumb-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    height: 100%;
}
.thumb-body {
    min-height: 108px;
}
.main-badge-wrap {
    min-height: 24px;
}
.badge-placeholder {
    height: 24px;
}

.thumb-image-wrap {
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumb-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-main {
    border: 2px solid #f0ad4e;
}

.section-card {
    border: 0;
    border-radius: 18px;
}

.section-card .card-body {
    padding: 1.25rem;
}

.description-box {
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    background: #fff;
    padding: 1rem;
    white-space: pre-line;
}

.action-stack form {
    margin: 0;
}
.action-stack .btn {
    min-height: 31px;
}
/* --- admin_product_detail.html ---end */


/* --- cart, checkout, order confirmation ---*/

.panel {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
}
.panel-soft {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 16px;
}

.section-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom: 12px;
}
.section-head h5 { margin:0; font-weight:700; }
.section-head .hint { color:#6c757d; font-size:.9rem; }

@media (min-width: 992px){
  .sticky-summary { position: sticky; top: 24px; }
}
/* --- cart, checkout, order confirmation --- end */


/* --- cart.html --- */
.custom-product-images {
    display: flex;
    flex-direction: column; 
    gap: 5px;
}

.custom-product-images .img-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.custom-product-images .thumbnail-container {
   display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
    gap: 4px; /* spacing between thumbnails */
    margin-top: 4px;      /* wrap if more than 3 thumbnails */
}

.custom-product-images .thumbnail-container img {
    width: 40px;            /* smaller thumbnails */
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.panel-soft .list-group {
  margin: 0;
}

.panel-soft .list-group-item {
  border: 1px solid #e9ecef !important;
  border-radius: 14px !important;
  padding: 14px !important;
  background: #fff !important;
  margin-bottom: 12px !important;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.panel-soft .list-group-item:last-child {
  margin-bottom: 0 !important;
}
.saved-media{
  width: 120px;              /* same as regular/custom */
  margin-right: 3rem;        /* roughly Bootstrap me-5 */
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
}

.saved-thumb{
  width: 100px;              /* match regular image size */
  height: 100px;
  object-fit: cover;
}

.saved-actions{
  width: 105px;              /* consistent column */
  display:flex;
  flex-direction:column;
  gap:8px;
}

@media (max-width: 576px){
  .saved-row{ flex-wrap: wrap; }
  .saved-actions{ width: 100%; }  /* full width on mobile */
}

/* --- cart.html ---end */


/* --- checkout_progress.html ---*/
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 10px;
}
.checkout-step {
    text-align: center;
    flex: 1;
    position: relative;
}
.checkout-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 3px;
    background-color: #ddd;
    transform: translateY(-50%);
    z-index: 0;
}
.checkout-step.active .step-circle {
    background-color: #FFC107;
    color: white;
    border-color: #FFC107;
}
.checkout-step.completed .step-circle {
    background-color: #198754;
    color: white;
    border-color: #198754;
}
.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px auto;
    font-weight: bold;
    background: white;
    z-index: 1;
    position: relative;
}
.step-label {
    font-size: 0.9rem;
    font-weight: 600;
}
/* --- checkout_progress.html --- end*/


/* --- checkout_shipping.html, chechout_payment.html ---*/
.shipping-address-form {
    width: 100%; max-width: 750px;
}

#card-element{
  background:#fff;
  border:1px solid var(--bs-border-color);
  border-radius:.5rem;
  padding:14px;
  min-height:52px;
}
#card-element.StripeElement--focus{ border-color:#111; }

.choice-tile {
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.choice-tile:hover {
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.06);
  border-color: #dee2e6;
}
.choice-tile .title { font-weight: 700; }
.choice-tile .desc { color: #6c757d; font-size: .9rem; }
/* --- checkout_shipping.html, chechout_payment.html ---end*/


/* --- checkout_payment.html ---*/
.choice-tile.pay-tile.active {
  border-color: rgba(255, 193, 7, .75);
  box-shadow: 0 .25rem .75rem rgba(255,193,7,.18);
}

  .stripe-field{
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: inset 0 1px 0 rgba(0,0,0,.02);
  }
  .stripe-field.StripeElement--focus{
    border-color: rgba(13,110,253,.6);
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
  }
  .stripe-field.StripeElement--invalid{
    border-color: var(--bs-danger);
  }
/* --- checkout_payment.html ---end*/


/* --- signin.html, signup.html, verify_otp.html ---*/
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #dee2e6;
}
.auth-divider:not(:empty)::before {
  margin-right: .75rem;
}
.auth-divider:not(:empty)::after {
  margin-left: .75rem;
}
.auth-form .form-control {
  min-height: 48px;
  border-radius: 12px;
}

.auth-form .input-group .form-control {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
/* --- signin.html, signup.html, verify_otp.html ---end*/


/* --- signin.html, signup.html, ---*/
.auth-card {
  border-radius: 18px;
}

.password-toggle {
  min-width: 52px;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-left: 0;
  align-items: center;
  justify-content: center;
}


/* --- signin.html, signup.html, ---end*/


/* --- signup.html, verify_otp.html ---*/
.auth-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-subtext {
  color: #6c757d;
}
/* --- signup.html, verify_otp.html ---end*/


/* --- signin.html --- */
.auth-link-muted {
  color: #6c757d;
}
.auth-link-muted:hover {
  color: #007bff;
  text-decoration: underline;
}

.auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 4px 0;
  color: #6c757d;
  font-weight: 500;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: color .18s ease;
}
.auth-btn-secondary:hover,
.auth-btn-secondary:focus {
  color: #007bff;
  text-decoration: underline;
}
.auth-social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
/* --- signin.html ---end*/


/* --- order_confirmation.html ---*/
.hero-check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eafbea;
  border: 1px solid #d1f3d6;
  font-size: 22px;
  flex: 0 0 auto;
}
/* --- order_confirmation.html --- end*/


/* --- order_history.html --- */
.order-history-page-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
}
.order-history-container {
    width: 100%; 
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
}
.order-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}
@media (max-width: 992px){ .order-list{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 576px){ .order-list{ grid-template-columns: 1fr;} }
.order-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;

}
.order-header {
    font-size: 16px;
    text-align: left;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.order-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.06);
}
.product-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
    border: 1px solid #ccc;
}
.item-details {
    flex: 1;
    text-align: left;
}
.item-details p {
    margin: 3px 0;
}
.product-link {
    color: #FECF3F;
    text-decoration: none;
    transition: color 0.2s;
}
.product-link:hover {
    color: black;
    text-decoration: underline;
}
.no-orders {
    text-align: center;
    font-size: 18px;
    color: #777;
    padding: 60px 0;
}
/* --- order_history.html ---end */


/* --- manage_payments.html --- */
.manage-payments-container {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.manage-payments-container h1 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

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

.payment-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.payment-info {
    font-size: 16px;
    color: #555;
}

.payment-info p {
    margin: 5px 0;
}

.add-payment-btn button:active {
    background-color: #003f7f;
}

.delete-form {
    display: flex;
    justify-content: flex-end;
}
/* --- manage_payments.html ---end */


/* --- manage_addresses.html --- */
.manage-addresses-container {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.manage-addresses-container h1 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.address-list {
    list-style-type: none;
    padding: 0;
}

.address-item {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.address-info {
    font-size: 16px;
    color: #555;
}

.address-info p {
    margin: 5px 0;
    text-align: left;
}

.address-delete-form {
    display: flex;
    justify-content: flex-end;
}

.add-address-btn button:active {
    background-color: #003f7f;
}
/* --- manage_addresses.html ---end */







