:root {
    --xc-magenta: #b4205f;
    --xc-plum: #5f1b5b;
    --xc-ink: #1f002b;
    --xc-ink-2: #34205f;
    --xc-link: #5f5090;
    --xc-lav: #f5f1fb;
    --xc-lav-2: #ebe3f7;
    --xc-line: rgba(95, 80, 144, .18);
    --xc-gutter: clamp(12px, 3vw, 28px);
    --xc-container: 1280px;
    --xc-radius-bar: clamp(30px, 4.5vw, 64px);
    /* --xc-radius-bar: clamp(24px, 3.5vw, 48px); */
    /* --xc-radius-bar: clamp(20px, 3vw, 32px); */
    --xc-yellow: #ffc928;
    /* active post type color */
    --xc-tab-grey: #cdc4d3;
    /* --xc-header-side: clamp(6px, 1.4vw, 24px); */
    --xc-corporateblack: #1f002b;
}

.xc-promo {
    --xc-radius-promo: clamp(16px, 2.4vw, 28px);
    background: linear-gradient(100deg, var(--xc-magenta) 0%, var(--xc-plum) 100%);
    color: var(--xc-corporateblack);
}

.xc-promo[hidden] {
    display: none;
}

.xc-promo__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 52px;
    padding: 8px clamp(16px, 3vw, 40px) 8px 56px;
    border-radius: 0 0 var(--xc-radius-promo) var(--xc-radius-promo);
    background: linear-gradient(100deg, #f3d9e8 0%, #dcc3de 100%);
}

.xc-promo__close {
    position: absolute;
    left: clamp(8px, 2vw, 20px);
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--xc-ink-2);
    font-size: 1rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.xc-promo__close:hover {
    background: rgba(255, 255, 255, .55);
}

.xc-promo__app {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--xc-magenta), var(--xc-plum));
}

.xc-promo__app::after {
    content: "";
    position: absolute;
    inset: 8px;
    background: #fff;
    -webkit-mask: var(--xc-icon) center / contain no-repeat;
    mask: var(--xc-icon) center / contain no-repeat;
}

.xc-promo__text {
    min-width: 0;
    margin: 0;
    font-size: clamp(.9rem, 2vw, 1.1rem);
    line-height: 1.2;
}

.xc-promo__text strong {
    font-weight: 700;
}

.xc-promo a.xc-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(58, 11, 51, .15);
    color: var(--xc-plum);
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.xc-promo a.xc-promo__cta:hover {
    color: var(--xc-magenta);
    text-decoration: none;
}

.xc-promo__cta svg {
    display: block;
    width: 20px;
    height: 20px;
}

.xc-promo__close:focus-visible,
.xc-promo a.xc-promo__cta:focus-visible {
    outline: 2px solid var(--xc-magenta);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .xc-promo__inner {
        justify-content: flex-start;
        gap: 8px;
        min-height: 48px;
        padding: 8px 10px 8px 44px;
    }

    .xc-promo__app {
        width: 32px;
        height: 32px;
    }

    .xc-promo__text {
        flex: 1 1 auto;
        font-size: .85rem;
    }

    .xc-promo a.xc-promo__cta {
        height: 32px;
        padding: 0 10px;
        gap: 5px;
        font-size: .8rem;
    }

    .xc-promo__cta svg {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 379.98px) {
    .xc-promo__app {
        display: none;
    }
}

/* Side gap grows with the screen (same look on laptop and big monitor) */
@media (min-width: 768px) {
    :root {
        --xc-container: 94%;
    }
}

@media (min-width: 1100px) {
    :root {
        --xc-container: 88%;
    }
}

@media (min-width: 1366px) {
    :root {
        --xc-container: min(84%, 1560px);
    }
}

.xc-container {
    width: 100%;
    max-width: var(--xc-container);
    margin-inline: auto;
    padding-inline: var(--xc-gutter);
}

/* Body sections and footer: full width (only the header keeps the normal container width) */
.xc-story .xc-container,
.xc-hero .xc-container,
.xc-explore .xc-container,
.xc-apps .xc-container,
.xc-partners .xc-container,
.xc-footer .xc-container {
    max-width: none;
}
/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.xc-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    padding-inline: var(--xc-header-side);
}

.xc-header__inner {
    background: linear-gradient(100deg, var(--xc-magenta) 0%, var(--xc-plum) 100%);
    color: #fff;
    border-radius: 0 0 var(--xc-radius-bar) var(--xc-radius-bar);
    padding-top: 12px;
}

