/* Storefront hardening overrides.
   Loaded after webstore.css/webstore-bootstrap.css so this file can tighten tenant-neutral
   typography, responsive behavior and accessibility without duplicating the base theme. */

:root {
    --ws-font-serif: var(--ws-font-sans);
    --ws-font-sans: Arial, Helvetica, sans-serif;
    --bs-font-sans-serif: var(--ws-font-sans);
    --bs-body-font-family: var(--ws-font-sans);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.6;
}

html,
body,
button,
input,
textarea,
select {
    font-family: var(--ws-font-sans);
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

.ws-hero h1,
.ws-section h1,
.ws-section h2,
.ws-editorial-card h2,
.ws-product-body h3,
.ws-article-detail h1,
.ws-forum-thread-detail h1,
.ws-empty-state h3,
.ws-product-media span,
.ws-heritage-card strong {
    font-family: var(--ws-font-serif);
    font-kerning: normal;
}

.ws-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.ws-main {
    flex: 1 0 auto;
}

.ws-header {
    padding: 10px 14px;
}

.ws-header .ws-brand-mark {
    width: 42px;
    height: 42px;
}

.ws-nav .nav-link.active,
.ws-nav .nav-link[aria-current="page"] {
    background: rgba(217, 119, 6, .12);
    color: var(--ws-text);
    font-weight: 700;
}

.ws-form-field {
    display: grid;
    gap: 7px;
}

.ws-form-field > label,
.ws-checkout-form .form-label {
    font-weight: 700;
    color: var(--ws-text);
}

.ws-form-field > input,
.ws-password-field > input,
.ws-lookup-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--ws-border);
    background: rgba(255, 255, 255, .78);
    border-radius: 999px;
    padding: 0 18px;
}

.ws-password-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.ws-password-toggle {
    min-height: 48px;
    min-width: 72px;
    border: 1px solid var(--ws-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--ws-text);
}

.ws-form-message,
.ws-inline-alert {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid rgba(217, 119, 6, .28);
    border-radius: 16px;
    background: rgba(255, 251, 235, .8);
}

.ws-inline-alert {
    display: grid;
    gap: 4px;
}

.ws-inline-alert-error {
    border-color: rgba(220, 38, 38, .28);
    background: rgba(254, 242, 242, .72);
}

.ws-lookup-card {
    min-height: 270px;
}

.ws-lookup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    max-width: 760px;
}

.ws-lookup-form small {
    line-height: 1.5;
}

