/* ─────────────────────────────────────────────────────────────────────────────
   TEDUCAS Core — WooCommerce Custom Styles
   Migrado de hello-elementor-child/style.css
   ───────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────────
   CASCADE STRATEGY (READ BEFORE "HELPFULLY" CHANGING THIS FILE)

   This sheet is meant to be the TOP override for WooCommerce's own CSS:
     - It loads AFTER WooCommerce's styles because the enqueue in
       WooCommerceIntegration.php declares `woocommerce-general`,
       `woocommerce-layout` and `woocommerce` as dependencies.
     - It wins equal-specificity conflicts by SOURCE ORDER (later wins).

   IMPORTANT — Do NOT wrap this file in CSS `@layer`:
     In the CSS cascade, un-layered rules BEAT layered rules (unless the
     layered rule also uses `!important`). WooCommerce does not put its
     styles in a layer, so if we layered this file, our rules would LOSE to
     WooCommerce's un-layered CSS. That's the wrong direction for an override
     sheet. Load order + specificity are the correct, safe approach.

   `!important` limitation:
     WooCommerce core CSS uses `!important` on a few declarations. A normal
     declaration CANNOT override another `!important` declaration. The plugin
     intentionally avoids `!important` (removed in 1.4.1), so the selectors
     below never win against the corresponding Woo `!important` rules unless a
     client theme supplies a higher-specificity `!important`. Known WC
     `!important` declarations (see WooCommerce `assets/css/woocommerce.css`
     and `woocommerce-layout.css`):
       - `.woocommerce button.button.alt` background/border
         → our `.woocommerce .button.alt` cannot override its `!important`.
       - `span.onsale` background/border/color (and pointer-events)
         → our `.woocommerce span.onsale` cannot override those.
       - `.woocommerce .quantity .qty` background (uses `!important`)
         → our `.quantity .qty` cannot override that background.
       - pagination `ul.page-numbers` background/border on some layouts.
     These are accepted limitations unless a client theme overrides them.
   ───────────────────────────────────────────────────────────────────────────── */

/* Ancho campos carrito */
.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1 {
    float: left;
    width: 100%;
}

/* Ancho caja cupón */
.woocommerce #content table.cart td.actions .input-text, .woocommerce table.cart td.actions .input-text, .woocommerce-page #content table.cart td.actions .input-text, .woocommerce-page table.cart td.actions .input-text {
    width: 50%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WOOCOMMERCE — UNIVERSAL FORM FIELD SYSTEM
   Input / Select nativo / Select2 / Textarea / Quantity / Radio / Checkbox
   ───────────────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────────────
   Design tokens — grayscale palette (white / black / gray)
   All colors below are centralized here; the rest of the file references them
   via var(--teducas-*). No Elementor global tokens, no hardcoded accents.
   ───────────────────────────────────────────────────────────────────────────── */
.woocommerce,
.woocommerce-page {
    /* Typography */
    --teducas-field-font: "Inter", sans-serif;
    --teducas-field-size: 14px;
    --teducas-field-pad: 10px 14px;
    --teducas-field-radius: 8px;

    /* Neutral / grayscale palette */
    --teducas-primary: #111111;
    --teducas-primary-contrast: #FFFFFF;
    --teducas-text: #27272A;
    --teducas-text-muted: #71717A;
    --teducas-text-placeholder: #7A7A84;
    --teducas-bg: #FFFFFF;
    --teducas-bg-subtle: #F4F4F5;
    --teducas-bg-hover: #FAFAFA;
    --teducas-border: #E4E4E7;

    /* Field aliases (kept for backward compat) */
    --teducas-field-color: var(--teducas-text);
    --teducas-field-bg: var(--teducas-bg);
    --teducas-field-border: var(--teducas-border);

    /* Semantic: success (green) */
    --teducas-success-bg: #f0fdf4;
    --teducas-success-border: #22c55e;
    --teducas-success-text: #15803d;
    --teducas-success-link: #16a34a;
    --teducas-success-link-hover: #14532d;

    /* Semantic: info (blue) */
    --teducas-info-bg: #eff6ff;
    --teducas-info-link: #3b82f6;
    --teducas-info-text: #1d4ed8;

    /* Semantic: danger / error (red) */
    --teducas-danger: #ef4444;
    --teducas-danger-bg: #fef2f2;
    --teducas-danger-surface: #fee2e2;
    --teducas-danger-text: #b91c1c;
    --teducas-danger-link: #dc2626;
    --teducas-danger-link-hover: #7f1d1d;

    /* Effects */
    --teducas-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --teducas-shadow-focus: 0 0 0 3px rgba(17, 17, 17, 0.15);
    --teducas-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: var(--teducas-field-font);
    color: var(--teducas-field-color);
}