.xc-header__top {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "logo actions"
        "search search";
    align-items: center;
    gap: 10px 12px;
}

.xc-play-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.xc-dl__store .xc-play-icon {
    width: 26px;
    /* hero ma Apple icon ko size sanga milau */
    height: 26px;
}

.xc-logo {
    grid-area: logo;
    display: inline-flex;
    align-items: center;
}

.xc-logo img {
    height: clamp(28px, 4vw, 44px);
    width: auto;
    display: block;
}

.xc-logo--invert img {
    filter: brightness(0) invert(1);
}

.xc-logo--fallback {
    background: #fff;
    padding: 4px 12px;
    border-radius: 12px;
}

.xc-logo--fallback img {
    height: clamp(24px, 3.4vw, 36px);
}

.xc-search {
    grid-area: search;
    position: relative;
    width: 100%;
    max-width: 550px;
    margin-inline: auto;
}

.xc-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 3px 6px 3px 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.xc-search__field:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

.xc-search__field input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .95rem;
    font-weight: 600;
    color: var(--xc-corporateblack);
    padding: 0;
}

.xc-search__field input::placeholder {
    color: var(--xc-magenta);
    opacity: 1;
    font-weight: 600;
}

.xc-search__submit,
.xc-search__scan {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--xc-magenta);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.xc-search__scan:hover,
.xc-search__submit:hover {
    background: var(--xc-lav);
}

.xc-search__loc {
    display: none !important;
}

.xc-search__brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 4px;
}

.xc-search__brand img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.xc-search__submit {
    display: none;
}

.xc-search__field.has-query .xc-search__submit {
    display: inline-flex;
}

.xc-search__field.has-query .xc-search__scan {
    display: none;
}

.xc-search #product_suggestion {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    color: var(--xc-corporateblack);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(40, 10, 50, .25);
}

.xc-search #product_suggestion li.suggestion {
    padding: .6rem 1.1rem;
    cursor: pointer;
    font-size: .92rem;
}

.xc-search #product_suggestion li.suggestion a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.xc-search #product_suggestion li.suggestion:hover,
.xc-search #product_suggestion li.suggestion.active {
    background: var(--xc-lav);
}

.xc-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
}

.xc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.xc-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.xc-btn--outline {
    border-color: rgba(255, 255, 255, .55);
}

.xc-btn--solid {
    background: #fff;
    color: var(--xc-plum);
}

.xc-btn--solid:hover {
    background: var(--xc-lav-2);
    color: var(--xc-plum);
}

.xc-btn:focus-visible,
.xc-icon-btn:focus-visible,
.xc-tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.xc-btn--info {
    padding-inline: 10px;
}

.xc-label-sm {
    display: none;
}

.xc-getapp__dl {
    display: none;
}

.xc-header .xc-getapp {
    display: inline-flex;
    align-items: stretch;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    overflow: hidden;
}

.xc-header .xc-getapp a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s;
}

.xc-header .xc-getapp a:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
}

.xc-header .xc-getapp a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.xc-getapp__label {
    gap: 8px;
    padding: 0 14px;
}

.xc-header .xc-getapp .xc-getapp__store {
    display: none;
    width: 40px;
    font-size: 1.1rem;
    border-left: 1px solid rgba(255, 255, 255, .25);
}

.xc-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.xc-icon-btn:hover {
    background: rgba(255, 255, 255, .28);
    color: #fff;
}

.xc-icon-btn.dropdown-toggle::after {
    display: none;
}

.xc-btn--sell {
    position: relative;
}

.xc-btn--sell.dropdown-toggle::after {
    display: none;
}

.xc-sell {
    position: relative;
}

.xc-sell__badge {
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: .65rem;
}

@media (hover: hover) and (min-width: 768px) {
    .xc-sell:hover>.dropdown-menu {
        display: block;
    }
}

.xc-flag img {
    display: block;
    border-radius: 3px;
}

.xc-sell .user-menu {
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 0;
}

/* ---------------------------------------------------------
   POST TYPE TAB BAR
   --------------------------------------------------------- */
.xc-tabs {
    margin-top: 10px;
    padding-bottom: 12px;
}

.xc-tabs.z-1 {
    z-index: 1;
}