.ws-chip.active,
.ws-chip[aria-pressed="true"] {
    border-color: var(--ws-primary);
    color: var(--ws-text);
    background: rgba(217, 119, 6, .10);
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid var(--ws-primary);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .ws-header {
        border-radius: 28px;
    }

    .ws-header .navbar-collapse {
        width: 100%;
        padding-top: 10px;
    }

    .ws-header .navbar-nav {
        align-items: stretch !important;
    }

    .ws-nav .nav-link {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .ws-stepper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-stepper li {
        min-width: 0;
    }

    .ws-lookup-form {
        grid-template-columns: 1fr;
    }

    .ws-lookup-form .ws-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .ws-stepper {
        grid-template-columns: 1fr;
    }

    .ws-brand small {
        display: none;
    }

    .ws-password-field {
        grid-template-columns: 1fr;
    }

    .ws-password-toggle {
        width: 100%;
    }
}

/* Vietnamese typography: generous line boxes for stacked accents.
   Native fonts keep text available without an external font request. */
body {
    font-size: 1rem;
    line-height: 1.6;
}

button,
input,
textarea,
select,
.form-control,
.form-select,
.btn {
    font-family: var(--ws-font-sans);
    font-size: 1rem;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
.ws-hero h1,
.ws-section h1,
.ws-section h2,
.ws-editorial-card h2,
.ws-product-body h3,
.ws-article-detail h1,
.ws-forum-thread-detail h1,
.ws-heritage-card strong {
    font-family: var(--ws-font-sans);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    overflow-wrap: break-word;
}

.ws-hero h1 {
    line-height: 1.2;
    font-size: clamp(2rem, 4vw, 3rem);
}

.ws-eyebrow {
    font-family: Arial, Helvetica, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    font-size: .8125rem;
    line-height: 1.6;
}

.ws-field-error,
.ws-footer-bottom,
.ws-brand small {
    line-height: 1.6;
}

.ws-article-detail p,
.ws-editorial-card p,
.ws-forum-reply p {
    line-height: 1.75;
}

@media (max-width: 520px) {
    .ws-hero h1 { font-size: clamp(1.75rem, 7vw, 2rem); }
}

/* Shared sizes for storefront, account and administration headings. */
.ws-section h1,
.ws-account-content > h1,
.ws-article-detail h1,
.ws-forum-thread-detail h1 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

.ws-section h2,
.ws-editorial-card h2,
.ws-cart-header h2 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

.ws-product-body h3,
.ws-empty-state h3 {
    font-size: 1.25rem;
}

.ws-heritage-card strong {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.ws-brand small,
.ws-field-error,
.ws-footer-bottom {
    font-size: .875rem;
}

@media (max-width: 520px) {
    .ws-product-body h3 { font-size: 1.125rem; }
}

/* Footer labels and links: stable Vietnamese glyph spacing. */
.ws-footer-col .ws-eyebrow {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
}

.ws-footer-col li,
.ws-footer-col a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: normal;
}

/* Login premium-light: retains the existing layout and brand palette. */
.ws-login-card {
    width: min(100%, 460px);
    padding: clamp(24px, 3.5vw, 34px);
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(120, 113, 108, .18);
    box-shadow: 0 22px 60px rgba(28, 25, 23, .07);
}
.ws-login-card h1 { margin: 0 0 20px; font-size: clamp(1.5rem, 3vw, 1.8rem); line-height: 1.3; }
.ws-login-card .ws-form-field { margin-bottom: 16px; }
.ws-login-card .ws-form-field > input,
.ws-login-card .ws-login-password-field > input {
    min-height: 52px;
    border-radius: 16px;
    border-color: rgba(120, 113, 108, .22);
    background: #fff;
}
.ws-login-card .ws-form-field input:focus-visible {
    outline: 3px solid var(--ws-primary);
    outline-offset: 2px;
}
.ws-login-password-field {
    display: block;
    position: relative;
}
.ws-login-password-field > input {
    display: block;
    width: 100%;
    padding-right: 58px;
}
.ws-login-password-field .ws-login-eye {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ws-muted);
    cursor: pointer;
}
.ws-login-password-field .ws-login-eye:hover { background: rgba(217, 119, 6, .08); color: var(--ws-primary); }
.ws-login-password-field .ws-login-eye:focus-visible { outline: 2px solid var(--ws-primary); outline-offset: 1px; }
.ws-login-card > .ws-btn-primary { width: 100%; border-radius: 999px; font-weight: 700; }
.ws-login-card .ws-form-message { border-radius: 14px; line-height: 1.5; }
.ws-login-card > .ws-muted:last-child { margin: 14px 0 0; text-align: center; }
@media (max-width: 520px) {
    .ws-login-card { padding: 24px 20px; border-radius: 24px; }
}

/* Vietnamese heading rendering: no synthetic case conversion or tracking.
   Tahoma is a native Windows font with reliable Vietnamese glyph metrics. */
:root {
    --ws-font-heading-vi: Tahoma, "Segoe UI", Arial, sans-serif;
}
.ws-hero h1,
.ws-section h1,
.ws-section h2,
.ws-editorial-card h2,
.ws-product-body h3,
.ws-cart-header h2,
.ws-account-content h1,
.ws-heritage-card strong {
    font-family: var(--ws-font-heading-vi);
    font-kerning: normal;
    letter-spacing: 0;
    text-rendering: auto;
}
.ws-eyebrow,
.ws-footer-col .ws-eyebrow,
.ws-hero .ws-eyebrow {
    font-family: var(--ws-font-heading-vi);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
    text-rendering: auto;
}
.ws-hero .ws-eyebrow {
    color: var(--ws-primary);
    margin-bottom: 12px;
}
.ws-footer-col .ws-eyebrow {
    font-size: 14px;
    margin-bottom: 12px;
}
