.badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.badge--success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.badge--warning {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning);
}

.badge--info {
  background: rgba(2, 132, 199, 0.1);
  color: var(--info);
}

.badge--error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error);
}

.badge--muted {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-muted);
}

.badge--promoted {
  background: var(--warning);
  color: #fff;
  padding: 3px 8px;
  font-size: 0.625rem;
  font-weight: 700;
}

.badge--offers {
  background: var(--info);
  color: #fff;
}

.badge--out-of-stock {
  background: var(--error);
  color: #fff;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--cta);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.pill:hover {
  background: rgba(249, 115, 22, 0.2);
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 10;
  max-height: 400px;
  overflow-y: auto;
}

.search-dropdown.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.search-item:hover {
  background: rgba(249, 115, 22, 0.04);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #E2E8F0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-item__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.search-dropdown__all {
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--cta);
  font-weight: 600;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--cta);
}

.breadcrumb__sep {
  display: flex;
  align-items: center;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination__btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
}

.pagination__btn:hover {
  border-color: var(--cta);
  color: var(--cta);
}

.pagination__btn.active {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__ellipsis {
  padding: 8px 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  user-select: none;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
}

.modal__close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Reviews Popup */
.reviews-trigger {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.reviews-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 1rem;
  z-index: 1050;
  pointer-events: none;
}

.reviews-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--surface);
}

.reviews-trigger:hover .reviews-popup {
  display: block;
  pointer-events: auto;
}

/* Reviews timeline (inside popup) */
.reviews-timeline { padding-top: 0.5rem; }
.reviews-timeline__item { display: flex; gap: 0.5rem; padding-bottom: 0.5rem; }
.reviews-timeline__item:last-child { padding-bottom: 0; }
.reviews-timeline__avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.reviews-timeline__line { width: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.reviews-timeline__line::before { content: ''; width: 2px; height: 100%; background: var(--border); border-radius: 1px; }
.reviews-timeline__item--continued { padding-top: 0; }
.reviews-timeline__content { flex: 1; min-width: 0; }
.reviews-timeline__name { font-size: 0.6875rem; font-weight: 600; color: var(--text-heading); margin-bottom: 2px; }
.reviews-timeline__stars { display: flex; align-items: center; gap: 1px; }
.reviews-timeline__comment { font-size: 0.6875rem; color: var(--text-muted); margin: 3px 0 0; line-height: 1.4; }

/* Mobile: JS clones popup into body-level container to avoid stacking context issues */
@media (max-width: 767px) {
  /* Disable hover on mobile — JS handles toggle */
  .reviews-trigger:hover .reviews-popup {
    display: none;
  }
  .reviews-trigger:hover::before {
    display: none;
  }
  .reviews-popup::after {
    display: none;
  }
  /* Backdrop — semi-transparent overlay */
  .reviews-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .reviews-backdrop.active {
    display: block;
  }
  /* Body-level modal container for mobile */
  .reviews-modal-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1051;
    width: calc(100vw - 32px);
    max-width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    pointer-events: auto;
  }
  .reviews-modal-container.active {
    display: block;
  }
  .reviews-modal-container .reviews-popup {
    display: block;
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 16px;
    padding: 1.25rem;
    pointer-events: auto;
  }
}

/* Section helpers */
.section {
  padding: 3rem 0;
}

.section--surface {
  background: var(--surface);
}

.section--bordered {
  border-top: 1px solid var(--border);
}

/* ============================================
   Product Detail Gallery
   ============================================ */
.pd-gallery__main {
  position: relative;
}

.pd-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.pd-gallery__slide--active {
  opacity: 1;
  z-index: 1;
  position: relative;
}

.pd-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.pd-gallery__main:hover .pd-gallery__arrow {
  opacity: 1;
}

.pd-gallery__arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.pd-gallery__arrow--left { left: 10px; }
.pd-gallery__arrow--right { right: 10px; }

.pd-gallery__counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.pd-gallery__thumbs {
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-gallery__thumbs::-webkit-scrollbar { display: none; }

.pd-gallery__thumb {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.pd-gallery__thumb:hover {
  opacity: 0.9;
}

.pd-gallery__thumb--active {
  border-color: var(--cta);
  opacity: 1;
}

.pd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Grid helpers */
.grid-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.grid-products--listing {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* Carousel row */
.carousel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.carousel-row::-webkit-scrollbar {
  height: 4px;
}

.carousel-row::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 2px;
}

.carousel-row::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 2px;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead tr {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.data-table td {
  padding: 10px 14px;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem;
  z-index: 60;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  display: none;
}

.cookie-banner.active {
  display: block;
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.cookie-modal__panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 520px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: cookieModalIn 0.25s ease-out;
}

@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cookie-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
}

.cookie-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s;
}

.cookie-modal__close:hover {
  background: var(--border);
}

.cookie-modal__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cookie-cat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.cookie-cat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-cat__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading);
}

.cookie-cat__badge {
  font-size: 0.6875rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.cookie-cat__badge--always {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.cookie-cat__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
}

.cookie-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background: var(--cta);
}

.cookie-toggle input:checked + .cookie-toggle__track::after {
  transform: translateX(20px);
}

.cookie-toggle--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

.cookie-modal__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Mobile: cookie banner + modal stacked */
@media (max-width: 767px) {
  .cookie-banner .container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .cookie-banner__actions {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 0.625rem !important;
  }
  .cookie-banner__actions button {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    box-sizing: border-box !important;
  }
  .cookie-modal__panel {
    width: 96%;
    padding: 1.25rem;
  }
  .cookie-modal__actions {
    flex-direction: column;
  }
  .cookie-modal__actions button {
    width: 100%;
    justify-content: center;
  }
}