.xc-tabs__list {
    display: flex;
    gap: 2px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.xc-tabs__list::-webkit-scrollbar {
    display: none;
}

.xc-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: clamp(54px, 9vw, 88px);
    padding: 8px clamp(8px, 1.6vw, 18px);
    border-radius: 14px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(.68rem, 1.5vw, .8rem);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.xc-tab__icon {
    display: block;
    width: clamp(20px, 2.4vw, 26px);
    height: clamp(20px, 2.4vw, 26px);
    background-color: currentColor;
    /* white normally, yellow when active */
    -webkit-mask: var(--xc-icon) center / contain no-repeat;
    mask: var(--xc-icon) center / contain no-repeat;
}

.xc-header .xc-tab {
    --xc-tab-color: var(--xc-tab-grey);
    color: var(--xc-tab-color) !important;
}

.xc-header .xc-tab:hover {
    --xc-tab-color: #fff;
    background: rgba(255, 255, 255, .14);
}

.xc-header .xc-tab.is-active,
.xc-header .xc-tab.is-active:hover {
    --xc-tab-color: var(--xc-yellow);
    font-weight: 700;
    background: transparent;
}

@media (max-width: 399.98px) {
    .xc-btn {
        padding: 0 11px;
    }

    .xc-getapp__label span {
        display: none;
    }

    .xc-getapp__label {
        padding: 0 11px;
    }

    .xc-getapp__dl {
        display: inline-block;
    }

    .xc-header .xc-getapp {
        height: 36px;
    }

    .xc-actions {
        gap: 4px;
    }

    .xc-icon-btn {
        width: 36px;
        height: 36px;
    }

    .xc-btn {
        height: 36px;
    }
}

@media (min-width: 400px) and (max-width: 575.98px) {
    .xc-getapp__dl {
        display: none;
    }
}

@media (min-width: 576px) {
    .xc-header .xc-getapp .xc-getapp__store {
        display: inline-flex;
    }

    .xc-btn {
        padding: 0 16px;
    }
}

@media (min-width: 768px) {
    .xc-header__inner {
        padding-top: 16px;
    }

    .xc-header__top {
        grid-template-columns: minmax(auto, 1fr) minmax(0, 640px) minmax(auto, 1fr);
        grid-template-areas: "logo search actions";
        gap: 16px 24px;
    }

    .xc-logo {
        justify-self: start;
    }

    .xc-actions {
        justify-self: end;
    }

    .xc-search {
        margin-inline: 0;
    }

    .xc-actions {
        gap: 8px;
    }
}

@media (min-width: 992px) {
    .xc-label-sm {
        display: inline;
    }
}

@media (min-width: 1200px) {
    .xc-header__top {
        gap: 16px 40px;
    }
}

/* Tablet / small laptop (768 - 1199px): logo | flexible search | actions */
/*@media (min-width: 768px) and (max-width: 1599.98px) {*/
/*    .xc-header__top {*/
/*        grid-template-columns: auto minmax(0, 1fr) auto;*/
/*        grid-template-areas: "logo search actions";*/
/*        gap: 12px 16px;*/
/*    }*/

/*    .xc-search {*/
/*        max-width: 640px;*/
/*        min-width: 0;*/
/*        margin-inline: 0;*/
/*    }*/

/*    .xc-search__field {*/
/*        margin-left: 0;*/
/*    }*/

/*    #search.xc-search #product_suggestion {*/
/*        left: 0 !important;*/
        /* suggestions start/end exactly with the search bar */
/*    }*/

/*    .xc-label-sm {*/
/*        display: none;*/
        /* Info shows only its icon, saves space */
/*    }*/

/*    .xc-sell>.xc-btn--user .xc-user__name {*/
/*        max-width: 110px;*/
/*    }*/
/*}*/
/*@media (min-width: 1200px) and (max-width: 1599.98px) {*/
/*    .xc-label-sm {*/
/*        display: inline;*/
/*    }*/
/*}*/

/* Tablet (768 - 1199px): logo | flexible search | actions */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .xc-header__top {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo search actions";
        gap: 12px 16px;
    }

    .xc-search {
        max-width: 640px;
        min-width: 0;
        margin-inline: 0;
    }

    .xc-search__field {
        margin-left: 0;
    }

    #search.xc-search #product_suggestion {
        left: 0 !important;
    }

    .xc-label-sm {
        display: none;
    }

    .xc-sell>.xc-btn--user .xc-user__name {
        max-width: 110px;
    }
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.xc-footer {
    background: var(--xc-lav);
    color: var(--xc-ink-2);
    padding: clamp(24px, 4vw, 44px) 0 14px;
    font-size: .92rem;
    --xc-footer-text: var(--xc-ink-2);
}

