/* ==========================================================================
   UI Polish
   --------------------------------------------------------------------------
   Visual refinements for: homepage product list, search bar + search results,
   cart, login and register.

   Loaded LAST in syaanah::layouts.style so it wins the cascade without needing
   !important. Theme-independent: lives in public/css, not public/<theme>/css,
   because the asset theme is resolved at runtime from getSetting('theme').

   Layout structure, Blade markup and Vue bindings are unchanged — everything
   here is presentation only.
   ========================================================================== */

:root {
    --ui-radius: 12px;
    --ui-radius-sm: 8px;
    --ui-border: #e9e6ec;
    --ui-border-strong: #d9d4de;
    --ui-surface: #fff;
    --ui-muted: #6b6a70;
    --ui-ink: #1d1b20;
    --ui-shadow-sm: 0 1px 2px rgba(29, 27, 32, .06);
    --ui-shadow-md: 0 6px 18px rgba(29, 27, 32, .09);
    --ui-shadow-lg: 0 14px 32px rgba(189, 46, 134, .16);
    --ui-focus: rgba(189, 46, 134, .28);
    --ui-ease: cubic-bezier(.2, .7, .3, 1);
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion: reduce) {

    .p-card,
    .p-card img,
    .product-card,
    .product-card img,
    .ui-searchbar .form-control,
    .btn {
        transition: none !important;
    }

    .p-card:hover,
    .product-card:hover {
        transform: none !important;
    }
}

/* ==========================================================================
   1. Product cards — homepage grid (.p-card) and featured grid (.product-card)
   ========================================================================== */

/* Equal-height cards: Bootstrap rows already stretch their columns, so the
   card only needs to fill that height and push its action row to the bottom.
   `.h-100` is already on the cards in every grid we touch. */
.p-card,
.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: var(--ui-radius);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
    transition: transform .25s var(--ui-ease), box-shadow .25s var(--ui-ease), border-color .25s var(--ui-ease);
}

.p-card > a,
.product-card > .product-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
}

.p-card .card-body,
.product-card .card-body,
.product-card .product-link > .p-2 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* The asoug cards wrap their title in an <a> carrying an inline `height` that
   does nothing on an inline box, leaving titles ragged. Make it a block so the
   clamp below actually governs the height. */
.product-card .card-body > a {
    display: block;
}

.p-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-lg);
    border-color: var(--primary-color);
}

.p-card:focus-within,
.product-card:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--ui-focus);
}

/* Images: fixed ratio box, never stretched. `contain` keeps the whole product
   visible — marketplace listings are shot on varied backgrounds. */
.p-card img,
.product-card img,
.product-grid-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #faf9fb;
    border-radius: var(--ui-radius-sm);
    padding: 8px;
    transition: transform .35s var(--ui-ease);
}

.p-card:hover img,
.product-card:hover img {
    transform: scale(1.04);
}

/* Titles: clamp to two lines so card heights stay even and long names don't
   get silently chopped mid-glyph the way `height: 40px; overflow: hidden` did. */
.p-card h5,
.p-card .card-title,
.product-card h1,
.product-card .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
    min-height: 2.6em;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ui-ink);
    margin-bottom: .5rem;
    word-break: break-word;
}

/* Price is the thing shoppers scan for — give it real weight. */
.p-card .card-text,
.p-card .product-price,
.product-card .product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: .25rem;
}

.p-card del,
.product-card del {
    font-size: 12px;
    font-weight: 400;
    color: #9a979e;
}

