:root {
  --accent: #ff6b35;
  --muted: #6b6b6b;
  --bg: #fff8f4;
  --card: #fff;
  --max: 1100px
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: #222;
  line-height: 1.5
}

body.nav-open {
  overflow: hidden
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #ff6b35, #ffa500, #ff6b35);
  background-size: 200% 100%;
  animation: announcement-shimmer 4s ease-in-out infinite;
  overflow: hidden;
  position: relative;
}

.announcement-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.announcement-track {
  display: inline-flex;
  animation: announcement-scroll 20s linear infinite;
}

.announcement-item {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

a.announcement-item:hover {
  text-decoration: underline;
}

.announcement-icon {
  font-size: 0.9rem;
}

.announcement-divider {
  color: rgba(255, 255, 255, 0.5);
  padding: 0 1rem;
}

@keyframes announcement-shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes announcement-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #f0eaea;
  position: sticky;
  top: 0;
  z-index: 100
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  color: #111;
  font-size: 1.5rem
}

.logo-mark {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block
}

.logo span {
  line-height: 1
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  color: #111
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

.nav-toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: center
}

.mainnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0
}

.mainnav a:hover {
  color: #111
}

.actions {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end
}

.search-wrapper {
  display: flex;
  align-items: center;
  flex: 1 1 220px
}

.search {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #eee
}

.cart {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: .5rem .75rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: filter .2s ease
}

.cart:hover {
  filter: brightness(.95)
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: .5rem 1rem;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  margin: -1px
}

/* Profile link */
.profile-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: .5rem .75rem;
  text-decoration: none;
  transition: all 0.2s
}

.profile-link:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
  transform: translateY(-1px)
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9a76);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem
}

.profile-name {
  font-size: .9rem;
  color: #333;
  font-weight: 600
}

/* Flash messages */
.flash-messages {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 400px
}

.flash-message {
  padding: 1rem 3rem 1rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
  position: relative
}

.flash-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724
}

.flash-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24
}

.flash-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460
}

.flash-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1
}

.flash-close:hover {
  opacity: 1
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0
  }

  to {
    transform: translateX(0);
    opacity: 1
  }
}

.hero-shop {
  padding: 3rem 0
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: center
}

.hero-copy h1 {
  font-size: 2rem;
  margin: 0
}

.hero-copy p {
  color: var(--muted)
}

.ctas {
  margin-top: 1rem
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
  gap: 0.35rem
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), #ff9a76);
  color: #fff
}

.btn.ghost {
  background: transparent;
  border: 1px solid #eee
}

.hero-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06)
}

.section {
  padding: 2.25rem 0
}

.products .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04)
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px
}

.price {
  color: var(--accent);
  font-weight: 700
}

/* Amazon-style product grid */
.product-grid.amazon-style {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem
}

.product-card {
  background: #fff;
  border: 1px solid #e3e6e8;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px)
}

.product-image {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.product-image .placeholder {
  font-size: 3rem;
  color: #d1d5db
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f1111;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical
}

.product-category {
  font-size: 0.75rem;
  color: #565959;
  text-transform: uppercase;
  letter-spacing: 0.02em
}

.product-meta {
  font-size: 0.85rem;
  color: #565959
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0
}

.price-current {
  font-size: 1.3rem;
  font-weight: 700;
  color: #b12704
}

.price-original {
  font-size: 0.9rem;
  color: #565959;
  text-decoration: line-through
}

.discount-badge {
  background: #cc0c39;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px
}

.stock-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: #007600;
  margin: 0.25rem 0
}

.stock-info.low-stock {
  color: #b12704
}

.stock-info.out-of-stock {
  color: #999
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

.rating-stars {
  color: #f59e0b;
  font-size: 1rem;
}

.rating-value {
  font-weight: 700;
  color: #1f2937;
}

.rating-divider {
  color: #d1d5db;
}

.review-count {
  color: #6b7280;
}

/* Flavor/Dietary Tags */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0;
}