.xc-footer p,
.xc-footer li,
.xc-footer a:not(.icon-color):not(.app-icon) {
    color: var(--xc-corporateblack) !important;
}

.xc-footer a:not(.icon-color):not(.app-icon):hover {
    color: var(--xc-magenta) !important;
}



.xc-footer p {
    margin: 0 0 4px;
}

.xc-footer__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
}

.xc-footer__brand {
    grid-column: 1 / -1;
}

.xc-footer__col--grievance {
    grid-column: 1 / -1;
}

.xc-footer__logo {
    display: inline-block;
    margin-bottom: 8px;
}

.xc-footer__logo-mark {
    display: block;
    height: clamp(32px, 5vw, 44px);
    aspect-ratio: 4 / 1;
    background: linear-gradient(100deg, var(--xc-magenta), var(--xc-plum));
    -webkit-mask: var(--xc-logo) no-repeat left center / contain;
    mask: var(--xc-logo) no-repeat left center / contain;
}

.xc-footer__company {
    font-weight: 700;
    color: var(--xc-corporateblack);
}

.xc-footer__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--xc-corporateblack);
}

.xc-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.xc-footer__phone a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--xc-ink-2);
}

.xc-footer__phone i {
    color: var(--xc-magenta);
}

.xc-footer__more {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--xc-line);
}

.xc-footer__apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xc-footer__apps img {
    height: 40px;
    width: auto;
}

.xc-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.xc-footer__partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--xc-line);
    text-align: center;
}

.xc-footer__partners img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.xc-footer__partners p {
    margin: 6px 0 0;
    font-size: .8rem;
    text-transform: capitalize;
}

.xc-footer__copy {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--xc-line);
    text-align: center;
    font-size: .85rem;
    color: var(--xc-corporateblack);
}

.xc-footer {
    font-size: clamp(.62rem, 2.3vw, .92rem);
}

.xc-footer__main {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
    gap: 0;
}

.xc-footer__brand,
.xc-footer__col--grievance {
    grid-column: auto;
}

.xc-footer__main>* {
    min-width: 0;
    padding-inline: clamp(6px, 2.4vw, 32px);
    overflow-wrap: anywhere;
}

.xc-footer__main>*:first-child {
    padding-left: 0;
}

.xc-footer__main>*:last-child {
    padding-right: 0;
}

.xc-footer__main>*+* {
    border-left: 1px solid var(--xc-line);
}

.xc-footer__title {
    font-size: clamp(.7rem, 2.6vw, 1rem);
    margin-bottom: clamp(8px, 2vw, 12px);
}

.xc-footer__list {
    gap: clamp(5px, 1.4vw, 8px);
}

.xc-footer__logo-mark {
    height: clamp(22px, 5vw, 44px);
}

.xc-footer__phone a {
    font-size: clamp(.72rem, 2.6vw, 1.15rem);
    gap: 5px;
}

.xc-footer__follow {
    margin-top: clamp(12px, 2.4vw, 20px);
}

.xc-footer__social {
    gap: 6px;
}

.xc-footer__apps img {
    height: clamp(26px, 6vw, 40px);
}

.xc-footer__partners img {
    height: clamp(26px, 6vw, 36px);
}

.xc-footer__partners {
    gap: 14px clamp(16px, 4vw, 32px);
}

/* ---------------------------------------------------------
   DOWNLOAD MODAL
   --------------------------------------------------------- */

.xc-modal {
    overscroll-behavior: contain;
}

