/* ===== Product card (Swapno-style layout, Asmi brand colors) ===== */
.single-product.pc-card {
    /* Asmi brand tokens: change these and the whole card follows */
    --pc-primary: #1596a8; /* buttons, price */
    --pc-primary-dark: #0b525b; /* hover, stepper text */
    --pc-primary-soft: #dff3f6; /* stepper background */
    --pc-ribbon: #e11d48; /* discount ribbon (set to var(--pc-primary-dark) for an all-teal look) */
    --pc-text: #1f2937;
    --pc-muted: #6b7280;
    --pc-line: #e5e7eb;

    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--pc-line);
    border-radius: 10px;
    overflow: hidden;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.btn-outline-brand {
    --bs-btn-color: #1596a8;
    --bs-btn-border-color: #1596a8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1596a8;
    --bs-btn-hover-border-color: #1596a8;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0b525b;
    --bs-btn-active-border-color: #0b525b;
    --bs-btn-focus-shadow-rgb: 21, 150, 168;
}
@media (min-width: 1900px) {
    .gs-breadcrumb-section {
        height: 396px !important;
    }
}
@media (hover: hover) {
    .single-product.pc-card:hover {
        border-color: #c9dde0;
        box-shadow: 0 6px 20px rgba(11, 82, 91, 0.12);
    }
    .single-product.pc-card:hover .pc-img {
        transform: scale(1.03);
    }
}

/* ---------- media ---------- */
.pc-card .pc-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}
.pc-card .pc-img-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.single-product.pc-card .pc-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 14px;
    transition: transform 0.3s ease;
}

/* flag-style discount ribbon with notched bottom */
.pc-card .pc-ribbon {
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 3;
    width: 42px;
    padding: 5px 0 11px;
    background: var(--pc-ribbon);
    color: #fff;
    text-align: center;
    line-height: 1.1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.pc-card .pc-ribbon b {
    display: block;
    font-size: 12px;
    font-weight: 700;
    font-family: "Rubik", sans-serif;
}
.pc-card .pc-ribbon i {
    display: block;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

/* wishlist */
.pc-card .pc-wish {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
}
.pc-card .add-to-wishlist-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--pc-line);
    color: #4b5563;
    transition: all 0.15s;
}
.pc-card .add-to-wishlist-btn.active {
    background: var(--pc-ribbon);
    border-color: var(--pc-ribbon);
    color: #fff;
}
.pc-card .add-to-wishlist-btn.is-remove {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* countdown strip */
.pc-card .pc-countdown {
    position: absolute !important;
    inset: auto 0 0 0 !important;
    z-index: 2;
}
.pc-card .card-timer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(11, 82, 91, 0.94);
    color: #fff;
}
.pc-card .cd-bolt {
    color: #fbbf24;
    font-size: 12px;
    margin-right: 2px;
}
.pc-card .cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 26px;
    line-height: 1;
}
.pc-card .cd-unit span {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.pc-card .cd-unit small {
    font-size: 8px;
    opacity: 0.8;
    margin-top: 1px;
}
.pc-card .cd-sep {
    font-weight: 700;
    opacity: 0.7;
    align-self: flex-start;
    font-size: 12px;
}

/* "offer Soon" state (before start date). Live shows this text; spans are kept so ticking resumes */
.pc-card .cd-soon {
    display: none;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 0;
}
.pc-card .card-timer-badge.is-soon .cd-soon {
    display: inline-flex;
}
.pc-card .card-timer-badge.is-soon > :not(.cd-soon) {
    display: none;
}

/* out of stock */
.pc-card .pc-oos {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.4);
}
.pc-card .pc-oos span {
    padding: 5px 12px;
    border-radius: 999px;
    background: #374151;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- body (centered like Swapno) ---------- */
.pc-card .pc-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 6px;
    padding: 4px 12px 14px;
    text-align: center;
}
.pc-card .pc-delivery {
    margin: 0;
    font-size: 12px;
    font-style: italic;
    color: var(--pc-muted);
}
.pc-card .pc-title-link {
    text-decoration: none;
}
.single-product.pc-card .pc-title {
    margin: 0;
    color: var(--pc-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}
.pc-card .pc-title-link:hover .pc-title {
    color: var(--pc-primary);
}

.pc-card .pc-price-wrap {
    min-height: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
}
.pc-card .pc-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}
.pc-card .pc-price-old {
    color: #9ca3af;
    font-size: 14px;
    font-family: "Rubik", sans-serif;
}
.single-product.pc-card .pc-price {
    margin: 0;
    color: var(--pc-primary);
    font-size: 18px;
    font-weight: 700;
    font-family: "Rubik", sans-serif;
    line-height: 1.1;
}

