/* ==========================================================================
   Storefront typography + buttons (2026-10-28)
   One clean app-style font (Plus Jakarta Sans), one headline scale for phone
   and desktop, and one button system. Loaded last in web/layout/default.
   Colours still come from each store's settings (--bs-primary / --bs-secondary).
   ========================================================================== */

:root {
    --sf-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-font-sans-serif: var(--sf-font) !important;
    --bs-body-font-family: var(--sf-font) !important;
    --sf-ink: #0f172a;
}

body {
    font-family: var(--sf-font) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea, .btn, .form-control, .form-select, .dropdown-menu, .offcanvas, .modal, .swal2-popup {
    font-family: inherit;
}

/* ---------- Headlines (phone first) ---------- */
h1, .h1 { font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
h2, .h2 { font-size: 21px; font-weight: 800; line-height: 1.28; letter-spacing: -.015em; }
h3, .h3 { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
h4, .h4 { font-size: 17px; font-weight: 700; line-height: 1.32; }
h5, .h5 { font-size: 15px; font-weight: 700; line-height: 1.35; }
h6, .h6 { font-size: 14px; font-weight: 700; line-height: 1.4; }

/* Section headings ("Best Selling Products", "New Arrival Products", blogs, deals ...) */
.section-title,
.theme-1 .section-title,
.theme-1 .best-product .section-heading h4,
.theme-1 .new-product .section-heading h4,
.theme-1 .featured-blog h4 {
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -.015em !important;
    text-transform: none;
}

.section-title { color: var(--sf-ink); }

/* Small label above a section heading ("Top best products", "New launching") */
.subtitle,
.theme-1 .subtitle {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase;
    line-height: 1.4;
}

@media (min-width: 768px) {
    h1, .h1 { font-size: 30px; }
    h2, .h2 { font-size: 25px; }
    h3, .h3 { font-size: 21px; }
    h4, .h4 { font-size: 18px; }
    h5, .h5 { font-size: 16px; }
    h6, .h6 { font-size: 14px; }

    .section-title,
    .theme-1 .section-title,
    .theme-1 .best-product .section-heading h4,
    .theme-1 .new-product .section-heading h4,
    .theme-1 .featured-blog h4 {
        font-size: 24px !important;
    }

    .subtitle, .theme-1 .subtitle { font-size: 12px !important; }
}

@media (min-width: 1200px) {
    h1, .h1 { font-size: 34px; }
    h2, .h2 { font-size: 28px; }

    .section-title,
    .theme-1 .section-title,
    .theme-1 .best-product .section-heading h4,
    .theme-1 .new-product .section-heading h4,
    .theme-1 .featured-blog h4 {
        font-size: 28px !important;
    }
}

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0;
    transition: filter .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover { filter: brightness(.94); }
.btn:active { filter: brightness(.88); }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(15, 23, 42, .18) !important; }
.btn:disabled, .btn.disabled { filter: none; }

/* Main actions: solid colour, 12px corners, comfortable tap height */
.btn:is(.btn-fashion, .btn-primary, .btn-secondary, .btn-outline-secondary, .btn-fashion-outline, .btn-outline-primary, .btn-dark):not(.rounded-circle):not(.rounded-pill) {
    min-height: 44px;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
}

/* Small buttons ("View All" next to a heading, chips) */
.btn.btn-sm:is(.btn-fashion, .btn-primary, .btn-secondary, .btn-outline-secondary, .btn-fashion-outline, .btn-outline-primary, .btn-dark):not(.rounded-circle):not(.rounded-pill) {
    min-height: 36px;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    font-size: 13px;
}

/* Outline buttons stay outlined */
.btn.btn-fashion-outline {
    background: #fff;
    border: 1.5px solid var(--bs-primary);
    color: var(--bs-primary);
}

.btn.btn-fashion-outline:hover { background: var(--bs-primary); color: #fff; filter: none; }

@media (min-width: 992px) {
    .btn:is(.btn-fashion, .btn-primary, .btn-secondary, .btn-outline-secondary, .btn-fashion-outline, .btn-outline-primary, .btn-dark):not(.rounded-circle):not(.rounded-pill):not(.btn-sm) {
        min-height: 46px;
        padding: 11px 22px !important;
        font-size: 15px;
    }
}