/* Bulk-discount range reads as one unit, not three loose spans. */
.p-card .ember-bold,
.product-card .ember-bold {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

/* The asoug homepage cards are larger than the compact syaanah ones, so keep
   their title at a readable size rather than the 13px used in dense grids. */
.product-card .product-title {
    font-size: 14px;
}

/* welcome.blade.php sets `min-height: 350px` inline for these cards. At six
   per row that is taller than the content needs, and it fought the flex fill —
   the action row ended up past the card's bottom edge. Let content decide the
   height and let the row stretch every card to match the tallest. */
.row > [class*="col-"] > .product-card {
    min-height: 0;
    height: 100%;
}

/* style.css clips this card with `overflow: hidden`, which is there to contain
   the hover image zoom. Keep the clip on the image only, so a wrapped action
   row can never be cut off. */
.product-card {
    overflow: visible;
}

.product-card > a:first-child {
    display: block;
    overflow: hidden;
    border-radius: var(--ui-radius-sm);
}

/* Their button row is the last child of .card-body — pin it to the bottom so
   buttons align across a row of uneven-length titles. */
.product-card .card-body > .d-flex:last-child {
    margin-top: auto;
    padding-top: .5rem;
    flex-wrap: wrap;
}

.product-card .card-body > .d-flex:last-child .btn {
    margin-inline-end: 0 !important;
    margin-top: 0 !important;
}

/* Action row pinned to the card bottom. */
.p-card > .d-flex.justify-content-between {
    margin-top: auto;
    padding-top: .5rem;
    border-top: 1px solid var(--ui-border);
    gap: .5rem;
    align-items: center;
}

.p-card > .d-flex.justify-content-between > a {
    font-size: 12px;
    color: var(--ui-muted);
    white-space: nowrap;
}

.p-card .add-to-cart-btn,
.product-grid-item .add-to-cart-btn {
    font-size: 12px;
    padding: .3rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Section heading + "See More" */
.shop_product .border-bottom-1,
.feature_product .d-flex.align-items-center.mb-3 {
    padding-bottom: .65rem;
    gap: .5rem;
}

.shop_product h5,
.feature_product h5 {
    font-weight: 700;
    letter-spacing: -.01em;
}

.block-footer-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.block-footer-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   2. Search bar (layouts/header.blade.php)
   ========================================================================== */

/* Two markup shapes exist: the asoug header where the <form> IS the
   .input-group, and the syaanah header where .input-group is a descendant. */
.ui-searchbar.input-group,
.ui-searchbar .input-group {
    border-radius: 999px;
    overflow: hidden;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
    flex-wrap: nowrap;
}

.ui-searchbar .search-box-category select,
.ui-searchbar > select.form-select {
    border: 0;
    background: #f4f2f6;
    height: auto;
    padding: 0 .85rem;
    font-size: 13px;
    color: var(--ui-ink);
    max-width: 170px;
    flex: 0 0 auto;
    width: auto;
    cursor: pointer;
    border-radius: 0;
}

.ui-searchbar > select.form-select:focus {
    box-shadow: none;
    border-color: transparent;
}

.ui-searchbar .form-control {
    border: 0;
    box-shadow: none;
    font-size: 14px;
    padding: .6rem .9rem;
}

.ui-searchbar .form-control::placeholder {
    color: #9a979e;
}

.ui-searchbar .form-control:focus {
    box-shadow: none;
    outline: 0;
}

/* Focus ring on the whole pill rather than the bare input — the input has no
   visible border of its own inside the group. */
.ui-searchbar.input-group:focus-within,
.ui-searchbar .input-group:focus-within {
    box-shadow: 0 0 0 3px var(--ui-focus);
}

.ui-searchbar .btn {
    border-radius: 0;
    padding-inline: 1.15rem;
    box-shadow: none;
}

@media (max-width: 575.98px) {

    /* The category picker eats most of a phone-width bar; drop it and let the
       keyword field have the room. Submitting without it searches everything. */
    .ui-searchbar .search-box-category,
    .ui-searchbar > select.form-select {
        display: none;
    }

    .ui-searchbar .form-control {
        padding-block: .55rem;
    }
}

/* ==========================================================================
   3. Search results (filter-products.blade.php)
   ========================================================================== */

/* The container is `display: grid` from minimal.css but also carries Bootstrap's
   `.row`, which injects negative margins and per-child gutter padding that the
   grid does not want. Neutralise just those. */
.product-grid-container.row {
    margin-inline: 0;
    --bs-gutter-x: 0;
}

.product-grid-container.row > * {
    padding-inline: 0;
    max-width: none;
}

.product-grid-item {
    display: flex;
    background: transparent;
}

.product-grid-item .p-card {
    padding: 10px;
}

.product-grid-item .card-body {
    padding: 0;
}

/* Attribute pickers inside result cards */
.product-grid-item .form-group label {
    font-size: 12px;
    color: var(--ui-muted);
}

.product-grid-item select.form-control {
    font-size: 12px;
    padding: .25rem .5rem;
    border-radius: var(--ui-radius-sm);
    border: 1px solid var(--ui-border-strong);
}

.pva-swatch {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.pva-swatch:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3b. Filter sidebar (desktop rail + the mobile modal, which share markup)
   -------------------------------------------------------------------------- */

/* The rail was free to squash: .product-filters only had a max-width, and
   .filter-container is a flex row. Give it a fixed basis. */
.filter-container {
    gap: 1.25rem;
    align-items: flex-start;
}

.product-filters {
    flex: 0 0 280px;
    max-width: 280px;
    margin-inline-end: 0 !important;
}

/* Filters stay put while a long result list scrolls, with their own scrollbar
   if the category tree is deep. */
@media (min-width: 992px) {
    .product-filters {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

.ui-filter-sidebar {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius) !important;
    box-shadow: var(--ui-shadow-sm);
}

.ui-filter-sidebar .card-body {
    padding: 0;
}

/* One consistent rhythm: every section is a padded band with a hairline
   between. Previously margins ranged from mb-4 to mb-5 with no separators. */
.ui-filter-sidebar .ui-filter-section {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--ui-border);
    margin: 0 !important;
}

.ui-filter-sidebar .ui-filter-section:last-child {
    border-bottom: 0;
}

/* Headings were split between `fw-bold text-uppercase text-secondary` and
   plain `ember-bold`; unify them. */
.ui-filter-sidebar .ui-filter-section > h6 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ui-muted);
    margin-bottom: .75rem;
}

/* Sidebar header with the reset action */
.ui-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--ui-border);
    background: #faf9fb;
    border-radius: var(--ui-radius) var(--ui-radius) 0 0;
}

.ui-filter-head h6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ui-ink);
    margin: 0;
}