.xc-modal {
    position: fixed;
    inset: 0;
    width: min(92vw, 420px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: var(--xc-corporateblack);
    box-shadow: 0 24px 64px rgba(40, 10, 50, .35);
}

.xc-modal:not([open]) {
    display: none;
}

.xc-modal__card {
    padding: clamp(24px, 5vw, 36px);
    text-align: center;
}

/* Download modal */
.xc-modal__btn--solid,
.xc-modal__btn--solid:hover,
.xc-modal__btn--solid:focus {
    color: #fff !important;
}

.xc-modal__title {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 800;
    color: var(--xc-corporateblack);
}

.xc-modal__text {
    margin: 0 0 24px;
    font-size: .98rem;
    font-weight: 600;
    color: var(--xc-corporateblack);
}

.xc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.xc-modal__btn {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.xc-modal__btn:focus-visible {
    outline: 2px solid var(--xc-magenta);
    outline-offset: 2px;
}

.xc-modal__btn--ghost {
    border-color: var(--xc-line);
    background: #fff;
    color: var(--xc-link);
}

.xc-modal__btn--ghost:hover {
    background: var(--xc-lav);
}

.xc-modal__btn--solid {
    background: linear-gradient(100deg, var(--xc-magenta), var(--xc-plum));
    color: #fff;
}

.xc-modal__btn--solid:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
}

@media (min-width: 768px) {
    .xc-footer__main {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: 0;
    }

    .xc-footer__brand,
    .xc-footer__col--grievance {
        grid-column: auto;
    }

    .xc-footer__main>* {
        padding-inline: clamp(16px, 2.5vw, 32px);
    }

    .xc-footer__main>*:first-child {
        padding-left: 0;
    }

    .xc-footer__main>*+* {
        border-left: 1px solid var(--xc-line);
    }

    .xc-footer__more {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .xc-search__field {
        margin-left: 45px;
    }
}

@media (max-width: 767.98px) {

    .xc-header {
        padding: 0;
    }

    .xc-header__inner {
        padding-top: 10px;
        border-radius: 0 0 var(--xc-radius-bar) var(--xc-radius-bar);
    }

    .xc-header__top {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo search actions";
        gap: 6px;
    }

    .xc-logo img {
        height: 18px;
    }

    .xc-logo--fallback img {
        height: 20px;
    }

    .xc-search {
        margin: 0;
        max-width: none;
        min-width: 0;
    }

    .xc-search__field {
        margin-left: 0;
        gap: 2px;
        padding: 2px 4px;
    }

    .xc-search__brand {
        width: 26px;
        height: 30px;
        margin-left: 4px;
    }

    .xc-search__brand img {
        width: 18px;
        height: 18px;
    }

    .xc-search__field input {
        height: 30px;
        font-size: .72rem;
        text-overflow: ellipsis;
    }

    .xc-search__submit,
    .xc-search__scan {
        width: 30px;
        height: 30px;
    }

    .xc-search__scan svg {
        width: 18px;
        height: 18px;
    }

    .xc-actions {
        gap: 4px;
    }

    .xc-btn {
        height: 30px;
        padding: 0 9px;
        gap: 4px;
        font-size: .72rem;
    }

    .xc-btn--info {
        padding: 0 6px;
    }

    .xc-info-icon {
        width: 17px;
        height: 17px;
    }

    .xc-header .xc-getapp {
        height: 30px;
    }

    .xc-header .xc-getapp a {
        font-size: .72rem;
    }

    .xc-getapp__label {
        padding: 0 9px;
        gap: 4px;
    }

    .xc-getapp__dl {
        display: inline-block;
        font-size: .7rem;
    }

    .xc-header .xc-getapp .xc-getapp__store {
        display: none;
    }

    .xc-label-sm {
        display: none;
    }

    .xc-sell__name {
        max-width: 56px;
    }

    .xc-getapp__label span {
        display: none;
    }

    .xc-getapp__label {
        padding: 0 9px;
    }

    .xc-sell__name {
        display: none;
    }

    .xc-tabs__list {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .xc-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 2px;
        font-size: clamp(.62rem, 2.6vw, .75rem);
    }

    .xc-tab__icon {
        width: 24px;
        height: 24px;
    }

    .xc-tab span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 440px) and (max-width: 767.98px) {
    .xc-getapp__label span {
        display: inline;
    }
}

@media (min-width: 520px) and (max-width: 767.98px) {
    .xc-label-sm {
        display: inline;
    }

    .xc-sell__name {
        display: inline;
    }
}

@media (max-width: 379.98px) {
    .xc-btn--sell>span:not(.xc-sell__badge) {
        display: none;
    }

    .xc-btn--sell {
        padding: 0 9px;
    }
}


/* ---------------------------------------------------------
   HEADER: search suggestions + Sell / account dropdown
   (moved from header.blade.php)
   --------------------------------------------------------- */
#search.xc-search {
    position: relative;
}

#search.xc-search #product_suggestion {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box;
}

@media (min-width: 768px) {

    #search.xc-search #product_suggestion {
        left: 45px !important;
    }
}

.xc-sell {
    position: relative;
}

.xc-sell>.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    inset-inline-end: auto !important;
    margin: 0 !important;
    transform: none !important;
}

