@import url('variables.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  background-image: url('/images/coffee-background.png');
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-color);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  opacity: 0.82;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

body.home-page {
  background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--brand-cream);
  color: var(--brand-dark);
  padding: 0;
  box-shadow: 0 1px 6px rgba(74,58,47,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--brand-sand);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 56px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  overflow: visible;
}

.nav-logo-img {
  height: 120px;
  width: auto;
  display: block;
  margin: -32px 0;
}

@media (max-width: 600px) {
  .nav-logo-img { height: 90px; margin: -22px 0; }
}

.logo-image {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--brand-terracotta);
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.3s;
}

.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--brand-cream);
  border: 1px solid var(--brand-sand);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  box-shadow: 0 4px 12px rgba(74,58,47,0.12);
  border-radius: 4px;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--brand-dark);
  text-decoration: none;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: var(--brand-sand);
  color: var(--brand-terracotta);
}

.cart-link {
  background-color: var(--brand-terracotta);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--brand-dark);
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Admin View Switcher */
.admin-view-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.view-selector {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.view-selector:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
}

.view-selector option {
  background-color: var(--secondary-color);
  color: var(--white);
}

.view-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: badgePulse 2s ease-in-out infinite;
}

.view-badge-retail {
  background-color: #2196F3;
  color: var(--white);
}

.view-badge-wholesale {
  background-color: #9C27B0;
  color: var(--white);
}

.view-badge-employee {
  background-color: #C97A5A;
  color: var(--white);
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }
}

/* Hero Section */
.hero {
  background: var(--white);
  color: var(--text-color);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Features */
.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: rgba(128, 128, 128, 0.85);
  opacity: 1;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.feature .btn {
  margin-top: auto;
}

.feature h3 {
  color: white;
  margin-bottom: 1rem;
  font-weight: bold;
}

.feature p {
  color: white;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--brand-terracotta);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #B96A4D;
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-terracotta);
  border: 2px solid var(--brand-terracotta);
}

.btn-secondary:hover {
  background-color: var(--brand-terracotta);
  color: var(--white);
}

.btn-grey {
  background-color: rgba(128, 128, 128, 0.85);
  color: white;
}

.btn-grey:hover {
  background-color: rgba(128, 128, 128, 0.95);
}

.btn-google {
  background-color: var(--white);
  color: var(--text-color);
  border: 2px solid var(--light-gray);
}

.btn-apple {
  background-color: #000;
  color: #fff;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Products */
.products {
  padding: 2.5rem 0 1.5rem;
}

/* ── Shop Intro (title + subtitle above filter card) ─────── */
.shop-intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.shop-intro-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--brand-dark);
  margin: 0 0 0.4rem;
  letter-spacing: 0.5px;
}

.shop-intro-subtitle {
  font-size: 1rem;
  color: var(--brand-roast);
  max-width: 620px;
  margin: 0 auto;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .shop-intro-title { font-size: 2rem; }
  .shop-intro-subtitle { font-size: 0.95rem; padding: 0 1rem; }
}

/* ── Shop Filter Panel ─────────────────────────────────────── */
.shop-filter-panel {
  background: var(--white);
  border: 1px solid var(--brand-warm-grey);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shop-search-form {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.shop-search-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--brand-warm-grey);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--brand-cream);
  color: var(--brand-dark);
  outline: none;
  transition: border-color 0.2s;
}

.shop-search-input:focus {
  border-color: var(--brand-terracotta);
}

.shop-search-btn {
  padding: 0.6rem 1.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Filter rows: always stacked, one group per row */
.shop-filter-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shop-filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  flex-wrap: nowrap;
}

.shop-filter-group + .shop-filter-group {
  border-top: 1px solid #f0ebe4;
}

.shop-filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a08070;
  white-space: nowrap;
  min-width: 42px;
}

.shop-filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  border: 1.5px solid #ddd0c4;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brand-dark);
  background: #fff;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--brand-terracotta);
  color: var(--brand-terracotta);
  background: #fff8f5;
}

.filter-pill.active {
  background: var(--brand-terracotta);
  border-color: var(--brand-terracotta);
  color: #fff;
  font-weight: 600;
}

.shop-filter-divider {
  display: none;
}

.shop-filter-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0.4rem;
  border-top: 1px solid #f0ebe4;
}

.shop-product-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a08070;
  white-space: nowrap;
}

.shop-clear-link {
  font-size: 0.82rem;
  color: var(--brand-terracotta);
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
}

.shop-clear-link:hover {
  color: var(--brand-dark);
}

/* Filter Section (legacy) */
.filters-section {
  background: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-header {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.6rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  background-color: var(--white);
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 180px;
}

.filter-select:hover {
  border-color: var(--primary-color);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--light-gray);
  border-radius: 25px;
  background-color: var(--white);
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  background-color: rgba(225, 6, 0, 0.05);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.btn-clear-filters {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.btn-clear-filters:hover {
  background-color: var(--secondary-color);
}

.products-count-inline {
  color: var(--text-color);
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--light-gray);
  border-radius: 25px;
  background-color: var(--white);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 2px solid var(--light-gray);
}

.active-filters-label {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 0.5rem;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.remove-filter {
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1;
  font-weight: bold;
  transition: opacity 0.3s;
}

.remove-filter:hover {
  opacity: 0.7;
}

.products-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.no-products {
  background: var(--white);
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-products p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(225, 6, 0, 0.2);
}

.roast-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--light-gray);
  padding: 0.35rem 0.85rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
}