.pc-card .pc-measure {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 12px;
    color: var(--pc-muted);
    white-space: nowrap;
}
.single-product.pc-card .measure-select {
    width: auto;
    min-width: 66px;
    height: 26px;
    padding: 0 22px 0 8px;
    font-size: 11px;
    border-radius: 999px;
    border: 1px solid var(--pc-line);
    background-color: #f9fafb;
}

/* ---------- actions ---------- */
.pc-card .pc-action {
    margin-top: auto;
    padding-top: 4px;
}

/* pill add-to-bag button (also styles the HTML that ajax re-inserts) */
.single-product.pc-card .add-cart-btn {
    position: relative;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--pc-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.15s,
        transform 0.1s;
}
.single-product.pc-card .add-cart-btn:hover {
    background: var(--pc-primary-dark);
    color: #fff;
}
.single-product.pc-card .add-cart-btn:active {
    transform: scale(0.97);
}
.single-product.pc-card .pc-btn-disabled {
    background: #e5e7eb;
    color: #6b7280;
}

/* loading state: label hidden, spinner centered, clicks blocked */
.single-product.pc-card .add-cart-btn.is-loading {
    color: transparent !important;
    pointer-events: none;
    background: var(--pc-primary-dark);
}
.single-product.pc-card .add-cart-btn.is-loading > * {
    visibility: hidden;
}
.single-product.pc-card .add-cart-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pc-spin 0.6s linear infinite;
}
@keyframes pc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* qty pill: ( -   2 in Bag   + ) */
.pc-card .qty-box {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    width: 100%;
    height: 38px;
    padding: 0 !important;
    border-radius: 999px;
    background: var(--pc-primary-soft);
    border: 1px solid #b6dfe5;
    overflow: hidden;
}
.pc-card .qty-box .qty-btn.qty-plus i {
    margin-right: 8px;
}
.pc-card .qty-box .qty-btn {
    height: 100%;
    border: 0;
    background: rgba(21, 150, 168, 0.18);
    color: var(--pc-primary-dark);
    font-size: 13px;
    display: grid;
    place-items: center;
    transition: background 0.15s;
}
.pc-card .qty-box .qty-btn:hover {
    background: rgba(21, 150, 168, 0.4);
}
.pc-card .qty-box .qty-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    background: transparent;
}
.pc-card .qty-box .qty-text {
    text-align: center;
    color: var(--pc-primary-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.pc-card .qty-box .qty-text::after {
    content: "in Bag";
    margin-left: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* qty loading: dim + pulse the number, block clicks */
.pc-card .qty-box.is-loading {
    pointer-events: none;
}
.pc-card .qty-box.is-loading .qty-btn {
    opacity: 0.45;
}
.pc-card .qty-box.is-loading .qty-text {
    animation: pc-pulse 0.7s ease-in-out infinite;
}
@keyframes pc-pulse {
    50% {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-product.pc-card .add-cart-btn.is-loading::after {
        animation-duration: 1.6s;
    }
    .pc-card .qty-box.is-loading .qty-text {
        animation: none;
    }
}

/* ---------- mobile ---------- */
@media (max-width: 575.98px) {
    .pc-card .pc-body {
        padding: 2px 8px 10px;
        gap: 5px;
    }
    .single-product.pc-card .pc-img {
        padding: 8px;
    }
    .pc-card .pc-delivery {
        font-size: 11px;
    }
    .single-product.pc-card .pc-title {
        font-size: 12.5px;
    }
    .single-product.pc-card .pc-price {
        font-size: 16px;
    }
    .pc-card .pc-price-old {
        font-size: 12px;
    }
    .pc-card .pc-ribbon {
        left: 6px;
        width: 36px;
        padding: 4px 0 10px;
    }
    .pc-card .pc-ribbon b {
        font-size: 11.5px;
    }
    .pc-card .pc-ribbon i {
        font-size: 9px;
    }
    .pc-card .pc-wish {
        top: 6px;
        right: 6px;
    }
    .pc-card .add-to-wishlist-btn {
        width: 26px;
        height: 26px;
    }
    .pc-card .card-timer-badge {
        gap: 2px;
        padding: 3px 4px;
    }
    .pc-card .cd-unit {
        min-width: 22px;
    }
    .pc-card .cd-unit span {
        font-size: 11px;
    }
    .pc-card .cd-unit small {
        font-size: 7px;
    }
    .pc-card .cd-bolt {
        display: none;
    }
    .single-product.pc-card .add-cart-btn {
        height: 36px;
        font-size: 12.5px;
    }
    .pc-card .qty-box {
        height: 36px;
        grid-template-columns: 34px 1fr 34px;
    }
    .pc-card .qty-box .qty-text {
        font-size: 12px;
    }
}
@media (max-width: 359.98px) {
    .single-product.pc-card .add-cart-btn i {
        display: none;
    }
}

/* spinner for the product-details page button (outside .pc-card) */
.add_cart_details {
    position: relative;
}
.add_cart_details.is-loading {
    color: transparent !important;
    pointer-events: none;
}
.add_cart_details.is-loading > * {
    visibility: hidden;
}
.add_cart_details.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pc-spin 0.6s linear infinite;
}

/* ===================================================
            Last added css (chatgpt)
====================================================== */
.slick-track {
    gap: 5px !important;
}
/* Card gap */
.combo-products-card-slider .slick-slide {
    padding: 0 6px;
}

.combo-products-card-slider .slick-list {
    margin: 0 -6px;
}

/* 1900px+ এ gap আরও কম */
@media (min-width: 1900px) {
    .combo-products-card-slider .slick-slide {
        padding: 0 4px;
    }

    .combo-products-card-slider .slick-list {
        margin: 0 -4px;
    }
}

/* last added csss */
/* ==========================================
   COMBO PRODUCT CARD - EQUAL HEIGHT
   ========================================== */

/* ==========================================
   1900px+ : 6 ITEMS + SMALL GAP
   ========================================== */

@media (min-width: 1900px) {
    .combo-products-card-slider .slick-slide {
        padding-left: 4px;
        padding-right: 4px;
    }

    .combo-products-card-slider .slick-list {
        margin-left: -4px;
        margin-right: -4px;
    }

    .combo-products-card-slider .pc-card {
        height: 350px;
        min-height: 350px;
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 767px) {
    .combo-products-card-slider .pc-card {
        height: 300px;
        min-height: 300px;
    }

    .combo-products-card-slider .pc-media {
        height: 125px;
        min-height: 125px;
        flex-basis: 125px;
    }

    .combo-products-card-slider .pc-delivery {
        height: 20px;
        min-height: 20px;

        margin: 4px 0 2px;

        font-size: 10px;
        line-height: 18px;
    }

    .combo-products-card-slider .pc-title {
        height: 36px;
        min-height: 36px;
        max-height: 36px;

        font-size: 12px;
        line-height: 18px;
    }

    .combo-products-card-slider .pc-price-wrap {
        height: 45px;
        min-height: 45px;
    }

    .combo-products-card-slider .pc-action {
        height: 34px;
        min-height: 34px;
    }

    .combo-products-card-slider .pc-action button,
    .combo-products-card-slider .pc-action .add-btn-wrapper,
    .combo-products-card-slider .pc-action .qty-box {
        height: 34px;
    }
}

/* ===================================================
   RESPONSIVE GRID COLUMN: .pc-col
   mobile  (< 576px)       : 2 per row
   tablet  (576 - 991px)   : 3 per row
   laptop  (992 - 1899px)  : 5 per row
   monitor (>= 1900px)     : 6 per row
   Change the numbers below to change the layout.
====================================================== */
.pc-col {
    --pc-cols: 2;
    flex: 0 0 auto;
    width: calc(100% / var(--pc-cols));
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}
/* beat bootstrap's ".row > *" { width: 100% } */
.row > .pc-col {
    width: calc(100% / var(--pc-cols));
}
@media (min-width: 576px) {
    .pc-col {
        --pc-cols: 3;
    }
}
@media (min-width: 992px) {
    .pc-col {
        --pc-cols: 5;
    }
}
@media (min-width: 1900px) {
    .pc-col {
        --pc-cols: 6;
    }
}

/* inside slick the slider decides how many cards show, so the column fills its
   slide and the slide's own padding (above) provides the gap */
.slick-slide .pc-col,
.slick-slide .row > .pc-col {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.product-cards-slider { --pcs-gap: 8px; }                                   /* মোবাইল */
@media (min-width: 576px)  { .product-cards-slider { --pcs-gap: 12px; } }   /* ট্যাব */
@media (min-width: 992px)  { .product-cards-slider { --pcs-gap: 16px; } }   /* ল্যাপটপ */
@media (min-width: 1900px) { .product-cards-slider { --pcs-gap: 12px; } }   /* বড় মনিটর */

.product-cards-slider .slick-list  { margin: 0 calc(var(--pcs-gap) / -2); }
.product-cards-slider .slick-slide { padding: 0 calc(var(--pcs-gap) / 2); }

/* ===== Explore Our Products: tab buttons (pill style, Asmi colors, any device) ===== */
.explore-tab-navbar {
    --tab-primary: #1596a8;
    --tab-primary-dark: #0b525b;
    --tab-soft: #eef6f7;

    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 5px;
    background: var(--tab-soft);
    border: 0;
    border-radius: 999px;

    /* if the tabs ever don't fit, scroll sideways smoothly */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* old Edge */
}
.explore-tab-navbar::-webkit-scrollbar {
    display: none;
}
.explore-tab-navbar .nav-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.explore-tab-navbar .nav-link {
    min-height: 44px; /* comfortable touch target */
    padding: 0 clamp(14px, 3.5vw, 22px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 999px;
    background: transparent;
    color: var(--tab-primary-dark);
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}
/* remove any old underline made with pseudo-elements */
.explore-tab-navbar .nav-link::before,
.explore-tab-navbar .nav-link::after {
    display: none !important;
}

/* hover only on devices that really hover (no "stuck" hover after a tap on phones) */
@media (hover: hover) {
    .explore-tab-navbar .nav-link:not(.active):hover {
        background: rgba(21, 150, 168, 0.12);
        color: var(--tab-primary-dark);
    }
}
.explore-tab-navbar .nav-link:active:not(.active) {
    background: rgba(21, 150, 168, 0.18);
}
.explore-tab-navbar .nav-link.active,
.gs-explore-product-section .explore-tab-navbar li .nav-link.active {
    background: var(--tab-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 150, 168, 0.35);
}
.explore-tab-navbar .nav-link:focus-visible {
    outline: 2px solid var(--tab-primary-dark);
    outline-offset: 2px;
}

/* ---------- phones: all three tabs must fit on one line ----------
   !important on size/spacing because older theme rules (bigger font, wide
   letter-spacing, heavier weight on .active) were winning on phones. */
@media (max-width: 575.98px) {
    .explore-tab-navbar {
        width: 100%;
        gap: 2px;
        margin-bottom: 16px;
        padding: 3px;
    }
    .explore-tab-navbar .nav-item {
        flex: 1 1 auto; /* share the width; can't shrink below its text, so it scrolls only as a last resort */
    }
    .explore-tab-navbar .nav-link,
    .gs-explore-product-section .explore-tab-navbar li .nav-link {
        width: 100%;
        min-height: 42px;
        padding: 0 10px !important;
        font-size: clamp(11px, 3.1vw, 13px) !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
    }
}

/* ---------- very small phones (<= 360px) ---------- */
@media (max-width: 360px) {
    .explore-tab-navbar .nav-link,
    .gs-explore-product-section .explore-tab-navbar li .nav-link {
        padding: 0 7px !important;
        font-size: 11px !important;
    }
}

/* ---------- tablets: a little more breathing room ---------- */
@media (min-width: 768px) {
    .explore-tab-navbar {
        margin-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .explore-tab-navbar .nav-link {
        transition: none;
    }
}
/* ===== Section header: centered title + "View All" pill on the right ===== */
.section-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* title stays truly centered */
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-head__title {
    grid-column: 2;
    position: relative;
    margin: 0;
    padding-bottom: 10px;
    text-align: center;
    color: #1f2937;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
}
/* small teal accent line under the title */
.section-head__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: #1596a8;
    transform: translateX(-50%);
}

.section-head__link {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid #1596a8;
    border-radius: 999px;
    background: transparent;
    color: #1596a8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}
.section-head__link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}
.section-head__link:hover,
.section-head__link:focus-visible {
    background: #1596a8;
    color: #fff;
}
.section-head__link:hover i {
    transform: translateX(3px);
}

/* mobile: title left, View All right, on one line */
@media (max-width: 575.98px) {
    .section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }
    .section-head__title {
        padding-bottom: 8px;
        text-align: left;
        font-size: 18px;
    }
    .section-head__title::after {
        left: 0;
        width: 32px;
        transform: none;
    }
    .section-head__link {
        padding: 5px 12px;
        font-size: 12px;
    }
}
/* ===== Guest login modal (Asmi branding) - compact, never taller than the screen ===== */
.guest-login-modal {
    --glm-primary: #1596a8;
    --glm-primary-dark: #0b525b;
    --glm-text: #1f2937;
    --glm-muted: #6b7280;
    --glm-line: #dfe5e8;
}

.guest-login-modal .modal-dialog {
    max-width: 380px;
    margin-top: 12px;
    margin-bottom: 12px;
}
/* header stays fixed, only the form area scrolls if the screen is very short */
.guest-login-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(11, 82, 91, 0.28);
}

/* ---------- header ---------- */
.guest-login-modal .glm-header {
    position: relative;
    flex: 0 0 auto;
    padding: 16px 20px 14px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--glm-primary) 0%, var(--glm-primary-dark) 100%);
}
.guest-login-modal .glm-close {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.85;
}
.guest-login-modal .glm-close:hover {
    opacity: 1;
}
.guest-login-modal .glm-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 15px;
}
.guest-login-modal .glm-title {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.guest-login-modal .glm-sub {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- body / fields ---------- */
.guest-login-modal .glm-body {
    flex: 1 1 auto;
    min-height: 0; /* lets the body shrink and scroll inside the flex column */
    overflow-y: auto;
    padding: 14px 20px 16px;
}
.guest-login-modal .glm-field {
    margin-bottom: 9px;
}
.guest-login-modal .glm-field label {
    display: block;
    margin-bottom: 3px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--glm-text);
}
.guest-login-modal .glm-input {
    position: relative;
}
.guest-login-modal .glm-input > i {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--glm-muted);
    pointer-events: none;
    transition: color 0.15s;
}
.guest-login-modal .glm-input--area > i {
    top: 12px;
    transform: none;
}
.guest-login-modal .glm-input .form-control {
    min-height: 38px;
    padding: 7px 12px 7px 36px;
    border: 1px solid var(--glm-line);
    border-radius: 10px;
    background: #f8fafb;
    font-size: 14px;
    color: var(--glm-text);
    box-shadow: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}
.guest-login-modal .glm-input textarea.form-control {
    min-height: 58px;
    resize: none;
}
.guest-login-modal .glm-input .form-control::placeholder {
    color: #9ca3af;
}
.guest-login-modal .glm-input .form-control:focus {
    background: #fff;
    border-color: var(--glm-primary);
    box-shadow: 0 0 0 3px rgba(21, 150, 168, 0.15);
}
.guest-login-modal .glm-input:focus-within > i {
    color: var(--glm-primary);
}

/* validation messages come from cart.js into .xxx-error spans */
.guest-login-modal .glm-field .text-danger {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
}
.guest-login-modal .glm-field .text-danger:empty {
    display: none;
}
.guest-login-modal .glm-field:has(.text-danger:not(:empty)) .form-control {
    border-color: #dc3545;
    background: #fff7f8;
}

/* ---------- actions ---------- */
.guest-login-modal .glm-actions {
    display: grid;
    gap: 2px;
    margin-top: 12px;
}
.guest-login-modal .glm-submit {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--glm-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.15s,
        transform 0.1s;
}
.guest-login-modal .glm-submit:hover,
.guest-login-modal .glm-submit:focus-visible {
    background: var(--glm-primary-dark);
    color: #fff;
}
.guest-login-modal .glm-submit:active {
    transform: scale(0.98);
}
.guest-login-modal .glm-submit:disabled {
    background: var(--glm-primary-dark);
    opacity: 0.75;
    cursor: wait;
}
.guest-login-modal .glm-cancel {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--glm-muted);
    font-size: 13px;
    font-weight: 500;
}
.guest-login-modal .glm-cancel:hover {
    background: #f1f5f6;
    color: var(--glm-text);
}