.flavor-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
}

/* Color-coded tags */
.flavor-tag.mild {
  background: #dcfce7;
  color: #16a34a;
}

.flavor-tag.medium-spicy {
  background: #ffedd5;
  color: #ea580c;
}

.flavor-tag.hot,
.flavor-tag.spicy {
  background: #fee2e2;
  color: #dc2626;
}

.flavor-tag.jain-friendly {
  background: #f3e8ff;
  color: #9333ea;
}

.flavor-tag.no-onion-garlic {
  background: #fce7f3;
  color: #db2777;
}

.flavor-tag.oil-free {
  background: #dbeafe;
  color: #2563eb;
}

.flavor-tag.sweet {
  background: #fef3c7;
  color: #d97706;
}

.flavor-tag.tangy {
  background: #cffafe;
  color: #0891b2;
}

.flavor-tag.homemade {
  background: #d1fae5;
  color: #059669;
}

.add-to-cart {
  width: 100%;
  margin-top: auto;
  background: #ffd814;
  border: 1px solid #fcd200;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f1111;
  cursor: pointer;
  transition: background 0.2s ease
}

.add-to-cart:hover {
  background: #f7ca00
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #565959
}

/* About section enhancements */
.about-section .about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: start
}

.about-media img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06)
}

.about-media figcaption {
  font-size: .9rem;
  color: var(--muted);
  margin-top: .5rem
}

.about-copy .lead {
  color: var(--muted);
  font-size: 1.05rem
}

.about-cta {
  margin: 1rem 0
}

.values-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1rem
}

.value-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
  flex: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04)
}

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.more-values summary {
  cursor: pointer;
  padding: .5rem 0;
  font-weight: 600
}

.more-values .values-list {
  margin-top: .5rem
}

.muted {
  color: var(--muted);
  font-weight: 600;
  margin-top: 1rem
}

.alt {
  background: #fffaf7
}

.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid #f0f0f0
}

.footer-content {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem
}

.footer-section {
  text-align: left;
  flex: 1
}

.footer-section h4 {
  margin-bottom: .5rem;
  color: #222
}

.footer-section p {
  margin: .25rem 0
}

/* Rich Branded Footer */
.footer-rich {
  background: linear-gradient(180deg, #ffa500 0%, #ff8c00 50%, #ff6b35 100%);
  color: #1f2937;
  margin-top: 3rem;
  position: relative;
}

.footer-wave {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  color: #ffa500;
  overflow: hidden;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
}

.footer-tagline {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  font-size: 1.4rem;
}

.tagline-text {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  color: #7c2d12;
}

.tagline-text em {
  font-style: italic;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1f2937;
  font-weight: 800;
  font-size: 1.3rem;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #44403c;
  margin: 0;
}

.footer-social {
  margin-top: 0.5rem;
}

.footer-social strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #1f2937;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #44403c;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #7c2d12;
  text-decoration: underline;
}

.contact-list li {
  font-size: 0.85rem;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .tagline-text {
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
  }
}