.product-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.quality-badge {
  background: linear-gradient(135deg, #D4AF37 0%, #F4E5B1 50%, #D4AF37 100%);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  min-width: 45px;
  text-align: center;
}

.quality-score {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.product-description {
  margin: 1rem 0;
  color: var(--text-color);
}

.product-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.roast-level, .category {
  background-color: var(--light-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.9rem;
}

.flavor-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.flavor-tag {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
}

.product-pricing {
  margin-top: auto;
  padding-top: 1rem;
}

.product-pricing .price {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.product-pricing .price.wholesale {
  color: var(--success);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Auth Pages */
.auth-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-box {
  background: var(--white);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  max-width: 500px;
  width: 100%;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--light-gray);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-base);
  font-family: var(--font-heading);
}

.auth-tab:hover {
  color: var(--primary-color);
}

.auth-tab.active {
  color: var(--primary-color);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.auth-box h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-color);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-footer a {
  color: var(--primary-color);
}

.error-message {
  background-color: #ffe6e6;
  border-left: 4px solid var(--error);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* Page Header */
.page-header {
  background: transparent;
  color: var(--brand-dark);
  padding: 1.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--brand-warm-grey);
  position: relative;
  overflow: hidden;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--brand-dark);
}

.wholesale-notice {
  color: var(--accent-color);
  font-weight: 500;
  margin-top: 1rem;
}

/* Cart */
.cart-container {
  padding: 3rem 0;
  min-height: 60vh;
}

.empty-cart {
  text-align: center;
  padding: 3rem;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
  transition: box-shadow 0.3s;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.15);
}

.item-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.item-info p {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
}

.item-price, .item-subtotal {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.item-quantity input {
  width: 70px;
  padding: 0.5rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.item-quantity input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.wholesale-badge, .subscription-badge {
  background-color: var(--success);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 0.5rem;
}

.subscription-badge {
  background-color: var(--accent-color);
}

.btn-remove {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-remove:hover {
  background-color: var(--accent-color);
}

.cart-summary {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  border-top: 2px solid var(--light-gray);
  padding-top: 1rem;
  margin-top: 1rem;
}

.tax-notice {
  font-size: 0.9rem;
  color: var(--text-color);
  margin: 1rem 0;
}

/* Checkout */
.checkout-container {
  padding: 3rem 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.shipping-review {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.shipping-review p {
  margin: 0.25rem 0;
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.5rem;
}

.btn-link:hover {
  text-decoration: underline;
}

.checkout-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
}

.order-summary {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  height: fit-content;
}

#payment-element {
  margin: 1.5rem 0;
}

/* Questionnaire */
.questionnaire-container {
  padding: 3rem 0;
  min-height: 70vh;
}

.progress-bar {
  background-color: var(--light-gray);
  height: 10px;
  border-radius: 5px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  height: 100%;
  transition: width 0.3s;
}

.question-box {
  background: var(--white);
  padding: 3rem;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.question-number {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.question-box h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.options {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.option-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-color);
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.option-card:hover {
  border-color: var(--primary-color);
  background: var(--white);
}

.option-card input[type="radio"] {
  margin-right: 1rem;
}

.option-card input[type="radio"]:checked + .option-text {
  color: var(--primary-color);
  font-weight: 500;
}

/* Results */
.results-container {
  padding: 3rem 0;
}

.results-container .lead {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.recommendation-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

/* Dashboard */
.dashboard-container {
  padding: 3rem 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  margin: 0;
}

.btn-logout {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-block;
}

.btn-logout:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.account-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.account-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

.account-col-left p,
.account-col-right p {
  margin: 0.5rem 0;
}

.points-info {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  padding: 2rem;
  border-radius: 10px;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.3);
  text-align: center;
}

.points-info h2 {
  margin-top: 0;
}

.points-display {
  text-align: center;
}

.points-amount {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.points-note {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.role-toggles {
  margin-top: 1rem;
}

.role-item {
  margin: 1rem 0;
}

.role-note {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-left: 1.5rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-edit {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-edit:hover {
  background-color: var(--accent-color);
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background-color: #ccc;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.no-data {
  color: #999;
  font-style: italic;
}

#addressDisplay p {
  margin: 0.5rem 0;
}

.order-history {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Subscriptions / Orders empty state ── */
.subscriptions-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 0.5rem;
}
.subscriptions-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  opacity: 0.45;
  margin-bottom: 0.5rem;
}
.subscriptions-empty-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
}
.subscriptions-empty-sub {
  font-size: 0.875rem;
  color: #888;
  margin: 0 0 0.75rem;
  max-width: 220px;
  line-height: 1.5;
}
.btn-browse-subs {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-browse-subs:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* ── Orders table wrapper (desktop only) ── */
.orders-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

/* ── Order status cell — wrap badges neatly ── */
.order-status-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ── Mobile order cards (hidden on desktop) ── */
.order-cards {
  display: none;
}
.order-card {
  border: 1px solid #ede8e1;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  background: #fdf9f5;
}
.order-card--clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.order-card--clickable:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.09);
  border-color: #c9b99a;
}
.order-row--clickable {
  cursor: pointer;
}
.order-row--clickable:hover td {
  background: #fdf9f5;
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.order-card-id {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
  text-decoration: none;
}
.order-card-id:hover { text-decoration: underline; }
.order-card-date {
  font-size: 0.82rem;
  color: #888;
}
.order-card-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.order-card-total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-color);
}
.order-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.order-card-tracking {
  margin-top: 0.75rem;
}
.order-no-tracking {
  color: #bbb;
}

.payment-methods {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.subscriptions-orders-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.active-subscriptions {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscription-item {
  padding: 1.5rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s;
}

.subscription-item:hover {
  border-color: var(--primary-color);
}

.subscription-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.subscription-frequency {
  color: var(--accent-color);
  font-weight: 500;
  text-transform: capitalize;
  margin: 0.25rem 0;
}

.subscription-next {
  color: #666;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.subscription-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.subscription-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.btn-manage {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  display: inline-block;
}

.btn-manage:hover {
  background-color: var(--accent-color);
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.card-item:hover {
  border-color: var(--primary-color);
}

.card-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.card-brand {
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.card-number {
  font-family: 'Courier Prime', monospace;
  font-size: 1.1rem;
}

.card-expiry {
  color: #666;
  font-size: 0.9rem;
}

.btn-remove {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-remove:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

#card-element {
  padding: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

#card-element:focus-within {
  border-color: var(--primary-color);
}

#card-errors {
  color: var(--primary-color);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Employee Portal */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(225, 6, 0, 0.2);
}

.stat-icon {
  font-size: 3rem;
  line-height: 1;
}

.stat-info {
  flex: 1;
}

.stat-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-note {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.quick-links-section {
  margin-bottom: 3rem;
}

.quick-links-section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.quick-link-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s;
  display: block;
}

.quick-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(225, 6, 0, 0.2);
  color: var(--primary-color);
}

.quick-link-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.quick-link-card h3 {
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.quick-link-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.recent-orders-section {
  margin-top: 3rem;
}

.recent-orders-section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .points-amount {
    font-size: 2rem;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .subscriptions-orders-grid {
    grid-template-columns: 1fr;
  }

  /* Switch order history to card layout on mobile */
  .orders-table-wrap {
    display: none;
  }
  .order-cards {
    display: block;
    margin-top: 1rem;
  }

  .order-history {
    padding: 1.25rem;
  }
  .active-subscriptions {
    padding: 1.25rem;
  }
  
  .card-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .card-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .subscription-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .subscription-actions {
    align-items: stretch;
  }
  
  .account-display-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .filters-section {
    padding: 1rem;
  }
  
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-select {
    min-width: 100%;
    width: 100%;
  }
  
  .filter-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .filter-btn {
    flex: 1;
    min-width: fit-content;
  }
  
  .products-count-inline {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.orders-table th,
.orders-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.orders-table th {
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-weight: 600;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.confirmed {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-badge.shipped {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.delivered {
  background-color: var(--success);
  color: var(--white);
}

.status-badge.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.status-approved {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.status-denied {
  background-color: #f8d7da;
  color: #721c24;
}

.status-badge.roastify-processing {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.roastify-packaged {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-badge.roastify-shipped {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.roastify-delivered {
  background-color: var(--success);
  color: var(--white);
}

.btn-track-package {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-track-package:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-track-package--pending {
  background-color: #adb5bd;
  cursor: default;
}

.btn-track-package--pending:hover {
  background-color: #adb5bd;
}

.order-id-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.order-id-link:hover {
  text-decoration: underline;
}

/* Order Detail Page */
.order-detail-header {
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.btn-back:hover {
  text-decoration: underline;
}

.order-detail-header h1 {
  margin: 0.25rem 0 0;
}

.order-detail-date {
  color: var(--text-light);
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}

.order-detail-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.order-detail-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.order-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.order-status-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.order-status-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.order-tracking-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tracking-label {
  margin: 0;
  font-size: 0.9rem;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.order-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-item-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  margin: 0;
  font-weight: 600;
}

.order-item-qty {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.order-item-price {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.order-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--light-gray);
}

.order-summary-line:last-child {
  border-bottom: none;
}

.order-summary-total {
  font-weight: 700;
  font-size: 1rem;
  padding-top: 0.75rem;
}

/* Inquiry Management */
.filter-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.inquiries-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.btn-approve {
  background-color: #28a745;
  margin-right: 0.5rem;
}

.btn-approve:hover {
  background-color: #218838;
}

.btn-deny {
  background-color: #dc3545;
}

.btn-deny:hover {
  background-color: #c82333;
}

/* Admin */
.admin-dashboard {
  padding: 3rem 0;
}

.admin-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.admin-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
}

.admin-form {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 10px;
  margin: 1rem 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-weight: 600;
}

.btn-small {
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

/* Utilities */
.hidden {
  display: none;
}

/* Product Detail */
.product-detail {
  padding: 3rem 0;
}

/* Swag gallery */
.swag-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.swag-main-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: var(--shadow-md);
}
.swag-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swag-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.swag-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.swag-thumb:hover { opacity: 1; }
.swag-thumb.active {
  border-color: var(--brand-terracotta);
  opacity: 1;
}
.swag-variant-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--brand-sand);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--brand-dark);
  cursor: pointer;
}
.swag-variant-select:focus {
  outline: none;
  border-color: var(--brand-terracotta);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #7B4A2D;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #C97A5A 0%, #B96A4D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/coffee-pattern-bg.png');
  background-size: 150px;
  opacity: 0.15;
}

.placeholder-content {
  text-align: center;
  color: white;
  z-index: 1;
  padding: 2rem;
}

.placeholder-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.placeholder-content p {
  font-size: 1rem;
  letter-spacing: 2px;
  opacity: 0.9;
}

.customer-reviews-section {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-sand);
}

.pricing-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--brand-sand);
}

.pricing-tab {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.pricing-tab:hover {
  color: var(--brand-terracotta);
  opacity: 1;
}

.pricing-tab.active {
  color: var(--brand-terracotta);
  border-bottom-color: var(--brand-terracotta);
  opacity: 1;
}

.option {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.option h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.option .price {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 1rem 0;
}

.wholesale-note {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.quantity-selector {
  margin: 1rem 0;
}

.quantity-selector input {
  width: 100px;
  padding: 0.5rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
}

/* About Page */
.about-content {
  padding: 3rem 0;
}

.about-text {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-md);
  max-width: 900px;
  margin: 0 auto;
}

.about-text h2 {
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.about-text h2:first-child {
  margin-top: 0;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.supporters-list, .research-list {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.supporters-list li, .research-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Home Page Hero */
.hero-home {
  background: #4A3A2F url('/images/hero-beach.png');
  background-size: cover;
  background-position: 60% 38%;
  color: var(--white);
  padding: 0;
  min-height: 65vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 10, 5, 0.62) 0%,
    rgba(20, 10, 5, 0.38) 45%,
    rgba(20, 10, 5, 0.04) 100%
  );
  z-index: 1;
}

.hero-home .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 2rem 4rem;
}

.hero-content {
  max-width: 480px;
  text-align: left;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--white);
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-hero {
  display: inline-block;
  background-color: var(--brand-terracotta);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 2.1rem;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-fast);
}

.hero-actions .btn-hero {
  margin-bottom: 0;
}

.btn-hero:hover {
  background-color: #B96A4D;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: calc(0.8rem - 2px) calc(2.1rem - 2px);
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

.badge-dot {
  color: var(--brand-terracotta);
  font-size: 1.2rem;
}

/* Our Coffee Section */
.our-coffee-section {
  padding: 5rem 0;
  background: var(--bg-color);
  text-align: center;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #7a6a5a;
}

.coffee-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-solid {
  display: inline-block;
  background-color: var(--brand-terracotta);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color var(--transition-base);
}

.btn-primary-solid:hover {
  background-color: #B96A4D;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--brand-terracotta);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid var(--brand-terracotta);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-outline:hover {
  background-color: var(--brand-terracotta);
  color: var(--white);
}

/* Coffee Truck Section */
.truck-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  background: transparent;
}

.truck-image-wrap {
  padding: 1.25rem 1rem 1.25rem 1.5rem;
  display: flex;
  align-items: center;
}

.truck-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.6s ease;
  box-shadow: 0 8px 24px rgba(74,58,47,0.18);
}

.truck-img:hover {
  transform: scale(1.02);
}

.truck-text {
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 4rem 1.75rem 3rem;
}

.truck-text h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.truck-text p {
  font-size: 1rem;
  color: #6a5a4a;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .hero-home {
    min-height: 50vh;
    background-position: 65% 45%;
  }

  .hero-home .container {
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .truck-section {
    grid-template-columns: 1fr;
  }

  .truck-image-wrap {
    height: 200px;
    padding: 1rem;
  }

  .truck-text {
    padding: 1.5rem 1.5rem 2rem;
  }

  .truck-text h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .hero-home {
    min-height: 60vh;
    background-position: 68% 30%;
    background-size: cover;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-home {
    min-height: 55vh;
    background-position: 60% 35%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-home {
    min-height: 100vh;
    background-position: 62% 28%;
    background-size: cover;
    align-items: flex-start;
  }

  .hero-home .container {
    padding: 1rem 2rem;
  }

  .hero-content {
    max-width: 400px;
  }

  .hero-title,
  .hero-home h1 {
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .hero-actions {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 769px) and (max-width: 1199px) and (orientation: landscape) {
  .hero-home {
    min-height: 100vh;
    background-position: 58% 30%;
    background-size: cover;
  }

  .hero-content {
    max-width: 520px;
  }

  .hero-title,
  .hero-home h1 {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) and (min-height: 501px) and (orientation: landscape) {
  .hero-home {
    min-height: 80vh;
    background-position: 62% 35%;
    background-size: cover;
  }

  .hero-content {
    max-width: 600px;
  }
}

@media (min-width: 1920px) and (min-aspect-ratio: 21/9) {
  .hero-home {
    background-position: 65% 38%;
    background-size: cover;
  }

  .hero-content {
    max-width: 720px;
  }
}

/* ── Featured Products Carousel (Home page) ───────────────── */
.featured-products-section {
  padding: 4.5rem 0 5rem;
  background: transparent;
  position: relative;
}

.featured-products-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.featured-products-subtitle {
  font-size: 1.05rem;
  color: var(--brand-roast);
  margin-top: 0.5rem;
  opacity: 0.85;
}

.featured-carousel-wrap {
  position: relative;
}

.featured-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.25rem;
  margin: 0 -0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-clay, #C97A5A) transparent;
}

.featured-carousel::-webkit-scrollbar {
  height: 8px;
}
.featured-carousel::-webkit-scrollbar-track {
  background: rgba(74, 58, 47, 0.08);
  border-radius: 4px;
}
.featured-carousel::-webkit-scrollbar-thumb {
  background: var(--brand-clay, #C97A5A);
  border-radius: 4px;
}

.featured-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--brand-warm-grey, #E7D7C9);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 2px 10px rgba(74, 58, 47, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(74, 58, 47, 0.14);
}

.featured-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-dark, #4A3A2F);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}

.featured-card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--brand-cream, #F4EDE4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card-img-placeholder {
  font-size: 4rem;
  opacity: 0.4;
}

.featured-card-body {
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.featured-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0;
}

.featured-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.featured-card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand-cream, #F4EDE4);
  color: var(--brand-roast, #4A3A2F);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.featured-card-desc {
  font-size: 0.85rem;
  color: var(--brand-roast);
  opacity: 0.8;
  margin: 0;
  line-height: 1.45;
}

.featured-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.featured-card-price-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--brand-roast);
  opacity: 0.6;
  font-weight: 600;
}

.featured-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.featured-card-cta {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brand-warm-grey, #E7D7C9);
  background: var(--white);
  color: var(--brand-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(74, 58, 47, 0.12);
  z-index: 3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--brand-clay, #C97A5A);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-left  { left: -12px; }
.carousel-arrow-right { right: -12px; }

@media (max-width: 768px) {
  .featured-card { flex: 0 0 260px; }
  .carousel-arrow { display: none; }
  .featured-products-section { padding: 3rem 0 3.5rem; }
}

/* Why Section */
.why-section {
  padding: 5rem 0 5rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.why-section .container {
  position: relative;
  z-index: 1;
}

.section-title-dark {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 3rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.why-card p {
  color: #6a5a4a;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-logo {
  width: 100%;
  max-width: 790px;
  height: auto;
  margin-bottom: 1rem;
}

.hero-home .tagline {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 700;
}

.hero-home .hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Why Mission Creep Coffee Section */
.questionnaire-feature {
  padding: 4rem 0;
  background: transparent;
}

.feature-card-center {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature-card-center h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card-center p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.feature-card-center .lead {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.feature-card-center .progress-bar {
  background-color: var(--light-gray);
  height: 10px;
  border-radius: 5px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.feature-card-center .progress-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  height: 100%;
  transition: width 0.3s;
}

.feature-card-center .question-number {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.feature-card-center .options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature-card-center .option-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-color);
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.feature-card-center .option-card:hover {
  border-color: var(--primary-color);
  background: var(--white);
  transform: translateY(-2px);
}

.feature-card-center .option-card input[type="radio"] {
  margin-right: 1rem;
}

.recommendations-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.recommendation-card-inline {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--light-gray);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.recommendation-card-inline:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.recommendation-card-inline h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.recommendation-card-inline .flavor-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
}

.recommendation-card-inline .flavor-tag {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Variety Pack Modal Styles */
.variety-pack-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.variety-pack-product-card {
  background: var(--white);
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid var(--light-gray);
  transition: all 0.3s;
  position: relative;
}

.variety-pack-product-card:has(input:checked) {
  border-color: var(--primary-color);
  background: #fff5f5;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.2);
}

.variety-pack-product-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .variety-pack-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  
  .variety-pack-product-card {
    padding: 0.75rem;
  }
}

.why-mcc {
  padding: 2.5rem 0 3rem 0;
  background: transparent;
}

.wholesale-callout {
  background: var(--primary-color);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.wholesale-callout p {
  margin: 0;
  font-size: 1.1rem;
}

.wholesale-callout a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

.wholesale-callout a:hover {
  opacity: 0.9;
}

.why-mcc h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Mission Section */
.mission-section {
  padding: 5rem 0;
  background: var(--bg-color);
  text-align: center;
}

.mission-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.mission-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Mission Cards Section */
.mission-cards-section {
  padding: 4rem 0;
  background: var(--bg-color);
}

.mission-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.mission-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(225, 6, 0, 0.2);
}

.mission-card h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mission-card p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Coffee Profile Component */
.coffee-profile {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid var(--accent-color);
}

.coffee-profile h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.roast-scale {
  margin-bottom: 1.5rem;
}

.roast-scale-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

.roast-scale-bar {
  height: 28px;
  background: linear-gradient(to right, #E7D7C9, #8b5e3c, #4A3A2F);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: visible;
}

.roast-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 6px;
  transform: translateX(-50%);
  background: var(--brand-dark);
  border-radius: 3px;
  box-shadow: 0 0 0 3px var(--white), 0 2px 6px rgba(74, 58, 47, 0.4);
}

.roast-marker::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--brand-dark);
  margin-bottom: -2px;
}

.profile-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-bar-item {
  display: grid;
  grid-template-columns: 100px 1fr 56px;
  align-items: center;
  gap: 1rem;
}

.profile-bar-label {
  font-weight: 600;
  color: var(--brand-dark);
}

.profile-bar {
  height: 14px;
  background: var(--brand-sand);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}

.profile-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--brand-terracotta), var(--brand-gold));
  border-radius: 7px;
  transition: width 0.3s ease;
}

.profile-bar-value {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 0.95rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.flavor-tags-section {
  margin-top: 1.5rem;
}

.flavor-tags-section h4 {
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 1rem;
}

.flavor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.flavor-tag {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Q-Score Section */
.q-score-section {
  margin-top: 1.5rem;
}

.q-score-section h4 {
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.q-score-bar {
  height: 16px;
  background: transparent;
  border-radius: 8px;
  position: relative;
  overflow: visible;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}

.q-score-zones {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(74, 58, 47, 0.15);
}

.q-zone {
  height: 100%;
}

.q-zone.off-grade {
  width: 50%;
  background: #C8B9A8;
}

.q-zone.below-standard {
  width: 10%;
  background: #C0A88C;
}

.q-zone.exchange {
  width: 10%;
  background: var(--brand-gold);
}

.q-zone.premium {
  width: 10%;
  background: #8FA585;
}

.q-zone.specialty {
  width: 20%;
  background: var(--brand-palm-green);
}

.q-score-fill {
  position: absolute;
  height: calc(100% + 8px);
  top: -4px;
  width: 6px;
  background: var(--brand-dark);
  left: 0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease;
  z-index: 10;
  box-shadow: 0 0 0 3px var(--white), 0 2px 6px rgba(74, 58, 47, 0.35);
}

.q-score-value {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  white-space: nowrap;
  background: var(--brand-dark);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(74, 58, 47, 0.25);
}

.q-score-value::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--brand-dark);
}

.q-score-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--brand-dark);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* Info Icon & Tooltip */
.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: #999;
  transition: color 0.2s ease;
  outline: none;
}

.info-icon:hover,
.info-icon:focus {
  color: var(--primary-color);
}

.info-icon svg {
  display: block;
}

.info-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  width: 320px;
  max-width: 90vw;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  font-weight: normal;
  text-align: left;
}

.info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #333;
}

.info-icon:hover .info-tooltip,
.info-icon:focus .info-tooltip {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  .info-icon {
    cursor: pointer;
  }
  
  .info-tooltip {
    bottom: auto;
    top: 125%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100vw - 40px) !important;
    max-width: 320px;
    min-width: auto !important;
  }
  
  .info-tooltip::after {
    top: auto;
    bottom: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-top-color: transparent;
    border-bottom-color: #333;
  }
  
  /* Override grind info tooltip inline styles */
  .grind-info-tooltip {
    bottom: auto !important;
    top: 125% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 40px) !important;
    max-width: 320px !important;
    min-width: auto !important;
  }
}

.coffee-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
}

.coffee-meta p {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Footer Updates */
.footer {
  background: rgba(231, 215, 201, 0.45);
  color: var(--brand-dark);
  padding: 0.85rem 0 1rem;
  margin-top: 3rem;
  position: relative;
}

.footer-logo-img {
  height: 105px;
  width: auto;
  display: block;
  margin: 0 auto 0;
}

.footer-brand-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-brand-col p {
  text-align: center;
  margin: 0;
  max-width: 280px;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .footer-logo-img { height: 60px; }
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-brand-name span {
  color: var(--brand-terracotta);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
  align-items: center;
}

.footer-section h3 {
  color: var(--brand-dark);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.footer-section p {
  margin: 0;
  line-height: 1.5;
  opacity: 0.9;
  font-size: 0.9rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--brand-dark);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--transition-base);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--brand-terracotta);
}

.email-signup {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.email-signup input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.email-signup button {
  white-space: nowrap;
}

.signup-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.signup-message.success {
  color: var(--success);
}

.signup-message.error {
  color: var(--error);
}

.footer-bottom {
  text-align: center;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(74, 58, 47, 0.25);
  opacity: 0.75;
  color: var(--brand-dark);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* Questionnaire Styles */
.questionnaire-container {
  padding: 3rem 0;
  min-height: 60vh;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--light-gray);
  border-radius: 10px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.question-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s ease;
}

.question-number {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.question-box h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--text-color);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.option-card:hover {
  border-color: var(--primary-color);
  background: rgba(225, 6, 0, 0.05);
}

.option-card input[type="radio"] {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.option-card input[type="radio"]:checked + .option-text {
  color: var(--primary-color);
  font-weight: 600;
}

.option-card:has(input:checked) {
  border-color: var(--primary-color);
  background: rgba(225, 6, 0, 0.1);
}

.option-text {
  font-size: 1.1rem;
  flex: 1;
}

/* Results Page */
.results-container {
  padding: 3rem 0;
}

.results-container h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.results-container .lead {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.recommendation-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.recommendation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.recommendation-card h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.recommendation-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Logo Support - removed duplicate, keeping only the one at top of file */

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Team Section */
.team-section {
  padding: 4rem 0;
  background: var(--off-white);
}

.team-section .section-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-family: var(--font-heading);
  font-size: 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-photo {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--light-gray);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.team-title {
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.team-info p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.team-location {
  color: var(--text-color);
  font-style: italic;
  font-size: 0.9rem;
}

.team-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.team-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-base);
}

.team-links a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

.about-commitment {
  padding: 4rem 0;
  background: var(--white);
}

.about-commitment h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.about-commitment p {
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .logo {
    font-size: 1.2rem;
    white-space: nowrap;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--brand-cream);
    border-bottom: 1px solid var(--brand-sand);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .nav-links.active {
    max-height: 600px;
    padding: 1rem 0;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .cart-link {
    background-color: var(--brand-terracotta) !important;
    color: var(--white) !important;
    border-radius: 6px;
    margin: 0.25rem 1.5rem;
    padding: 0.65rem 1.25rem !important;
    font-weight: 600;
    display: block;
  }
  
  /* Dropdown menu mobile styles */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }
  
  .dropdown-menu a {
    padding-left: 2.5rem;
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-home h1 {
    font-size: 2.5rem;
  }
  
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  /* Make all purchase option cards uniform size on mobile */
  .purchase-type-selector {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .purchase-type-option {
    width: 100%;
    min-height: 50px;
    justify-content: flex-start;
  }
  
  /* Ensure grind options grid is responsive */
  .purchase-type-selector[style*="grid"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .question-box {
    padding: 2rem 1.5rem;
  }
  
  .question-box h1 {
    font-size: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .email-signup {
    flex-direction: column;
  }
}

/* Wholesale Page Styles */
.wholesale-content {
  padding: 4rem 0;
}

.wholesale-intro,
.wholesale-benefits,
.wholesale-offerings,
.wholesale-form-section {
  margin-bottom: 4rem;
}

.wholesale-intro h2,
.wholesale-benefits h2,
.wholesale-offerings h2,
.wholesale-form-section h2 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  background: var(--off-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.benefit-card h3 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.wholesale-offerings ul {
  list-style: none;
  padding: 0;
}

.wholesale-offerings li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.wholesale-offerings li:last-child {
  border-bottom: none;
}

.wholesale-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.form-group textarea {
  resize: vertical;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.form-message.success {
  background: var(--success);
  color: var(--white);
}

.form-message.error {
  background: var(--error);
  color: var(--white);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 58, 47, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 58, 47, 0.45);
  z-index: -1;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  z-index: 1;
}

.modal-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-base);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 2rem;
}

.modal-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-subtitle {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-bio {
  line-height: 1.8;
  color: var(--text-color);
}

/* Team Grid Updates for Circular Photos */
.team-member {
  cursor: pointer;
  text-align: center;
}

.team-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
}

.team-info {
  padding: 1rem;
}

/* Mission Sections */
.mission-section {
  padding: 3rem 0;
  background: var(--white);
}

.mission-section:nth-child(even) {
  background: var(--off-white);
}

.mission-section h2 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mission-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .mission-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .modal {
    padding: 1rem;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-photo {
    width: 150px;
    height: 150px;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
}

/* Subscription UI Styles */
.purchase-type-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
}

.purchase-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.purchase-type-option:has(input:checked) {
  border-color: var(--primary-color);
  background: var(--hover-accent);
}

.purchase-type-option input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.purchase-type-option span {
  font-weight: 600;
  color: var(--text-color);
}

.subscription-frequency {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--hover-accent);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-color);
}

.subscription-frequency label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.subscription-frequency select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
}

.product-options {
  margin-bottom: 1.5rem;
}

.option-group {
  margin-bottom: 1rem;
}

.option-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.option-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.option-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.subscription-note {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}


/* Subscription Badge */
.subscription-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Order Management Styles */
.customer-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.customer-type-badge.wholesale {
  background-color: #28a745;
  color: var(--white);
}

.customer-type-badge.retail {
  background-color: #6c757d;
  color: var(--white);
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.order-summary-section h2,
.order-items-section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.order-summary-section h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.order-info-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.order-info-card p {
  margin: 0.25rem 0;
  color: var(--text-color);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row strong {
  color: var(--primary-color);
  font-weight: 600;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
}

.order-items-table thead {
  background-color: var(--primary-color);
  color: var(--white);
}

.order-items-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.order-items-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.order-items-table tbody tr:last-child td {
  border-bottom: none;
}

.order-items-table tbody tr:hover {
  background-color: var(--bg-color);
}

.order-totals {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.total-row.total {
  border-top: 2px solid var(--primary-color);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
}

.order-actions {
  margin-top: 1.5rem;
}

.order-fulfilled-message {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #d4edda;
  border-radius: 5px;
}

.orders-section,
.inquiries-section {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* Subscription Banner */
.subscription-banner {
  padding: 1.25rem 0;
  background: transparent;
  border-top: 1px solid var(--brand-warm-grey);
  border-bottom: 1px solid var(--brand-warm-grey);
  position: relative;
  overflow: hidden;
}

.subscription-banner .container {
  position: relative;
  z-index: 1;
}

.subscription-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--brand-dark);
}

.subscription-card h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.subscription-card p {
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #6a5a4a;
}

.btn-banner {
  display: inline-block;
  background-color: var(--brand-terracotta);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color var(--transition-base);
}

.btn-banner:hover {
  background-color: #B96A4D;
}

@media (max-width: 768px) {
  .subscription-card h3 {
    font-size: 2rem;
  }
}

/* White Label Section */
.white-label-section {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.05) 0%, rgba(176, 5, 0, 0.05) 100%);
  border-radius: 12px;
  border: 2px solid rgba(225, 6, 0, 0.1);
}

.white-label-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.white-label-section .lead {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.white-label-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .white-label-section {
    padding: 2rem 1rem;
  }
  
  .white-label-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* White Label Process Flowchart */
.process-flowchart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
  flex-wrap: wrap;
}

.flowchart-step {
  background: #3a3a3a;
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  flex: 0 1 200px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.flowchart-step:hover {
  transform: translateY(-2px);
}

.flowchart-step.step-primary {
  background: var(--primary-color);
}

.flowchart-step .step-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.flowchart-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.flowchart-step p {
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0.9;
  margin: 0;
}

.flowchart-arrow {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
  flex-shrink: 0;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .process-flowchart {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }
  
  .flowchart-step {
    width: 100%;
    max-width: 400px;
    flex: none;
    min-height: auto;
  }
  
  .flowchart-arrow {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }
}

/* White Label Wizard Section */
.white-label-wizard-section {
  margin: 4rem 0;
  padding: 0 1rem;
}

.white-label-wizard-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.wizard-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.wizard-progress-bar {
  background: #e0e0e0;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.wizard-progress-fill {
  background: var(--primary-color);
  height: 100%;
  transition: width 0.3s ease;
}

.wizard-step-indicator {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.wizard-step {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-step h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.review-summary p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.recommendations-box {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .wizard-card {
    padding: 1.5rem 1rem;
  }
  
  .wizard-buttons {
    flex-direction: column;
  }
  
  .wizard-buttons .btn {
    width: 100%;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* Button Toggle Groups */
.button-toggle-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.toggle-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid #ddd;
  background: white;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  border-color: var(--primary-color);
  background: rgba(225, 6, 0, 0.05);
}

.toggle-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Red Slider */
.red-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  background: #e0e0e0;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.red-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin-top: -8px;
}

.red-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.red-slider::-webkit-slider-runnable-track {
  background: linear-gradient(to right, 
    var(--primary-color) 0%, 
    var(--primary-color) var(--slider-percent, 20%), 
    #e0e0e0 var(--slider-percent, 20%), 
    #e0e0e0 100%);
  height: 8px;
  border-radius: 4px;
}

.red-slider::-moz-range-track {
  background: #e0e0e0;
  height: 8px;
  border-radius: 4px;
}

.red-slider::-moz-range-progress {
  background: var(--primary-color);
  height: 8px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .button-toggle-group {
    flex-direction: column;
  }
  
  .toggle-btn {
    width: 100%;
  }
}

/* Address List Styles */
.addresses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.address-item {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: white;
}

.address-item.default-address {
  border-color: var(--primary-color);
  background: #f8f8f8;
}

.address-info {
  flex: 1;
}

.address-name {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.default-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.address-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-set-default {
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-edit-small, .btn-delete-small {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-edit-small:hover {
  background: #f0f0f0;
}

.btn-delete-small {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-delete-small:hover {
  background: #dc3545;
  color: white;
}

/* Custom Modal System */
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.custom-modal.show {
  display: flex;
}

.custom-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.custom-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.custom-modal-header {
  background: var(--brand-sand);
  color: var(--brand-dark);
  padding: 1.5rem;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--brand-warm-grey);
}

.custom-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.custom-modal-body {
  padding: 2rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.custom-modal-body p {
  margin: 0;
}

.custom-modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid #e5e5e5;
}

.modal-btn {
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.modal-btn-cancel {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.modal-btn-cancel:hover {
  background: #e5e5e5;
  color: #333;
}

.modal-btn-confirm {
  background: var(--primary-color);
  color: white;
}

.modal-btn-confirm:hover {
  background: #c79650;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(191, 141, 63, 0.3);
}

.modal-btn-danger {
  background: #dc3545;
  color: white;
}

.modal-btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .custom-modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .custom-modal-footer {
    flex-direction: column-reverse;
  }
  
  .modal-btn {
    width: 100%;
  }
}


/* Quick Add Modal (home carousel) */
.quick-add-modal {
  position: fixed;
  inset: 0;
  background: rgba(74, 58, 47, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.quick-add-content {
  background: var(--brand-cream, #F4EDE4);
  border-radius: 14px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  color: var(--brand-dark, #4A3A2F);
}

.quick-add-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--brand-dark, #4A3A2F);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.quick-add-close:hover {
  color: var(--brand-terracotta, #C97A5A);
}

.quick-add-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(74, 58, 47, 0.15);
}

.quick-add-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--brand-sand, #E7D7C9);
  flex-shrink: 0;
}

.quick-add-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quick-add-info {
  flex: 1;
  min-width: 0;
}

.quick-add-name {
  font-family: var(--font-heading, inherit);
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark, #4A3A2F);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.quick-add-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.quick-add-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.quick-add-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-terracotta, #C97A5A);
}

.quick-add-section {
  margin-bottom: 1.25rem;
}

.quick-add-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--brand-dark, #4A3A2F);
  opacity: 0.85;
}

.quick-add-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-add-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.quick-add-option {
  flex: 1;
  padding: 0.65rem 0.75rem;
  background: transparent;
  border: 1.5px solid rgba(74, 58, 47, 0.25);
  border-radius: 8px;
  color: var(--brand-dark, #4A3A2F);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.quick-add-option:hover {
  border-color: var(--brand-terracotta, #C97A5A);
  background: rgba(201, 122, 90, 0.08);
}

.quick-add-option.active {
  background: var(--brand-terracotta, #C97A5A);
  border-color: var(--brand-terracotta, #C97A5A);
  color: #fff;
}

.quick-add-qty {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1.5px solid rgba(74, 58, 47, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.quick-add-qty-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-dark, #4A3A2F);
  cursor: pointer;
}

.quick-add-qty-btn:hover {
  background: rgba(201, 122, 90, 0.12);
}

.quick-add-qty input {
  width: 56px;
  height: 40px;
  border: none;
  border-left: 1.5px solid rgba(74, 58, 47, 0.25);
  border-right: 1.5px solid rgba(74, 58, 47, 0.25);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark, #4A3A2F);
  background: transparent;
  -moz-appearance: textfield;
}

.quick-add-qty input::-webkit-outer-spin-button,
.quick-add-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quick-add-message {
  min-height: 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.quick-add-message.success {
  color: #2d7a4f;
}

.quick-add-message.error {
  color: #b94a4a;
}

.quick-add-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-add-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .quick-add-content { padding: 1.5rem; }
  .quick-add-header { flex-direction: column; align-items: flex-start; }
  .quick-add-img-wrap { width: 100%; height: 140px; }
}

/* ============================================
   Product Detail Page — Sunshine State Layout
   ============================================ */

.product-breadcrumb {
  display: inline-block;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.product-breadcrumb:hover {
  opacity: 1;
  color: var(--brand-terracotta);
}

.product-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--brand-sand);
}

.product-page-header .product-title {
  font-family: var(--font-heading);
  color: var(--brand-dark);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem 0;
  line-height: 1.1;
}

.product-page-header .product-tagline {
  color: var(--brand-dark);
  opacity: 0.7;
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.product-buy-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.buy-box {
  background: var(--white);
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.buy-box-price {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--brand-sand);
}

.buy-box .buy-box-price .price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  color: var(--brand-dark);
  margin: 0;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.buy-box-price .price-suffix {
  color: var(--brand-dark);
  opacity: 0.65;
  font-size: 0.9rem;
  margin: 0.4rem 0 0 0;
}

.buy-box-price .subscription-note {
  margin: 0.5rem 0 0 0;
  color: var(--brand-palm-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.buy-box-row {
  margin-bottom: 1.25rem;
}

.buy-box-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.buy-box-row--qty {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.buy-box-row--qty .buy-box-label {
  margin-bottom: 0;
  flex-shrink: 0;
}

.buy-box-row--qty input[type="number"] {
  width: 90px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--brand-dark);
}

.buy-box-cta {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stock badges (brand-toned) */
.stock-badge {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

.stock-badge--low {
  background: var(--brand-gold);
  color: var(--brand-dark);
}

.stock-badge--out {
  background: var(--brand-warm-grey);
  color: var(--brand-dark);
}

/* Full-width bands below the buy grid */
.coffee-details-band,
.profile-band,
.reviews-band {
  margin-top: 2.5rem;
}

.coffee-details-inner {
  background: var(--white);
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.coffee-description h3 {
  font-family: var(--font-heading);
  color: var(--brand-dark);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin: 0 0 1rem 0;
}

.coffee-description-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.coffee-description-text p {
  margin: 0;
  color: var(--brand-dark);
  line-height: 1.7;
  opacity: 0.85;
}

.coffee-origin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  border-top: 1px solid var(--brand-sand);
  padding-top: 1.5rem;
}

.coffee-origin-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.coffee-origin-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-roast);
  opacity: 0.75;
}

.coffee-origin-value {
  font-size: 0.95rem;
  color: var(--brand-dark);
  font-weight: 500;
}

.profile-band .coffee-profile {
  margin: 0;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-lg);
}

.profile-band .coffee-profile h3,
.reviews-band .customer-reviews-section h3 {
  font-family: var(--font-heading);
  color: var(--brand-dark);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem 0;
}

.reviews-band .customer-reviews-section {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Review cards */
.review-card {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--brand-cream);
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-md);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  color: var(--brand-dark);
}

.review-stars {
  color: var(--brand-gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.review-date {
  color: var(--brand-dark);
  opacity: 0.55;
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}

.review-body {
  color: var(--brand-dark);
  margin: 0;
  line-height: 1.55;
}

.review-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--brand-cream);
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-md);
}

.review-form h4 {
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.review-login-prompt {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--brand-cream);
  border: 1px solid var(--brand-sand);
  border-radius: var(--radius-md);
  text-align: center;
}

.review-login-prompt a {
  color: var(--brand-terracotta);
  font-weight: 700;
  text-decoration: none;
}

.review-login-prompt a:hover {
  text-decoration: underline;
}

/* Mobile: stack and remove sticky */
@media (max-width: 880px) {
  .product-buy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .buy-box {
    position: static;
    padding: 1.5rem;
  }
  .product-page-header .product-title {
    font-size: 1.85rem;
  }
  .profile-band .coffee-profile,
  .reviews-band .customer-reviews-section {
    padding: 1.5rem;
  }
  .profile-bar-item {
    grid-template-columns: 80px 1fr 50px;
    gap: 0.75rem;
  }
}


/* Flash / success messages */
.flash-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.flash-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
