.hero-section {
  padding: 0 0 10px;
  background: transparent;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
}

.amazon-hero {
  padding-top: 26px;
}

.amazon-copy {
  padding: 18px 0;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 0 0 20px;
  color: #111827;
}

.hero-copy p {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-stats {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-stats strong {
  font-size: 1.4rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-card {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.main-card img {
  height: 520px;
  object-fit: contain;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.quick-picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  margin-bottom: 28px;
}

.quick-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

.quick-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.quick-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.floating-badge span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-badge strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.badge-one {
  top: 20px;
  left: -8px;
}

.badge-two {
  right: 10px;
  bottom: 18px;
}

.section-light {
  background: var(--surface-soft);
}

.category-section,
.product-section,
.shop-section {
  padding: 60px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.category-back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.category-back-link:hover {
  color: var(--heading);
  text-decoration: underline;
}

.row-space {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.category-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12);
}

.category-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-soft);
}

.category-card > .image-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.category-card > .category-name {
  display: block;
  padding: 16px;
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.product-card-out-of-stock .product-image-wrap img {
  filter: grayscale(35%);
}

.out-of-stock-label {
  color: var(--danger);
  font-weight: 700;
}

.product-image-wrap {
  position: relative;
  background: #f7f5f2;
}

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f1efec;
}

.image-frame.image-loading::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    #f1efec 20%,
    #faf9f7 38%,
    #f1efec 58%
  );
  background-size: 200% 100%;
  content: "";
  animation: image-skeleton-shimmer 1.25s linear infinite;
}

.image-frame img {
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.image-frame.image-loading img {
  opacity: 0;
}

.image-frame.image-error::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  content: "Image unavailable";
  font-size: 0.85rem;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-wrap > .image-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
}

.product-info {
  padding: 18px 18px 20px;
}

.product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}

.product-header-row h3 {
  margin: 0;
  font-size: 1.08rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions button {
  flex: 1;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 16px;
  background: white;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(23, 16, 15, 0.04);
  margin-bottom: 28px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: white;
  box-shadow: -18px 0 42px rgba(14, 10, 10, 0.12);
  transform: translateX(105%);
  transition: transform 0.25s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.cart-items {
  flex: 1;
  padding: 18px 18px 0;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 14px;
}

.cart-item > .image-frame {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 14px;
}

.cart-item-body {
  flex: 1;
}

.cart-item-head,
.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cart-item-title {
  margin: 0;
  font-size: 0.98rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  border-radius: 999px;
  padding: 5px 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: white;
  font-size: 1rem;
}

.qty-control span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.cart-summary {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--border);
  background: white;
}

.details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.product-detail-gallery img {
  border-radius: 18px;
  height: 420px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-detail-gallery > .image-frame {
  width: 100%;
  height: 420px;
  margin-bottom: 12px;
  border-radius: 18px;
}

.product-detail-gallery > .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-thumbs img {
  height: 100px;
  border-radius: 14px;
  object-fit: contain;
}

.gallery-thumbs > .image-frame {
  width: 100%;
  height: 100px;
  border-radius: 14px;
}

.gallery-thumbs > .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes image-skeleton-shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-frame.image-loading::before {
    animation: none;
  }
}

.product-detail-content h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.detail-price {
  display: block;
  margin-bottom: 18px;
  font-size: 2rem;
  font-weight: 800;
}

.details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.details-meta span {
  display: inline-flex;
  padding: 8px 10px;
  background: var(--secondary);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
}

.detail-description {
  color: var(--muted);
  line-height: 1.8;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 150%);
  background: rgba(29, 29, 47, 0.95);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.new-order-notice {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 210;
  display: grid;
  gap: 12px;
  width: min(480px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 14px 18px;
  border: 1px solid #f2c078;
  border-radius: 14px;
  background: #fff8e8;
  color: #704500;
  box-shadow: 0 8px 22px rgba(112, 69, 0, 0.08);
}

.new-order-notice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.new-order-notice-heading h3,
.new-order-notice p,
.new-order-detail ul {
  margin: 0;
}

.new-order-notice > p {
  font-weight: 600;
}

.new-order-notice-details {
  display: grid;
  gap: 12px;
}

.new-order-detail {
  padding: 12px;
  border: 1px solid rgba(112, 69, 0, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.new-order-detail p + p {
  margin-top: 8px;
  font-weight: 600;
}

.new-order-detail ul {
  padding: 8px 0 0 20px;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  font-size: 1.15rem;
  cursor: pointer;
}

.order-notification-button:focus-visible,
#enableOrderSoundBtn:focus-visible {
  outline: 3px solid rgba(245, 149, 41, 0.4);
  outline-offset: 2px;
}

.order-notification-count {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.dashboard-orders {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
}

.order-details {
  min-width: 110px;
}

.order-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}

.order-details-content {
  position: absolute;
  z-index: 10;
  width: min(420px, 80vw);
  max-height: 60vh;
  overflow: auto;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.order-details-content p {
  margin: 0 0 8px;
}

.order-details-content ul {
  padding-left: 20px;
}

.store-header {
  background: #f3f3f3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(29, 29, 47, 0.04);
}

.main-toolbar {
  padding: 18px 0 12px;
}

.desktop-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobile-header-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  flex: 0 0 auto;
}

.desktop-brand {
  width: 180px;
}

.brand-logo {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.icon-btn-user,
.icon-btn-cart {
  border: 1px solid rgba(24, 24, 24, 0.12);
  background: #fff;
  color: #1d1d2f;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  cursor: pointer;
}

.google-signin-btn {
  padding: 0;
}

.profile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

.mobile-search {
  display: none;
}

.icon-btn-cart .cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
}

.search-shell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f6f6;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 999px;
  padding: 0 12px 0 16px;
  min-height: 56px;
}

.desktop-search {
  display: flex;
}

.mobile-search {
  display: none;
}

.search-shell input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--heading);
}

