/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Root Variables */
:root {
  --primary: #007BFF;
  --bg: #f7f7f7;
  --card-bg: #ffffff;
  --text: #333333;
  --muted: #777777;
  --border: #cccccc;
  --purchase-box-width: 240px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 1rem; }
h3 { font-size: 1.1rem; }

.page-title {
  text-align: center;
  margin-top: 1rem;
}

#photo-search {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto 1rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.product-title {
  font-weight: 700;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.product-rating {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.2rem;
}
.reviews-section {
  margin-top: 2rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.reviews-section h3,
.reviews-section h4 {
  text-align: center;
}
.reviews-display {
  margin-bottom: 1rem;
}
.reviews-form {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.review-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.review-item {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  text-align: center;
}
.review-item:last-child {
  border-bottom: none;
}
.review-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.25rem;
}
.review-rating {
  color: var(--primary);
  margin-top: 0.25rem;
}
.review-comment {
  margin: 0;
}
.review-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.review-form label {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}
.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.review-form button {
  align-self: center;
}

.category-description {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  text-align: center;
}

.page-description {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  text-align: center;
}

.staff-menu-description {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  text-align: center;
}

/* Header & Navigation */
header {
  position: relative;
  background: var(--card-bg);
  padding: 0.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header h1 {
  margin: 0;
  font-size: 1.5rem;
}
#menuBtn {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}
.header-logo {
  max-height: 70px;
  display: block;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 1rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  margin-top: auto;
}
  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 150px;
    padding: 0;
    z-index: 100;
  }
  .dropdown.show .dropdown-content { display: block; }
  .dropdown-content a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
  }
  .dropdown-content a:hover {
    background: var(--bg);
    color: var(--primary);
  }

  .dropdown-content a.logout-link {
    color: #c00;
  }

  .dropdown-content a.logout-link:hover {
    color: #900;
  }

  .dropdown-content .submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-content .submenu > a .dropdown-icon {
    font-size: 0.7rem;
  }

  .dropdown-content .submenu-content {
    display: none;
  }

  .dropdown-content .submenu.show .submenu-content {
    display: block;
  }

  .dropdown-content .submenu-content a {
    padding-left: 2rem;
  }

.dropdown-section {
  padding: 0.25rem 0;
}

.dropdown-section + .dropdown-section {
  border-top: 1px solid var(--border);
}

  .dropdown-title {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(0,123,255,0.8);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
  }
.social-icons {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.75rem;
}
.social-icons a {
  color: #000;
  font-size: 1.5rem;
}

/* Main Layout */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  flex: 1;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.button:hover {
  background: #0056b3;
}
.full-width {
  display: block;
  width: 100%;
  text-align: center;
}