.ui-filter-clear {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.ui-filter-clear:hover {
    text-decoration: underline;
}

/* The page's own <style> pinned .filter-category to 250px, which overflowed
   the rail's padding and squeezed the modal. Let it fill its container. */
.ui-filter-sidebar .filter-category,
.modal .filter-category {
    width: auto !important;
}

/* ---- Category tree ---- */

.ui-filter-sidebar .accordion,
.modal-body .accordion {
    background: transparent !important;
}

.ui-filter-sidebar .accordion-item,
.modal-body .accordion-item {
    background: transparent;
    border: 0 !important;
    margin-bottom: 2px;
}

/* Bootstrap's accordion button carried bg-light and heavy padding; make it a
   quiet row that only lights up on hover or when active. */
.ui-filter-sidebar .accordion-button,
.modal-body .accordion-button {
    background: transparent !important;
    border-radius: var(--ui-radius-sm) !important;
    padding: .5rem .6rem !important;
    font-size: 13px;
    font-weight: 500;
    color: var(--ui-ink);
    box-shadow: none !important;
    transition: background .18s var(--ui-ease), color .18s var(--ui-ease);
}

.ui-filter-sidebar .accordion-button:hover,
.modal-body .accordion-button:hover {
    background: #f4f2f6 !important;
}

.ui-filter-sidebar .accordion-button:not(.collapsed),
.modal-body .accordion-button:not(.collapsed) {
    background: #fdeef6 !important;
    color: var(--primary-color);
    font-weight: 600;
}

.ui-filter-sidebar .accordion-button:focus-visible,
.modal-body .accordion-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.ui-filter-sidebar .accordion-button::after,
.modal-body .accordion-button::after {
    width: .9rem;
    height: .9rem;
    background-size: .9rem;
    margin-inline-start: auto;
}

[dir="rtl"] .ui-filter-sidebar .accordion-button::after,
[dir="rtl"] .modal-body .accordion-button::after {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.ui-filter-sidebar .accordion-body,
.modal-body .accordion-body {
    padding: .25rem 0 .5rem !important;
    background: transparent !important;
}

/* Nested levels get a guide rail instead of raw ps-3/ps-4/ps-5 indents. */
.ui-filter-sidebar .accordion-body > div,
.modal-body .accordion-body > div {
    border-inline-start: 1px solid var(--ui-border);
    margin-inline-start: .75rem;
    padding-inline-start: .35rem;
}

/* Every category link — flat items, parents and children alike. */
.ui-filter-sidebar .accordion-body a,
.ui-filter-sidebar .accordion-header a,
.modal-body .accordion-body a,
.modal-body .accordion-header a {
    display: block;
    font-size: 13px;
    padding: .38rem .6rem !important;
    border-radius: var(--ui-radius-sm);
    background: transparent !important;
    color: var(--ui-muted);
    transition: background .18s var(--ui-ease), color .18s var(--ui-ease);
}

/* `hover-bg-light` was on every one of these links but was never defined
   anywhere — the rows had no hover feedback at all. This is that rule. */
.ui-filter-sidebar .accordion-body a:hover,
.ui-filter-sidebar .accordion-header a:hover,
.modal-body .accordion-body a:hover,
.modal-body .accordion-header a:hover,
.hover-bg-light:hover {
    background: #f4f2f6 !important;
    color: var(--ui-ink);
}

/* Active category: tinted row with an accent bar that flips under RTL. */
.ui-filter-sidebar a.fw-bold.text-primary,
.modal-body a.fw-bold.text-primary {
    background: #fdeef6 !important;
    color: var(--primary-color) !important;
    box-shadow: inset 3px 0 0 var(--primary-color);
}

[dir="rtl"] .ui-filter-sidebar a.fw-bold.text-primary,
[dir="rtl"] .modal-body a.fw-bold.text-primary {
    box-shadow: inset -3px 0 0 var(--primary-color);
}

.ui-filter-sidebar .accordion i,
.modal-body .accordion i {
    font-size: 11px;
    opacity: .7;
}

/* ---- Brands ---- */

/* A long brand list used to stretch the rail indefinitely. */
.ui-filter-brands {
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-inline: -.35rem;
    padding-inline: .35rem;
}

.ui-filter-sidebar .form-check,
.modal-body .ui-filter-brands .form-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .3rem .45rem;
    margin: 0 0 1px;
    border-radius: var(--ui-radius-sm);
    min-height: 0;
    transition: background .18s var(--ui-ease);
}

.ui-filter-sidebar .form-check:hover,
.modal-body .ui-filter-brands .form-check:hover {
    background: #f4f2f6;
}

.ui-filter-sidebar .form-check-input,
.modal-body .ui-filter-brands .form-check-input {
    margin: 0;
    float: none;
    flex: 0 0 auto;
    cursor: pointer;
}

.ui-filter-sidebar .form-check-input:checked,
.modal-body .ui-filter-brands .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.ui-filter-sidebar .form-check-label,
.modal-body .ui-filter-brands .form-check-label {
    font-size: 12px;
    text-transform: none !important;
    color: var(--ui-ink);
    cursor: pointer;
    margin: 0;
}

/* Thin scrollbars inside the rail so they don't dominate a 280px column. */
.product-filters::-webkit-scrollbar,
.ui-filter-brands::-webkit-scrollbar {
    width: 6px;
}

.product-filters::-webkit-scrollbar-thumb,
.ui-filter-brands::-webkit-scrollbar-thumb {
    background: var(--ui-border-strong);
    border-radius: 999px;
}

.product-filters,
.ui-filter-brands {
    scrollbar-width: thin;
    scrollbar-color: var(--ui-border-strong) transparent;
}

/* ---- Price ---- */

/* Two inputs, a dash and a button in one flex row left each field ~60px wide
   in a 280px rail. Give the inputs a row and the button its own. */
.ui-filter-price {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .4rem;
}

.ui-filter-price .form-control {
    font-size: 13px;
    padding: .4rem .55rem;
    border-radius: var(--ui-radius-sm);
    border: 1px solid var(--ui-border-strong);
    min-width: 0;
}

.ui-filter-price .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--ui-focus);
}

