

body {
  background-color: #20c7e0; /* fallback — overridden by inline style */
  color: white;
  min-height: 100vh;
  margin: 0;
}

.ribbon-bar {
  background-color: #17a2b8; /* force our ribbon color */
  color: white;
  padding: 1.2rem 0;
  text-align: center;
  width: 100%;              /* use 100% not 100vw (avoids scrollbar shift) */
  position: fixed;          /* keeps ribbon fixed at top */
  top: 0;
  left: 0;
  z-index: 1050;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  font-weight: 600;
}


.ribbon-bar h1 {
  margin-bottom: 0.25rem;
}

.ribbon-bar p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  background-color: #ffffff;
}

.card:hover {
  transform: scale(1.015);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.product-img {
  width: 100%;
  height: 120px;
  object-fit: contain;   /* Switch from cover to contain for padding */
  padding: 10px;         /* Add breathing room inside image box */
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
  .product-img {
    height: 100px;
    padding: 6px;
  }
}
.card-body {
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-align: center;
}

.card-text {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
  text-align: center;
}

.btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.logo-container {
  background: white;
  border-radius: 12px;
  padding: 10px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logo-img {
  max-height: 120px; /* Reduced height to fit the pane better */
  height: auto;
  width: auto;
}
.product-card img {
    width: 100%;          /* full card width */
    height: 120px;        /* fixed height for uniformity */
    object-fit: contain;  /* fit image inside the container without cropping */
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background: #fff;     /* fallback background */
    padding: 5px;         /* optional: adds a small gap so images don't touch card edges */
}

.price {
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-qty {
  font-size: 0.75rem;
}

.product-img-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-card {
  font-size: 0.85rem;
}

.product-card .card-body {
  padding: 0.5rem;
}

.product-card h6 {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.product-card .price {
  font-size: 0.85rem;
  color: #222;
}

.product-card .badge-qty {
  font-size: 0.7rem;
}
.cart-sidebar li {
  background: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 4px;
  padding: 4px 6px;
}
.cart-sidebar .fw-bold {
  color: #222;
}


/* Cart sidebar: reserve space even if empty */
.cart-sidebar {
  min-height: 300px; /* or whatever fits your layout */
  background: #f8f9fa;
  padding: 1rem;
  border-radius: .25rem;
  position: inherit;
  top: 88px;
  padding-right: 20px; /* or 20px depending on how much space */
  padding-left: 4px;
  padding-bottom:10px;
  padding-top:10px;
  box-sizing: border-box;
  margin-top: 50px;
  margin-bottom:50px;
}
 
.cart-sidebar, 
.cart-sidebar * {
  color: #212529 !important;
}

.cart-sidebar h5,
.cart-sidebar li,
.cart-sidebar span,
.cart-sidebar small,
.cart-sidebar .fw-bold {
  color: #212529 !important;
}

.cart-sidebar .border-top {
  border-top: 2px solid #ccc !important;
}

.cart-sidebar .d-flex span {
  font-size: 0.9rem;
}

 
 .category-header {
  background: #343a40 !important;
  color: #ffffff !important;
  padding: .25rem .5rem; 
  margin-bottom: .5rem; /* <-- add spacing */
  border-radius: .25rem; 
}


.product-grid { margin-bottom: 1rem; } /* optional extra spacing */

/* Sticky container */
.cart-container {
  position: sticky;
  top: 80px; /* height of nav */
  max-height: calc(100vh - 100px); /* allow space for nav + footer */
  overflow-y: auto; /* scrollable if too long */
  padding: 1rem;
  border: 1px solid #ddd;
  background: #fff;
  z-index: 1000;
}

/* Highlight last added item */
.cart-item.active {
  border-left: 4px solid #f00;
  background: #ffecec;
}

/* Prevent text overflow */
.cart-item-name,
.cart-item-price {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.75rem 0;
}
.cart-variant-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 6px;
    padding: 8px;
    transition: background 0.3s ease;
}
.cart-variant-card:hover {
    transform: scale(1.02);
    background: #f9f9f9; /* optional hover highlight */
}

/* Full width when cart is empty */
#productArea.full-width {
  flex: 0 0 100%;
  max-width: 100%;
  transition: all 0.3s ease;
}

/* Shrunk when cart visible */
#productArea.with-cart {
  flex: 0 0 75%; /* or 70% depending on sidebar */
  max-width: 75%;
  transition: all 0.3s ease;
}


/* Mobile adjustments */
@media (max-width: 576px) {
 
  #productArea {
    padding-bottom: 80px; /* keep space for button */
  }
}


#address-list mark {
  background-color: #e67e22; /* dark orange highlight */
  color: #fff;
  font-weight: bold;
  padding: 0 2px;
  border-radius: 2px;
}


.cart-warning {
  position: fixed;
  top: 60px; /* adjust so it shows under navbar */
  left: 50%;
  transform: translateX(-50%);
  background: #ffefc2;
  color: #333;
  padding: 10px 16px;
  border: 1px solid #e0b100;
  border-radius: 6px;
  font-size: 14px;
  z-index: 10000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-warning.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
}

.cart-warning.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.order-summary {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.order-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.order-table .total-row {
  background: #eaf7ea;
  font-size: 18px;
  font-weight: bold;
}

.order-table .info-row {
  background: #fff3cd;
  font-size: 14px;
  color: #856404;
  text-align: center;
}

/* Order status badges for admin/superadmin pages */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.status-badge.pending { background: #f59e0b; color: #1f2937; } /* amber */
.status-badge.paid { background: #16a34a; } /* green */
.status-badge.cancelled { background: #ef4444; } /* red */
.status-badge.assigned { background: #0ea5e9; } /* sky */
.status-badge.processing { background: #7c3aed; } /* purple */
.status-badge['in transit'] { background: #06b6d4; } /* cyan-ish fallback */
.txn-small { font-size:0.8rem; color:#555; display:block }

/* Sticky header for orders tables */
.orders-table thead th {
  position: sticky;
  top: 70px; /* adjust to match admin header height */
  background: #fff;
  z-index: 1020;
}

.assign-select { min-width: 180px; }
.assign-btn { margin-left:6px }

/* Product grid layout */
@media (min-width: 992px) {
  .product-grid .col {
    flex: 0 0 calc(100% / 6);
    max-width: calc(100% / 6);
  }
}

/* Optional: 8 per row on very large monitors */
@media (min-width: 1400px) {
  .product-grid .col {
    flex: 0 0 calc(100% / 6); /* keep 6 if you don’t want 8 */
    max-width: calc(100% / 6);
  }
}