.search-icon {
  font-size: 1.4rem;
  color: var(--muted);
}

.search-btn {
  border: none;
  background: linear-gradient(180deg, #ffb55c, #f59b2c);
  color: #1a1a1a;
  font-weight: 800;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 26px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-actions {
  margin-left: auto;
}

.toolbar-link {
  border: none;
  background: transparent;
  color: #1d1d2f;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-link {
  position: relative;
}

.desktop-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f6a62a;
  color: #171717;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 3px 5px;
}

.page-home {
  padding: 16px 0 48px;
}

.hero-section {
  margin-top: 0;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  background: #f4f6f8;
  box-shadow: none;
  margin-top: 0;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 420px;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
}

@media (min-width: 761px) {
  .hero-slider {
    overflow: hidden;
    min-height: 0;
  }

  .slider-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    height: 420px;
    width: max-content;
    animation: desktop-slide-scroll 28s linear infinite;
    padding: 0 10px;
  }

  .hero-slide {
    position: relative;
    inset: auto;
    width: 260px;
    min-width: 260px;
    height: 420px;
    opacity: 1;
    pointer-events: auto;
    flex-shrink: 0;
    animation: none;
  }

  .hero-slide.active {
    opacity: 1;
  }

  .hero-slide img {
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  }

  .slider-arrow,
  .slider-dots {
    display: none;
  }
}

@keyframes desktop-slide-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #1d1d2f;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.slider-prev {
  left: 18px;
}

.slider-next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.dot.active {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.18);
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  margin-bottom: 26px;
}

.promo-card {
  background: #f6f6f6;
  border-radius: 24px;
  padding: 18px 14px 10px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(20, 15, 14, 0.04);
}

.promo-card span {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1d1d2f;
}

.promo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8f2f0, #f2d1d1);
  color: #1d1d2f;
  font-weight: 900;
  line-height: 1.1;
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.5);
}

