/* =============================================================================
   PRESET «ajila» — Ajila Beauty (site 1901). The template's only CSS; shared mapping = `style.css` §13 (loaded before).
   Structure = the beauty preset (black category bar, search pill with a round black button); brand = the old
   template 120 custom_css: Mulish · primary black · secondary red #ed1c24 (sale) · white top bar · light grey footer.
   ⚠️ Bootstrap redefines colour/radius tokens on every `[data-bs-theme]` ⇒ set them on both `.preset-ajila` and its descendants.
   ⚠️ The header's `<style>` sits in body (after this file) ⇒ add `.header-market` to win specificity.
   ============================================================================= */

.preset-ajila {
    --bs-body-font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Carousel arrows (Ajila only): a hairline capsule with a long thin arrow in place of the Font Awesome glyph
   (mask, markup untouched); hover fills it dark and the arrow slides a step the way it points; an arrow that has
   nowhere to go hides. `:where()` keeps the specificity of a plain `.swiper-button` rule. */
:where(.preset-ajila) .swiper-button {
    width: 3.5rem;
    height: 2.5rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 50rem;
}

:where(.preset-ajila) .swiper-button > i {
    display: none;
}

:where(.preset-ajila) .swiper-button::before {
    content: "";
    width: 1.75rem;
    height: .75rem;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12' fill='none' stroke='%23000' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h26M21 1l6 5l-6 5'/%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 28 12' fill='none' stroke='%23000' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h26M21 1l6 5l-6 5'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .4s ease-in-out;
}

:where(.preset-ajila) .swiper-button.swiper-prev::before {
    transform: scaleX(-1);
}

:where(.preset-ajila) .swiper-button.swiper-next:hover::before {
    transform: translateX(.25rem);
}

:where(.preset-ajila) .swiper-button.swiper-prev:hover::before {
    transform: scaleX(-1) translateX(.25rem);
}

:where(.preset-ajila) .swiper-button:hover {
    border-color: var(--bs-dark);
    background-color: var(--bs-dark);
    color: var(--bs-white);
}

:where(.preset-ajila) .swiper-button.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

/* One corner = .5rem for cards, panels and textareas; buttons and single-line fields are pills (§3);
   `rounded-pill` (cart count) and circles (`btn-circle`, `rounded-circle`, radios) stay round */
.preset-ajila,
.preset-ajila [data-bs-theme] {
    --bs-border-radius-sm: .5rem;
    --bs-border-radius: .5rem;
    --bs-border-radius-lg: .5rem;
    --bs-border-radius-xl: .5rem;
    --bs-border-radius-xxl: .5rem;
    --bs-border-radius-2xl: .5rem;
}

/* card images (/stores · card/1 and card/4 items) — the extra writes .75rem / 1rem directly instead of a token;
   the product card's brand badge (style.css §7 sets a fixed inner radius) */
.preset-ajila .card-item.item-var-1 .item-image,
.preset-ajila .card-item.item-var-4 .item-image,
.preset-ajila .product-item .item-brand {
    border-radius: var(--bs-border-radius);
}

/* No shadows — a flat page with thin lines. The tokens clear the `shadow*` utilities, modals, dropdowns and carousel
   arrows; the extra draws the button shadow directly. Keyboard focus rings stay. White panels that sat on white
   with only a shadow for an edge get a hairline instead (header dropdowns, the card's brand badge). */
.preset-ajila,
.preset-ajila [data-bs-theme] {
    --bs-box-shadow: 0 0 transparent;
    --bs-box-shadow-sm: 0 0 transparent;
    --bs-box-shadow-lg: 0 0 transparent;
    --bs-box-shadow-inset: inset 0 0 transparent;
}

.preset-ajila .btn,
.preset-ajila .btn:hover:not(:focus-visible),
.preset-ajila .btn:active {
    box-shadow: none;
}

.preset-ajila .header-market .dropdown-menu > .wrapper,
.preset-ajila .product-item .item-brand {
    border: var(--bs-border-width) solid var(--bs-border-color);
}




/* §1 Colour */
.preset-ajila,
.preset-ajila [data-bs-theme="light"] {
    --bs-primary: #000000;
    --bs-primary-rgb: 0, 0, 0;
    --bs-primary-bg-subtle: #f2f2f2;
    --bs-primary-border-subtle: #d9d9d9;
    --bs-primary-text-emphasis: #000000;
    --bs-danger: #ed1c24;
    --bs-danger-rgb: 237, 28, 36;
    --bs-link-color: #000000;
    --bs-link-color-rgb: 0, 0, 0;
    --bs-link-hover-color: #4b4b4b;
    --bs-link-hover-color-rgb: 75, 75, 75;
    --bs-body-color: #222222;
    --bs-body-color-rgb: 34, 34, 34;
    --bs-secondary-color: #6f6f6f;
    --bs-tertiary-bg: #efefef;
    --bs-tertiary-bg-rgb: 239, 239, 239;
    --bs-border-color: #e6e6e6;
}

.preset-ajila [data-bs-theme="dark"] {
    --bs-primary: #ffffff;
    --bs-primary-rgb: 255, 255, 255;
    --bs-primary-bg-subtle: #262626;
    --bs-primary-border-subtle: #404040;
    --bs-primary-text-emphasis: #ffffff;
    --bs-link-color: #ffffff;
    --bs-link-color-rgb: 255, 255, 255;
    --bs-body-bg: #000000;
    --bs-body-bg-rgb: 0, 0, 0;
    --bs-body-color: #ffffff;
    --bs-body-color-rgb: 255, 255, 255;
    --bs-secondary-color: #b5b5b5;
    --bs-border-color: #2b2b2b;
}

/* Primary is black ⇒ text on it is white */
.preset-ajila .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #000000;
    --bs-btn-border-color: #000000;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #333333;
    --bs-btn-hover-border-color: #333333;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #333333;
    --bs-btn-active-border-color: #333333;
}

