/*
 * Storefront -- what every theme shares: the floating contact buttons with
 * back-to-top, review stars, carousel arrows and dots, the brand, the cart
 * button, buttons and form fields, the sign-in modal, and the shades every
 * theme derives from its accent.
 *
 * A theme sets --sf-primary and --sf-on-primary (the text colour on it) in
 * its own :root; a store's brand colour overrides both (Setting::brand_style).
 * The shades below follow whichever is in force. Text in the accent on a
 * light surface uses --sf-primary-text, which a light brand colour (yellow,
 * lime ...) darkens so it stays readable.
 */

:root {
    --sf-primary-text: var(--sf-primary);
    --sf-primary-dark: color-mix(in srgb, var(--sf-primary) 78%, #000);
    --sf-primary-soft: color-mix(in srgb, var(--sf-primary) 9%, #fff);
    --sf-primary-line: color-mix(in srgb, var(--sf-primary) 28%, #fff);
    --sf-primary-glow: color-mix(in srgb, var(--sf-primary) 22%, transparent);
    --sf-sale: #e11d48;
    --sf-star: #f59e0b;
}

/* ------------------------------------------------------ contact buttons -- */

.contact-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-float-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
    color: #fff;
    font-size: 1.75rem;
    text-decoration: none;
    transition: transform .2s;
}

.contact-float-btn:hover,
.contact-float-btn:focus-visible {
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

.contact-float-btn.is-whatsapp {
    background: #25d366;
}

/* A soft pulse, so the WhatsApp button is noticed. */
.contact-float-btn.is-whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: #25d366;
    animation: contact-pulse 2.4s ease-out infinite;
}

.contact-float-btn.is-messenger {
    background: radial-gradient(circle at 25% 100%, #0099ff 0%, #a033ff 60%, #ff5280 95%);
    font-size: 1.625rem;
}

.contact-float-label {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    padding: .4375rem .75rem;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .2);
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(8px, -50%);
    pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
}

.contact-float-btn:hover .contact-float-label,
.contact-float-btn:focus-visible .contact-float-label {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

@keyframes contact-pulse {
    0% {
        opacity: .5;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.75);
    }
}

.back-to-top {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--sf-primary);
    box-shadow: 0 8px 20px var(--sf-primary-glow);
    color: var(--sf-on-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* ------------------------------------------------------------ the brand -- */

/*
 * The logo and the store's name side by side in every header and footer
 * (frontend/shared/brand). The theme colours them and sizes the logo; a
 * long name ends in "..." rather than pushing the search aside.
 */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
}

.brand-lockup .brand-mark {
    display: grid;
    flex: none;
    place-items: center;
}

.brand-lockup .brand-mark img {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand-lockup .brand-text {
    display: grid;
    min-width: 0;
    line-height: 1.15;
}

.brand-lockup .brand-name {
    overflow: hidden;
    font-size: 1.4375rem;
    text-overflow: ellipsis;
}

.brand-lockup .brand-tagline {
    overflow: hidden;
    margin-top: .25rem;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-logo.brand-lockup {
    max-width: min(340px, 34vw);
}

.footer-brand.brand-lockup .brand-name {
    font-size: 1.5rem;
}

/* The slogan in the header only where there is room for it. */
@media (max-width: 1199.98px) {
    .brand-logo .brand-tagline {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .brand-logo.brand-lockup {
        flex: 0 1 auto;
        gap: .5rem;
        max-width: none;
    }

    .brand-logo .brand-name {
        font-size: 1.125rem;
    }
}

/* ----------------------------------------------------------------- cart -- */

/* A cart button while its request runs, and the header count as it changes (sfCart). */
[data-add-to-cart].is-busy {
    opacity: .6;
    pointer-events: none;
}

[data-cart-count].is-bumped {
    animation: cart-bump .45s ease-out;
}

@keyframes cart-bump {
    40% {
        transform: scale(1.35);
    }
}

.sf-toast-link {
    color: var(--sf-primary-text);
    font-size: .8125rem;
    font-weight: 700;
    text-decoration: underline;
}

/* ------------------------------------------------------ sold-out cards -- */

/* Every theme's product card, when no branch has any left: the photo fades
   and a label sits across its foot. */
.product-media:has(.product-soldout) .product-thumb img {
    opacity: .5;
    filter: grayscale(.6);
}

.product-soldout {
    position: absolute;
    bottom: .75rem;
    left: 50%;
    z-index: 2;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, .82);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

/* ---------------------------------------------- menus, deeper levels -- */

/*
 * The phone menu below a top category (frontend/shared/mobile-menu-node):
 * each deeper level indented with a rule; brands carry a tag.
 */
.mobile-nav-sub .mobile-nav-toggle {
    padding: .375rem 0;
    color: var(--sf-muted);
    font-size: inherit;
    font-weight: 500;
}

.mobile-nav-sub .mobile-nav-toggle:not(.collapsed) {
    color: var(--sf-primary-text);
}

.mobile-nav-deep {
    margin: .125rem 0 .5rem;
    padding: 0 0 0 .875rem;
    border-left: 2px solid var(--sf-primary-line);
    list-style: none;
}

.mobile-nav-deep a {
    display: block;
    padding: .3125rem 0;
    color: var(--sf-muted);
    font-size: .8125rem;
}

.mobile-nav-list a.is-brand {
    display: flex;
    align-items: center;
    gap: .4375rem;
}

.mobile-nav-list a.is-brand i,
.cat-flyout a.is-brand i,
.cat-dropdown a.is-brand i {
    color: var(--sf-primary-line);
    font-size: .625rem;
}

.mobile-nav-deep a:hover,
.mobile-nav-list a.is-brand:hover {
    color: var(--sf-primary-text);
}

/* Desktop dropdowns: a brand is a plain row with its tag, never a fly-out. */
.cat-dropdown a.is-brand span {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
}

/* ---------------------------------------------------------------- stars -- */

.rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: var(--sf-star);
    font-size: .6875rem;
    line-height: 1;
}

.rating-count {
    margin-left: .25rem;
    color: #6b7280;
    font-size: .75rem;
}

/* ------------------------------------------------------------- carousels -- */

/* Arrows, where a carousel keeps them (hero sliders); themes restyle as they like. */
.sf-slider .owl-nav button.owl-prev,
.sf-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
    color: #111827;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s, background .2s, color .2s;
}

.sf-slider .owl-nav button.owl-prev {
    left: 14px;
}

.sf-slider .owl-nav button.owl-next {
    right: 14px;
}

.sf-slider:hover .owl-nav button {
    opacity: 1;
}

.sf-slider .owl-nav button:hover {
    background: var(--sf-primary);
    color: var(--sf-on-primary);
}

.sf-slider .owl-dots {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.sf-slider .owl-dots button.owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    transition: width .3s, background .3s;
}

.sf-slider .owl-dots button.owl-dot.active span {
    width: 26px;
    background: #fff;
}

/* Arrows moved into a section's head (data-carousel-nav); hidden while every item fits. */
.sf-nav {
    display: flex;
    gap: .375rem;
}

.sf-nav.disabled {
    display: none;
}

.sf-nav button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #e5e7eb !important;
    border-radius: 50%;
    background: #fff !important;
    color: #111827 !important;
    font-size: .75rem;
    transition: background .2s, color .2s, border-color .2s;
}

.sf-nav button:hover {
    border-color: var(--sf-primary) !important;
    background: var(--sf-primary) !important;
    color: var(--sf-on-primary) !important;
}

.sf-nav button.disabled {
    opacity: .35;
    pointer-events: none;
}

/* Carousels hide their items until Owl has laid them out, so nothing jumps. */
.owl-carousel:not(.owl-loaded) {
    display: flex;
    overflow: hidden;
}

.owl-carousel:not(.owl-loaded) > * {
    flex: 0 0 auto;
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .contact-float-btn.is-whatsapp::before {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .contact-float {
        right: 12px;
        bottom: 14px;
        gap: 10px;
    }

    .contact-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-float-label {
        display: none;
    }
}

/* ----------------------------------------------- buttons and forms -- */

/*
 * The storefront's buttons, checkboxes, fields and the SMS code boxes, for
 * every page: the sign-in modal is on every page, and the inner pages
 * (pages.css) use them too.
 */

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 42px;
    padding: .5rem 1.125rem;
    border: 1px solid var(--sf-primary);
    border-radius: var(--sf-radius-sm);
    background: var(--sf-primary);
    color: var(--sf-on-primary);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}

a.sf-btn:hover,
.sf-btn:hover {
    border-color: var(--sf-primary-dark);
    background: var(--sf-primary-dark);
    box-shadow: 0 8px 18px var(--sf-primary-glow);
    color: var(--sf-on-primary);
}

.sf-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--sf-primary-glow);
}

