:root {
  --deep-green: #0f2d1e;
  --accent-green: #1e5c3a;
  --leaf: #3fa06f;
  --sunset: #f5a623;
  --peach: #ffb679;
  --off-white: #f9f7f4;
  --card: #ffffff;
  --charcoal: #1d1d1f;
  --gray: #6f6f73;
  --border: rgba(15, 45, 30, 0.12);
  --card-shadow: 0 24px 45px rgba(15, 45, 30, 0.08);
  --card-shadow-hover: 0 32px 60px rgba(15, 45, 30, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--deep-green);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--gray);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--gray);
}

.center {
  text-align: center;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--leaf);
  margin-bottom: 0.5rem;
}

.w-100 {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--sunset), #f0601d);
  color: #fff;
  box-shadow: 0 16px 30px rgba(240, 96, 29, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.2s;
}

.btn-icon:hover {
  border-color: var(--leaf);
  color: var(--leaf);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 45, 30, 0.96);
  color: #fff;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  color: #fff;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--leaf), var(--sunset));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.logo-tagline {
  font-size: 0.75rem;
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 600;
}

.nav a {
  color: #fff;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--sunset);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.cart-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sunset);
  color: #fff;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(120deg, #143c2a 55%, #1b5537);
  color: #fff;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0;
}

/* Main Content */
.main-content {
  padding: 2.5rem 0;
  flex: 1;
}

.content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.sidebar-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-header h3 {
  font-size: 1.25rem;
  margin: 0;
}

.collapse-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.2s;
}

.collapse-btn:hover {
  background: var(--off-white);
  border-color: var(--leaf);
  color: var(--leaf);
}

.search-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(63, 160, 111, 0.1);
}

.search-box button {
  width: 44px;
  height: 44px;
  background: var(--deep-green);
  border: none;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-box button:hover {
  background: var(--accent-green);
  transform: scale(1.05);
}

/* Tree Navigation */
.tree-container {
  max-height: 450px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.tree-container::-webkit-scrollbar {
  width: 6px;
}

.tree-container::-webkit-scrollbar-track {
  background: transparent;
}

.tree-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.tree-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.skeleton-line {
  height: 20px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

.skeleton-line.short {
  width: 60%;
  margin-left: 1.5rem;
}

.tree-item {
  user-select: none;
}

.tree-node {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  gap: 0.5rem;
}

.tree-node:hover {
  background: rgba(63, 160, 111, 0.08);
}

.tree-node.active {
  background: rgba(63, 160, 111, 0.15);
  color: var(--deep-green);
  font-weight: 600;
}

.tree-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--gray);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.tree-toggle.expanded {
  transform: rotate(90deg);
}

.tree-toggle.has-children:hover {
  color: var(--leaf);
}

.tree-label {
  flex: 1;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-count {
  font-size: 0.75rem;
  color: var(--gray);
  background: rgba(0,0,0,0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.tree-children {
  margin-left: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border);
}

.tree-children.collapsed {
  display: none;
}

/* Products Section */
.products-section {
  min-height: 500px;
}

.products-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.products-title h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.product-count {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

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

/* Product Grid - List layout with group headers */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* Product Card - Exact match to reference */
.product-card {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.product-card:last-child {
  border-bottom: none;
}

/* Top row: image, name, UOM chips, Details button */
.product-card-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-card-image {
  width: 50px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  color: var(--gray);
  font-size: 1.25rem;
}

.product-card-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--deep-green);
  margin: 0;
  line-height: 1.3;
  min-width: 160px;
  max-width: 200px;
}

/* UOM Chips - Inline with checkboxes */
.product-card-uoms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.uom-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.uom-chip:hover {
  border-color: var(--leaf);
}

.uom-chip.selected {
  border-color: var(--leaf);
  background: rgba(63, 160, 111, 0.05);
}

.uom-chip-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.uom-chip.selected .uom-chip-checkbox {
  background: var(--leaf);
  border-color: var(--leaf);
}

.uom-chip-content {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.uom-chip-name {
  font-weight: 400;
  color: var(--charcoal);
  font-size: 0.8rem;
}

.uom-chip-price {
  font-weight: 700;
  color: var(--deep-green);
  font-size: 0.85rem;
}

.uom-chip-breakdown {
  font-size: 0.7rem;
  color: var(--gray);
  font-style: italic;
}

/* Details Button */
.product-card-btn {
  margin-left: auto;
  padding: 0.4rem 1.25rem;
  background: #fff;
  color: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.product-card-btn:hover {
  border-color: var(--deep-green);
  color: var(--deep-green);
}

/* Bottom section: description, price, note */
.product-card-details {
  margin-top: 0.75rem;
  padding-left: 66px;
}

.product-card-description {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0 0 0.25rem;
}

.product-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-green);
  margin: 0 0 0.25rem;
}

.product-card-price-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin: 0;
}

/* Hide these in new layout */
.product-card-body,
.product-card-info,
.product-card-group,
.product-card-sku,
.product-card-footer,
.product-card-header {
  display: none;
}

/* Skeleton Card */
.skeleton-card {
  cursor: default;
}

.skeleton-card:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

.skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-body .skeleton-line {
  height: 16px;
}

.skeleton-body .skeleton-line.short {
  width: 50%;
  margin-left: 0;
}

.product-card.skeleton .skeleton-image {
  height: 180px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.product-card.skeleton .skeleton-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty State */
.empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--gray);
}

.empty-message svg {
  opacity: 0.5;
}

/* Footer */
.site-footer {
  background: #0b1f13;
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Shop Modal Backdrop - custom class to avoid Frappe conflicts */
.shop-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 10000 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.shop-modal-backdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Shop Modal - custom class to avoid Frappe conflicts */
.shop-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.95);
  background: #ffffff !important;
  border-radius: 12px !important;
  max-width: 700px !important;
  width: 94vw !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  z-index: 10001 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
}

.shop-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.shop-modal .shop-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--gray);
  transition: all 0.15s;
}