/* FAQ section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.faq-list details {
  background: var(--card);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #eee
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #222;
  margin-bottom: .5rem
}

.faq-list summary:hover {
  color: var(--accent)
}

.faq-list p {
  margin: .5rem 0
}

@media (max-width:900px) {
  .topbar .wrap {
    align-items: flex-start
  }

  .topbar-brand {
    width: 100%;
    justify-content: space-between
  }

  .nav-toggle {
    display: flex
  }

  .mainnav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid #f0eaea;
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05)
  }

  .mainnav.is-open {
    display: flex
  }

  .mainnav a {
    padding: 0.75rem 1rem
  }

  .actions {
    order: 2;
    width: 100%;
    margin-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem
  }

  .search-wrapper {
    flex: 1 1 100%;
    width: 100%
  }

  .actions .btn,
  .actions .profile-link,
  .actions .cart {
    width: auto;
    padding: .45rem .9rem
  }

  .actions .cart-button {
    display: inline-block
  }

  .actions .profile-link {
    justify-content: flex-start
  }

  .flash-messages {
    top: 90px;
    left: 1rem;
    right: 1rem;
    max-width: none
  }

  .hero-inner {
    grid-template-columns: 1fr
  }

  .products .product-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .about-section .about-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:600px) {
  .wrap {
    padding: 1rem
  }

  .products .product-grid {
    grid-template-columns: 1fr
  }

  .hero-shop {
    padding: 2.25rem 0
  }

  .hero-img img {
    height: 240px
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem
  }

  .footer-section {
    text-align: left
  }
}

@media (max-width:480px) {
  .hero-copy h1 {
    font-size: 1.6rem
  }

  .hero-copy p {
    font-size: 0.95rem
  }

  .ctas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem
  }

  .btn {
    width: 100%
  }

  .product-card {
    padding: 0.85rem
  }

  .product-image {
    height: 200px
  }

  .flash-messages {
    top: 80px
  }
}

/* Contact page improvements */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 2rem;
  align-items: start
}

.contact-left h1 {
  margin-top: 0
}

.contact-info p {
  margin: .4rem 0;
  color: var(--muted)
}

.contact-right .alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem
}

.alert.success {
  background: linear-gradient(90deg, var(--accent), #ff9a76);
  color: #fff
}

.contact-form {
  display: block
}

.field-row {
  display: flex;
  flex-direction: column;
  margin-bottom: .75rem
}

.field-row label {
  font-size: .9rem;
  margin-bottom: .35rem;
  color: #333
}

.field-row input,
.field-row textarea {
  padding: .7rem;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 1rem
}

.actions-row {
  display: flex;
  gap: .75rem;
  align-items: center
}

@media (max-width:900px) {
  .contact-wrap {
    grid-template-columns: 1fr
  }
}

/* Header avatar */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08)
}

/* Admin layout */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 70vh
}

.admin-sidebar {
  background: #fff;
  border-right: 1px solid #f0f0f0;
  padding: 1.25rem
}

.admin-sidebar .sidebar-brand {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111
}

.admin-sidebar nav a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  margin: .1rem 0;
  font-weight: 500;
  transition: background .2s ease, color .2s ease
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: rgba(255, 107, 53, 0.12);
  color: #ff6b35
}

.nav-section {
  margin-top: 1.5rem;
  padding-top: .5rem;
  border-top: 1px solid #f4f4f5
}

.nav-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 1rem
}

.nav-heading {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .12em;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: .35rem;
  padding-left: .5rem
}

.nav-section a {
  padding-left: 1.25rem
}

.admin-main {
  padding: 1.5rem
}

.admin-header .header-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap
}

.admin-header .header-actions .btn {
  flex: 0 0 auto
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem
}

.toolbar-breadcrumb {
  flex: 1 1 auto;
  min-width: 240px
}

.toolbar-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center
}

.toolbar-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1f2937
}

.btn.small {
  padding: .45rem .85rem;
  font-size: .85rem;
  border-radius: 8px
}

.btn.ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151
}

.btn.ghost:hover {
  border-color: #d1d5db
}

.btn.secondary {
  background: #fff;
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: #ff6b35;
  font-weight: 600
}

.btn.secondary:hover {
  background: rgba(255, 107, 53, 0.08)
}

.badge-soft {
  background: rgba(255, 107, 53, 0.12);
  color: #ff6b35;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600
}

.is-hidden {
  display: none !important
}

.assistant-tip {
  background: rgba(255, 107, 53, 0.08);
  border: 1px dashed rgba(255, 107, 53, 0.35);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  color: #444;
  font-size: .95rem
}

.assistant-tip a {
  color: #ff6b35;
  font-weight: 600;
  text-decoration: none
}

.assistant-tip a:hover {
  text-decoration: underline
}

.admin-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1rem
}