.ui-filter-price-sep {
    color: var(--ui-muted);
    font-size: 12px;
}

.ui-filter-price-go {
    width: 100%;
    margin-top: .55rem;
    border-radius: 999px;
    font-size: 13px;
    padding-block: .4rem;
    box-shadow: none;
}

/* ---- Rating ---- */

.ui-filter-rating-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .45rem;
    margin-bottom: 1px;
    border-radius: var(--ui-radius-sm);
    cursor: pointer;
    transition: background .18s var(--ui-ease);
}

.ui-filter-rating-row:hover {
    background: #f4f2f6;
}

.ui-filter-rating-row input[type="radio"] {
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.ui-filter-rating-row .rating {
    gap: .15rem;
    padding: 0;
    list-style: none;
    margin: 0;
}

.ui-filter-rating-row .rating i {
    font-size: 11px;
}

.ui-filter-rating-row .rating p {
    font-size: 11px;
    color: var(--ui-muted);
    text-transform: none !important;
}

/* ---- Mobile filter trigger + modal ---- */

.ui-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    border: 1px solid var(--ui-border-strong);
    border-radius: 999px;
    background: var(--ui-surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--ui-ink);
}

.ui-filter-trigger:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#filterModal .modal-content {
    border: 0;
    border-radius: var(--ui-radius);
}

#filterModal .modal-body {
    padding-top: .5rem;
}

#filterModal .modal-footer .btn {
    border-radius: 999px;
    padding-inline: 2rem;
}

@media (max-width: 991.98px) {
    .filter-container {
        display: block;
    }
}

/* Active filter chips */
.filtered-by-box {
    border-radius: 999px !important;
    border-color: var(--ui-border-strong) !important;
    font-size: 12px;
    transition: border-color .2s var(--ui-ease), color .2s var(--ui-ease);
}

.filtered-by-box:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color);
}

.filtered-by-box span:last-child {
    border-left: 1px solid var(--ui-border) !important;
    color: var(--ui-muted);
}

[dir="rtl"] .filtered-by-box span:last-child {
    border-left: 0 !important;
    border-right: 1px solid var(--ui-border);
}

.active-filters {
    gap: .4rem;
}

/* ==========================================================================
   4. Cart
   ========================================================================== */

.cart-area .card {
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow-sm);
}

.cart-area .card-header {
    border-bottom: 1px solid var(--ui-border);
    border-radius: var(--ui-radius) var(--ui-radius) 0 0 !important;
}

.cart-area .card-header a {
    font-weight: 600;
    color: var(--ui-ink);
    text-decoration: none;
}

.cart-area .card-header a:hover {
    color: var(--primary-color);
}

.cart-area img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #faf9fb;
    border-radius: var(--ui-radius-sm);
    width: 100%;
}

.cart-area h6 a {
    color: var(--ui-ink);
    text-decoration: none;
    font-weight: 600;
}

.cart-area h6 a:hover {
    color: var(--primary-color);
}

.cart-area hr {
    border-color: var(--ui-border);
    opacity: 1;
}

.cart-area hr:last-of-type {
    display: none;
}

/* Quantity stepper — was three unstyled controls sitting apart. */
.product-qty-buttons .d-flex {
    border: 1px solid var(--ui-border-strong);
    border-radius: 999px;
    overflow: hidden;
    background: var(--ui-surface);
}

.product-qty-buttons .input-group-text {
    border: 0;
    background: transparent;
    width: 34px;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: var(--ui-ink);
    cursor: pointer;
    transition: background .2s var(--ui-ease), color .2s var(--ui-ease);
}

.product-qty-buttons .input-group-text:hover {
    background: var(--primary-color);
    color: #fff;
}

.product-qty-buttons input {
    width: 44px;
    border: 0;
    border-inline: 1px solid var(--ui-border);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    background: transparent;
}

.product-qty-buttons input:focus {
    outline: 0;
    background: #faf9fb;
}

/* Item action icons get a real hit target. */
.cart-area .fa-heart,
.cart-area .fa-trash-alt {
    padding: 6px;
    border-radius: 50%;
    transition: background .2s var(--ui-ease), color .2s var(--ui-ease);
}