.shop-modal .shop-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--charcoal);
}

.shop-modal .shop-modal-body {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

/* Modal Header with Category */
.shop-modal .shop-modal-header {
  text-align: center;
  padding: 1.5rem 2rem 0;
}

.shop-modal .shop-modal-category {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0;
}

/* Modal Content - Two Column */
.shop-modal .shop-modal-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 1.5rem 2rem 2rem;
}

.shop-modal .shop-modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.shop-modal .shop-modal-image {
  width: 180px;
  height: 220px;
  background: #f9f9f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-modal .shop-modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.shop-modal .shop-modal-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shop-modal .shop-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-green);
  margin: 0;
  text-align: center;
}

.shop-modal .shop-modal-sku {
  font-size: 0.8rem;
  color: var(--leaf);
  text-align: center;
  margin: 0;
}

.shop-modal .shop-modal-price {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-green);
  margin: 0.5rem 0;
}

.shop-modal .shop-modal-description {
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  margin: 0;
}

/* Specs Section */
.shop-modal .shop-modal-specs {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
}

.shop-modal .shop-modal-specs h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.75rem;
}

.shop-modal .specs-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
}

.shop-modal .specs-list li {
  font-size: 0.85rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.shop-modal .specs-list strong {
  color: var(--gray);
  font-weight: 500;
}

/* UOM Section */
.shop-modal .shop-modal-uom-section {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
}

.shop-modal .shop-modal-uom-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.25rem;
}

.shop-modal .shop-modal-uom-section p {
  font-size: 0.75rem;
  color: var(--gray);
  margin: 0 0 0.75rem;
}

/* UOM Radio Buttons */
.shop-modal .shop-modal-uom-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shop-modal .uom-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.shop-modal .uom-option:hover {
  border-color: var(--leaf);
}

.shop-modal .uom-option.selected {
  border-color: var(--leaf);
  background: rgba(63, 160, 111, 0.05);
}

.shop-modal .uom-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--leaf);
  margin: 0;
}

.shop-modal .uom-option-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-modal .uom-option-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.shop-modal .uom-option-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--deep-green);
}

.shop-modal .uom-option-breakdown {
  font-size: 0.7rem;
  color: var(--gray);
}

/* Modal Footer Note */
.shop-modal .shop-modal-footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
  padding: 0 2rem 1.5rem;
  margin: 0;
}

.modal-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.modal-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0;
}

.modal-title {
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.modal-sku {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0;
}

.modal-pricing {
  background: rgba(63, 160, 111, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
}

.modal-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.price-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--deep-green);
  font-family: 'Playfair Display', serif;
}

.price-breakdown {
  font-size: 0.85rem;
  color: var(--accent-green);
  margin: 0.5rem 0 0;
}

.modal-uom-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.uom-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.uom-card {
  flex: 1;
  min-width: 120px;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.uom-card:hover {
  border-color: var(--leaf);
}

.uom-card.selected {
  border-color: var(--leaf);
  background: rgba(63, 160, 111, 0.08);
}

.uom-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.uom-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-green);
}

.uom-card-conversion {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

/* Lazy Loading Images */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Price Breakdown */
.breakdown-detail {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-green);
}

.breakdown-unit {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.modal-quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-quantity label {
  font-weight: 600;
  color: var(--charcoal);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--card);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--leaf);
  background: rgba(63, 160, 111, 0.08);
}

.modal-quantity input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}

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

.modal-actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    background: rgba(15, 45, 30, 0.98);
    flex-direction: column;
    padding: 6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    min-width: 250px;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 250px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .product-card-image {
    height: 140px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Mobile Bottom Sheet Modal */
  .modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    max-width: 100%;
    width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
  }

  .modal.active {
    transform: translateY(0);
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 200px;
    max-height: 200px;
  }

  .modal-details {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .price-value {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