.admin-cards .card {
  flex: 1;
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  text-align: center
}

.admin-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #374151
}

.admin-nav-toggle .nav-toggle-stack {
  gap: 3px
}

.admin-nav-toggle .nav-toggle-bar {
  width: 18px
}

.admin-nav-label {
  font-weight: 600;
  font-size: .95rem
}

@media (max-width:900px) {
  .admin-layout {
    grid-template-columns: 1fr
  }

  .admin-nav-toggle {
    display: inline-flex
  }

  .admin-sidebar {
    display: none;
    order: 0;
    width: 100%;
    border-right: 0;
    border-top: 1px solid #f0f0f0;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    background: #fff
  }

  .admin-sidebar.is-open {
    display: block
  }

  .admin-main {
    padding: 1.25rem 1rem
  }

  .toolbar-actions {
    width: 100%;
    justify-content: flex-start
  }
}

@media (max-width:600px) {
  .admin-main {
    padding: 1rem 0.75rem
  }
}

/* Product selector modal styles */
.ps-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200
}

.ps-modal[aria-hidden="false"] {
  display: flex
}

.ps-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45)
}

.ps-modal-panel {
  position: relative;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 900px;
  max-width: 95%;
  max-height: 80%;
  overflow: auto
}

.ps-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0eaea
}

.ps-modal-body {
  padding: 1rem
}

.ps-modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f0eaea;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end
}

.ps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem
}

.ps-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: .5rem;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  cursor: pointer
}

.ps-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px
}

.ps-item input[type=radio] {
  margin-right: 0.5rem
}

.ps-meta .muted {
  font-size: 0.95rem;
  margin-top: 0.25rem
}

.ps-close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer
}

/* product form */
.product-form {
  max-width: 760px;
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04)
}

.product-form .field-row {
  margin-bottom: 0.75rem
}

.product-form input[type=file] {
  padding: .35rem
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem
}

.card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  display: block;
  margin: 0 auto
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem
}

.catalog-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 220px
}

.catalog-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.12), transparent 65%);
  z-index: 0
}

.catalog-thumb {
  flex: 0 0 170px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  z-index: 1
}

.catalog-thumb img {
  width: 100%;
  height: 160px;
  object-fit: contain
}

.catalog-thumb .placeholder {
  font-size: 2.5rem;
  color: #9ca3af
}

.catalog-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 1
}

.catalog-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem
}

.catalog-title h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #1f2937
}

.catalog-code {
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 0.85rem;
  color: #6b7280
}

.catalog-desc {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5
}

.catalog-pricing {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-weight: 600
}

.catalog-pricing .price-range {
  font-size: 1.15rem;
  color: #ff6b35
}

.catalog-pricing .price-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 500
}

.catalog-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #6b7280
}

.catalog-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem
}

.catalog-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap
}

.catalog-actions .btn {
  flex: 0 0 auto
}

.product-health {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #6b7280
}

.product-health span {
  display: flex;
  align-items: center;
  gap: 0.25rem
}

/* improved image container for featured/variant images */
.image-wrap {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden
}

.image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px
}

/* Add product UI */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start
}

.form-main {
  min-width: 0
}

.form-aside {
  position: sticky;
  top: 80px
}

.two-col-form .form-grid {
  grid-template-columns: 1fr 300px
}

.two-col-form .form-sidebar {
  position: sticky;
  top: 20px;
  max-height: 70vh;
  overflow-y: auto
}

.preview-box {
  width: 100%;
  max-width: 300px;
  height: 220px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.preview-placeholder {
  text-align: center;
  color: #adb5bd;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem
}

.preview-placeholder span {
  font-size: 3rem
}

.preview-placeholder p {
  margin: 0;
  font-size: 0.95rem
}

.field-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.discount-preview {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem
}

.discount-badge {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25)
}

.discount-badge span {
  font-size: 1.3rem
}

.price-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center
}