.sf-btn:disabled,
.sf-btn.is-disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .55;
}

.sf-btn.is-lg {
    min-height: 50px;
    padding-inline: 1.5rem;
    font-size: .9375rem;
}

.sf-btn.is-block {
    width: 100%;
}

.sf-btn.is-outline {
    background: #fff;
    color: var(--sf-primary-text);
}

a.sf-btn.is-outline:hover,
.sf-btn.is-outline:hover {
    background: var(--sf-primary-soft);
    box-shadow: none;
    color: var(--sf-primary-text);
}

.sf-btn.is-light {
    border-color: var(--sf-line);
    background: #fff;
    color: var(--sf-ink);
}

a.sf-btn.is-light:hover,
.sf-btn.is-light:hover {
    border-color: var(--sf-primary-line);
    background: var(--sf-primary-soft);
    box-shadow: none;
    color: var(--sf-primary-text);
}

.sf-btn.is-whatsapp {
    border-color: #25d366;
    background: #25d366;
    color: #fff;
}

a.sf-btn.is-whatsapp:hover,
.sf-btn.is-whatsapp:hover {
    border-color: #1ebe5b;
    background: #1ebe5b;
    box-shadow: 0 8px 18px rgba(37, 211, 102, .3);
    color: #fff;
}

/* Standard Pro's buttons are pills. */
.theme-pro .sf-btn {
    border-radius: 999px;
}

