:root {
  --green:       #4e8055;
  --green-dark:  #2d5233;
  --green-light: #e8f5e9;
  --purple:      #7b5ea7;
  --purple-light:#f3eeff;
  --yellow:      #c9a84c;
  --bg:          #fafaf8;
  --text:        #2c2c2c;
  --text-muted:  #666;
  --border:      #e0e0d8;
  --white:       #ffffff;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --radius:      12px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar-logo span { color: var(--purple); }
.logo-rainbow {
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0.5px;
}
.logo-rainbow span {
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: transform 0.2s;
  display: inline-block;
}
.navbar-logo:hover .logo-rainbow span {
  animation: letter-dance 0.5s ease forwards;
}
@keyframes letter-dance {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-4px); }
  70%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}
.navbar-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}
.navbar-links a {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.navbar-links a:hover { background: var(--green-light); color: var(--green-dark); }
.navbar-links a.active { background: var(--green-light); color: var(--green-dark); }
.cart-btn {
  background: var(--purple);
  color: var(--white) !important;
  border-radius: 20px !important;
  padding: 0.4rem 1rem !important;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cart-btn:hover { background: var(--green-dark) !important; }
.cart-count {
  background: var(--yellow);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-left: 2px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  gap: 0.5rem;
}
.mobile-menu a {
  padding: 0.6rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--purple) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: #6a4d94; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-danger { background: #e53e3e; color: #fff; }
.btn-danger:hover { background: #c53030; }
.btn-gray { background: #e2e8f0; color: var(--text); }
.btn-gray:hover { background: #cbd5e0; }

/* ===== SECTION ===== */
.section { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.section-title span { color: var(--purple); }
.section-sub { color: var(--text-muted); margin-bottom: 2rem; }
.section-divider { border: none; border-top: 2px solid var(--border); margin: 3rem 0; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 3rem;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.product-card-desc { color: var(--text-muted); font-size: 0.85rem; flex: 1; margin-bottom: 0.75rem; }
.product-card-price { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.price-main { font-size: 1.2rem; font-weight: 700; color: var(--green-dark); }
.price-old { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}
.badge-new { background: var(--green); color: #fff; }
.badge-promo { background: var(--yellow); color: #fff; top: 38px; }

/* ===== CATEGORY BADGES ===== */
.cat-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.cat-tall      { background: #e8f0fe; color: #3b5bdb; }
.cat-dwarf     { background: #e8f5e9; color: var(--green-dark); }
.cat-tall_new  { background: #fff3e0; color: #d84315; }
.cat-dwarf_new { background: #fce4ec; color: #c2185b; }
.cat-tall_set  { background: #ede7f6; color: var(--purple); }
.cat-dwarf_set { background: #e0f7fa; color: #00838f; }
.cat-peonies   { background: #fce4ec; color: #ad1457; }
.cat-tulips    { background: #fff8e1; color: #f9a825; }
.cat-daffodils { background: #fffde7; color: #f57f17; }
.cat-lilies    { background: #f3e5f5; color: #6a1b9a; }
.cat-daylilies { background: #e8eaf6; color: #3949ab; }

/* ===== FILTERS ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== PRICE TABLE ===== */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
}
.price-table tr:nth-child(even) td { background: var(--green-light); }
.price-table tr:hover td { background: var(--purple-light); }
.price-table .price-cell { font-weight: 700; color: var(--green-dark); }
.price-table .promo-cell { color: var(--yellow); font-weight: 700; }
.price-section-header td {
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, var(--yellow) 0%, #e8832a 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.promo-banner h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.promo-banner p { opacity: 0.9; font-size: 0.9rem; }

/* ===== CART ===== */
.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.cart-item-body { flex: 1; }
.cart-item-name { font-weight: 700; margin-bottom: 0.25rem; }
.cart-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.cart-total {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.cart-total-row { display: flex; justify-content: space-between; padding: 0.4rem 0; }
.cart-total-row.final { font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 0.75rem; }

/* ===== ORDER FORM ===== */
.order-form { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--bg);
}
.form-input:focus { outline: none; border-color: var(--green); background: var(--white); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--bg);
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--green); }

/* ===== CONTACTS ===== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-card h3 { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.contact-card p { font-size: 1.1rem; font-weight: 600; }
.contact-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* ===== ADMIN ===== */
.admin-header {
  background: var(--green-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  background: #1a3d1f;
  padding: 0.5rem;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-tab.active { background: var(--green); color: #fff; }
.admin-content { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
}
.admin-login-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.product-admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}
.product-admin-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.product-admin-actions { display: flex; flex-direction: column; gap: 0.4rem; }
.toggle-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
}
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.3s;
}
.slider:before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .slider { background: var(--green); }
input:checked + .slider:before { transform: translateX(20px); }
.order-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.order-status {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-new { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-done { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { margin-bottom: 1.5rem; color: var(--green-dark); }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
.image-preview-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.image-preview-item {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-img {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,0.5); color: #fff;
  border: none; border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ===== CATEGORIES GRID (HOME) ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.cat-card:hover { border-color: var(--green); transform: translateY(-2px); }
.cat-card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.cat-card-name { font-weight: 600; font-size: 0.9rem; color: var(--green-dark); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--green-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 999;
  animation: slideUp 0.3s ease;
}
.toast.error { background: #e53e3e; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }

/* ===== FOOTER ===== */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a { display: block; padding: 0.2rem 0; opacity: 0.8; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== GRID LAYOUTS ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 3rem 1rem; }
  .section { padding: 2.5rem 1rem; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .product-card-img { height: 150px; }
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .product-admin-card { grid-template-columns: 60px 1fr; }
  .product-admin-actions { flex-direction: row; grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .three-col { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .cart-item { flex-direction: column; }
}

/* ===== MISC ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }

/* ===== PRODUCT DETAIL PAGE ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--green-dark); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-gallery { display: flex; flex-direction: column; gap: 1rem; }

.gallery-main {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-light);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.7;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--green); opacity: 1; }

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--green-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--green);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.product-detail-info { display: flex; flex-direction: column; gap: 1rem; }

.product-detail-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
}

.detail-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.product-detail-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-detail-desc {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.product-detail-desc p { margin-bottom: 0.5rem; }
.product-detail-desc p:last-child { margin-bottom: 0; }

.detail-add {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.detail-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.75rem;
}
.detail-qty .qty-btn { width: 32px; height: 32px; font-size: 1.1rem; }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-detail-name { font-size: 1.5rem; }
  .gallery-thumb { width: 60px; height: 60px; }
}

/* ===== TOPBAR ===== */
.topbar {
  background: linear-gradient(90deg, #1a3d22 0%, #2d5233 50%, #1e3a4a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.topbar-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  color: rgba(255,255,255,0.88);
  border-radius: 0 0 10px 10px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  text-decoration: none;
}
.topbar-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.topbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topbar-phone-btn .topbar-icon svg {
  width: 20px;
  height: 20px;
  color: #7de89a;
}
.topbar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.topbar-label {
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 400;
  white-space: nowrap;
}
.topbar-number {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  /* скрыта до наведения */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.topbar-btn:hover .topbar-number {
  max-height: 2rem;
  opacity: 1;
}
.topbar-phone-btn .topbar-number { color: #7de89a; }
.topbar-max-btn .topbar-number   { color: #7bbfff; }

/* ── Wiggle animation ── */
@keyframes contact-wiggle {
  0%, 72%, 100% { transform: scale(1) rotate(0deg); }
  75%  { transform: scale(1.15) rotate(-10deg); }
  79%  { transform: scale(1.15) rotate(10deg); }
  83%  { transform: scale(1.1)  rotate(-6deg); }
  87%  { transform: scale(1.05) rotate(3deg); }
  91%  { transform: scale(1)    rotate(0deg); }
}
.anim-wiggle {
  animation: contact-wiggle 6s ease-in-out infinite;
  transform-origin: center;
  display: inline-flex;
}

.mobile-contact-link {
  padding: 0.6rem 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--green-dark) !important;
}

@media (max-width: 768px) {
  .topbar-inner { justify-content: center; padding: 0 1rem; gap: 0; }
  .topbar-btn { padding: 0.4rem 0.75rem; }
  .topbar-label { display: none; }
  .topbar-number { max-height: 2rem; opacity: 1; font-size: 0.8rem; }
}