.promo-light .promo-circle {
  background: linear-gradient(135deg, #fff7ef, #f0d4e8);
}

.promo-coral .promo-circle {
  background: linear-gradient(135deg, #fca067, #ff6e6f);
}

.promo-peach .promo-circle {
  background: linear-gradient(135deg, #ffdd77, #f6ba58);
}

.promo-gold .promo-circle {
  background: linear-gradient(135deg, #f9d467, #f2af3f);
}

.promo-sunset .promo-circle {
  background: linear-gradient(135deg, #f8dd95, #f59a57);
}

.promo-orange .promo-circle {
  background: linear-gradient(135deg, #ffbe58, #ff8a4d);
}

.promo-coral .promo-circle {
  background: linear-gradient(135deg, #ff9d7f, #ff7b66);
  color: #fff;
}

.promo-peach .promo-circle,
.promo-gold .promo-circle,
.promo-sunset .promo-circle,
.promo-orange .promo-circle {
  background: linear-gradient(135deg, #f8c85d, #f39d2f);
  color: #fff;
}

.promo-light {
  background: #f2f2f2;
}

.promo-coral {
  background: #ffede9;
}

.promo-peach {
  background: #f9edd9;
}

.promo-gold {
  background: #fef3d7;
}

.promo-sunset {
  background: #f8eee0;
}

.promo-orange {
  background: #ffe3b2;
}

.promo-circle-alt {
  background: linear-gradient(135deg, #ffb042, #ff7c52);
  color: #fff;
}

.promo-circle-plain {
  background: linear-gradient(135deg, #ffb85f, #ef8d2d);
  color: #fff;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: #1d1d2f;
}

.category-grid {
  margin-top: 22px;
}

.site-footer {
  background: #191b25;
  color: rgba(255, 255, 255, 0.8);
  padding: 42px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  color: white;
  margin-bottom: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 2;
}

.admin-body {
  background: #f5f3f1;
}

.admin-auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff3f2, #f5f7ff);
  padding: 24px;
}

.auth-panel {
  width: min(460px, 100%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.auth-panel h1 {
  margin: 18px 0 8px;
  font-size: 2rem;
}

.auth-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-app {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 290px;
  background: #111827;
  color: rgba(255, 255, 255, 0.9);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-brand {
  color: white;
  padding: 6px 0 0 8px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-link {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.9rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-content {
  flex: 1;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.admin-topbar h2 {
  margin: 0;
  font-size: 2rem;
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  font-weight: 700;
}

.admin-section {
  display: none;
}

.active-section {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(21, 15, 15, 0.02);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.table-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table-wrap th {
  background: #f9f5f4;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions button {
  border: none;
  border-radius: 10px;
  padding: 0.52rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.table-actions .edit-btn {
  background: rgba(29, 143, 93, 0.08);
  color: var(--success);
}

.table-actions .delete-btn {
  background: rgba(217, 77, 77, 0.08);
  color: var(--danger);
}

.table-actions .toggle-btn {
  background: rgba(237, 156, 56, 0.12);
  color: var(--warning);
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.multiline-form {
  gap: 18px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
}

.multi-checkboxes {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pending {
  background: rgba(237, 156, 56, 0.12);
  color: var(--warning);
}

.status-confirmed,
.status-processing,
.status-ready,
.status-delivered {
  background: rgba(29, 143, 93, 0.08);
  color: var(--success);
}

.status-cancelled {
  background: rgba(217, 77, 77, 0.08);
  color: var(--danger);
}

.checkout-page {
  padding: 48px 0 80px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
}

.checkout-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 25px rgba(20, 15, 14, 0.02);
}

.payment-options {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}

.payment-options legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.payment-option input {
  accent-color: var(--primary);
}

.checkout-phone-field {
  margin-bottom: 20px;
}

.checkout-phone-field small {
  color: var(--muted);
  line-height: 1.5;
}

.customer-box {
  background: #fff6f4;
  border: 1px solid rgba(255, 122, 122, 0.18);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.customer-box h3 {
  margin: 0 0 12px;
}

.customer-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 122, 122, 0.15);
}

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

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.checkout-item img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 16px;
}

.checkout-item > .image-frame {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 16px;
}

.checkout-item > .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-item-body {
  flex: 1;
}

.checkout-item-body h4 {
  margin: 0 0 6px;
}

.account-orders {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.account-order-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.account-order-card h3 {
  margin: 0 0 8px;
}

.account-order-card p {
  margin: 6px 0;
  color: var(--muted);
}

.account-order-card ul {
  padding-left: 20px;
}

.summary-box {
  background: var(--secondary);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}