.sf-check {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin: 0;
    color: var(--sf-text);
    cursor: pointer;
}

.sf-check input {
    flex: 0 0 auto;
    width: 1.0625rem;
    height: 1.0625rem;
    margin: 0;
    accent-color: var(--sf-primary);
    cursor: pointer;
}

.sf-check span {
    flex: 1 1 auto;
    min-width: 0;
}

.sf-check small {
    color: var(--sf-muted);
    font-size: .75rem;
}

.sf-link {
    color: var(--sf-primary-text);
    font-weight: 600;
}

.sf-link:hover {
    text-decoration: underline;
}

.sf-form {
    display: grid;
    gap: 1.125rem;
}

.sf-form .row {
    --bs-gutter-y: 1.125rem;
}

.sf-field label {
    display: block;
    margin-bottom: .4375rem;
    color: var(--sf-ink);
    font-size: .8125rem;
    font-weight: 700;
}

.sf-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.sf-field-row .sf-link {
    margin-bottom: .4375rem;
    font-size: .8125rem;
}

.sf-input {
    position: relative;
}

.sf-input > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    color: var(--sf-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.sf-input input {
    width: 100%;
    height: 50px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: #fff;
    color: var(--sf-ink);
    font-size: .9375rem;
    transition: border-color .2s, box-shadow .2s;
}

.sf-input input::placeholder {
    color: #9ca3af;
}

.sf-input input:focus {
    border-color: var(--sf-primary);
    outline: 0;
    box-shadow: 0 0 0 .2rem var(--sf-primary-glow);
}

.sf-input input:focus + .sf-input-eye,
.sf-input:focus-within > i {
    color: var(--sf-primary-text);
}

.sf-input input.is-invalid {
    border-color: var(--sf-sale);
}

.sf-input input.is-invalid:focus {
    box-shadow: 0 0 0 .2rem rgba(225, 29, 72, .15);
}

.sf-input:has(.sf-input-eye) input {
    padding-right: 3rem;
}

.sf-input-eye {
    position: absolute;
    top: 50%;
    right: .375rem;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--sf-radius-sm);
    background: transparent;
    color: var(--sf-muted);
    transform: translateY(-50%);
}