/* Links — grayscale base for ALL WooCommerce surfaces. The theme's reset.css
   paints `a { color:#cc3366 }` (magenta) which leaked into shop loop titles,
   login "Lost password", comment-reply, etc. Component rules further down that
   set their own link color (td.product-name a, notices a, tabs, account nav)
   have higher specificity / come later and keep overriding them fine. */
.woocommerce a:not(.button):not(.remove):not(.checkout-button):not(.wc-forward):not([class*="button"]),
.woocommerce-page a:not(.button):not(.remove):not(.checkout-button):not(.wc-forward):not([class*="button"]) {
    color: var(--teducas-text);
    text-decoration: none;
}

.woocommerce a:not(.button):not(.remove):not(.checkout-button):not(.wc-forward):not([class*="button"]):hover,
.woocommerce-page a:not(.button):not(.remove):not(.checkout-button):not(.wc-forward):not([class*="button"]):hover {
    color: var(--teducas-primary);
    text-decoration: underline;
}

/* ── 1. NATIVE INPUTS & TEXTAREAS ─────────────────────────────────────────── */

.woocommerce .input-text,
.woocommerce-page .input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"],
.woocommerce input[type="url"],
.woocommerce input[type="number"],
.woocommerce input[type="search"],
.woocommerce input[type="date"],
.woocommerce input[type="time"],
.woocommerce textarea,
.woocommerce select,
.woocommerce .col2-set .input-text,
.woocommerce .form-row .input-text,
/* Beat WooCommerce's more-specific form-row field selectors (checkout
   .form-row inputs/selects/textarea) by specificity, no !important:
     - WC `.form-row .input-text`              → (0,2,0) [padding/radius/border]
     - WC `.woocommerce form .form-row select` → (0,3,1)
     - WC `.woocommerce form .form-row textarea` → (0,3,1)
   Matching (0,3,1) ties WC's select/textarea and beats `.input-text`; being
   later in the file, a tie still resolves in our favour (source order). */
.woocommerce form .form-row .input-text,
.woocommerce-page form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-page form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row textarea {
    font-family: var(--teducas-field-font);
    font-size: var(--teducas-field-size);
    padding: var(--teducas-field-pad);
    border: 1px solid var(--teducas-field-border);
    border-radius: var(--teducas-field-radius);
    background-color: var(--teducas-field-bg);
    color: var(--teducas-field-color);
    transition: var(--teducas-transition);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: var(--teducas-shadow);
    line-height: 1.5;
    height: auto;
    appearance: none;
    -webkit-appearance: none;
}

.woocommerce select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
}

/* Validation states — grayscale-compatible (audit #3, v1.4.9):
   INVALID fields now get a real semantic error treatment (danger border + 1px
   ring + danger bg at the FIELD level) so a failed submit is visible where the
   error is, not only via the top notice + red label. VALIDATED fields stay
   neutral (our grayscale border) so the form doesn't turn green. WC classic
   colours these via .woocommerce-invalid/.woocommerce-validated:
      - `.woocommerce form .form-row.woocommerce-invalid input.input-text`
        → (0,4,2)   (inputs — includes the `input` element)
      - `.woocommerce form .form-row.woocommerce-invalid select` → (0,3,2)
      - `.woocommerce form .form-row.woocommerce-validated
        .select2-container:not(...) .select2-selection` → (0,6,1)
   Our selectors mirror that exact structure (element + classes) so we TIE and
   win by source order (we load later). This is semantic color (~danger tokens
   = state, not brand), so the grayscale constraint holds. */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce-page form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce-page form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid textarea,
.woocommerce-page form .form-row.woocommerce-invalid textarea {
    border-color: var(--teducas-danger);
    box-shadow: 0 0 0 1px var(--teducas-danger);
    background-color: var(--teducas-danger-bg);
}

.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce-page form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select,
.woocommerce-page form .form-row.woocommerce-validated select,
.woocommerce form .form-row.woocommerce-validated textarea,
.woocommerce-page form .form-row.woocommerce-validated textarea {
    border-color: var(--teducas-field-border);
    box-shadow: var(--teducas-shadow);
    background-color: var(--teducas-field-bg);
}

/* Visible Select2 (e.g. country/state): same treatment — invalid → danger,
   validated → neutral. WC's own rule (0,6,1) colours it red/green; mirroring
   that exact selector ties it and later source order wins for us. */
.woocommerce form .form-row.woocommerce-invalid .select2-container:not(.select2-container--open) .select2-selection,
.woocommerce-page form .form-row.woocommerce-invalid .select2-container:not(.select2-container--open) .select2-selection {
    border-color: var(--teducas-danger);
    box-shadow: 0 0 0 1px var(--teducas-danger);
}