/* ---------- short screens (laptop windows, phones in landscape) ---------- */
@media (max-height: 640px) {
    .guest-login-modal .glm-icon,
    .guest-login-modal .glm-sub {
        display: none;
    }
    .guest-login-modal .glm-header {
        padding: 12px 44px 10px 20px; /* room for the X button */
    }
    .guest-login-modal .glm-body {
        padding-top: 10px;
        padding-bottom: 12px;
    }
}

/* ---------- phones: bottom sheet ---------- */
@media (max-width: 575.98px) {
    .guest-login-modal .modal-dialog {
        max-width: 100%;
        min-height: 100%;
        margin: 0;
        align-items: flex-end; /* sit at the bottom like a sheet */
    }
    .guest-login-modal.fade .modal-dialog {
        transform: translateY(40px);
    }
    .guest-login-modal.show .modal-dialog {
        transform: none;
    }
    .guest-login-modal .modal-content {
        border-radius: 18px 18px 0 0;
        max-height: 90vh;
        max-height: 90dvh;
    }
    .guest-login-modal .glm-body {
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }
    /* 16px stops iOS Safari zooming the page when a field is focused */
    .guest-login-modal .glm-input .form-control {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guest-login-modal .glm-submit,
    .guest-login-modal .glm-input .form-control {
        transition: none;
    }
}