/**
 * Classic Threads — WordPress/WooCommerce glue styles.
 *
 * Maps WordPress and WooCommerce output onto the design's tokens and classes.
 * The design stylesheets (style.css, responsive.css) are never modified here —
 * this file only styles markup that WordPress/WooCommerce generate.
 */

/* ------------------------------------------------------------------ */
/* Announcement bar: secondary message                                 */
/* ------------------------------------------------------------------ */

.announcement-bar .announcement-secondary {
  opacity: 0.75;
}

/* ------------------------------------------------------------------ */
/* Breadcrumbs (WordPress-rendered)                                    */
/* ------------------------------------------------------------------ */
/* .breadcrumbs is styled by the design CSS; nothing needed. */

/* ------------------------------------------------------------------ */
/* Pagination                                                          */
/* ------------------------------------------------------------------ */

.gt-pagination {
  margin-top: 3rem;
  text-align: center;
}
.gt-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.gt-pagination a.page-numbers:hover {
  border-color: var(--color-gold);
}
.gt-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.gt-pagination .page-numbers.dots {
  border: 0;
  background: transparent;
}

/* ------------------------------------------------------------------ */
/* WooCommerce notices                                                 */
/* ------------------------------------------------------------------ */

.woocommerce-notices-wrapper {
  margin-bottom: 1.5rem;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  background: var(--color-surface);
  border-radius: var(--radius-xs);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  list-style: none;
}
.woocommerce-error {
  border-left-color: #a33;
}
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  color: var(--color-gold-dark, var(--color-gold));
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Editor content                                                      */
/* ------------------------------------------------------------------ */

.gt-page-content {
  max-width: 820px;
  margin: 0 auto;
}
.gt-page-content h2,
.gt-page-content h3,
.gt-page-content h4 {
  margin: 2rem 0 1rem;
}
.gt-page-content p,
.gt-page-content ul,
.gt-page-content ol {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.gt-page-content ul,
.gt-page-content ol {
  padding-left: 1.5rem;
}
.gt-page-content a {
  color: var(--color-gold-dark, var(--color-gold));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gt-page-content img {
  border-radius: var(--radius-xs);
  height: auto;
}
.gt-page-content blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 1.15rem;
}

/* ------------------------------------------------------------------ */
/* Journal / post list                                                 */
/* ------------------------------------------------------------------ */

.gt-post-list {
  display: grid;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.gt-post-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}
.gt-post-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.gt-post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  display: block;
}
.gt-post-body h2 {
  font-size: 1.6rem;
  margin: 0.5rem 0 0.75rem;
}
.gt-post-body h2 a {
  color: inherit;
  text-decoration: none;
}
.gt-post-body h2 a:hover {
  color: var(--color-gold-dark, var(--color-gold));
}
.gt-post-body p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .gt-post-item {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* Empty states                                                        */
/* ------------------------------------------------------------------ */

.gt-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------ */
/* Product detail: WordPress-specific bits                             */
/* ------------------------------------------------------------------ */

.pdp-sku {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}
.pdp-stock-badge--out {
  background: #f5e6e6;
  color: #8a2b2b;
  border-color: #e0bcbc;
}

/* Native WC variation price/availability injected by wc-add-to-cart-variation.js */
.single_variation_wrap {
  margin-bottom: 1rem;
}
.woocommerce-variation-price {
  font-size: 1.35rem;
  font-family: var(--font-serif, Georgia, serif);
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.woocommerce-variation-availability {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.woocommerce-variation-availability .stock {
  color: var(--color-emerald, #2e6b4f);
}

/* Disabled add-to-bag until options are chosen */
#pdpAddBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Fallback native add-to-cart (grouped/external types) */
.pdp-buy--native .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: var(--color-gold);
  color: #fff;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}
.pdp-buy--native .single_add_to_cart_button:hover {
  background: var(--color-gold-dark, var(--color-primary));
}
.pdp-buy--native .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
}
.pdp-buy--native .quantity .qty {
  width: 4rem;
  padding: 0.9rem 0.5rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* Mini-cart: disabled checkout when empty                              */
/* ------------------------------------------------------------------ */

.cart-checkout-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Footer menus (WordPress-rendered)                                   */
/* ------------------------------------------------------------------ */
/* .footer-links and .footer-bottom-links are styled by the design CSS.
/* WordPress menu <li> items inherit those styles automatically. */

/* ------------------------------------------------------------------ */
/* Variation selection: WooCommerce toggles these classes (not the      */
/* disabled attribute) on the add-to-bag button.                       */
/* ------------------------------------------------------------------ */

.btn.disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