.woocommerce form .form-row.woocommerce-validated .select2-container:not(.select2-container--open) .select2-selection,
.woocommerce-page form .form-row.woocommerce-validated .select2-container:not(.select2-container--open) .select2-selection {
    border-color: var(--teducas-field-border);
    box-shadow: var(--teducas-shadow);
}

.woocommerce .input-text:focus,
.woocommerce-page .input-text:focus,
.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="password"]:focus,
.woocommerce input[type="tel"]:focus,
.woocommerce input[type="url"]:focus,
.woocommerce input[type="number"]:focus,
.woocommerce input[type="search"]:focus,
.woocommerce input[type="date"]:focus,
.woocommerce input[type="time"]:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
/* Extend focus ring to checkout .form-row fields (see base rule above). Our
   `input.input-text:focus` here is (0,4,2) — it TIES WC's validation rules
   (`.woocommerce form .form-row.woocommerce-validated input.input-text`) and
   our own neutralization block above; being later in the file, a tie resolves
   in our favour, so a focused (even invalid/validated) field still shows OUR
   primary ring, not WC's `currentColor` / default red-green. */
.woocommerce form .form-row input.input-text:focus,
.woocommerce-page form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce-page form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-page form .form-row textarea:focus {
    outline: none;
    border-color: var(--teducas-primary);
    box-shadow: var(--teducas-shadow-focus);
    background-color: var(--teducas-field-bg);
}

/* Autofill override — Chrome/Safari paint yellow/blue autofill backgrounds
   that would cover our bg. The 1000px box-shadow inset acts as a giant
   "paint bucket" that neutralizes the UA's autofill fill; the long transition
   delays the UA's own background flash until the shadow layer fully covers it. */
.woocommerce input:-webkit-autofill,
.woocommerce-page input:-webkit-autofill,
.woocommerce input:-webkit-autofill:hover,
.woocommerce-page input:-webkit-autofill:hover,
.woocommerce input:-webkit-autofill:focus,
.woocommerce-page input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--teducas-field-color);
    box-shadow: 0 0 0 1000px var(--teducas-field-bg) inset;
    transition: background-color 600000s 0s;
}

/* Tap highlight — kill the gray/blue flash on iOS/Android when tapping
   form controls and buttons; matches our grayscale, non-!important design. */
.woocommerce input,
.woocommerce select,
.woocommerce textarea,
.woocommerce button,
.woocommerce a,
.woocommerce .select2-container {
    -webkit-tap-highlight-color: transparent;
}

/* ── 2. SELECT2 (WooCommerce dropdowns) ───────────────────────────────────── */

/* Hide native select when Select2 is active */
.woocommerce select.select2-hidden-accessible {
    opacity: 0;
    position: absolute;
    visibility: hidden;
    height: 0;
    width: 0;
}

/* Main Select2 container — match input height/padding */
.woocommerce .select2-container,
.woocommerce-page .select2-container,
.woocommerce-checkout .select2-container {
    font-family: var(--teducas-field-font);
    font-size: var(--teducas-field-size);
    width: 100%;
    max-width: 100%;
    min-height: 44px;
}

/* Selection bar (the visible "input" part) */
.woocommerce .select2-container--default .select2-selection--single,
.woocommerce-page .select2-container--default .select2-selection--single {
    background-color: var(--teducas-field-bg);
    border: 1px solid var(--teducas-field-border);
    border-radius: var(--teducas-field-radius);
    box-shadow: var(--teducas-shadow);
    transition: var(--teducas-transition);
    height: 44px;
    padding: 0;
    outline: none;
}

/* Selected text */
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: var(--teducas-field-font);
    font-size: var(--teducas-field-size);
    color: var(--teducas-field-color);
    line-height: 42px;
    padding: 0 36px 0 14px;
}

/* Placeholder text */
.woocommerce .select2-container--default .select2-selection--single .select2-selection__placeholder,
.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--teducas-text-placeholder);
    font-family: var(--teducas-field-font);
    font-size: var(--teducas-field-size);
}

/* Arrow indicator */
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 12px;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow b,
.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--teducas-field-border) transparent transparent transparent;
    border-width: 5px 5px 0 5px;
}

/* Focus state */
.woocommerce .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-page .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-page .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--teducas-primary);
    box-shadow: var(--teducas-shadow-focus);
    outline: none;
}

/* Multi-select */
.woocommerce .select2-container--default .select2-selection--multiple,
.woocommerce-page .select2-container--default .select2-selection--multiple {
    background-color: var(--teducas-field-bg);
    border: 1px solid var(--teducas-field-border);
    border-radius: var(--teducas-field-radius);
    box-shadow: var(--teducas-shadow);
    min-height: 44px;
    padding: 4px 8px;
    transition: var(--teducas-transition);
}