/* On a dark panel (checkout summary) primary is white (the extra paints the button with it) ⇒ black text */
.preset-ajila [data-bs-theme="dark"] .btn-primary {
    --bs-btn-color: #000000;
    --bs-btn-hover-color: #000000;
    --bs-btn-active-color: #000000;
    --bs-btn-disabled-color: #000000;
}




/* §2 Headings — fine, not heavy: titles (page · post · product) thin and moderate; section headings one size on every
   page (= home); the lead under a title body-size; card and rich-text titles a step lighter than the extra's bold.
   Prices keep their bold (`fw-bold` utility / §5) */
.preset-ajila h1,
.preset-ajila .h1,
.preset-ajila .heading-row > .heading-main > h1 {
    font-size: calc(1.375rem + .5vw);
    font-weight: 300;
    letter-spacing: .06em;
    line-height: 1.2;
}

@media (min-width: 1200px) {
    .preset-ajila h1,
    .preset-ajila .h1,
    .preset-ajila .heading-row > .heading-main > h1 {
        font-size: 2rem;
    }
}

.preset-ajila h2,
.preset-ajila h3,
.preset-ajila .h2,
.preset-ajila .h3,
.preset-ajila .heading-row > .heading-main > h2 {
    font-weight: 500;
    letter-spacing: 0;
}

.preset-ajila .heading-row > .heading-main > h2 {
    font-size: 1.25rem;
}

/* Large titles (page · post · product h1, section headings) = capitals with open tracking; rich text keeps its case */
.preset-ajila :is(h1, .h1):not(.typography *),
.preset-ajila .heading-row > .heading-main > h2 {
    text-transform: uppercase;
}

.preset-ajila .heading-row > .heading-main > h2 {
    letter-spacing: .1em;
}

.preset-ajila .heading-row > .heading-desc > p {
    font-size: 1rem;
    font-weight: 400;
}

.preset-ajila .card-item .item-title,
.preset-ajila .card-item .item-title a,
.preset-ajila .post-item .item-title,
.preset-ajila .post-item .item-title a {
    font-weight: 600;
}

/* News meta (category · date) — quiet tertiary grey, regular weight, a step apart from the title.
   `!important` wins over the post card's `fw-medium text-body-secondary` utilities */
.preset-ajila .item-meta {
    margin-bottom: .25rem;
}

.preset-ajila .item-meta .item-category a,
.preset-ajila .item-meta .item-date {
    color: var(--bs-tertiary-color) !important;
    font-weight: 400 !important;
}

.preset-ajila .item-meta .item-category a:hover {
    color: var(--bs-secondary-color) !important;
}

/* Rich-text images always fluid — `!important` wins over the editor's inline width/height (e.g. 300×300px) */
.preset-ajila .typography img {
    width: 100% !important;
    height: auto !important;
}

.preset-ajila .typography :is(h1, h2, h3, h4, h5) {
    font-weight: 500;
}

/* Home page block headings — one size (= «Онцлох бүтээгдэхүүнүүд», fs-5); a heading with no action link beside it
   (no «Бүгдийг үзэх») is centred */