.cart-area .fa-heart:hover {
    background: #fdeef6;
    color: var(--primary-color) !important;
}

.cart-area .fa-trash-alt:hover {
    background: #fdecec;
    color: #d33 !important;
}

/* Summary sticks alongside a long item list on desktop. */
@media (min-width: 992px) {
    #cart-summary {
        position: sticky;
        top: 1rem;
    }
}

#cart-summary .list-group-item {
    font-size: 14px;
    color: var(--ui-muted);
    background: transparent;
}

#cart-summary .list-group-item span {
    color: var(--ui-ink);
    font-weight: 600;
}

#cart-summary .list-group-item strong {
    color: var(--ui-ink);
    font-size: 15px;
}

#cart-summary hr {
    border-color: var(--ui-border);
    opacity: 1;
    margin: .5rem 0;
}

#cart-summary .btn {
    border-radius: 999px;
    padding-block: .6rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* Shipping-cost line reads as tappable, because it opens a modal. */
.cart-area p[role="button"] {
    display: inline-block;
    font-size: 13px;
    border-bottom: 1px dashed var(--ui-border-strong);
    margin-bottom: 0;
}

.cart-area p[role="button"]:hover {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

/* Skeleton shown while cart items are in flight, so the empty-cart panel no
   longer flashes on every load. */
.ui-cart-skeleton .ui-sk {
    background: linear-gradient(90deg, #f1eff3 25%, #e7e4ea 37%, #f1eff3 63%);
    background-size: 400% 100%;
    animation: ui-sk-shimmer 1.4s ease infinite;
    border-radius: var(--ui-radius-sm);
}

.ui-cart-skeleton .ui-sk-img {
    aspect-ratio: 1 / 1;
}

.ui-cart-skeleton .ui-sk-line {
    height: 12px;
    margin-bottom: .6rem;
}

@keyframes ui-sk-shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-cart-skeleton .ui-sk {
        animation: none;
    }
}

/* ==========================================================================
   5. Empty states (cart, search results, empty product sections)
   ========================================================================== */

.ui-empty {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 460px;
    margin-inline: auto;
}

.ui-empty i {
    font-size: 2.5rem;
    color: var(--ui-border-strong);
    margin-bottom: 1rem;
    display: block;
}

.ui-empty img {
    max-width: 220px;
    margin-bottom: 1rem;
}

.ui-empty h3,
.ui-empty h5 {
    font-weight: 700;
    color: var(--ui-ink);
    margin-bottom: .5rem;
}

.ui-empty p {
    color: var(--ui-muted);
    font-size: 14px;
    margin-bottom: 1.25rem;
}

.ui-empty .btn {
    border-radius: 999px;
    padding-inline: 1.75rem;
    width: auto;
}

/* ==========================================================================
   6. Auth — login and register
   ========================================================================== */

/* ---- Branded split layout ----
   Login and buyer registration were bare centred cards with no sign they
   belonged to this site. Pair each form with a brand panel carrying the logo,
   the site name and what the marketplace actually offers. */

.ui-auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-block: 2.5rem 3.5rem;
}

@media (min-width: 992px) {
    .ui-auth-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 2.5rem;
    }

    /* The register form is long; keep the brand panel in view beside it. */
    .ui-auth-split--tall .ui-auth-brand {
        position: sticky;
        top: 1.5rem;
    }
}

.ui-auth-brand {
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(255, 255, 255, .18) 0%, transparent 55%),
        linear-gradient(135deg, var(--primary-color) 0%, #7d1a58 100%);
    color: #fff;
    border-radius: var(--ui-radius);
    padding: 2.25rem 2rem;
    box-shadow: var(--ui-shadow-md);
    overflow: hidden;
}

.ui-auth-brand__logo {
    max-height: 54px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    /* Most storefront logos are dark-on-transparent; on this panel they need
       a light treatment to stay legible. */
    background: rgba(255, 255, 255, .92);
    border-radius: var(--ui-radius-sm);
    padding: .45rem .7rem;
}

.ui-auth-brand h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .6rem;
    color: #fff;
}

.ui-auth-brand > p {
    font-size: .95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 1.75rem;
}

.ui-auth-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: grid;
    gap: .9rem;
}

.ui-auth-points li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .92);
}

.ui-auth-points i {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    font-size: .7rem;
}

.ui-auth-brand__foot {
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 1.25rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .78);
    display: grid;
    gap: .4rem;
}

.ui-auth-brand__foot a {
    color: #fff;
    text-decoration: none;
}

.ui-auth-brand__foot a:hover {
    text-decoration: underline;
}

.ui-auth-brand__foot i {
    width: 16px;
    margin-inline-end: .35rem;
    opacity: .8;
}

/* Compact brand strip shown above the form on phones, where the full panel
   would push the form below the fold. */
.ui-auth-brandbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.ui-auth-brandbar img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.ui-auth-brandbar span {
    font-weight: 700;
    color: var(--ui-ink);
}

/* ---- Banner-backed auth pages ----
   Supplier login and the two company signups sit on a real brand banner from
   the `supplier_page_banner` content block. The photo was carrying white text
   with no overlay, so legibility depended entirely on which image was set. */

