/* Shop MVP — matches CFJC brand greens / orange CTAs */
.shop-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #0a4d0f;
  font-size: 1.35rem;
  text-decoration: none;
  margin-right: 0.35rem;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}
.shop-cart-link:hover,
.shop-cart-link:focus-visible {
  color: #083d0c;
}
.shop-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e85d04;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.shop-mini-cart {
  --bs-offcanvas-width: min(380px, 100vw);
  z-index: 1090;
}
.shop-mini-cart .offcanvas-body {
  min-height: 0;
}
.shop-mini-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: #6b7280;
}
.shop-mini-cart-empty .bi-cart3 {
  font-size: 2.5rem;
  color: #0a4d0f;
  opacity: 0.45;
  margin-bottom: 0.75rem;
}
.shop-mini-cart-list {
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  padding: 0.5rem 0;
}
.shop-mini-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #eee;
}
.shop-mini-cart-thumb {
  display: block;
  width: 64px;
  height: 64px;
  border: 1px solid #e5e7eb;
  background: #f8f9fa;
  overflow: hidden;
  flex-shrink: 0;
}
.shop-mini-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-mini-cart-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
  font-size: 1.25rem;
}
.shop-mini-cart-name {
  display: block;
  color: #0a4d0f;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.shop-mini-cart-name:hover {
  text-decoration: underline;
}
.shop-mini-cart-total {
  font-weight: 600;
  color: #111;
  margin-top: 0.15rem;
}
.shop-mini-cart-remove .btn {
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
}
.shop-mini-cart-footer {
  padding: 1rem 1.15rem 1.25rem;
  background: #f8f9fa;
}
.shop-mini-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.shop-mini-cart-subtotal strong {
  color: #0a4d0f;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.shop-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease;
}
.shop-card:hover {
  box-shadow: 0 8px 24px rgba(10, 77, 15, 0.12);
}
.shop-card-img {
  aspect-ratio: 4/3;
  background: #f4f4f4;
  overflow: hidden;
}
.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-card-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.shop-card-body h3 {
  font-family: Oswald, sans-serif;
  font-size: 1.05rem;
  margin: 0;
  color: #0a4d0f;
}
.shop-card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.shop-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
}
.shop-stock {
  font-size: 0.85rem;
  color: #666;
}
.shop-stock.out {
  color: #b42318;
}
.shop-sidebar {
  border: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 1rem;
}
.shop-sidebar h2 {
  font-family: Oswald, sans-serif;
  font-size: 1.1rem;
  color: #0a4d0f;
  margin: 0 0 0.75rem;
}
.shop-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop-sidebar li a {
  display: block;
  padding: 0.35rem 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
.shop-sidebar li a:hover,
.shop-sidebar li a.active {
  color: #0a4d0f;
  font-weight: 600;
}
.shop-filters-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #0a4d0f;
}
.shop-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.shop-price-inputs > div {
  flex: 1;
  min-width: 0;
}
.shop-price-sep {
  color: #9ca3af;
  font-weight: 600;
  flex-shrink: 0;
}
.shop-price-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.35rem;
}
.shop-product-title {
  color: #0a4d0f;
  font-weight: 700;
  line-height: 1.3;
}
.shop-product-gallery {
  display: grid;
  gap: 0.75rem;
}
.shop-product-main {
  position: relative;
  aspect-ratio: 1;
  background: #f4f4f4;
  overflow: hidden;
}
.shop-product-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-zoom-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 77, 15, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.shop-zoom-btn:hover,
.shop-zoom-btn:focus-visible {
  background: #083d0c;
  transform: scale(1.05);
  outline: none;
}
.shop-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 1rem;
}
.shop-lightbox.is-open {
  display: flex;
}
.shop-lightbox-inner {
  position: relative;
  width: min(960px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.shop-lightbox-stage {
  position: relative;
  width: 100%;
  height: min(72vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}
.shop-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.shop-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}
.shop-lightbox-close:hover,
.shop-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.shop-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shop-lightbox-prev { left: 0.5rem; }
.shop-lightbox-next { right: 0.5rem; }
.shop-lightbox-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.shop-lightbox-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
}
.shop-lightbox-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
}
.shop-lightbox-thumbs button.active {
  border-color: #71dd37;
}
.shop-lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.shop-lightbox-open {
  overflow: hidden;
}
.shop-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.shop-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}
.shop-thumbs button.active {
  border-color: #0a4d0f;
}
.shop-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-totals {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
}
.shop-totals .row-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.shop-totals .grand {
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.shop-table img.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.shop-cart-product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 200px;
}
.shop-cart-thumb {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  background: #f8f9fa;
  overflow: hidden;
}
.shop-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-cart-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
  font-size: 1.35rem;
}
.shop-cart-product-meta a {
  color: #0a4d0f;
  font-weight: 600;
  text-decoration: none;
}
.shop-cart-product-meta a:hover {
  text-decoration: underline;
}
.product-long-desc {
  line-height: 1.65;
  color: #222;
}
.product-long-desc h1,
.product-long-desc h2,
.product-long-desc h3,
.product-long-desc h4 {
  color: #0a4d0f;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}
.product-long-desc p { margin-bottom: 0.75rem; }
.product-long-desc ul,
.product-long-desc ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.product-long-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.5rem 0;
}
.product-long-desc a { color: #0a4d0f; }
.product-long-desc blockquote {
  border-left: 3px solid #0a4d0f;
  padding-left: 0.85rem;
  color: #555;
  margin: 0.75rem 0;
}
.btn-shop {
  background: #0a4d0f;
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
}
.btn-shop:hover {
  background: #083d0c;
  color: #fff;
}
.shop-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed #ccc;
  background: #fafafa;
}
.checkout-account-options .checkout-mode-option {
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.checkout-account-options .checkout-mode-option:has(input:checked) {
  border-color: #0a4d0f !important;
  background: #f3faf4;
}
.checkout-account-options .checkout-mode-option strong {
  color: #0a4d0f;
}
@media (max-width: 767.98px) {
  .shop-cart-link { margin-right: 0.15rem; width: 34px; height: 34px; font-size: 1.15rem; }
  .shop-account-link { width: 34px; height: 34px; font-size: 1.15rem; }
}

/* Customer account */
.shop-account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #0a4d0f;
  font-size: 1.35rem;
  text-decoration: none;
  margin-right: 0.2rem;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
}
.shop-account-link:hover,
.shop-account-link:focus-visible {
  color: #083d0c;
}
.account-auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem 1.35rem;
}
.account-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1rem;
}
.account-sidebar-user {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}
.account-sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #0a4d0f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.account-sidebar-name {
  font-weight: 700;
  color: #0a4d0f;
  line-height: 1.2;
}
.account-sidebar-email {
  font-size: 0.8rem;
  color: #6b7280;
  word-break: break-all;
}
.account-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.account-nav-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.4rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.account-nav-list a:hover,
.account-nav-list a.active {
  color: #0a4d0f;
  font-weight: 600;
}
.account-nav-list a.account-nav-logout {
  color: #b42318;
  border-bottom: 0;
  margin-top: 0.35rem;
}
.account-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1.15rem 1.25rem;
}
.account-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 767.98px) {
  .account-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.account-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 0.9rem 1rem;
}
.account-stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.2rem;
}
.account-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a4d0f;
  line-height: 1.1;
}
.account-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  font-weight: 600;
  border-bottom-width: 1px;
}
.account-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: #f3f4f6;
  color: #374151;
}
.account-status-pending { background: #fff7ed; color: #c2410c; }
.account-status-processing { background: #eff6ff; color: #1d4ed8; }
.account-status-completed,
.account-status-approved { background: #ecfdf3; color: #027a48; }
.account-status-cancelled,
.account-status-rejected { background: #fef3f2; color: #b42318; }
.account-status-refunded,
.account-status-partially_refunded { background: #f4f3ff; color: #5925dc; }
.account-simple-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.account-simple-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.account-totals {
  max-width: 280px;
  margin-left: auto;
}
.account-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.account-totals-grand {
  font-weight: 700;
  border-top: 1px solid #ddd;
  padding-top: 0.45rem;
  margin-top: 0.35rem;
}