.preset-ajila.page-home section[data-type] .heading-row h2 {
    font-size: 1.25rem !important;
}

.preset-ajila.page-home section[data-type] .heading-row:not(:has(+ a)) {
    align-items: center !important;
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

.preset-ajila.page-home section[data-type] .heading-row:not(:has(+ a)) .heading-main,
.preset-ajila.page-home section[data-type] .heading-row:not(:has(+ a)) .heading-desc {
    align-items: center !important;
}




/* §3 Buttons and single-line fields — full pill (cards and textareas keep the .5rem corner) */
.preset-ajila .btn:not(.btn-circle) {
    --bs-btn-border-radius: 50rem;
}

/* buttons and fields — a 1px line (the extra draws them 2px) */
.preset-ajila .btn,
.preset-ajila .form-control,
.preset-ajila .form-select,
.preset-ajila .input-group-text,
.preset-ajila .form-option {
    --bs-border-width: 1px;
    --bs-btn-border-width: 1px;
}

/* chips and tags (active filters · brand tag · price labels) — pills too; the product card's corner labels stay square (§5) */
.preset-ajila .badge {
    --bs-badge-border-radius: 50rem;
}

/* the cart drawer's −/+ (the header's own style derives their corner from the radius token ⇒ 0 here) */
.preset-ajila .cart-drawer .product-qty .btn {
    --bs-btn-border-radius: 50rem;
}

/* horizontal line items (cart drawer · checkout summary · order page) read like the product card: title `fw-medium` 1rem */
.preset-ajila .product-item.item-var-4 .item-title,
.preset-ajila .product-item.item-var-4 .item-title a {
    font-size: 1rem;
    font-weight: 500;
}

/* single-line fields (input · select · input-group addon) are pills like the buttons; textareas and cards keep
   the .5rem corner (an input-group keeps its joined sides square — Bootstrap's own rule) */
.preset-ajila input.form-control,
.preset-ajila .form-select,
.preset-ajila .input-group-text,
.preset-ajila .form-option:not(.flex-column) {
    border-radius: 50rem;
}

/* pagination and the mobile menu button — circles like the header's search and cart buttons */
.preset-ajila .page-item .page-link,
.preset-ajila .navbar-toggler {
    border-radius: 50% !important;
}

/* the current breadcrumb step — plain bold text (the extra makes it a tinted chip) */
.preset-ajila .breadcrumb-var-2 .breadcrumb-item.active span {
    padding: 0;
    background: none;
    font-weight: 700;
}




/* Text buttons (btn-link) = system blue, the same blue as the sale badge */
.preset-ajila .btn-link {
    --bs-btn-color: var(--bs-blue);
    --bs-btn-hover-color: color-mix(in srgb, var(--bs-blue) 80%, black);
    --bs-btn-active-color: color-mix(in srgb, var(--bs-blue) 70%, black);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
}

.preset-ajila .item-action > .btn.btn-link {
    color: var(--bs-btn-color);
}

.preset-ajila .item-action > .btn.btn-link:hover,
.preset-ajila .item-action > .btn.btn-link:focus-visible {
    color: var(--bs-btn-hover-color);
}

/* §4 Header — white top bar with a hairline · search pill + round black button · black category bar */
.preset-ajila .header-market .header-topbar {
    background-color: var(--bs-body-bg) !important;
    border-bottom: 1px solid #e6e6e6;
}

/* the note variant of the top bar is marked dark — bring its text back to light-theme colours */
.preset-ajila .header-market .header-topbar[data-bs-theme="dark"] {
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-secondary-color: #222222;
    --bs-secondary-color-rgb: 34, 34, 34;
    --bs-link-color: #222222;
    --bs-link-color-rgb: 34, 34, 34;
    --bs-border-color: #e6e6e6;
}

.preset-ajila .header-market .market-search .form-control,
.preset-ajila .header-market .market-search .form-control:focus {
    border-width: 1px;
    border-color: var(--bs-border-color);
    background-color: var(--bs-body-bg);
}

.preset-ajila .header-market .market-search .btn-circle {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    top: calc(1px + .25rem);
    right: calc(1px + .25rem);
    height: calc(100% - 2 * (1px + .25rem)) !important;
}

.preset-ajila .header-market .market-search .btn-circle:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

.preset-ajila .header-market .navbar[data-bs-theme="dark"] .nav-link {
    font-size: .8125rem;
}

/* Actions — icon only, airy: no labels, wider gaps, a touch lighter */
.preset-ajila .header-market .navbar-actions {
    gap: 1.75rem !important;
}

.preset-ajila .header-market .cart-toggle > span.d-md-inline {
    display: none !important;
}

.preset-ajila .header-market .navbar-actions svg {
    width: 1.375rem;
    height: 1.375rem;
    stroke-width: 1.5;
}

/* xl+: logo | search (exact centre) | actions — a 3-column grid; the burger and the hidden dark logo drop out */
@media (min-width: 1200px) {
    .preset-ajila .header-market .header-brandbar > .container {
        display: grid !important;
        grid-template-columns: 1fr minmax(0, 32rem) 1fr;
        align-items: center;
    }

    .preset-ajila .header-market .header-brandbar .navbar-brand {
        justify-self: start;
    }

    .preset-ajila .header-market .header-brandbar .market-search {
        width: 100% !important;
        justify-self: center;
    }

    .preset-ajila .header-market .header-brandbar .navbar-actions {
        justify-self: end;
        margin-left: 0 !important;
    }
}

/* Category dropdown = list (divided rows) + banner, the full container width (`nav_dropdown => 'banner'`) */
.preset-ajila .header-market .dropdown-banner .dropdown-menu {
    --bs-dropdown-link-hover-color: var(--bs-secondary-color);
    --bs-dropdown-link-active-color: var(--bs-body-color);
    --bs-dropdown-link-active-bg: transparent;
}

.preset-ajila .header-market .dropdown-banner .dropdown-item {
    font-size: .9375rem;
    white-space: normal;
}




/* /feedback → /contact-us#contact-contact: the form stops below the sticky header (157px from xl: top bar · brand bar ·
   category bar; ~113px below), its card edge in view */
.preset-ajila .contact-v1 form[id] {
    scroll-margin-top: 9rem;
}

@media (min-width: 1200px) {
    .preset-ajila .contact-v1 form[id] {
        scroll-margin-top: 13rem;
    }
}




/* §5 Product card — price black and bold; sale = red */
.preset-ajila .product-item .item-price .h4 {
    color: var(--bs-body-color) !important;
    font-weight: 800;
}

.preset-ajila .product-item .item-badge:not(.item-brand):not(.item-countdown) {
    background: #000000;
    color: #ffffff;
    border-radius: 0;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}




/* §6 Footer — light grey; small tracked capitals for titles, light links, hairlines, a quiet bottom line */
.preset-ajila .footer-market .widget-title {
    font-size: .75rem !important;
    font-weight: 600 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bs-body-color) !important;
}