.woocommerce .select2-container--default.select2-container--focus .select2-selection--multiple,
.woocommerce-page .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--teducas-primary);
    box-shadow: var(--teducas-shadow-focus);
}

/* Tags inside multi-select */
.woocommerce .select2-container--default .select2-selection--multiple .select2-selection__choice,
.woocommerce-page .select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-family: var(--teducas-field-font);
    font-size: 13px;
    background-color: var(--teducas-bg-subtle);
    border: 1px solid var(--teducas-border);
    border-radius: 6px;
    padding: 2px 8px;
    margin: 2px;
    color: var(--teducas-primary);
}

/* Dropdown panel */
.woocommerce .select2-dropdown,
.woocommerce-page .select2-dropdown {
    background-color: var(--teducas-field-bg);
    border: 1px solid var(--teducas-field-border);
    border-radius: var(--teducas-field-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
}

/* Dropdown items */
.woocommerce .select2-results__option,
.woocommerce-page .select2-results__option {
    font-family: var(--teducas-field-font);
    font-size: var(--teducas-field-size);
    color: var(--teducas-field-color);
    padding: 10px 14px;
    line-height: 1.4;
}

.woocommerce .select2-results__option--highlighted,
.woocommerce-page .select2-results__option--highlighted {
    background-color: var(--teducas-bg-subtle);
    color: var(--teducas-primary);
}

.woocommerce .select2-results__option[aria-selected="true"],
.woocommerce-page .select2-results__option[aria-selected="true"] {
    background-color: var(--teducas-bg-hover);
    font-weight: 600;
}

/* Close button (x) on Select2 single */
.woocommerce .select2-selection__clear,
.woocommerce-page .select2-selection__clear {
    color: var(--teducas-text-placeholder);
    font-size: 16px;
    padding: 0 4px;
    transition: color 0.15s;
}

.woocommerce .select2-selection__clear:hover,
.woocommerce-page .select2-selection__clear:hover {
    color: var(--teducas-danger);
}

/* Search input inside dropdown */
.woocommerce .select2-search--dropdown .select2-search__field,
.woocommerce-page .select2-search--dropdown .select2-search__field {
    font-family: var(--teducas-field-font);
    font-size: var(--teducas-field-size);
    padding: 8px 12px;
    border: 1px solid var(--teducas-field-border);
    border-radius: var(--teducas-field-radius);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce .select2-search--dropdown .select2-search__field:focus,
.woocommerce-page .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--teducas-primary);
    box-shadow: var(--teducas-shadow-focus);
}

/* ── 3. QUANTITY SELECTOR ─────────────────────────────────────────────────── */

.woocommerce .quantity .qty,
.woocommerce-page .quantity .qty {
    width: 80px;
    height: 44px;
    padding: 0;
    text-align: center;
    color: var(--teducas-field-color);
    background-color: var(--teducas-field-bg);
    border: 1px solid var(--teducas-field-border);
    border-radius: var(--teducas-field-radius);
    font-family: var(--teducas-field-font);
    font-size: var(--teducas-field-size);
    font-weight: 600;
    display: inline-block;
    box-shadow: var(--teducas-shadow);
}

.woocommerce .quantity .qty:focus,
.woocommerce-page .quantity .qty:focus {
    outline: none;
    border-color: var(--teducas-primary);
    box-shadow: var(--teducas-shadow-focus);
}

/* ── 4. LABELS ────────────────────────────────────────────────────────────── */

.woocommerce label,
.woocommerce-page label,
.woocommerce-checkout label,
.woocommerce .form-row label,
.woocommerce form .form-row label {
    font-family: var(--teducas-field-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--teducas-field-color);
    margin-bottom: 6px;
    display: inline-block;
}

/* Required asterisk */
.woocommerce .form-row .required,
.woocommerce-page .form-row .required {
    color: var(--teducas-danger);
}

/* ── 5. CHECKBOXES & RADIOS ───────────────────────────────────────────────── */

.woocommerce input[type="checkbox"],
.woocommerce-page input[type="checkbox"],
.woocommerce input[type="radio"],
.woocommerce-page input[type="radio"] {
    accent-color: var(--teducas-primary);
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--teducas-border);
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    transition: all 0.2s;
}

.woocommerce input[type="checkbox"]:focus,
.woocommerce input[type="radio"]:focus {
    box-shadow: var(--teducas-shadow-focus);
    border-color: var(--teducas-primary);
}

/* Accessible focus ring — we removed the focus outline from text inputs, but
   checkboxes/radios must keep a visible keyboard focus indicator (WCAG 2.1
   AA 2.4.7). `:focus-visible` shows it only for keyboard/touch, not mouse. */
.woocommerce input[type="checkbox"]:focus-visible,
.woocommerce-page input[type="checkbox"]:focus-visible,
.woocommerce input[type="radio"]:focus-visible,
.woocommerce-page input[type="radio"]:focus-visible {
    outline: 2px solid var(--teducas-primary);
    outline-offset: 2px;
}