.ui-auth-banner {
    position: relative;
    padding-block: 3rem !important;
    isolation: isolate;
}

.ui-auth-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(29, 27, 32, .82) 0%, rgba(29, 27, 32, .55) 45%, rgba(29, 27, 32, .25) 100%);
}

[dir="rtl"] .ui-auth-banner::before {
    background: linear-gradient(260deg, rgba(29, 27, 32, .82) 0%, rgba(29, 27, 32, .55) 45%, rgba(29, 27, 32, .25) 100%);
}

.ui-auth-banner .banner-content {
    max-width: 34rem;
}

.ui-auth-banner .banner-content img {
    max-height: 48px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    background: rgba(255, 255, 255, .92);
    border-radius: var(--ui-radius-sm);
    padding: .4rem .65rem;
    margin-bottom: 1.1rem;
}

/* The theme sets 60px/81px and 24px/41px here — far too large beside a form. */
.ui-auth-banner .banner-content h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin-bottom: .75rem;
}

.ui-auth-banner .banner-content p {
    font-size: .95rem !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, .88) !important;
}

.ui-auth-banner .banner-form .card {
    margin-block: 0 !important;
}

@media (max-width: 991.98px) {
    .ui-auth-banner .banner-content {
        text-align: center;
        margin-inline: auto;
    }
}

/* ---- Narrow shell ----
   Forgot password, reset, verify and resend are single-purpose pages. They get
   a centred card with a brand header rather than the full split panel, but the
   same card, field and button treatment as login. */

.ui-auth-narrow {
    max-width: 460px;
    margin-inline: auto;
    margin-block: 3rem 4rem;
}

.ui-auth-narrow__head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ui-auth-narrow__head img {
    max-height: 46px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    margin-bottom: .9rem;
}

.ui-auth-narrow__head h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ui-ink);
    margin-bottom: .35rem;
}

.ui-auth-narrow__head p {
    font-size: .875rem;
    color: var(--ui-muted);
    margin-bottom: 0;
}

/* Circular status icon for verify / sent-confirmation states */
.ui-auth-status {
    width: 62px;
    height: 62px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #fdeef6;
    color: var(--primary-color);
}

.ui-auth-status--ok {
    background: #e7f6ee;
    color: #1a8a52;
}

.ui-auth-note {
    border: 1px solid var(--ui-border);
    background: #faf9fb;
    border-radius: var(--ui-radius-sm);
    padding: .75rem .9rem;
    font-size: 13px;
    color: var(--ui-muted);
    line-height: 1.55;
}

.ui-auth-note--ok {
    border-color: #b9e3cd;
    background: #e7f6ee;
    color: #14663d;
}

/* Account-type switcher — the site has buyer, corporate and supplier signups,
   which the plain pages gave no hint of. */
.ui-auth-roles {
    display: grid;
    gap: .5rem;
    margin-top: 1.25rem;
}

.ui-auth-role {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-sm);
    text-decoration: none !important;
    color: var(--ui-ink);
    font-size: 13px;
    transition: border-color .18s var(--ui-ease), background .18s var(--ui-ease);
}

.ui-auth-role:hover {
    border-color: var(--primary-color);
    background: #fdeef6;
    color: var(--primary-color);
}

.ui-auth-role i {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fdeef6;
    color: var(--primary-color);
    font-size: .8rem;
}

.ui-auth-role strong {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.ui-auth-role small {
    color: var(--ui-muted);
    font-size: 11px;
}

.ui-auth-role:hover small {
    color: inherit;
    opacity: .8;
}

/* "or" rule between the form and the alternative routes */
.ui-auth-or {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0 .25rem;
    color: var(--ui-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ui-auth-or::before,
.ui-auth-or::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--ui-border);
}

.ui-auth-card {
    border-radius: var(--ui-radius) !important;
    box-shadow: var(--ui-shadow-md) !important;
    border: 1px solid var(--ui-border) !important;
}

.ui-auth-card .card-body {
    padding: 2rem !important;
}

@media (max-width: 575.98px) {
    .ui-auth-card .card-body {
        padding: 1.35rem !important;
    }
}

.ui-auth-card h5 {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -.01em;
    color: var(--ui-ink);
}

.ui-auth-card label,
.ui-auth-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ui-ink);
    margin-bottom: .35rem;
}

.ui-auth-card label.required::after {
    content: " *";
    color: #d33;
}

.ui-auth-card .form-control,
.ui-auth-card select.form-control {
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-sm);
    padding: .6rem .85rem;
    font-size: 14px;
    transition: border-color .2s var(--ui-ease), box-shadow .2s var(--ui-ease);
}

.ui-auth-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--ui-focus);
}

.ui-auth-card .form-control.is-invalid {
    border-color: #d33;
}

.ui-auth-card .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(221, 51, 51, .2);
}

/* form-round is used on the login inputs only; keep it consistent with the rest. */
.ui-auth-card .form-round {
    border-radius: var(--ui-radius-sm);
}

/* Password reveal button — was an unpadded icon floating over the input. */
.ui-auth-card .password-eye {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 42px;
    color: var(--ui-muted);
}

