/* WordPress and WooCommerce output that the mockup did not cover. */

/* Header search panel */
.header-search { border-top: 1px solid var(--line); background: #fff; }
.header-search[hidden] { display: none; }
.header-search .container { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.header-search .icon { color: var(--muted); }
.header-search input[type="search"] { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 17px; padding: 10px 0; background: transparent; }
.header-search input:focus { outline: none; }

/* Editor content */
.entry-content { max-width: 760px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; list-style: revert; }
.entry-content img { border-radius: 8px; }
.entry-list { display: grid; gap: 28px; }
@media (min-width: 900px) { .entry-list { grid-template-columns: repeat(3, 1fr); } }
.entry-card h2 { font-size: 20px; margin: 6px 0 8px; }
.entry-card__img img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 20px; padding: 14px 18px;
  border-radius: 8px; background: var(--stone); font-size: 14px; color: var(--ink);
}
.woocommerce-message { background: #EEF5F0; }
.woocommerce-error { background: #F6E3DF; color: #7A2A1E; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.woocommerce-error li + li { margin-top: 4px; }

/* Generic WooCommerce buttons that templates did not restyle */
.woocommerce .button:not(.add_to_cart_button):not(.btn), .woocommerce button.button:not(.btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.woocommerce .button.alt { background: var(--ink); }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .45; cursor: not-allowed; }

/* Generic WooCommerce form rows */
.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 14px; }
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; }
.woocommerce form .form-row .required { color: var(--sale); text-decoration: none; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-input-wrapper input, .select2-container .select2-selection {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #D6D3CC; border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: var(--sale); }

/* Pagination from WordPress core */
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; }
.nav-links .current { background: var(--ink); color: #fff; }

/* 404 */
.notfound .container { max-width: 640px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.notfound__search { display: flex; gap: 8px; width: 100%; max-width: 460px; }
.notfound__search input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border: 1px solid #D6D3CC; border-radius: 999px; }

/* Newsletter done state */
.news-done { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 10px; background: #EEF5F0; color: #2F7A55; font-weight: 500; }
.news-done .icon { width: 20px; height: 20px; }

/* Admin bar offset for the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

/* WooCommerce adds a "View cart" link after AJAX add; the toast already confirms it. */
ul.products .added_to_cart { display: none !important; }

/* Distraction-free checkout: keep only the bottom bar of the footer. */
.page-checkout .ft-top, .page-checkout .ft-mid { display: none; }