.sf-input-eye:hover {
    background: var(--sf-page);
    color: var(--sf-ink);
}

.sf-error {
    display: block;
    margin-top: .375rem;
    color: var(--sf-sale);
    font-size: .8125rem;
    font-weight: 500;
}

.sf-agree {
    margin: 0;
    color: var(--sf-muted);
    font-size: .8125rem;
}

.sf-agree a {
    color: var(--sf-primary-text);
    font-weight: 600;
}

.sf-agree a:hover {
    text-decoration: underline;
}

.sf-btn.is-busy {
    opacity: .7;
    pointer-events: none;
}

.sf-btn .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: .15em;
}

.sf-otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .5rem;
    max-width: 360px;
}

.sf-otp-inputs input {
    width: 100%;
    height: 54px;
    border: 1.5px solid var(--sf-line);
    border-radius: var(--sf-radius-sm);
    background: #fff;
    color: var(--sf-ink);
    font-size: 1.375rem;
    font-weight: 800;
    text-align: center;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.sf-otp-inputs input:focus {
    border-color: var(--sf-primary);
    outline: 0;
    box-shadow: 0 0 0 .2rem var(--sf-primary-glow);
}

.sf-otp-inputs input.is-filled {
    border-color: var(--sf-primary-line);
    background: var(--sf-primary-soft);
}

.sf-otp-inputs input.is-invalid {
    border-color: var(--sf-sale);
    background: #fff1f2;
}

.sf-otp-inputs input.is-valid {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

.sf-otp.is-checking .sf-otp-inputs {
    opacity: .6;
}

.sf-otp-resend {
    margin: .625rem 0 0;
    color: var(--sf-muted);
    font-size: .8125rem;
}

/* A new password's strength: 0 too short, 1 weak ... 4 strong. */
.sf-strength {
    position: relative;
    height: 4px;
    margin: .5rem 0 1.125rem;
    border-radius: 4px;
    background: var(--sf-line);
}

.sf-strength:not([data-level]),
.sf-strength[data-level=""] {
    display: none;
}

.sf-strength i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 10%;
    border-radius: 4px;
    background: var(--sf-sale);
    transition: width .25s, background-color .25s;
}

.sf-strength::after {
    content: attr(data-label);
    position: absolute;
    top: .375rem;
    right: 0;
    color: var(--sf-muted);
    font-size: .6875rem;
    font-weight: 700;
}

.sf-strength[data-level="1"] i {
    width: 30%;
    background: #f97316;
}

.sf-strength[data-level="2"] i {
    width: 55%;
    background: #f59e0b;
}

.sf-strength[data-level="3"] i {
    width: 80%;
    background: #22c55e;
}

.sf-strength[data-level="4"] i {
    width: 100%;
    background: #16a34a;
}

.sf-otp-resend .sf-link {
    padding: 0;
    border: 0;
    background: none;
}

.sf-optional {
    color: var(--sf-muted);
    font-weight: 500;
}

/* The SMS code step's line: "Enter the code we sent to ..." */
.sf-code-note {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    margin: 0;
    color: var(--sf-text);
    font-size: .875rem;
    line-height: 1.6;
}

.sf-code-note > i {
    margin-top: .25rem;
    color: var(--sf-primary-text);
}

.sf-code-note b {
    color: var(--sf-ink);
}

.sf-code-note .sf-link {
    margin-left: .25rem;
    padding: 0;
    border: 0;
    background: none;
}

/* ------------------------------------------------------ sign-in modal -- */

/* Sign in / Create account as a dialog (frontend/shared/auth-modal). */
.sf-auth-modal .modal-dialog {
    max-width: 470px;
}

.sf-auth-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: calc(var(--sf-radius) + 4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.sf-auth-modal-head {
    position: relative;
    padding: 1.75rem 1.75rem 1.5rem;
    background: linear-gradient(135deg, var(--sf-primary) 0%, var(--sf-primary-dark) 100%);
    color: var(--sf-on-primary);
    text-align: center;
}

.sf-auth-modal-head .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.sf-auth-modal-logo {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: .75rem;
    padding: .375rem;
    border-radius: var(--sf-radius-sm);
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.sf-auth-modal-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sf-auth-modal-head h2 {
    margin: 0 0 .25rem;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 800;
}

.sf-auth-modal-head p {
    margin: 0;
    font-size: .8125rem;
    opacity: .9;
}

.sf-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--sf-line);
}

.sf-auth-tabs .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 1rem .5rem;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--sf-muted);
    font-size: .9375rem;
    font-weight: 700;
}