.ui-auth-card .password-eye i:hover {
    color: var(--primary-color);
}

.ui-auth-card input[type="password"],
.ui-auth-card input[name="password"],
.ui-auth-card input[name="password_confirmation"] {
    padding-inline-end: 44px;
}

[dir="rtl"] .ui-auth-card .password-eye {
    right: auto;
    left: 0;
}

.ui-auth-card .form-check-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ui-muted);
}

.ui-auth-card .form-check-input:focus {
    box-shadow: 0 0 0 3px var(--ui-focus);
}

.ui-auth-card .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Primary action: full width and consistent across login and register, which
   previously used `w-100` and `btn-sm` respectively. */
.ui-auth-card .ui-auth-submit {
    width: 100%;
    border-radius: 999px;
    padding-block: .65rem;
    font-weight: 600;
    font-size: 15px;
}

.ui-auth-card .ui-auth-submit:disabled {
    opacity: .65;
}

.ui-auth-card a {
    text-decoration: none;
}

.ui-auth-card a:hover {
    text-decoration: underline;
}

/* Footer line under the card ("For Supplier Login → Click Here") */
.ui-auth-alt {
    justify-content: center;
    font-size: 14px;
    color: var(--ui-muted);
}

/* Section headings inside the long register forms */
.ui-auth-card legend,
.ui-auth-card .ui-auth-section {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ui-muted);
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--ui-border);
}

/* Interest checkbox grid on the register pages */
.ui-auth-card .form-check {
    margin-bottom: .35rem;
}

/* Validation text sizing is inconsistent between `.invalid-feedback` and the
   hand-rolled `.text-danger.text-small`; normalise both. */
.ui-auth-card .invalid-feedback,
.ui-auth-card .text-small {
    font-size: 12px;
}

/* ==========================================================================
   6b. WhatsApp chat widget (WATI, injected by an external script)
   --------------------------------------------------------------------------
   The JS options below lg give it a 100px bottom margin, but that value is read
   once at load and does not follow a resize or rotate. #bottom-menu measures
   88px, so these rules keep the widget clear of it at any width. !important
   because the widget writes its offsets as inline styles.
   ========================================================================== */

@media (max-width: 991.98px) {

    .wa-chat-box,
    .wa-chat-bubble,
    #wa-widget-send-button,
    [class^="wa-chat-btn"],
    [id^="wa-widget"] {
        bottom: 100px !important;
    }
}

/* Brand green, in case the widget falls back to its own default. */
#wa-widget-send-button,
[class^="wa-chat-btn"] {
    background-color: #25d366 !important;
}

/* ==========================================================================
   8. Content pages — contact, about, blog list, blog detail
   ========================================================================== */

/* Shared page header. These pages either had no heading at all (about) or an
   all-caps h4 doing the job of one (contact). */
.ui-page-head {
    max-width: 46rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.ui-page-head h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ui-ink);
    margin-bottom: .6rem;
}

.ui-page-head h1::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary-color);
    margin: .75rem auto 0;
}

.ui-page-head p {
    color: var(--ui-muted);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ---- Contact ---- */

.ui-contact-card {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius) !important;
    box-shadow: var(--ui-shadow-sm);
    height: 100%;
}

.ui-contact-legend {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ui-muted);
    padding-bottom: .6rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--ui-border);
}

.ui-contact-card label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ui-ink);
    margin-bottom: .35rem;
}

.ui-contact-card label.required::after {
    content: " *";
    color: #d33;
}

.ui-contact-card .form-control {
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-sm);
    padding: .6rem .85rem;
    font-size: 14px;
    transition: border-color .2s var(--ui-ease), box-shadow .2s var(--ui-ease);
}

.ui-contact-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--ui-focus);
}

.ui-contact-card textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.ui-contact-submit {
    border-radius: 999px;
    padding: .6rem 1.9rem;
    font-weight: 600;
}

/* Address block: the icon and text were two loose spans with a spacer div. */
.ui-contact-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .6rem 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ui-ink);
    border-bottom: 1px dashed var(--ui-border);
}

.ui-contact-row:last-child {
    border-bottom: 0;
}

.ui-contact-row a {
    color: var(--ui-ink);
    text-decoration: none;
    word-break: break-word;
}

.ui-contact-row a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.ui-contact-ico {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fdeef6;
    color: var(--primary-color);
    font-size: .8rem;
}

.ui-social {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: .5rem;
    flex-wrap: wrap;
}

.ui-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--ui-border-strong);
    color: var(--ui-muted);
    text-decoration: none;
    transition: background .2s var(--ui-ease), color .2s var(--ui-ease), border-color .2s var(--ui-ease);
}

.ui-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ---- Blog list ---- */

.ui-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow-sm);
    overflow: hidden;
    transition: transform .25s var(--ui-ease), box-shadow .25s var(--ui-ease), border-color .25s var(--ui-ease);
}

.ui-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui-shadow-lg);
    border-color: var(--primary-color);
}

.ui-blog-card .blog-thumb {
    overflow: hidden;
    background: #faf9fb;
}