/* FAQ Accordion */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item__q {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(-135deg);
}

.faq-item__q:hover {
  background: rgba(249, 115, 22, 0.04);
}

.faq-item__a {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.7;
}

.faq-item__a p {
  margin-bottom: 0.5rem;
}

.faq-item__a p:last-child {
  margin-bottom: 0;
}


/* Static content pages (terms, privacy, about) */
.static-content {
  color: var(--text);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.static-content h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 1.75rem 0 0.5rem;
}

.static-content h2:first-child {
  margin-top: 0;
}

.static-content p {
  margin-bottom: 0.75rem;
}

.static-content ul, .static-content ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
}

.static-content li {
  margin-bottom: 0.25rem;
}

.static-content a {
  color: var(--cta);
  font-weight: 600;
}


/* Dark mode: reviews popup */
[data-theme="dark"] .reviews-popup {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Period Filter (Dashboard date picker)
   ============================================ */
.period-filter {
  position: relative;
}

.period-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s;
  white-space: nowrap;
}

.period-filter__btn:hover {
  border-color: var(--cta);
}

.period-filter__btn svg {
  flex-shrink: 0;
  color: var(--text);
}

[data-theme="dark"] .period-filter__btn svg {
  color: #fff;
}

[data-theme="dark"] .period-filter__input::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.period-filter__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 100;
}

.period-filter__dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.period-filter__presets {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.period-filter__preset {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
}

.period-filter__preset:hover {
  background: rgba(249, 115, 22, 0.06);
  color: var(--cta);
}

.period-filter__preset.active {
  background: rgba(249, 115, 22, 0.1);
  color: var(--cta);
  font-weight: 700;
}

.period-filter__divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.period-filter__custom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.period-filter__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.period-filter__dates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.period-filter__input {
  flex: 1;
  font-size: 0.75rem !important;
  padding: 6px 8px !important;
}

.period-filter__sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.period-filter__apply {
  font-size: 0.75rem;
  padding: 6px 12px;
  margin-top: 0.25rem;
}

/* ============================================
   Announcement Banner (site-wide, dismissable)
   ============================================ */
.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 48px 10px 16px;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  border-bottom: 1px solid rgba(249, 115, 22, 0.3);
  min-height: 40px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.announcement-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.announcement-banner.hiding {
  transform: translateY(-100%);
  opacity: 0;
}

.announcement-banner__text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #F1F5F9;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}

.announcement-banner__text:hover {
  color: #F97316;
  text-decoration: underline;
}

.announcement-banner__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s;
}

.announcement-banner__close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* When banner is visible, push navbar down */
.announcement-banner.visible ~ .navbar {
  top: calc(0.75rem + 40px);
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Product Description (HTML content from WYSIWYG)
   ============================================ */
.pd-description {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text);
}

.pd-description p {
  margin: 0 0 0.75rem;
}

.pd-description p:last-child {
  margin-bottom: 0;
}

.pd-description ul,
.pd-description ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
  padding: 0;
}

.pd-description li {
  margin-bottom: 0.25rem;
}

.pd-description h2,
.pd-description h3,
.pd-description h4 {
  margin: 1rem 0 0.5rem;
  font-weight: 700;
  color: var(--text-heading);
}

.pd-description h2 { font-size: 1.25rem; }
.pd-description h3 { font-size: 1.125rem; }
.pd-description h4 { font-size: 1rem; }

.pd-description a {
  color: var(--cta);
  text-decoration: underline;
}

.pd-description strong,
.pd-description b {
  font-weight: 700;
}

.pd-description blockquote {
  border-left: 3px solid var(--cta);
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   Quill WYSIWYG Editor — Global styles
   ============================================ */
#quill-editor {
  position: relative;
}

.quill-wrapper {
  max-height: 460px;
  overflow: hidden;
}

#quill-editor .ql-editor {
  min-height: 120px;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.875rem;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#quill-editor .ql-editor::-webkit-scrollbar {
  width: 4px;
}

#quill-editor .ql-editor::-webkit-scrollbar-track {
  background: transparent;
}

#quill-editor .ql-editor::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.ql-toolbar.ql-snow {
  border-color: var(--border) !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

#quill-editor.ql-container.ql-snow,
.ql-container.ql-snow {
  border-color: var(--border) !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 420px;
  overflow: hidden;
}

#quill-editor .ql-editor.ql-blank::before {
  color: var(--text-muted);
  font-style: normal;
}

[data-theme="dark"] .ql-toolbar.ql-snow {
  background: var(--surface);
}

[data-theme="dark"] .ql-toolbar .ql-stroke {
  stroke: #fff !important;
}

[data-theme="dark"] .ql-toolbar .ql-fill {
  fill: #fff !important;
}

[data-theme="dark"] .ql-toolbar .ql-picker-label {
  color: #fff !important;
}

[data-theme="dark"] .ql-toolbar .ql-picker-item {
  color: #fff;
}

[data-theme="dark"] .ql-toolbar .ql-picker-options {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] #quill-editor .ql-editor {
  color: #fff;
}

[data-theme="dark"] .ql-toolbar button:hover .ql-stroke,
[data-theme="dark"] .ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--cta) !important;
}

[data-theme="dark"] .ql-toolbar button:hover .ql-fill,
[data-theme="dark"] .ql-toolbar button.ql-active .ql-fill {
  fill: var(--cta) !important;
}

[data-theme="dark"] .ql-toolbar .ql-picker-label:hover,
[data-theme="dark"] .ql-toolbar .ql-picker-label.ql-active {
  color: var(--cta) !important;
}

[data-theme="dark"] .ql-snow .ql-picker.ql-expanded .ql-picker-label {
  color: var(--cta) !important;
}

[data-theme="dark"] .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
  stroke: var(--cta) !important;
}