.preset-ajila .footer-market .widget-links a,
.preset-ajila .footer-market .widget-contacts a,
.preset-ajila .footer-market .widget-contacts address,
.preset-ajila .footer-market .widget-contacts span {
    font-size: .875rem;
    font-weight: 400 !important;
    line-height: 1.6;
}

.preset-ajila .footer-market .widget-links a:hover,
.preset-ajila .footer-market .widget-contacts a:hover {
    color: var(--bs-body-color) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: .3em;
}

.preset-ajila .footer-market .widget-toggle {
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.preset-ajila .footer-market .widget-about a > span {
    width: 7rem !important;
}

@media (min-width: 768px) {
    .preset-ajila .footer-market .widget-about a > span {
        width: 9rem !important;
    }
}

.preset-ajila .footer-market .widget-about {
    gap: 1.5rem !important;
}

.preset-ajila .footer-market .social-link:hover {
    color: var(--bs-secondary-color) !important;
}

.preset-ajila .footer-market .footer-top .fw-bold {
    font-size: .75rem;
    font-weight: 600 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.preset-ajila .footer-market .footer-top p + p {
    color: var(--bs-secondary-color) !important;
}

.preset-ajila .footer-market .footer-deep p {
    font-size: .8125rem;
    font-weight: 400 !important;
}

.preset-ajila .footer-luxe ul.collapse.show,
.preset-ajila .footer-luxe ul.collapsing {
    display: flex;
}

@media (max-width: 767.98px) {
    .preset-ajila .footer-luxe .footer-middle > .row {
        --bs-gutter-y: 0;
    }

    .preset-ajila .footer-luxe .widget-about {
        padding-bottom: 2rem;
    }

    .preset-ajila .footer-luxe .widget-links,
    .preset-ajila .footer-luxe .widget-contacts {
        border-top: var(--bs-border-width) solid var(--bs-border-color);
        padding: 1.25rem 0;
    }

    .preset-ajila .footer-luxe .widget-links ul {
        padding-top: .25rem;
    }
}