/* Was a hardcoded 250px; a ratio keeps the row tidy at every breakpoint. */
.ui-blog-card .blog-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .35s var(--ui-ease);
}

.ui-blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.ui-blog-card .blog-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.15rem 1.25rem 1.25rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 12px;
    color: var(--ui-muted);
    margin-bottom: .6rem;
}

.ui-blog-title {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: .55rem;
}

.ui-blog-title a {
    color: var(--ui-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ui-blog-title a:hover {
    color: var(--primary-color);
}

.ui-blog-excerpt {
    font-size: .875rem;
    line-height: 1.65;
    color: var(--ui-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pins the CTA to the bottom so it lines up across cards of uneven text. */
.ui-blog-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.ui-blog-more i {
    font-size: .7rem;
    transition: transform .2s var(--ui-ease);
}

.ui-blog-more:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.ui-blog-more:hover i {
    transform: translateX(3px);
}

[dir="rtl"] .ui-blog-more i {
    transform: scaleX(-1);
}

[dir="rtl"] .ui-blog-more:hover i {
    transform: scaleX(-1) translateX(3px);
}

/* ---- Blog detail ---- */

.ui-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    font-size: 13px;
    color: var(--ui-muted);
    margin-bottom: 1.25rem;
}

.ui-breadcrumb a {
    color: var(--ui-muted);
    text-decoration: none;
}

.ui-breadcrumb a:hover {
    color: var(--primary-color);
}

.ui-breadcrumb .current {
    color: var(--ui-ink);
    font-weight: 600;
}

.ui-article,
.ui-article-aside {
    border: 1px solid var(--ui-border) !important;
    border-radius: var(--ui-radius) !important;
    box-shadow: var(--ui-shadow-sm);
}

.ui-article .post-feature-img {
    margin-bottom: 1.5rem;
}

.ui-article .post-feature-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--ui-radius-sm);
    background: #faf9fb;
}

.ui-article-title {
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--ui-ink);
    margin-bottom: .85rem;
}

/* Was a row of dead links with no spacing between the icon groups. */
.ui-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--ui-border);
    font-size: 13px;
    color: var(--ui-muted);
}

.ui-article-meta > span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* Readable measure and rhythm for editor-authored HTML. */
.ui-article-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #33313a;
}

.ui-article-body > *:first-child {
    margin-top: 0;
}

.ui-article-body p {
    margin-bottom: 1.15rem;
}

.ui-article-body h1,
.ui-article-body h2,
.ui-article-body h3,
.ui-article-body h4 {
    font-weight: 700;
    color: var(--ui-ink);
    margin: 2rem 0 .85rem;
    line-height: 1.35;
}

.ui-article-body h2 { font-size: 1.3rem; }
.ui-article-body h3 { font-size: 1.12rem; }
.ui-article-body h4 { font-size: 1rem; }

.ui-article-body ul,
.ui-article-body ol {
    margin: 0 0 1.15rem;
    padding-inline-start: 1.35rem;
}

.ui-article-body li {
    margin-bottom: .5rem;
}

.ui-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ui-radius-sm);
    margin: 1.25rem 0;
}

.ui-article-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.ui-article-body blockquote {
    margin: 1.5rem 0;
    padding: .85rem 1.15rem;
    border-inline-start: 3px solid var(--primary-color);
    background: #faf9fb;
    border-radius: var(--ui-radius-sm);
    color: var(--ui-muted);
}

.ui-article-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin-bottom: 1.15rem;
}

.ui-article-body td,
.ui-article-body th {
    border: 1px solid var(--ui-border);
    padding: .5rem .65rem;
}

.ui-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ui-border);
}

.ui-article-share {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: 13px;
    color: var(--ui-muted);
}

.ui-article-share a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--ui-border-strong);
    color: var(--ui-muted);
    font-size: .8rem;
    text-decoration: none;
    transition: background .2s var(--ui-ease), color .2s var(--ui-ease), border-color .2s var(--ui-ease);
}

.ui-article-share a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Sidebar follows a long article instead of leaving a tall empty column. */
@media (min-width: 992px) {
    .ui-article-aside {
        position: sticky;
        top: 1rem;
    }
}

.ui-aside-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ui-muted);
    padding-bottom: .6rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--ui-border);
}

.ui-article-aside .recent-post-item h6 {
    font-size: .875rem;
    line-height: 1.45;
    margin-bottom: .3rem;
}

.ui-article-aside .recent-post-item h6 a {
    color: var(--ui-ink);
    text-decoration: none;
}

.ui-article-aside .recent-post-item h6 a:hover {
    color: var(--primary-color);
}

.ui-article-aside .recent-post-img {
    background: #faf9fb;
}

/* ---- About ---- */

.ui-page--about .ui-page-head {
    padding-top: 2.5rem;
}

/* ==========================================================================
   7. Global focus visibility
   Keyboard users had no visible focus on links/buttons in these flows.
   ========================================================================== */

.p-card a:focus-visible,
.product-card a:focus-visible,
.cart-area a:focus-visible,
.cart-area [role="button"]:focus-visible,
.ui-auth-card a:focus-visible,
.block-footer-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}