/* Grids */
.categories-grid,
.products-grid,
.photos-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  gap: 1.5rem;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.staff-menu-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.photo-item {
  text-align: center;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.photo-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.photo-name {
  display: block;
  width: 100%;
  word-break: break-all;
}

.photo-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.photo-actions form {
  flex: 1;
}

.photo-actions form .button {
  width: 100%;
}

.photo-actions .icon-button {
  flex: 0;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-qty-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  align-items: end;
  justify-items: center;
  margin: 0 auto 0.5rem;
  width: fit-content;
}

.pack-qty-wrapper label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pack-qty-wrapper input {
  width: 70px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.pack-qty-wrapper + .button {
  margin-top: 0.5rem;
}

/* Category Cards */
.category-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.category-card a {
  display: block;
  text-decoration: none;
  outline: none;
  color: inherit;
  border: none;
}
.category-card a:focus,
.category-card a:hover {
  outline: none;
  border: none;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-color: var(--primary);
}
.category-card .category-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}
.category-card .category-name {
  margin: 0.5rem;
  text-align: center;
  font-weight: 600;
}
.category-card .category-desc {
  padding: 0.75rem;
  flex: 1;
  text-align: center;
}
.category-card .button.full-width {
  margin: 0;
  border-radius: 0 0 12px 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Cards (unchanged) */
.product-item {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  margin-bottom: 1.5rem;
}
.product-item.low-stock {
  border-color: #ffbf00;
  box-shadow: 0 0 10px rgba(255,191,0,0.4);
  animation: glow-amber 2s ease-in-out infinite alternate;
}
.product-inner {
  flex: 1;
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: stretch;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0;
}
.product-item img {
  width: 180px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.product-details {
  flex: 1;
}
.product-details h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
}
.product-details .product-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-details p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.25rem 0;
  white-space: pre-line;
}
.product-actions {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  margin-left: auto;
  gap: 0.5rem;
}
.product-actions form {
  margin-top: auto;
}
.product-actions .button {
  border-radius: 12px;
}
.product-price {
  font-weight: 600;
  font-size: 1rem;
}
.quantity-input {
  width: 70px;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-right: 0.5rem;
  text-align: center;
  height: 44px;
  box-sizing: border-box;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}
.price-list li {
  font-size: 0.875rem;
  color: var(--muted);
}

.price-list li strong {
  color: var(--text);
  font-weight: 700;
}

.unit-price {
  font-weight: 600;
  color: var(--text);
}

.beta-products .product-inner {
  flex-direction: row;
  align-items: stretch;
  text-align: left;
}

.beta-products .product-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.beta-products .product-main-content {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.beta-products .product-media {
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  border-right: 1px solid var(--border);
  padding-right: 1rem;
  margin-right: 1rem;
}

.beta-products .product-media img {
  width: 100%;
  display: block;
}

.beta-products .product-link {
  display: block;
}

.beta-products .product-link:hover img {
  box-shadow: 0 0 0 3px var(--primary);
}

.beta-products .product-title {
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.beta-products .product-title a {
  text-decoration: none;
  color: inherit;
}

.beta-products .product-title a:hover {
  color: var(--primary);
}

.beta-products .product-details {
  text-align: center;
  flex: 1;
  padding: 0 0.5rem;
}

.beta-products .product-actions {
  align-items: center;
  text-align: center;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
  width: 200px;
  flex: 0 0 200px;
}

.beta-products .product-actions form {
  width: 100%;
}

.beta-products .product-actions .button {
  font-size: 1rem;
  margin: 0.75rem auto;
}

.beta-products .more-info-button {
  margin-top: auto;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  background: #f0f0f0;
  color: #000;
  border: 1px solid #000;
  font-weight: 700;
  align-self: stretch;
}

.beta-products .more-info-button:hover {
  background: #e0e0e0;
}

.beta-products .pack-qty-wrapper {
  align-items: center;
}

.beta-products .discount-grid {
  margin: 0 auto;
}

.beta-products .product-item.low-stock {
  border-color: var(--border);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: none;
}

/* Responsive beta product card layout */
.products-grid.beta-products {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .beta-products .product-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .beta-products .product-main-content {
    flex-direction: column;
  }
  .beta-products .product-media {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  .beta-products .product-details {
    padding: 0;
  }
  .beta-products .product-actions {
    border-left: none;
    padding-left: 0;
    width: 100%;
    flex: 0 0 auto;
    margin-top: 0.5rem;
  }
  .beta-products .product-actions form {
    width: 100%;
  }
  .beta-products .more-info-button {
    margin: 0.75rem auto;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .products-grid.beta-products {
    grid-template-columns: 1fr;
  }
}

.toggle-units {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.toggle-units .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle-units .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-units .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.4s;
  border-radius: 20px;
}

.toggle-units .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-units .switch input:checked + .slider {
  background-color: var(--primary);
}

.toggle-units .switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Generic form toggle */
.form-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.form-toggle .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.form-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.form-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.4s;
  border-radius: 20px;
}

.form-toggle .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: white;
  transition: 0.4s;
  border-radius: 50%;
}

.form-toggle .switch input:checked + .slider {
  background-color: var(--primary);
}

.form-toggle .switch input:checked + .slider:before {
  transform: translateX(20px);
}


.discount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 0.875rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  overflow: hidden;
}

.discount-grid div {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.discount-grid div:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.discount-grid div:nth-last-child(-n+2) {
  border-bottom: none;
}

.discount-grid .grid-header {
  font-weight: 600;
  background: var(--bg);
}

.unit-price-range {
  font-weight: 600;
}





.product-page-layout {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: center;
  transform: translateX(calc(var(--purchase-box-width) / 2));
}


.product-detail-card {
  width: 100%;
  max-width: 1700px;
  padding: 0.75rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.purchase-box {
  position: sticky;
  top: 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  width: var(--purchase-box-width);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin-top: 1rem;
}

.product-page-layout .purchase-box {
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(0,123,255,0.4);
  animation: glow 2s ease-in-out infinite alternate;
}

@media (max-width: 1000px) {
  .product-page-layout {
    width: 100%;
    flex-direction: column;
    transform: none;
  }
  .purchase-box {
    position: static;
    margin: 1rem auto 0;
    width: 100%;
  }
  .volume-discounts {
    transform: none;
  }
}

.purchase-box .product-actions {
  align-items: center;
  text-align: center;
  margin-top: 0.5rem;
  margin-left: 0;
  justify-content: center;
}
.purchase-box .product-actions form {
  margin-top: 0;
  width: 100%;
}


.purchase-box .product-actions .button {
  font-size: 1rem;
  margin: 0.75rem 0 0;
  width: 100%;
}

.unit-toggle-container .discount-grid {
  margin: 0 auto 0.5rem;
}

.product-detail-card .product-media {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-detail-image {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  margin: 0 auto 0.5rem;
}

.product-detail-card .image-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: auto;
  margin-bottom: 1rem;
}

.product-detail-card .image-carousel .main-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 337.5px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-detail-card .image-carousel .main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

.product-detail-description {
  white-space: pre-line;
  text-align: center;
  margin-top: 0.5rem;
}

.product-description-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.product-description-title::before,
.product-description-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.product-description-title::before {
  margin-right: 0.5rem;
}

.product-description-title::after {
  margin-left: 0.5rem;
}

.product-specs-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.product-specs-title::before,
.product-specs-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.product-specs-title::before {
  margin-right: 0.5rem;
}

.product-specs-title::after {
  margin-left: 0.5rem;
}

.product-specs-list {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}



.stock-note {
  margin-top: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.875rem;
}

.stock-note.in-stock { color: #28a745; }
.stock-note.low-stock { color: #ffbf00; }
.stock-note.out-of-stock { color: #dc3545; }

.stock-banner {
  margin-top: 0;
  width: 100%;
  padding: 0.25rem 0;
  border-radius: 0 0 12px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  position: absolute;
  /* Extend background upward to appear from beneath the card */
  top: calc(100% - 4px);
  left: 0;
  /* Render behind the card so it appears to slide out from underneath */
  z-index: -1;
}
.stock-banner.in-stock {
  background: #28a745;
}
.stock-banner.low-stock {
  background: #ffbf00;
}
.stock-banner.out-of-stock {
  background: #dc3545;
}

.image-carousel {
  position: relative;
  text-align: center;
}

.image-carousel img {
  display: block;
  margin: 0 auto;
  transition: opacity 0.5s ease;
}

.image-carousel img.fade-out {
  opacity: 0;
}

.image-carousel .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1;
}

.image-carousel .carousel-control.prev {
  left: 0;
}

.image-carousel .carousel-control.next {
  right: 0;
}

.carousel-previews {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.carousel-previews img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
}

.carousel-previews img.active-preview {
  filter: grayscale(100%);
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* Generic page container */
.page-section {
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,123,255,0.4);
  margin-top: 1rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 4px rgba(0,123,255,0.4);
  }
  to {
    box-shadow: 0 0 12px rgba(0,123,255,0.8);
  }
}
@keyframes glow-amber {
  from {
    box-shadow: 0 0 4px rgba(255,191,0,0.4);
  }
  to {
    box-shadow: 0 0 12px rgba(255,191,0,0.8);
  }
}
.page-section a {
  color: var(--primary);
  text-decoration: none;
}
.page-section .button {
  color: #ffffff;
  text-decoration: none;
}
.page-section a:hover {
  text-decoration: underline;
}
.page-section .button:hover {
  text-decoration: none;
}
.page-section a:visited {
  color: var(--primary);
}
.page-section .button:visited {
  color: #ffffff;
}

/* Spacing for welcome text on home page */
.welcome-text {
  margin-bottom: 0.75rem;
}

/* Contact page list */
.no-glow {
  border-color: var(--border) !important;
  box-shadow: none !important;
  animation: none !important;
}

.section-divider {
  margin: 1rem auto;
  border: 0;
  height: 1px;
  background: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.about-logo {
  max-width: 200px;
  display: block;
  margin: 1rem auto;
}

.page-section .staff-form {
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contact-list li {
  list-style: none;
}

.contact-list a.button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list i {
  color: inherit;
  font-size: 1.25rem;
}

/* Cart Styles (unchanged) */
.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  align-items: center;
}
.cart-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-item-details,
.cart-summary {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
}
.cart-item-details li {
  white-space: pre-line;
}
.checkout-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.payment-options form {
  flex: 1 1 200px;
}

.payment-options .button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: capitalize;
  min-height: 3rem;
  font-size: 1.1rem;
  border-radius: 8px;
}

.payment-options .pay-stripe {
  background: #635bff;
}

.payment-options .pay-stripe:hover {
  background: #5647d8;
}

.payment-options .cash-btn {
  background: #000;
}

.payment-options .cash-btn:hover {
  background: #333;
}

.payment-options .stripe-logo {
  height: 1.5em;
}
.floating-cart {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  width: max-content;
  margin: 1rem auto 0;
}
.cart-button a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.cart-button a:hover,
.cart-button a:visited {
  color: #ffffff;
  text-decoration: none;
}
.floating-cart a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.floating-cart a:hover,
.floating-cart a:visited {
  color: #ffffff;
  text-decoration: none;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  max-width: 90%;
  height: 100%;
  background: var(--card-bg);
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  padding: 1rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 1000;
}
.cart-panel.open {
  right: 0;
}
.cart-panel h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.cart-panel .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-panel .order-items-container {
  display: grid;
  gap: 0.75rem;
}

.cart-panel .cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  background: var(--card-bg);
  padding: 0.5rem;
  border-radius: 8px;
}

.cart-panel .cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-panel .cart-item-info h3 {
  margin-bottom: 0.25rem;
}

.cart-panel .cart-qty {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-panel .cart-price {
  font-weight: 600;
}

.cart-panel .cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-end;
}

.cart-panel .cart-item-actions .qty-input {
  width: 60px;
}

.cart-panel .cart-item-actions .button.small {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.cart-panel .checkout-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--primary), #ff5722);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
}

.cart-panel .checkout-btn:hover {
  filter: brightness(1.1);
}
.flash {
  background: #ffdddd;
  color: #a00;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Staff pages */
.staff-form {
  max-width: 700px;
  margin: 1rem auto;
  background: var(--card-bg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.staff-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.staff-form input,
.staff-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  font: inherit;
}
.staff-form textarea {
  min-height: 150px;
}
.staff-form input[readonly] {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}
.staff-form .button {
  width: 100%;
}

.image-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.image-selector span {
  flex: 1;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.image-modal.active {
  display: flex;
}
.image-modal .modal-content {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  max-height: 90%;
  overflow: auto;
}
.image-modal #image-search {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.image-modal .photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}
.image-modal .image-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.image-modal .image-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.image-modal img {
  cursor: pointer;
}

.image-modal .image-name {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  word-break: break-all;
}

.image-modal .image-item.selected img {
  outline: 4px solid var(--primary);
}

.selected-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.selected-images .image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.selected-images .image-order {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0 4px;
  border-radius: 3px;
  font-size: 0.7rem;
}

.selected-images img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

.selected-images .image-name {
  font-size: 0.7rem;
  margin-top: 0.25rem;
  max-width: 60px;
  word-break: break-all;
  text-align: center;
}

.product-form label {
  text-align: center;
}
.product-form input,
.product-form textarea {
  text-align: center;
}

.volume-discounts {
  margin: 1rem auto;
  text-align: center;
  max-width: 400px;
}
.volume-discounts table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}
.volume-discounts th,
.volume-discounts td {
  border: 1px solid var(--border);
  padding: 0.5rem;
}
.volume-discounts th {
  background: var(--primary);
  color: #fff;
}
.volume-discounts .remove-row {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
}
.uploaded-url {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
}

.order-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.order-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.order-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.order-link:hover {
  color: var(--primary);
}
.order-actions {
  display: flex;
  gap: 0.5rem;
}

.order-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-images {
  display: flex;
  gap: 0.25rem;
  margin-right: 0.5rem;
}

.order-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

.order-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Staff product list */
.staff-product-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.staff-product-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}
.staff-product-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0.75rem;
}

.staff-product-actions {
  display: flex;
  gap: 0.5rem;
}
.staff-product-actions form {
  margin: 0;
}
.staff-product-stock {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--muted);
}

.button.small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.button.danger {
  background: #dc3545;
}

.button.danger:hover {
  background: #b02a37;
}

.button.success {
  background: #28a745;
}

.button.success:hover {
  background: #1e7e34;
}

.button-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.button-row .button {
  flex: 1;
}

.profile-picture {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.profile-picture.small {
  width: 60px;
  height: 60px;
}

.profile-box {
  max-width: 140px;
  margin: 0 auto 1rem;
  text-align: center;
  padding: 0.5rem;
}

.profile-name {
  font-weight: bold;
}

.floating-continue {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.floating-continue a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.floating-continue a:hover,
.floating-continue a:visited {
  color: #ffffff;
  text-decoration: none;
}

.order-info {
  text-align: center;
  margin: 1rem 0;
}

.order-items-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  max-width: 400px;
}

.order-items-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}

.order-items-list-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.guest-banner {
  background: #dc3545;
  color: #fff;
  text-align: center;
  padding: 0.25rem;
  font-weight: 600;
  width: 100%;
  margin-bottom: 1rem;
}

.guest-banner a {
  color: #fff;
  text-decoration: underline;
}

.maintenance-icon {
  display: block;
  max-width: 120px;
  margin: 0.5rem auto;
}

.cash-warning {
  background: #fff3cd;
  color: #856404;
  padding: 0.5rem;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  margin-bottom: 1rem;
}
