/* BajaTech – WordPress/WooCommerce-only styles (the mockup doesn't load this file). Mobile-first. */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.added_to_cart.wc-forward { display: none !important; }
.card__add.loading { opacity: .5; pointer-events: none; }
.card .woocommerce-loop-product__link { display: contents; }
.price del { color: var(--muted); font-weight: 500; margin-right: 4px; }
.price ins { text-decoration: none; }
.pdp__price .from { font: 500 15px/1 var(--f-body); color: var(--muted); }
.pdp__price .price, .pdp__price [data-pdp-price-amount] { font: inherit; color: inherit; }
.pdp__short p { margin: 0 0 .6em; }

/* Cart drawer: WooCommerce replaces .widget_shopping_cart_content on every fragment refresh */
.panel .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel .widget_shopping_cart_content .panel__body { flex: 1; }
.line-item__img { width: 76px; height: 76px; }
.qty input[readonly] { pointer-events: none; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { list-style: none; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--sand); color: var(--ink); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.woocommerce-error { background: #fdeee6; }
.woocommerce-message { background: #e3f3ea; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; font-weight: 700; text-decoration: underline; }

/* ---------- Product page: add-to-cart form ---------- */
.buy-wrap { margin: 18px 0 14px; }
.pdp form.cart { display: grid; gap: 10px; }
.pdp form.cart:not(.variations_form), .pdp .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch; }
.pdp .single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; transition: background .2s, opacity .2s; }
.pdp .single_add_to_cart_button:hover { background: var(--ink-2); }
.pdp .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.pdp .single_add_to_cart_button.loading { opacity: .6; }
.pdp .single_add_to_cart_button::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8L5 8Z'/%3E%3Cpath d='M9 10V7a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.2a2 2 0 0 1-2 1.8H8.2a2 2 0 0 1-2-1.8L5 8Z'/%3E%3Cpath d='M9 10V7a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 52px; }
.quantity .qty__btn { width: 44px; height: 100%; display: grid; place-items: center; color: var(--ink); }
.quantity input.qty { width: 38px; text-align: center; border: 0; font-weight: 600; font-size: 16px; background: transparent; -moz-appearance: textfield; padding: 0; }
.quantity input.qty::-webkit-inner-spin-button, .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity:has(input[type="hidden"]) { display: none; }
.pdp table.variations.is-enhanced { display: none; }
.pdp table.variations { width: 100%; border-collapse: collapse; }
.pdp table.variations th, .pdp table.variations td { text-align: left; padding: 6px 0; }
.pdp .reset_variations { display: none !important; }
.pdp .woocommerce-variation-price { display: none; }
.pdp .woocommerce-variation-availability p, .pdp p.stock { margin: 0; font-size: 14px; }
.pdp p.stock.out-of-stock { color: var(--red); font-weight: 600; }
.pdp .woocommerce-variation-description p { font-size: 14px; color: var(--muted); }
.pdp .opt { margin: 4px 0 6px; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.entry img { border-radius: 12px; }
.acc .entry { font-size: 15px; }
.acc .entry ul { padding-left: 20px; list-style: disc; margin: 0 0 1em; }

/* ---------- Shop ---------- */
.sort-form { display: contents; }
.filter-form__foot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); margin: 16px -20px -16px; }
.filters .filter-form .filter-group:first-child { border-top: 0; }
.load-more a { margin-top: 4px; }

/* ---------- Text pages, blog ---------- */
.page { padding-bottom: 24px; }
.entry { max-width: 760px; font-size: 16px; }
.entry--wide { max-width: none; }
.entry h2 { font-size: 26px; margin: 1.4em 0 .5em; font-stretch: 106%; }
.entry h3 { font-size: 20px; margin: 1.2em 0 .4em; }
.entry ul, .entry ol { padding-left: 22px; margin: 0 0 1em; }
.entry ul { list-style: disc; }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.post__hero { margin: 0 0 24px; border-radius: var(--r); overflow: hidden; }
.post__hero img { width: 100%; }
.stories--grid { grid-auto-flow: row; grid-template-columns: 1fr; margin: 0; padding: 0; overflow: visible; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Cart / Checkout blocks: BajaTech look ---------- */
.page--shop .wc-block-components-button:not(.is-link), .page--shop .wc-block-cart__submit-button, .page--shop .wc-block-components-checkout-place-order-button {
	background: var(--ink) !important; color: #fff !important; border-radius: 999px !important; min-height: 54px; font-weight: 600 !important; border: 0 !important; }
.page--shop .wc-block-components-button:not(.is-link):hover { background: var(--ink-2) !important; }
.page--shop .wc-block-components-text-input input, .page--shop .wc-block-components-combobox .components-combobox-control__input, .page--shop .wc-blocks-components-select__select, .page--shop .wc-block-components-textarea {
	border-radius: var(--r-s) !important; border: 1.5px solid var(--line) !important; font-size: 16px !important; }
.page--shop .wc-block-components-text-input.is-active input, .page--shop .wc-block-components-text-input input:focus { border-color: var(--ink) !important; box-shadow: none !important; }
.page--shop .wc-block-components-sidebar .wc-block-components-panel, .page--shop .wp-block-woocommerce-checkout-order-summary-block, .page--shop .wc-block-cart__sidebar > *:first-child { background: var(--sand); border-radius: 18px; }
.page--shop .wp-block-woocommerce-checkout-order-summary-block { padding: 8px 16px; border: 0 !important; }
.page--shop .wc-block-components-title, .page--shop .wc-block-components-checkout-step__title { font-family: var(--f-display) !important; font-weight: 800 !important; color: var(--ink); }
.page--shop .wc-block-components-radio-control__option, .page--shop .wc-block-components-radio-control-accordion-option { border-radius: 12px !important; }
.page--shop .wc-block-components-product-name { font-weight: 600; color: var(--ink); }
.page--shop .wc-block-components-totals-footer-item { font-size: 18px; }
.page--shop .wc-block-cart-items__header { font-size: 12px; letter-spacing: .1em; }
.page--shop .wc-block-components-quantity-selector { border-radius: 999px !important; }
.page--shop .wp-block-woocommerce-empty-cart-block .wp-block-heading { font-family: var(--f-display); }

/* My account */
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 12px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select { min-height: 50px; padding: 12px 14px; font-size: 16px; border: 1.5px solid var(--line); border-radius: var(--r-s); }
.woocommerce .button, .woocommerce button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; border: 0; cursor: pointer; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }

@media (min-width: 640px) {
	.stories--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.stories--grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
	.woocommerce-MyAccount-navigation { margin-bottom: 8px; }
}