/* ── 6. PLACEHOLDER COLOR ─────────────────────────────────────────────────── */

.woocommerce input::placeholder,
.woocommerce textarea::placeholder {
    color: var(--teducas-text-placeholder);
    opacity: 1;
}

.woocommerce input::-webkit-input-placeholder,
.woocommerce textarea::-webkit-input-placeholder {
    color: var(--teducas-text-placeholder);
    opacity: 1;
}

.woocommerce input:-ms-input-placeholder,
.woocommerce textarea:-ms-input-placeholder {
    color: var(--teducas-text-placeholder);
    opacity: 1;
}

/* 2. Buttons styling
   Specificity audit (v1.4.5):
   WC classic uses :where(body:not(...)) a.button → effective (0,2,1).
   Our selectors must be (0,2,1)+ to tie (source-order wins on tie).
   Removed low-specificity catch-alls (.woocommerce .button = 0,2,0) in
   favour of element-typed selectors that match or beat WC classic.
   Checkout button: WC classic .woocommerce-cart .wc-proceed-to-checkout
   a.checkout-button = (0,3,1), so we add "a" to reach (0,3,1). */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #payment #place_order,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce-form-login button.button,
.woocommerce-form-register button.button,
.woocommerce-form-coupon button.button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    background-color: var(--teducas-primary);
    color: var(--teducas-primary-contrast);
    border: 1px solid var(--teducas-primary);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    letter-spacing: 0.2px;
    text-transform: none;
    line-height: 1.5;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.woocommerce-form-login button.button:hover,
.woocommerce-form-register button.button:hover,
.woocommerce-form-coupon button.button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--teducas-primary);
    border-color: var(--teducas-primary);
    color: var(--teducas-primary-contrast);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce #payment #place_order:active,
.woocommerce-page a.button:active,
.woocommerce-page button.button:active,
.woocommerce-page input.button:active,
.woocommerce .wc-proceed-to-checkout a.checkout-button:active,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:active,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Secondary/Alternative WooCommerce buttons
   Specificity audit (v1.4.5):
   WC classic .woocommerce:where(...) a.button.alt → effective (0,3,1).
   Our .woocommerce .button.alt = (0,2,0) — loses.
   Fix: use element-typed selectors .woocommerce a/button/input.button.alt
   to reach (0,3,1), tying WC classic (source-order wins). */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce input.button.alt.disabled,
.woocommerce a.button.alt:disabled,
.woocommerce button.button.alt:disabled,
.woocommerce input.button.alt:disabled,
.woocommerce a.button.alt:disabled[disabled],
.woocommerce button.button.alt:disabled[disabled],
.woocommerce input.button.alt:disabled[disabled],
.woocommerce-page a.button.alt,
.woocommerce-page button.button.alt,
.woocommerce-page input.button.alt {
    background-color: var(--teducas-primary);
    border-color: var(--teducas-primary);
    color: var(--teducas-primary-contrast);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce-page a.button.alt:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce-page input.button.alt:hover {
    background-color: var(--teducas-primary);
    border-color: var(--teducas-primary);
    color: var(--teducas-primary-contrast);
}

/* Money CTAs — the two conversion actions get real presence (full width in
   their container, 16px, ≥48px tall). Loop add-to-cart stays 14px. Both
   rules are later than the base button block, so they win the tie on
   specificity/source order for these two buttons only. */
.woocommerce #payment .place-order #place_order,
.woocommerce-page #payment .place-order #place_order {
    width: 100%;
    font-size: 16px;
    padding: 14px 28px;
    min-height: 48px;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    font-size: 16px;
    padding: 14px 28px;
    min-height: 48px;
}