.sf-auth-tabs .nav-link:hover {
    color: var(--sf-ink);
}

.sf-auth-tabs .nav-link.active {
    color: var(--sf-primary-text);
}

.sf-auth-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    bottom: -1px;
    left: 1.5rem;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--sf-primary);
}

.sf-auth-modal-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

@media (max-width: 575.98px) {
    .sf-auth-modal-head {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .sf-auth-modal-body {
        padding: 1.25rem;
    }
}

/* ------------------------------------------------- footer: shared bits -- */

/* The store's social pages (frontend/shared/footer-social), each in its colour. */
.sf-social {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.sf-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    font-size: .9375rem;
    transition: transform .2s, box-shadow .2s;
}

.sf-social a:hover {
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    transform: translateY(-2px);
}

.sf-social .is-facebook {
    background: #1877f2;
}

.sf-social .is-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.sf-social .is-youtube {
    background: #ff0000;
}

.sf-social .is-whatsapp {
    background: #25d366;
}

/* The ways to pay (frontend/shared/payment-logos): white badges in each brand's colours. */
.pay-logos {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3125rem;
    min-width: 58px;
    height: 34px;
    padding: 0 .625rem;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
    color: #1f2937;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1;
    white-space: nowrap;
}

.pay-logo.is-visa {
    color: #1a1f71;
    font-size: .9375rem;
    font-style: italic;
    font-weight: 900;
    letter-spacing: .02em;
}

.pay-logo.is-mastercard i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eb001b;
}

.pay-logo.is-mastercard i + i {
    margin-left: -10px;
    background: #f79e1b;
    mix-blend-mode: multiply;
}

.pay-logo.is-bkash {
    color: #e2136e;
    font-size: .8125rem;
}

.pay-logo.is-nagad {
    color: #ec1c24;
    font-size: .8125rem;
}

.pay-logo.is-rocket {
    color: #8c3494;
    font-size: .8125rem;
}

.pay-logo.is-upay {
    color: #0b4ea2;
    font-size: .8125rem;
}

.pay-logo.is-bank i,
.pay-logo.is-cod i {
    color: var(--sf-primary-text);
    font-size: .8125rem;
}

/* "Stay updated" (frontend/shared/newsletter); a theme colours the field. */
.sf-newsletter-field {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: var(--sf-radius-sm);
    background: #fff;
}

.sf-newsletter-field > i {
    align-self: center;
    padding-left: .875rem;
    color: #94a3b8;
}

.sf-newsletter-field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 .75rem;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 16px;
}

.sf-newsletter-field input:focus {
    outline: 0;
}

.sf-newsletter-field input::placeholder {
    color: #94a3b8;
}

.sf-newsletter-field button {
    flex: none;
    padding: 0 1.25rem;
    border: 0;
    background: var(--sf-primary);
    color: var(--sf-on-primary);
    font-size: .875rem;
    font-weight: 700;
    transition: background .2s;
}

.sf-newsletter-field button:hover {
    background: var(--sf-primary-dark);
}