.xc-sell>.dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}

.xc-sell>.xc-btn--sell,
.xc-sell:hover>.xc-btn--sell,
.xc-sell>.xc-btn--sell:hover,
.xc-sell>.xc-btn--sell:focus,
.xc-sell>.xc-btn--sell:focus-visible,
.xc-sell>.xc-btn--sell:active,
.xc-sell>.xc-btn--sell.show,
.xc-sell.show>.xc-btn--sell {
    background-color: #ebe3f7 !important;
    color: #000 !important;
}

.xc-sell>.xc-btn--sell i,
.xc-sell>.xc-btn--sell span:not(.badge) {
    color: inherit !important;
}

/* ---- Logged-in trigger: user icon + name ---- */
.xc-sell>.xc-btn--user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
}

.xc-sell>.xc-btn--user .xc-user__name {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xc-sell>.xc-btn--user .xc-user__chev {
    font-size: 12px;
}

#userMenuDropdown.dropdown-menu {
    left: auto !important;
    right: 0 !important;
    width: max-content;
    min-width: 200px;
    max-width: calc(100vw - 24px);
    padding: 6px 0 !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

#userMenuDropdown>li.dropdown-item {
    padding: 0 !important;
    background: transparent;
    white-space: nowrap;
}

#userMenuDropdown>li.dropdown-item>a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    letter-spacing: .3px;
    font-weight: 400;
    color: #555 !important;
    text-decoration: none;
}

#userMenuDropdown>li.dropdown-item>a>i {
    flex: 0 0 18px;
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: #6b6b6b;
}

#userMenuDropdown>li.dropdown-item>a .badge {
    margin-left: auto;
}

#userMenuDropdown>li.dropdown-item:hover,
#userMenuDropdown>li.dropdown-item.active {
    background: #f1f1f1;
}

#userMenuDropdown>li.dropdown-item:hover>a,
#userMenuDropdown>li.dropdown-item.active>a {
    font-weight: 600;
    color: #222 !important;
}

@media (max-width: 991.98px) {
    .xc-sell>.dropdown-menu {
        left: auto !important;
        right: 0 !important;
    }
}

/* Footer: stacked rows on mobile only */
@media (max-width: 767.98px) {
    .xc-footer {
        font-size: .9rem;
    }

    .xc-footer__main {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .xc-footer__main>* {
        padding: 20px 0;
    }

    /* center everything in the mobile footer */
    .xc-footer__main>* {
        text-align: center;
    }

    .xc-footer__logo {
        display: block;
    }

    .xc-footer__logo-mark {
        -webkit-mask-position: center;
        mask-position: center;
        margin-inline: auto;
    }

    .xc-footer__list {
        justify-items: center;
    }

    .xc-footer__phone a,
    .xc-footer__social,
    .xc-footer__apps {
        justify-content: center;
    }

    .xc-footer__copy {
        text-align: center;
    }

    .xc-footer__main>*:first-child {
        padding-top: 0;
    }

    .xc-footer__main>*:last-child {
        padding-bottom: 0;
    }

    /* vertical divider becomes a horizontal line between rows */
    .xc-footer__main>*+* {
        border-left: 0;
        border-top: 1px solid var(--xc-line);
    }

    .xc-footer__title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .xc-footer__list {
        gap: 8px;
    }

    .xc-footer__logo-mark {
        height: 36px;
    }

    .xc-footer__phone a {
        font-size: 1.1rem;
        gap: 8px;
    }

    .xc-footer__follow {
        margin-top: 16px;
    }

    .xc-footer__social {
        gap: 10px;
    }

    .xc-footer__apps img {
        height: 40px;
    }
}

/* Mobile: while typing in the search bar, it grows and the right-side buttons are hidden */
@media (max-width: 767.98px) {
    .xc-header.is-searching .xc-header__top {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "logo search";
    }

    .xc-header.is-searching .xc-actions {
        display: none;
    }
}


/* ---------------------------------------------------------
   STICKY FOOTER (short pages: footer at bottom of viewport;
   long pages: footer follows the content)
   --------------------------------------------------------- */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;          /* correct height on mobile browser bars */
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Main page wrapper (LaraClassifier-based layouts use #wrapper) */
body > #wrapper {
    flex: 1 0 auto;              /* grow to fill the viewport, never shrink below content */
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Footer takes all leftover space above it */
.xc-footer {
    margin-top: auto;
    flex-shrink: 0;
}