/* 3. Notifications / Alerts */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce-notice {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 16px 20px 16px 52px;
    margin: 0 0 24px;
    border-radius: 8px;
    border: 1px solid var(--teducas-border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    list-style: none;
    position: relative;
    display: block;
    width: auto;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: WooCommerce;
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* WooCommerce messages type customizations */
.woocommerce-message {
    background-color: var(--teducas-success-bg);
    border-left: 4px solid var(--teducas-success-border);
    color: var(--teducas-success-text);
}

.woocommerce-message a {
    color: var(--teducas-success-text);
    font-weight: 600;
}

.woocommerce-message a:hover {
    color: var(--teducas-success-link-hover);
    text-decoration: underline;
}

.woocommerce-info {
    background-color: var(--teducas-info-bg);
    border-left: 4px solid var(--teducas-info-link);
    color: var(--teducas-info-text);
}

.woocommerce-info a {
    color: var(--teducas-primary);
    font-weight: 600;
}

.woocommerce-info a:hover {
    color: var(--teducas-primary);
    text-decoration: underline;
}

.woocommerce-error {
    background-color: var(--teducas-danger-bg);
    border-left: 4px solid var(--teducas-danger);
    color: var(--teducas-danger-text);
}

.woocommerce-error a {
    color: var(--teducas-danger-link);
    font-weight: 600;
}

.woocommerce-error a:hover {
    color: var(--teducas-danger-link-hover);
    text-decoration: underline;
}

/* 3b. Password toggle, coupon toggle, empty cart */
.woocommerce .show-password-input,
.woocommerce-page .show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 4px 8px;
    margin: 0;
    background: transparent;
    border: none;
    color: var(--teducas-text-placeholder);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border-radius: 4px;
}

.woocommerce .show-password-input:hover,
.woocommerce-page .show-password-input:hover {
    color: var(--teducas-primary);
}

.woocommerce .show-password-input:focus,
.woocommerce-page .show-password-input:focus {
    outline: none;
    box-shadow: none;
}

/* Keyboard users must still get a visible ring on the password toggle — the
   `:focus` reset above is for mouse clicks; `:focus-visible` covers real
   keyboard/touch focus (WCAG 2.1 AA 2.4.7). Uses our focus language. */
.woocommerce .show-password-input:focus-visible,
.woocommerce-page .show-password-input:focus-visible {
    outline: none;
    box-shadow: var(--teducas-shadow-focus);
    border-radius: 4px;
}

.woocommerce .password-input,
.woocommerce-page .password-input {
    position: relative;
    display: block;
}

.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle {
    margin-bottom: 20px;
}

.woocommerce-info .showcoupon,
.woocommerce-info .showlogin {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.woocommerce-info .showcoupon:hover,
.woocommerce-info .showlogin:hover {
    text-decoration: underline;
}

/* Empty cart state */
.woocommerce .cart-empty,
.woocommerce-page .cart-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: var(--teducas-text-muted);
}

.woocommerce .return-to-shop .button,
.woocommerce-page .return-to-shop .button {
    font-family: var(--teducas-field-font);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    background-color: var(--teducas-primary);
    color: var(--teducas-primary-contrast);
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.woocommerce .return-to-shop .button:hover,
.woocommerce-page .return-to-shop .button:hover {
    background-color: var(--teducas-primary);
    color: var(--teducas-primary-contrast);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Purge WooCommerce lavender form borders (#CFC8D8) on login / coupon /
   register forms — keep the grayscale border + field radius everywhere. */
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-page form.checkout_coupon,
.woocommerce-page form.login,
.woocommerce-page form.register {
    border: 1px solid var(--teducas-border);
    border-radius: var(--teducas-field-radius);
}

/* 4. Tables: checkout, shop, order review, payment list */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--teducas-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    width: 100%;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot th,
.woocommerce-page table.shop_table th,
.woocommerce-page table.shop_table tbody th,
.woocommerce-page table.shop_table tfoot th {
    background-color: var(--teducas-bg-subtle);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: var(--teducas-text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--teducas-border);
    border-left: none;
    border-right: none;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table tfoot td,
.woocommerce-page table.shop_table td,
.woocommerce-page table.shop_table tfoot td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--teducas-border);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: var(--teducas-text);
    vertical-align: middle;
    border-left: none;
    border-right: none;
}

.woocommerce table.shop_table tr:last-child td,
.woocommerce-page table.shop_table tr:last-child td {
    border-bottom: none;
}

/* Style the remove button (red X). Keeps the 28px visual circle but expands
   the invisible hit area to ≥ 44px via ::before (WCAG 2.5.8 target size). */
.woocommerce a.remove,
.woocommerce-page a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--teducas-danger-surface);
    color: var(--teducas-danger);
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    position: relative;
}

.woocommerce a.remove::before,
.woocommerce-page a.remove::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}

.woocommerce a.remove:hover,
.woocommerce-page a.remove:hover {
    background-color: var(--teducas-danger);
    color: var(--teducas-primary-contrast);
    transform: scale(1.1);
}