.price-display .marked {
  text-decoration: line-through;
  color: #6b7280;
  font-size: 1rem
}

.price-display .actual {
  color: #059669;
  font-weight: 700;
  font-size: 1.3rem
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #ff9a76);
  color: #fff;
  border: 0;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem
}

.btn-primary:hover {
  opacity: 0.9
}

.btn-secondary {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-size: 1rem
}

.btn-secondary:hover {
  background: #f9fafb
}

.required {
  color: #dc2626;
  margin-left: 0.25rem
}

.pv-category {
  display: inline-block;
  background: rgba(255, 107, 53, 0.12);
  color: #ff6b35;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem
}

.discount-badge-small {
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #fff;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem
}

.action-toggle {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap
}

.action-toggle .toggle-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  cursor: pointer
}

.action-toggle .toggle-item input {
  margin-right: .5rem
}

.image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem
}

.image-preview .image-placeholder {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #e9ecef;
  color: #9ca3af
}

.image-preview img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px
}

.quick-tips {
  padding: 1rem;
  background: #fff;
  border-radius: 10px
}

.help-text {
  color: #6b7280;
  font-size: 0.9rem
}

@media (max-width:900px) {
  .form-grid {
    grid-template-columns: 1fr
  }

  .form-aside,
  .form-sidebar {
    position: static;
    max-height: none
  }

  .preview-box {
    height: 200px;
    max-width: 100%
  }
}

/* when showing a single large variant card use this utility */
.variant-hero {
  grid-column: 1/-1;
  padding: 1rem;
  background: var(--card);
  border-radius: 14px
}

.variant-hero .image-wrap {
  max-height: 480px
}

/* Product detail layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr 320px;
  gap: 2rem;
  align-items: start
}

.pv-gallery {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.pv-main {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px
}

.pv-main img {
  width: 100%;
  max-height: 360px;
  object-fit: contain
}

.pv-thumb-list {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap
}

.pv-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: border .2s ease, transform .2s ease
}

.pv-thumb.active {
  border-color: #ff6b35;
  transform: translateY(-2px)
}

.pv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px
}

.pv-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem
}

.pv-title {
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.pv-title h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #111
}

.pv-rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #f59e0b;
  font-weight: 600
}

.pv-description {
  color: #374151;
  font-size: 1rem;
  line-height: 1.6
}

.pv-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  color: #6b7280;
  font-size: .9rem
}

.variant-chip-group {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap
}

.variant-chip {
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: #4b5563;
  transition: all .2s ease
}

.variant-chip.active {
  background: rgba(255, 107, 53, 0.12);
  border-color: #ff6b35;
  color: #ff6b35;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15)
}

.pv-summary-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  padding: 1.75rem;
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem
}

.pv-summary-header {
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.pv-summary-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ff6b35
}

.summary-original {
  display: flex;
  align-items: center;
  gap: 0.5rem
}

.pv-summary-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: .95rem
}

.pv-summary-discount {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: .85rem
}

.pv-stock {
  font-size: .95rem;
  color: #374151
}

.pv-summary-card .btn {
  width: 100%
}

.pv-summary-muted {
  font-size: .85rem;
  color: #6b7280;
  line-height: 1.4
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #d1d5db
}

@media (max-width:1100px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
  }

  .pv-summary-card {
    position: static
  }

  .pv-gallery {
    position: static
  }
}

@media (max-width:900px) {
  .product-detail-layout {
    grid-template-columns: 1fr
  }

  .pv-summary-card {
    order: 2
  }

  .pv-details {
    order: 1
  }
}

.btn.danger {
  background: #dc3545;
  color: #fff;
  border: 1px solid #dc3545;
}

.btn.danger:hover {
  background: #c82333;
  border-color: #bd2130;
}

.btn.secondary {
  background: #6c757d;
  color: #fff;
  border: 1px solid #6c757d;
}

.btn.secondary:hover {
  background: #5a6268;
  border-color: #545b62;
}

.btn.small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}