/* Scrollbar hide for category pills and active tags */
#odonata-category-pills::-webkit-scrollbar,
#odonata-active-tags::-webkit-scrollbar {
  display: none;
}
#odonata-category-pills,
#odonata-active-tags {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-scroll {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}
.filter-scroll::-webkit-scrollbar {
  width: 6px;
}
.filter-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.filter-scroll::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 0;
}

/* Drawer transition */
#odonata-filter-drawer {
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Ensure backdrop is above everything */
#odonata-drawer-backdrop {
  z-index: 49;
}
#odonata-filter-drawer {
  z-index: 50;
}

/* Override Storefront's float grid */
.odonata-shop-template ul.products {
    display: grid;
    float: none;
}
.odonata-shop-template ul.products::before,
.odonata-shop-template ul.products::after {
    display: none;
}
.odonata-shop-template ul.products li.product {
    width: 100%;
    float: none;
    margin: 0;
    clear: none;
}

/* Drawer hidden by default (CSS-based, not Tailwind utility) */
#odonata-filter-drawer {
  transform: translateY(100%);
}
#odonata-filter-drawer.drawer-open {
  transform: translateY(0);
}

/* Pagination */
.woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-pagination ul.page-numbers li {
  margin: 0;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--card));
}
.woocommerce-pagination ul.page-numbers li a:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--primary) / 0.3);
  color: hsl(var(--primary));
}
.woocommerce-pagination ul.page-numbers li span.current {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.woocommerce-pagination ul.page-numbers li a.next,
.woocommerce-pagination ul.page-numbers li a.prev {
  font-size: 1rem;
  font-weight: 600;
}

/* Hide Storefront sorting wrapper around pagination */
.storefront-sorting {
  display: contents;
}

/* ─── Cart: WooCommerce quantity input pill styling ─────────────────────── */
.odonata-qty-wrap .quantity {
  display: flex;
  align-items: center;
  gap: 0;
}
.odonata-qty-wrap .quantity input.qty {
  width: 2rem;
  height: auto;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
  box-shadow: none;
}
.odonata-qty-wrap .quantity input.qty::-webkit-outer-spin-button,
.odonata-qty-wrap .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.odonata-qty-wrap .quantity .minus,
.odonata-qty-wrap .quantity .plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.odonata-qty-wrap .quantity .minus:hover,
.odonata-qty-wrap .quantity .plus:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}
.odonata-qty-wrap .quantity .minus:focus,
.odonata-qty-wrap .quantity .plus:focus {
  outline: none;
  box-shadow: none;
}

/* ─── Checkout: WooCommerce form field styling ───────────────────────────── */
/* Override WC float layout to work with Tailwind grid */
.woocommerce-checkout .form-row {
  margin: 0;
  padding: 0;
  float: none !important;
  width: auto !important;
  clear: none !important;
}
.woocommerce-checkout .form-row::before,
.woocommerce-checkout .form-row::after {
  display: none !important;
}
.woocommerce-checkout .form-row .woocommerce-input-wrapper {
  display: block;
}
.woocommerce-checkout .form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
}
.woocommerce-checkout .form-row .required {
  color: hsl(var(--destructive));
}
/* Strip NoticeGroup wrapper — show notices inline */
.woocommerce-NoticeGroup-checkout,
.woocommerce-NoticeGroup-updateOrderReview {
  margin: 0;
  padding: 0;
}
/* Payment method radio - hide native radio, style label as button */
.woocommerce-checkout ul.wc_payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-checkout ul.wc_payment_methods li {
  margin-bottom: 0.5rem;
}
.woocommerce-checkout ul.wc_payment_methods input.input-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* Terms checkbox */
.woocommerce-checkout #terms {
  width: auto;
  margin-right: 0.5rem;
}
.woocommerce-checkout .woocommerce-terms-and-conditions {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
/* Payment fields container */
.woocommerce-payment-fields .form-row {
  margin-top: 0.75rem;
}
/* Order review table styling */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
  padding: 0.5rem 0;
  border: none;
  font-size: 0.875rem;
}
.woocommerce-checkout-review-order-table tr.cart-subtotal td,
.woocommerce-checkout-review-order-table tr.cart-discount td,
.woocommerce-checkout-review-order-table tr.shipping td,
.woocommerce-checkout-review-order-table tr.order-total td {
  border-top: 1px solid hsl(var(--border));
}
/* WC notice styling */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  border-radius: 0;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  list-style: none;
}
.woocommerce .woocommerce-error {
  border-color: hsl(var(--destructive) / 0.3);
  background: hsl(var(--destructive) / 0.05);
  color: hsl(var(--destructive));
}
.woocommerce .woocommerce-info {
  border-color: hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--foreground));
}
.woocommerce .woocommerce-message {
  border-color: hsl(var(--primary) / 0.3);
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--foreground));
}

/* Archive/brand description — legacy prod content carries inline centering
   (aligncenter imgs, text-align:center paragraphs) which reads lopsided inside
   the left-aligned max-w-2xl column. Normalize to left-aligned flow. */
.odonata-archive-desc p,
.odonata-archive-desc div {
  text-align: left !important;
}
.odonata-archive-desc img {
  display: block;
  margin: 0 0 0.75rem;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