/* Checkout: order review and payment methods */
.woocommerce-checkout #payment {
    background: var(--teducas-bg-subtle);
    border: 1px solid var(--teducas-border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding: 0;
    margin: 0 0 24px 0;
    list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 16px;
    border: 1px solid var(--teducas-border);
    background-color: var(--teducas-primary-contrast);
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: var(--teducas-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.woocommerce-checkout #payment ul.payment_methods li label {
    margin: 0 0 0 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin: 0;
    vertical-align: middle;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: var(--teducas-bg-subtle);
    color: var(--teducas-text);
    font-size: 13px;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0 0 0;
    border: 1px solid var(--teducas-border);
    line-height: 1.5;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

/* 5. Cart Page Elements */
.woocommerce table.cart td.actions {
    padding: 16px 16px;
}

.woocommerce table.cart td.actions .coupon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout table.cart td.actions .coupon .input-text,
.woocommerce table.cart td.actions .coupon .input-text,
.woocommerce-page table.cart td.actions .coupon .input-text {
    /* Border added here: WC classic's identical selector (0,5,2) paints this
       input lavender `#CFC8D8`; the base `.woocommerce input[type="text"]`
       (0,2,1) loses to it. Tying the exact WC selector and declaring the
       grayscale border wins by source order — completes the T4 lavender
       purge for the cart coupon field. */
    border: 1px solid var(--teducas-field-border);
    width: 180px;
    margin: 0;
    height: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
}

/* Product link in cart — beat theme's generic `a { color }` (e.g. magenta)
   with grayscale, keep readable and consistent with palette. */
.woocommerce td.product-name a,
.woocommerce-page td.product-name a,
.woocommerce .cart_totals td.product-name a,
.woocommerce-page .cart_totals td.product-name a {
    color: var(--teducas-text);
    text-decoration: none;
    font-weight: 600;
}

/* Cart action buttons (Update cart / Apply coupon) — neutral secondary */
.woocommerce table.cart td.actions .button,
.woocommerce-page table.cart td.actions .button {
    background-color: var(--teducas-bg-subtle);
    color: var(--teducas-text);
    border: 1px solid var(--teducas-border);
    height: 44px;
    line-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Disabled cart action buttons — WC classic's `color: inherit` is (0,3,1);
   our (0,4,1) overrides it so dark text stays on light bg, not dark-on-dark. */
.woocommerce table.cart td.actions .button:disabled,
.woocommerce-page table.cart td.actions .button:disabled {
    color: var(--teducas-text);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart totals block */
.cart_totals {
    background-color: var(--teducas-bg-subtle);
    border: 1px solid var(--teducas-border);
    border-radius: 12px;
    padding: 24px;
}

.cart_totals h2 {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--teducas-text);
}

.cart-collaterals .cart_totals table.shop_table {
    border: none;
    background: transparent;
    margin-bottom: 16px;
}

.cart-collaterals .cart_totals table.shop_table tr th,
.cart-collaterals .cart_totals table.shop_table tr td {
    padding: 12px 0;
    background: transparent;
    border-bottom: 1px solid var(--teducas-border);
}

.cart-collaterals .cart_totals table.shop_table tr.order-total th,
.cart-collaterals .cart_totals table.shop_table tr.order-total td {
    border-bottom: none;
    font-weight: 700;
    font-size: 16px;
    color: var(--teducas-text);
}

/* ── TYPOGRAPHY & HIERARCHY ─────────────────────────────────────────────────── */

/* Page / archive h1 — one consistent page-title voice across every
   WooCommerce surface (theme default h1 is bigger/looser). Generic selector
   FIRST; the more specific .product_title rule below overrides it. */
.woocommerce h1,
.woocommerce-page h1 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--teducas-text);
}

/* Single product title — owned voice (32px/600, tight tracking, 1.3 line
   height), not the theme's default h1. (0,3,1) beats the h1 rule above and
   any WC/theme default. */
.woocommerce div.product .product_title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--teducas-text);
}

/* Section headers — checkout "Billing details"/"Your order", cart totals,
   related products and My Account all speak the same 20px/600 voice. Placed
   AFTER the 18px `.cart_totals h2` rule: `.woocommerce .cart_totals h2`
   (0,2,1) beats it on specificity, and being later wins any equal-specificity
   tie (e.g. `.woocommerce-checkout h3` vs a theme h3). */
.woocommerce-checkout h3,
.woocommerce-checkout h2,
.woocommerce-account h2,
.woocommerce-account h3,
.woocommerce .cart_totals h2,
.woocommerce .related.products h2,
.woocommerce-page .related.products h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: var(--teducas-text);
}

/* Product short description — body-copy voice (15px/1.6), matching the
   MyAccount content paragraphs. */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--teducas-text);
}

/* 6. Single Product Page Components */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--teducas-primary);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.01em;
}

/* Single Product Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--teducas-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 16px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: var(--teducas-text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--teducas-primary);
    border-bottom-color: var(--teducas-primary);
    font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

/* Star rating custom colors */
.woocommerce .star-rating,
.woocommerce-page .star-rating {
    color: var(--teducas-text-muted);
}

.woocommerce p.stars a {
    color: var(--teducas-text-muted);
}

/* 7. Shop/Archive Grid elements */
.woocommerce ul.products {
    margin: 0 0 24px 0;
}

.woocommerce ul.products li.product {
    background-color: var(--teducas-primary-contrast);
    border: 1px solid var(--teducas-bg-subtle);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border-color: var(--teducas-border);
}