.sf-newsletter.is-busy button {
    opacity: .7;
    pointer-events: none;
}

.sf-newsletter-message {
    display: block;
    min-height: 1.125rem;
    margin-top: .375rem;
    font-size: .8125rem;
    font-weight: 600;
}

.sf-newsletter-message.is-ok {
    color: #22c55e;
}

.sf-newsletter-message.is-error {
    color: #f43f5e;
}

/* A theme's footer links: an icon before, an arrow after (frontend/shared/footer-links). */
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.footer-links a > span {
    flex: 1 1 auto;
    min-width: 0;
}

.footer-link-icon {
    width: 1.125rem;
    flex: none;
    text-align: center;
}

.footer-link-arrow {
    flex: none;
    font-size: .6875rem;
    opacity: .55;
    transition: transform .2s, opacity .2s;
}

.footer-links a:hover .footer-link-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ------------------------------------------------- header: shared bits -- */

/*
 * A one-line menu that shows what fits ([data-priority-nav], storefront.js):
 * the rest go under its More item. Hidden until measured, so it never
 * flashes the overflow.
 */
[data-priority-nav]:not(.is-measured) > li:not([data-priority-keep]) {
    visibility: hidden;
}

[data-priority-nav] > li.is-folded,
[data-priority-nav] > [data-priority-more][hidden] {
    display: none !important;
}

/* A phone keeps the page still when the search box is tapped (iOS zooms below 16px). */
@media (max-width: 991.98px) {
    .site-header .header-search input {
        font-size: 16px;
    }
}

/*
 * On phones the search hides under the header's search button
 * ([data-search-toggle], storefront.js) -- open on search results.
 */
:where(button.header-action) {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .site-header [data-mobile-search] {
        display: none !important;
    }

    .site-header [data-mobile-search].is-open {
        display: flex !important;
        animation: search-drop .2s ease-out;
    }
}

@keyframes search-drop {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* -------------------------------------------------- phone bottom bar -- */

/* Home · Categories · Offers · Cart · Account (frontend/shared/mobile-bar). */
.sf-mobile-bar {
    display: none;
}

@media (max-width: 991.98px) {
    .sf-mobile-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1035;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: .3125rem .25rem calc(.3125rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--sf-line);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -6px 22px rgba(15, 23, 42, .08);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .sf-mobile-bar a,
    .sf-mobile-bar button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .1875rem;
        padding: .3125rem 0 .1875rem;
        border: 0;
        background: none;
        color: var(--sf-muted);
        font-size: .6875rem;
        font-weight: 600;
        line-height: 1.1;
    }

    .sf-mobile-bar i {
        font-size: 1.125rem;
    }

    .sf-mobile-bar .is-active {
        color: var(--sf-primary-text);
    }

    .sf-mobile-bar .is-active i {
        transform: translateY(-1px);
    }

    .sf-mobile-bar-icon {
        position: relative;
    }

    .sf-mobile-bar-icon b {
        position: absolute;
        top: -6px;
        right: -11px;
        display: grid;
        place-items: center;
        min-width: 15px;
        height: 15px;
        padding: 0 3px;
        border: 2px solid #fff;
        border-radius: 999px;
        background: var(--sf-primary);
        color: var(--sf-on-primary);
        font-size: .5625rem;
        font-weight: 800;
        box-sizing: content-box;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    /* The WhatsApp / Messenger buttons sit above the bar. */
    .contact-float {
        right: 14px;
        bottom: calc(74px + env(safe-area-inset-bottom));
        gap: 10px;
    }

    .contact-float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .back-to-top {
        width: 38px;
        height: 38px;
    }
}

/* ------------------------------------------------------------ wishlist -- */

/* A card's heart: always shown once saved (red), and on touch screens, which can't hover. */
.product-card .product-wish.is-active {
    color: var(--sf-sale);
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .product-card .product-wish {
        opacity: 1;
        transform: none;
    }
}

[data-wish].is-busy {
    opacity: .6;
    pointer-events: none;
}