/* Shop loop product title — grayscale + 600, beating the theme's default h2
   weight/color. WC wraps the title in an .woocommerce-LoopProduct-link
   anchor (already gray via T1), but the visible text inherits the h2 color,
   so it must be set on the heading itself. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--teducas-text);
    font-weight: 600;
    font-size: 16px;
}

/* Shop loop price — kill WC classic's olive `#958e09` leak and match the
   single-product price language (--teducas-primary, 700). Ties WC's own
   `.woocommerce ul.products li.product .price` (0,4,1) and wins by source
   order (this sheet loads last). */
.woocommerce ul.products li.product .price {
    color: var(--teducas-primary);
    font-weight: 700;
    font-size: 16px;
}

.woocommerce ul.products li.product .price del {
    color: var(--teducas-text-muted);
    font-weight: 500;
}

/* Product badges ("Oferta!" / "Sale!") */
.woocommerce span.onsale,
.woocommerce-page span.onsale {
    background-color: var(--teducas-primary);
    color: var(--teducas-primary-contrast);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    line-height: 1;
    min-height: auto;
    min-width: auto;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: inline-flex;
    gap: 6px;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--teducas-border);
    background-color: var(--teducas-primary-contrast);
    color: var(--teducas-text);
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--teducas-primary);
    border-color: var(--teducas-primary);
    color: var(--teducas-primary-contrast);
}

/* 8. My Account navigation list, dashboard cards */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 24%;
    float: left;
    margin-right: 4%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--teducas-border);
    border-radius: 12px;
    background-color: var(--teducas-primary-contrast);
    overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--teducas-border);
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 16px;
    color: var(--teducas-text);
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--teducas-bg-subtle);
    color: var(--teducas-primary);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--teducas-bg-subtle);
    color: var(--teducas-primary);
    font-weight: 600;
    border-left: 3px solid var(--teducas-primary);
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 72%;
    float: right;
}

.woocommerce-MyAccount-content p {
    font-size: 15px;
    color: var(--teducas-text);
    line-height: 1.6;
}

/* Dashboard shortcuts cards */
.woocommerce-MyAccount-content .woocommerce-notices-wrapper + p {
    margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE / TOUCH (≤ 767px)
   Browser user-agent overrides that only make sense on small screens, plus
   overflow guards. The 767px breakpoint aligns with Elementor/Hello, and
   matches the classic mobile viewport where iOS Safari auto-zoom applies.
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    /* 16px font-size on touch fields — iOS Safari auto-zooms into any
       input/select/textarea whose computed font-size is < 16px on focus.
       Bumping the whole field system to 16px here (not just inputs) keeps
       every touch field consistent and prevents the zoom. */
    .woocommerce .input-text,
    .woocommerce-page .input-text,
    .woocommerce input[type="text"],
    .woocommerce input[type="email"],
    .woocommerce input[type="password"],
    .woocommerce input[type="tel"],
    .woocommerce input[type="url"],
    .woocommerce input[type="number"],
    .woocommerce input[type="search"],
    .woocommerce input[type="date"],
    .woocommerce input[type="time"],
    .woocommerce textarea,
    .woocommerce select,
    .woocommerce .col2-set .input-text,
    .woocommerce .form-row .input-text,
    .woocommerce form .form-row .input-text,
    .woocommerce-page form .form-row .input-text,
    .woocommerce form .form-row select,
    .woocommerce-page form .form-row select,
    .woocommerce form .form-row textarea,
    .woocommerce-page form .form-row textarea,
    .woocommerce .quantity .qty,
    .woocommerce-page .quantity .qty,
    .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered,
    .woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px;
    }

    /* Number input spinners — hide the up/down spin buttons on mobile for a
       cleaner, consistent look (Firefox + Chrome/WebKit). */
    .woocommerce input[type="number"] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

    .woocommerce input[type="number"]::-webkit-inner-spin-button,
    .woocommerce input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Touch targets — WCAG 2.5.8 / iOS HIG recommend ≥ 44px tall tap targets.
       The base button rule yields 43px at 14px font (21px line-height + 20px
       vertical padding + 2px border), so enforce a mobile-only min-height on
       the primary action buttons without changing desktop sizing. */
    .woocommerce #respond input#submit,
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button,
    .woocommerce #payment #place_order,
    .woocommerce .wc-proceed-to-checkout a.checkout-button,
    .woocommerce-page a.button,
    .woocommerce-page button.button,
    .woocommerce-page input.button {
        min-height: 44px;
    }

    /* Single product title — scale down to 26px on small screens so long
       product names don't force wrapping at 32px. Same specificity as the
       desktop rule; being later in the file it wins inside this breakpoint. */
    .woocommerce div.product .product_title {
        font-size: 26px;
    }
}
