/* ==========================================================================
   Greenmarket Redesign — Customer Storefront
   RTL · Responsive · Overrides default theme for gm-* components
   ========================================================================== */

:root {
    --gm-green: #00A651;
    --gm-green-dark: #008F45;
    --gm-green-light: #E8F8EF;
    --gm-green-soft: #F0FAF5;
    --gm-earth: #C4A882;
    --gm-earth-light: #F5EDE3;
    --gm-pink: #E91E8C;
    --gm-accent: #00A651;
    --gm-accent-hover: #008F45;
    --gm-text: #1A1A2E;
    --gm-text-muted: #6B7280;
    --gm-border: #E5E7EB;
    --gm-bg: #F4F6F8;
    --gm-white: #ffffff;
    --gm-radius: 16px;
    --gm-radius-sm: 12px;
    --gm-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --gm-header-h: 72px;
}

/* ---- Base ---- */
.gm-theme {
    background-color: var(--gm-bg);
}

.gm-theme .page-content {
    padding-top: 0;
}

.gm-home {
    padding-bottom: 2rem;
}

/* ---- Header ---- */
.gm-header.page-header {
    background: var(--gm-white);
    border-bottom: 1px solid var(--gm-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.gm-header .top-header-wrapper {
    display: none;
}

.gm-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--gm-header-h);
    padding: 0.65rem 0;
}

.gm-header__start {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.gm-header__logo img {
    max-height: 42px;
    width: auto;
    display: block;
}

.gm-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--gm-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.gm-nav__trigger:hover,
.gm-header.gm-mega-open .gm-nav__trigger {
    background: var(--gm-green-light);
    color: var(--gm-green-dark);
}

.gm-header__search-col {
    flex: 1;
    min-width: 0;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.gm-header__search {
    position: relative;
    width: 100%;
}

.gm-header__search form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #F5F6F8;
    border: 1px solid #EBEBEB;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gm-header__search form:focus-within {
    border-color: var(--gm-green);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
    background: var(--gm-white);
}

.gm-header__search form input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    height: 42px !important;
    padding: 0 1rem !important;
    font-size: 0.875rem !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

.gm-header__search form input::placeholder {
    color: #9CA3AF;
}

.gm-header__search-btn {
    border: none;
    background: transparent;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    flex-shrink: 0;
}

.gm-header__search form i.fal.fa-search {
    position: static !important;
    font-size: 1rem;
}

/* Search dropdown */
.gm-header__search .search-result,
.gm-search-dropdown {
    display: none !important;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 0.75rem;
    z-index: 1200;
    max-height: 420px;
    overflow-y: auto;
}

.gm-header__search.show-result .search-result,
.gm-header__search.show-result .gm-search-dropdown {
    display: block !important;
}

.gm-search-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gm-search-dropdown__section {
    margin-bottom: 0.5rem;
}

.gm-search-dropdown .cart-items li,
.gm-search-dropdown li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.gm-search-dropdown .cart-items li:last-child,
.gm-search-dropdown li:last-child {
    border-bottom: none;
}

.gm-search-dropdown a {
    color: var(--gm-text) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
}

.gm-search-dropdown a:hover {
    color: var(--gm-green) !important;
}

.gm-search-trends {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--gm-border);
}

.gm-search-trends__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gm-text-muted);
    margin-bottom: 0.6rem;
}

.gm-search-trends__tags {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gm-search-trends__tag {
    display: inline-flex !important;
    align-items: center;
    padding: 0.35rem 0.85rem !important;
    background: #F3F4F6 !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    color: var(--gm-text) !important;
    text-decoration: none !important;
    transition: all 0.15s;
    line-height: 1.4;
}

.gm-search-trends__tag:hover {
    background: var(--gm-green) !important;
    color: #fff !important;
}

.gm-search-trends__tags li {
    display: none;
}

/* Actions */
.gm-header__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.gm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.gm-btn--primary {
    background: var(--gm-green);
    color: var(--gm-white) !important;
    border-color: var(--gm-green);
}

.gm-btn--primary:hover {
    background: var(--gm-green-dark);
    border-color: var(--gm-green-dark);
}

.gm-btn--outline {
    background: transparent;
    border-color: var(--gm-border);
    color: var(--gm-text) !important;
}

/* ---- Mini Cart (CSS only) ---- */
.gm-header__cart.user-item.cart {
    position: relative !important;
    border: none !important;
    margin: 0 !important;
}

.gm-header__cart > a.dropdown--btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #F5F6F8 !important;
    color: var(--gm-text) !important;
    font-size: 0 !important;
    text-decoration: none !important;
    position: relative;
    border: 1px solid var(--gm-border) !important;
    transition: background 0.2s, border-color 0.2s;
}

.gm-header__cart > a.dropdown--btn:hover {
    background: var(--gm-green-light) !important;
    border-color: var(--gm-green) !important;
}

.gm-header__cart > a.dropdown--btn i {
    font-size: 1.25rem !important;
    margin: 0 !important;
    color: var(--gm-text);
}

.gm-header__cart .cart-count {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    left: auto !important;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--gm-pink) !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gm-header__cart .cart-items-wrapper.dropdown--wrapper {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    width: 360px !important;
    max-width: calc(100vw - 2rem);
    background: var(--gm-white) !important;
    border: 1px solid var(--gm-border) !important;
    border-radius: var(--gm-radius-sm) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1200 !important;
    overflow: hidden;
}

.gm-header__cart.user-item.cart:hover .cart-items-wrapper,
.gm-header__cart.user-item.cart:focus-within .cart-items-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

.gm-header__cart .cart-items {
    list-style: none;
    margin: 0;
    padding: 0.5rem !important;
    max-height: 280px !important;
    overflow-y: auto !important;
}

.gm-header__cart .cart-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem !important;
    border-bottom: 1px solid #F3F4F6 !important;
    position: relative;
}

.gm-header__cart .cart-item:last-child {
    border-bottom: none !important;
}

.gm-header__cart .cart-item > a {
    display: flex !important;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    text-decoration: none !important;
    color: var(--gm-text) !important;
    font-size: 0.8rem;
    line-height: 1.5;
    padding-left: 1.5rem;
}

.gm-header__cart .cart-item img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #F3F4F6;
    flex-shrink: 0;
    margin: 0 !important;
}

.gm-header__cart .cart-item .remove-item {
    position: absolute !important;
    top: 0.75rem !important;
    left: 0.5rem !important;
    bottom: auto !important;
    width: 24px;
    height: 24px;
    border: none !important;
    background: #FEE2E2 !important;
    color: #DC2626 !important;
    border-radius: 50% !important;
    font-size: 0.75rem !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gm-header__cart .cart-info {
    padding: 0.85rem 1rem !important;
    background: #F9FAFB;
    border-top: 1px solid var(--gm-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gm-header__cart .cart-info > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 !important;
    text-align: right !important;
}

.gm-header__cart .cart-info .btn,
.gm-header__cart .cart-info .btn-danger {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--gm-green) !important;
    border-color: var(--gm-green) !important;
    border-radius: 999px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff !important;
    margin: 0 !important;
}

/* Account trigger + dropdown */
.gm-header__account.user-item {
    position: relative;
}

.gm-btn--account {
    gap: 0.5rem !important;
    padding: 0.4rem 0.85rem 0.4rem 0.5rem !important;
    max-width: 220px;
}

.gm-btn--account__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gm-green-light);
    color: var(--gm-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.gm-btn--account__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gm-btn--account__caret {
    font-size: 0.7rem;
    color: var(--gm-text-muted);
    margin-right: 0.15rem;
}

.gm-header__account .gm-profile-menu,
.gm-header__account .dropdown--wrapper {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1100;
    list-style: none;
    padding: 0.65rem;
    margin: 0;
}

.gm-header__account.user-item:hover .gm-profile-menu,
.gm-header__account.user-item:hover .dropdown--wrapper,
.gm-header__account.user-item:focus-within .gm-profile-menu,
.gm-header__account.user-item:focus-within .dropdown--wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gm-profile-menu__head {
    margin: 0;
}

.gm-profile-menu__user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.5rem;
    border-radius: var(--gm-radius-sm);
    text-decoration: none !important;
    transition: background 0.15s;
}

.gm-profile-menu__user:hover {
    background: var(--gm-green-soft);
}

.gm-profile-menu__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gm-green-light), var(--gm-green-soft));
    border: 2px solid var(--gm-green-light);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.gm-profile-menu__info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.gm-profile-menu__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gm-text);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gm-profile-menu__link {
    font-size: 0.75rem;
    color: var(--gm-green);
    font-weight: 600;
}

.gm-profile-menu__divider {
    height: 1px;
    background: var(--gm-border);
    margin: 0.5rem 0;
    list-style: none;
}

.gm-profile-menu__item {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem !important;
    border-radius: var(--gm-radius-sm);
    color: var(--gm-text) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    margin: 0 !important;
}

.gm-profile-menu__item i {
    width: 18px;
    text-align: center;
    color: var(--gm-text-muted);
    font-size: 0.95rem;
    transition: color 0.15s;
}

.gm-profile-menu__item:hover {
    background: var(--gm-green-soft);
    color: var(--gm-green-dark) !important;
}

.gm-profile-menu__item:hover i {
    color: var(--gm-green);
}

.gm-profile-menu__item--logout:hover {
    background: #FEF2F2;
    color: #DC2626 !important;
}

.gm-profile-menu__item--logout:hover i {
    color: #DC2626;
}

.gm-profile-menu hr {
    display: none;
}

.gm-profile-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---- Mega Menu Full Width ---- */
.gm-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    pointer-events: none;
    z-index: 999;
    border-top: 1px solid var(--gm-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.gm-header.gm-mega-open .gm-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.gm-mega__panel {
    background: var(--gm-white);
    padding: 1.25rem 0 1.5rem;
}

.gm-mega__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: start;
}

.gm-mega__grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gm-mega__col {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0.5rem;
    border-left: 1px solid var(--gm-border);
}

.gm-mega__col:first-child {
    border-left: none;
    padding-right: 0.75rem;
}

.gm-mega__col:last-child {
    padding-left: 0.75rem;
}

.gm-mega__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--gm-radius-sm);
    text-decoration: none !important;
    color: var(--gm-text) !important;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    line-height: 1.45;
}

.gm-mega__item:hover {
    background: var(--gm-green-soft);
    color: var(--gm-green-dark) !important;
}

.gm-mega__item-icon-wrap {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: var(--gm-green-light);
    border: 1px solid rgba(0, 166, 81, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.15s, border-color 0.15s;
}

.gm-mega__item:hover .gm-mega__item-icon-wrap {
    background: var(--gm-white);
    border-color: var(--gm-green);
}

.gm-mega__item-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.gm-mega__item-icon--default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gm-green);
    width: auto;
    height: auto;
}

.gm-mega__item-label {
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

/* ---- Mobile Header ---- */
.gm-header-mobile.header-responsive {
    background: var(--gm-white);
    border-bottom: 1px solid var(--gm-border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.gm-header-mobile .gm-header__search form {
    background: #F5F6F8;
    border: 1px solid #EBEBEB;
    border-radius: 999px;
}

.gm-header-mobile .gm-header__search form input {
    height: 38px !important;
    font-size: 0.85rem !important;
}

@media (min-width: 992px) {
    .gm-header-mobile {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .gm-header.page-header {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    .gm-mega__grid,
    .gm-mega__grid--cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .gm-mega__grid,
    .gm-mega__grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gm-mega__col {
        border-left: none;
        border-bottom: 1px solid var(--gm-border);
        padding: 0.5rem 0 !important;
    }

    .gm-mega__col:last-child {
        border-bottom: none;
    }
}

@media (max-width: 767.98px) {
    .gm-mega__grid,
    .gm-mega__grid--cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ---- Hero ---- */
.gm-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.gm-hero__grid--with-side {
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .gm-hero__grid--with-side {
        grid-template-columns: 2fr 1fr;
    }
}

.gm-hero__slider-col,
.gm-hero__side-col {
    min-height: 280px;
}

.gm-hero__slider {
    border-radius: var(--gm-radius);
    overflow: hidden;
    box-shadow: var(--gm-shadow);
    height: 100%;
}

.gm-hero__slider .main-page-slider,
.gm-hero__slider .swiper-slide,
.gm-hero__slide-link {
    border-radius: var(--gm-radius);
    overflow: hidden;
    height: 100%;
}

.gm-hero__slider .swiper-container,
.gm-hero__slider .swiper-wrapper {
    height: 100%;
}

.gm-hero__slider img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: var(--gm-radius);
    display: block;
}

.gm-hero__slider--single .swiper-slide {
    width: 100% !important;
}

.gm-hero__side {
    border-radius: var(--gm-radius);
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    position: relative;
    background: var(--gm-earth);
}

.gm-hero__side a {
    display: block;
    height: 100%;
    min-height: 280px;
    position: relative;
    border-radius: var(--gm-radius);
    overflow: hidden;
    text-decoration: none !important;
}

.gm-hero__side-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gm-hero__side-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.75rem 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(198, 166, 120, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
    color: #fff;
    gap: 0.65rem;
}

.gm-hero__side-label {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.gm-hero__side-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gm-white);
    color: var(--gm-text) !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}

.gm-hero__side a:hover .gm-hero__side-cta {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.gm-hero .swiper-button-next,
.gm-hero .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--gm-green);
}

.gm-hero .swiper-button-next:after,
.gm-hero .swiper-button-prev:after {
    font-size: 1rem;
}

.gm-hero .swiper-pagination-bullet-active {
    background: var(--gm-green) !important;
}

.gm-banner img {
    border-radius: var(--gm-radius-sm);
    width: 100%;
}

/* ---- Section Headers ---- */
.gm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}

.gm-section-header__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gm-text);
    margin: 0;
    position: relative;
    padding-bottom: 0.35rem;
}

.gm-section-header__title::after {
    content: '';
    position: absolute;
    bottom: -0.55rem;
    right: 0;
    width: calc(100% + 12px);
    height: 3px;
    background: var(--gm-green);
    border-radius: 2px;
}

.gm-section-header__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gm-green) !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
}

.gm-section-header__link:hover {
    color: var(--gm-green-dark) !important;
}

.gm-home-section {
    margin-bottom: 2.5rem;
}

/* ---- Product Card ---- */
.gm-product-card {
    background: var(--gm-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: calc(var(--gm-radius-sm) + 2px);
    padding: 0.9rem 0.85rem 0.95rem;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}

.gm-product-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: var(--gm-green-light);
}

.gm-product-card--unavailable {
    opacity: 0.92;
}

.gm-product-card--unavailable .gm-product-card__image img {
    filter: grayscale(0.35);
    opacity: 0.85;
}

.gm-product-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 28px;
    margin-bottom: 0.5rem;
}

.gm-product-card__badge {
    background: #FEE2E2;
    color: #DC2626;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    line-height: 1.3;
}

.gm-product-card__badge--muted {
    background: #F3F4F6;
    color: #6B7280;
}

.gm-product-card__badge-spacer {
    display: block;
    width: 1px;
    height: 1px;
}

.gm-product-card__wishlist {
    border: none;
    background: #F9FAFB;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gm-text-muted);
    cursor: pointer;
    margin-right: auto;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.gm-product-card__wishlist:hover {
    color: var(--gm-pink);
    background: #FDF2F8;
}

.gm-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0.75rem;
    min-height: 150px;
    padding: 0.25rem;
}

.gm-product-card__image img {
    max-height: 150px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.gm-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gm-product-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 0.45rem;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gm-product-card__title a {
    color: var(--gm-text) !important;
    text-decoration: none !important;
}

.gm-product-card__title a:hover {
    color: var(--gm-green) !important;
}

.gm-product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    min-height: 1.35rem;
}

.gm-product-card__tags span {
    display: inline-block;
    font-size: 0.66rem;
    color: var(--gm-text-muted);
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    line-height: 1.35;
}

.gm-product-card__seller {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    color: var(--gm-green-dark);
    line-height: 1.45;
}

.gm-product-card__seller i {
    font-size: 0.72rem;
    opacity: 0.85;
}

.gm-product-card__footer {
    margin-top: auto;
    padding-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gm-product-card__pricing {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.75rem;
}

.gm-product-card__pricing--empty {
    visibility: hidden;
}

.gm-product-card__price {
    min-width: 0;
    flex: 1;
}

.gm-product-card__price del {
    display: block;
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    margin-bottom: 0.1rem;
}

.gm-product-card__price-now {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gm-text);
    line-height: 1.4;
}

.gm-product-card__price-now small {
    font-size: 0.72rem;
    font-weight: 500;
}

.gm-product-card__price--empty .gm-product-card__price-now {
    visibility: hidden;
}

.gm-product-card__pay-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gm-green-dark);
    background: var(--gm-green-soft);
    border: 1px solid rgba(0, 166, 81, 0.15);
    white-space: nowrap;
}

.gm-product-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    border-radius: var(--gm-radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.gm-product-card__cta--outline {
    background: var(--gm-white);
    border: 1.5px solid var(--gm-green);
    color: var(--gm-green) !important;
}

.gm-product-card__cta--outline:hover {
    background: var(--gm-green);
    border-color: var(--gm-green);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(0, 166, 81, 0.2);
    transform: translateY(-1px);
}

.gm-product-card__cta--outline i {
    font-size: 0.82rem;
    transition: transform 0.2s ease;
}

.gm-product-card__cta--outline:hover i {
    transform: translate(-2px, 2px);
}

.gm-product-card__cta--muted {
    border-color: var(--gm-border);
    color: var(--gm-text-muted) !important;
}

.gm-product-card__cta--muted:hover {
    background: #F9FAFB;
    border-color: var(--gm-green-light);
    color: var(--gm-green) !important;
    box-shadow: none;
    transform: none;
}

.gm-product-card__unavailable {
    display: none;
}

/* Product carousel (home lists) */
.gm-product-carousel {
    position: relative;
    margin-bottom: 2.75rem;
}

.gm-product-carousel__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.gm-product-carousel__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.gm-product-carousel__title {
    margin: 0;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 800;
    color: var(--gm-text);
    line-height: 1.35;
    position: relative;
    padding-bottom: 0.55rem;
}

.gm-product-carousel__title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gm-green) 0%, rgba(0, 166, 81, 0.2) 100%);
}

.gm-product-carousel__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 166, 81, 0.08);
    border: 1px solid rgba(0, 166, 81, 0.14);
    color: var(--gm-green) !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.gm-product-carousel__view-all:hover {
    background: var(--gm-green);
    border-color: var(--gm-green);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 166, 81, 0.22);
}

.gm-product-carousel__track {
    position: relative;
    margin: 0 -0.15rem;
    padding: 0.15rem 0.1rem;
}

.gm-product-carousel__fade {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    z-index: 3;
    pointer-events: none;
}

.gm-product-carousel__fade--start {
    right: 0;
    background: linear-gradient(to left, var(--gm-bg) 0%, transparent 100%);
}

.gm-product-carousel__fade--end {
    left: 0;
    background: linear-gradient(to right, var(--gm-bg) 0%, transparent 100%);
}

.gm-product-slider {
    padding: 0.15rem 0.1rem 0.35rem;
    position: relative;
    overflow: hidden;
}

.gm-product-slider .swiper-wrapper {
    align-items: stretch;
}

.gm-product-slider .swiper-slide {
    height: auto;
    display: flex;
}

.gm-product-slider .swiper-slide > .gm-product-card,
.gm-product-slider .swiper-slide > article {
    width: 100%;
}

.gm-product-carousel__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.gm-product-carousel__controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.gm-product-carousel__btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 166, 81, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gm-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.gm-product-carousel__btn:hover:not(.swiper-button-disabled) {
    background: var(--gm-green);
    border-color: var(--gm-green);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 166, 81, 0.22);
}

.gm-product-carousel__btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.gm-product-carousel__pagination {
    position: static !important;
    width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 72px;
    min-height: 24px;
}

.gm-product-carousel__pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    background: #D1D5DB;
    opacity: 1;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.gm-product-carousel__pagination .swiper-pagination-bullet-active {
    width: 22px;
    background: var(--gm-green);
}

.gm-product-carousel__view-more {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 360px;
    min-height: 46px;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gm-green) 0%, var(--gm-green-dark) 100%);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(0, 166, 81, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gm-product-carousel__view-more:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 166, 81, 0.28);
}

/* Legacy slider nav (related products etc.) */
.gm-product-slider .swiper-button-next,
.gm-product-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: 50%;
    color: var(--gm-green);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    top: 42%;
}

.gm-product-slider .swiper-button-next:after,
.gm-product-slider .swiper-button-prev:after {
    font-size: 0.9rem;
    font-weight: 700;
}

.gm-product-slider .swiper-button-disabled {
    opacity: 0.35;
}

@media (max-width: 767.98px) {
    .gm-product-card__image {
        min-height: 120px;
    }

    .gm-product-card__image img {
        max-height: 120px;
    }

    .gm-product-carousel__fade {
        display: block;
    }

    .gm-product-carousel__head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin-bottom: 0.95rem;
    }

    .gm-product-carousel__intro {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .gm-product-carousel__title {
        font-size: 1.12rem;
        text-align: center;
        padding-bottom: 0.65rem;
    }

    .gm-product-carousel__title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .gm-product-carousel__view-all {
        align-self: center;
    }

    .gm-product-carousel__view-more {
        display: inline-flex;
    }

    .gm-product-carousel__controls {
        width: 100%;
        max-width: 280px;
    }

    .gm-product-slider .swiper-button-next,
    .gm-product-slider .swiper-button-prev {
        display: none;
    }
}

/* ---- Amazing section ---- */
.gm-amazing {
    background: linear-gradient(135deg, var(--gm-green) 0%, var(--gm-green-dark) 100%);
    border-radius: var(--gm-radius);
    padding: 1.5rem;
}

.gm-amazing .gm-section-header__title {
    color: #fff;
}

.gm-amazing .gm-section-header__title::after {
    background: rgba(255, 255, 255, 0.5);
}

.gm-amazing .gm-section-header__link {
    color: #fff !important;
}

/* ---- Category Slider (parent categories) ---- */
.gm-categories {
    margin-bottom: 2rem;
}

.gm-categories__head {
    margin-bottom: 1rem;
}

.gm-categories__title {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    color: var(--gm-text);
    line-height: 1.35;
}

.gm-categories__track {
    position: relative;
    margin: 0 -0.2rem;
    padding: 0.2rem 0.1rem;
}

.gm-categories__fade {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 2;
    pointer-events: none;
}

.gm-categories__fade--start {
    right: 0;
    background: linear-gradient(to left, var(--gm-bg) 0%, transparent 100%);
}

.gm-categories__fade--end {
    left: 0;
    background: linear-gradient(to right, var(--gm-bg) 0%, transparent 100%);
}

.gm-categories__slider {
    overflow: hidden;
    padding: 0.15rem 0.1rem;
}

.gm-categories__slider .swiper-slide {
    height: auto;
}

.gm-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
    color: var(--gm-text);
    padding: 0.15rem 0.1rem 0.35rem;
    transition: transform 0.22s ease;
}

.gm-category-card:hover {
    transform: translateY(-3px);
}

.gm-category-card__icon-wrap {
    width: 100%;
    aspect-ratio: 1;
    max-width: 108px;
    margin: 0 auto;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.gm-category-card:hover .gm-category-card__icon-wrap {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.gm-category-card__icon-wrap--tone-1 {
    background: linear-gradient(145deg, #FFF0F3 0%, #FFE4EC 100%);
}

.gm-category-card__icon-wrap--tone-2 {
    background: linear-gradient(145deg, #EFF6FF 0%, #DBEAFE 100%);
}

.gm-category-card__icon-wrap--tone-3 {
    background: linear-gradient(145deg, #ECFDF5 0%, #D1FAE5 100%);
}

.gm-category-card__icon-wrap--tone-4 {
    background: linear-gradient(145deg, #F5F3FF 0%, #EDE9FE 100%);
}

.gm-category-card__icon-wrap--tone-5 {
    background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
}

.gm-category-card__icon {
    width: 72px;
    height: 72px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.gm-category-card__fallback {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gm-green-dark);
    background: rgba(255, 255, 255, 0.72);
}

.gm-category-card__label {
    display: block;
    width: 100%;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: var(--gm-text);
    transition: color 0.2s ease;
}

.gm-category-card:hover .gm-category-card__label {
    color: var(--gm-green-dark);
}

.gm-categories__footer {
    display: flex;
    justify-content: center;
    margin-top: 0.65rem;
    padding-top: 0.15rem;
}

.gm-categories__pagination {
    position: static !important;
    width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 20px;
}

.gm-categories__pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    background: #D1D5DB;
    opacity: 1;
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.gm-categories__pagination .swiper-pagination-bullet-active {
    width: 22px;
    background: var(--gm-green);
}

@media (max-width: 767.98px) {
    .gm-categories__fade {
        display: block;
    }

    .gm-category-card__icon-wrap {
        max-width: 96px;
        border-radius: 18px;
        padding: 0.7rem;
    }

    .gm-category-card__icon {
        width: 60px;
        height: 60px;
    }

    .gm-category-card__label {
        font-size: 0.72rem;
    }
}

@media (max-width: 575.98px) {
    .gm-category-card__icon-wrap {
        max-width: 88px;
        border-radius: 16px;
    }

    .gm-category-card__icon {
        width: 54px;
        height: 54px;
    }
}

/* ---- Category Icons (legacy) ---- */
.gm-category-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    color: var(--gm-text);
    font-size: 0.8rem;
    text-align: center;
}

.gm-category-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: var(--gm-white);
    border-radius: 50%;
    padding: 0.5rem;
    border: 1px solid var(--gm-border);
    transition: border-color 0.2s;
}

.gm-category-icon:hover img {
    border-color: var(--gm-green);
}

/* ---- Trust Bar ---- */
.gm-trust-bar {
    position: relative;
    margin: 2.25rem 0 2rem;
    padding: 0;
    background: transparent;
    border: none;
}

.gm-trust-bar__track {
    position: relative;
}

.gm-trust-bar__fade {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.gm-trust-bar__fade--start {
    right: 0;
    background: linear-gradient(to left, var(--gm-bg) 0%, transparent 100%);
}

.gm-trust-bar__fade--end {
    left: 0;
    background: linear-gradient(to right, var(--gm-bg) 0%, transparent 100%);
}

.gm-trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.gm-trust-bar[data-trust-count="1"] .gm-trust-bar__grid {
    grid-template-columns: minmax(0, 220px);
    justify-content: center;
}

.gm-trust-bar[data-trust-count="2"] .gm-trust-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
    margin-inline: auto;
}

.gm-trust-bar[data-trust-count="3"] .gm-trust-bar__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gm-trust-bar[data-trust-count="4"] .gm-trust-bar__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gm-trust-bar[data-trust-count="5"] .gm-trust-bar__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gm-trust-bar[data-trust-count="6"] .gm-trust-bar__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1200px) {
    .gm-trust-bar[data-trust-count="6"] .gm-trust-bar__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.gm-trust-bar[data-trust-count="7"] .gm-trust-bar__grid,
.gm-trust-bar[data-trust-count="8"] .gm-trust-bar__grid,
.gm-trust-bar[data-trust-count="9"] .gm-trust-bar__grid,
.gm-trust-bar[data-trust-count="10"] .gm-trust-bar__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
}

.gm-trust-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    min-height: 100%;
    padding: 1rem 0.75rem 1.05rem;
    border-radius: calc(var(--gm-radius-sm) + 2px);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 166, 81, 0.1);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    color: var(--gm-text);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.gm-trust-bar__item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 166, 81, 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(0, 166, 81, 0.12);
}

.gm-trust-bar__item[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
}

.gm-trust-bar__icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 166, 81, 0.12);
    background: linear-gradient(145deg, rgba(0, 166, 81, 0.16) 0%, rgba(0, 166, 81, 0.05) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gm-trust-bar__item:nth-child(5n + 2) .gm-trust-bar__icon-wrap {
    background: linear-gradient(145deg, rgba(56, 142, 60, 0.18) 0%, rgba(129, 199, 132, 0.08) 100%);
}

.gm-trust-bar__item:nth-child(5n + 3) .gm-trust-bar__icon-wrap {
    background: linear-gradient(145deg, rgba(0, 137, 123, 0.16) 0%, rgba(128, 203, 196, 0.08) 100%);
}

.gm-trust-bar__item:nth-child(5n + 4) .gm-trust-bar__icon-wrap {
    background: linear-gradient(145deg, rgba(104, 159, 56, 0.18) 0%, rgba(197, 225, 165, 0.1) 100%);
}

.gm-trust-bar__item:nth-child(5n + 5) .gm-trust-bar__icon-wrap {
    background: linear-gradient(145deg, rgba(46, 125, 50, 0.17) 0%, rgba(165, 214, 167, 0.09) 100%);
}

.gm-trust-bar__item:hover .gm-trust-bar__icon-wrap {
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(0, 166, 81, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.gm-trust-bar__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.gm-trust-bar__label {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
    color: var(--gm-text);
    transition: color 0.2s ease;
}

.gm-trust-bar__item:hover .gm-trust-bar__label {
    color: var(--gm-green-dark);
}

@media (hover: none) {
    .gm-trust-bar__item:hover {
        transform: none;
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
    }

    .gm-trust-bar__item:hover .gm-trust-bar__icon-wrap {
        transform: none;
    }
}

/* ---- About Section ---- */
.gm-about {
    position: relative;
    margin: 2.75rem 0 2.25rem;
    padding: 0;
    background: transparent;
    border: none;
}

.gm-about__visual {
    position: relative;
    padding: 0.75rem 0 1.5rem;
}

.gm-about__visual-blob {
    position: absolute;
    top: 8%;
    left: -6%;
    width: min(320px, 72%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(0, 166, 81, 0.14) 0%, rgba(0, 166, 81, 0.04) 55%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.gm-about__images {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.85rem;
    min-height: 340px;
}

.gm-about__img {
    background-size: cover;
    background-position: center;
    border-radius: calc(var(--gm-radius-sm) + 2px);
    background-color: var(--gm-green-light);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.92);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gm-about__img--main {
    grid-row: 1 / 3;
    grid-column: 1;
    min-height: 100%;
    background-image: linear-gradient(135deg, #c8e6c9 0%, #81c784 100%);
}

.gm-about__img--sub-1 {
    grid-column: 2;
    grid-row: 1;
    background-image: linear-gradient(135deg, #a5d6a7 0%, #66bb6a 100%);
}

.gm-about__img--sub-2 {
    grid-column: 2;
    grid-row: 2;
    background-image: linear-gradient(135deg, #dcedc8 0%, #aed581 100%);
}

.gm-about:hover .gm-about__img--main {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 166, 81, 0.16);
}

.gm-about__badge {
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 8%;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem 0.65rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 166, 81, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.gm-about__badge-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gm-green) 0%, var(--gm-green-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.gm-about__badge-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gm-text);
    white-space: nowrap;
}

.gm-about__content {
    padding: 0.25rem 0;
}

.gm-about__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 166, 81, 0.08);
    color: var(--gm-green);
    font-size: 0.72rem;
    font-weight: 700;
}

.gm-about__title {
    position: relative;
    margin: 0 0 1.15rem;
    padding-bottom: 0.85rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: var(--gm-text);
    line-height: 1.35;
}

.gm-about__title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gm-green) 0%, rgba(0, 166, 81, 0.25) 100%);
}

.gm-about__text {
    color: var(--gm-text-muted);
    line-height: 2.05;
    font-size: 0.92rem;
    margin-bottom: 1.65rem;
    text-align: justify;
    text-align-last: right;
    text-justify: inter-word;
    hyphens: auto;
}

.gm-about__text p {
    margin: 0 0 0.85rem;
    text-align: justify;
    text-align-last: right;
    text-justify: inter-word;
}

.gm-about__text p:last-child {
    margin-bottom: 0;
}

.gm-about__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.gm-about__feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--gm-radius-sm);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 166, 81, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.gm-about__feature:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 166, 81, 0.28);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(0, 166, 81, 0.1);
}

.gm-about__feature-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(145deg, rgba(0, 166, 81, 0.14) 0%, rgba(0, 166, 81, 0.06) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gm-green);
    flex-shrink: 0;
}

.gm-about__feature-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gm-text);
    line-height: 1.45;
}

/* ---- Support Banner ---- */
.gm-support-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(90deg, #E3F2FD 0%, #E8F5E9 100%);
    border-radius: var(--gm-radius);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.gm-support-banner__icon {
    color: var(--gm-green);
    flex-shrink: 0;
}

.gm-support-banner__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gm-support-banner__text strong {
    font-size: 1rem;
    color: var(--gm-text);
}

.gm-support-banner__text span {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
}

.gm-support-banner__phone {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gm-green) !important;
    text-decoration: none !important;
    direction: ltr;
}

/* ---- Footer ---- */
.gm-footer__pre {
    background: var(--gm-white);
    border-top: 1px solid var(--gm-border);
    margin-top: 3rem;
}

.gm-footer__support {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--gm-border);
}

.gm-footer__support-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gm-green-light);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.gm-footer__support-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gm-footer__support-text strong {
    font-size: 0.95rem;
    color: var(--gm-text);
}

.gm-footer__support-text a {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gm-green) !important;
    text-decoration: none !important;
    direction: ltr;
    text-align: right;
}

.gm-footer__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 0;
}

.gm-footer__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.gm-footer__feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gm-green-light);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.gm-footer__feature strong {
    display: block;
    font-size: 0.875rem;
    color: var(--gm-text);
    margin-bottom: 0.2rem;
}

.gm-footer__feature span {
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    line-height: 1.6;
}

.gm-footer {
    background: #F0F2F5;
    border-top: 1px solid var(--gm-border);
    padding: 2rem 0 0;
    margin-top: 0;
}

.gm-footer .footer-logo-area,
.gm-footer .services,
.gm-footer .widget-footer .widget-content {
    all: unset;
}

.gm-footer__divider {
    height: 1px;
    background: #DDE1E6;
    margin: 1.5rem 0;
}

.gm-footer__row {
    margin-bottom: 0;
}

.gm-footer__row--brandline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gm-footer__logo img {
    max-height: 44px;
    display: block;
}

.gm-footer__row--contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.gm-footer__address {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    line-height: 1.85;
    margin: 0;
}

.gm-footer__contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.gm-footer__contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gm-text) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.gm-footer__contact-item i {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gm-white);
    border-radius: 8px;
    color: var(--gm-green);
    font-size: 0.95rem;
}

.gm-footer__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-footer__social-list a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    border-radius: 50%;
    color: #4B5563 !important;
    font-size: 1.05rem;
    transition: all 0.2s;
    text-decoration: none !important;
}

.gm-footer__social-list a:hover {
    background: var(--gm-green);
    color: #fff !important;
}

.gm-footer__row--links {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 1.5rem 2rem;
    align-items: start;
}

.gm-footer__col-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--gm-text);
    margin: 0 0 0.85rem;
}

.gm-footer__col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-footer__col-list a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: var(--gm-text-muted) !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.gm-footer__col-list a:hover {
    color: var(--gm-green) !important;
}

.gm-footer__col--trust {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.gm-footer__row--about {
    padding-bottom: 0.5rem;
}

.gm-footer__about h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: var(--gm-text);
}

.gm-footer__about-text {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    line-height: 1.95;
    text-align: justify;
}

.gm-footer__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.gm-footer__copyright-bar {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    border-top: 1px solid #DDE1E6;
    background: rgba(255, 255, 255, 0.55);
    margin-top: 1.5rem;
}

/* ---- Responsive (page sections) ---- */
@media (max-width: 991.98px) {
    .gm-trust-bar {
        margin: 1.85rem 0 1.75rem;
    }

    .gm-trust-bar__fade {
        display: block;
    }

    .gm-trust-bar__track {
        margin: 0 -0.35rem;
    }

    .gm-trust-bar__grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.75rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.35rem 0.35rem 0.55rem;
    }

    .gm-trust-bar__grid::-webkit-scrollbar {
        display: none;
    }

    .gm-trust-bar__item {
        flex: 0 0 clamp(132px, 40vw, 168px);
        scroll-snap-align: start;
        min-height: 132px;
        padding: 0.95rem 0.7rem 1rem;
    }

    .gm-trust-bar[data-trust-count="1"] .gm-trust-bar__grid,
    .gm-trust-bar[data-trust-count="2"] .gm-trust-bar__grid {
        justify-content: safe center;
    }

    .gm-trust-bar[data-trust-count="1"] .gm-trust-bar__item {
        flex-basis: min(220px, 78vw);
    }

    .gm-trust-bar[data-trust-count="2"] .gm-trust-bar__item {
        flex-basis: clamp(140px, 42vw, 180px);
    }

    .gm-trust-bar__fade {
        width: 28px;
    }

    .gm-footer__features {
        grid-template-columns: 1fr;
    }

    .gm-footer__row--links {
        grid-template-columns: 1fr 1fr;
    }

    .gm-footer__col--trust {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .gm-footer__row--brandline {
        flex-direction: column;
        align-items: flex-start;
    }

    .gm-about__features {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .gm-about__feature {
        padding: 0.95rem 1.05rem;
        min-height: 54px;
    }

    .gm-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
    }

    .gm-header__search-col {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .gm-hero__slider img {
        min-height: 200px;
    }

    .gm-support-banner {
        flex-direction: column;
        text-align: center;
    }

    .gm-section-header__title {
        font-size: 1.05rem;
    }

    .gm-header__cart .cart-items-wrapper.dropdown--wrapper {
        width: 300px !important;
        left: auto !important;
        right: 0 !important;
    }

    .gm-about {
        margin: 1.75rem 0 2rem;
    }

    .gm-about__content {
        padding: 0;
    }

    .gm-about__title {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        font-size: 1.22rem;
    }

    .gm-about__text {
        font-size: 0.88rem;
        line-height: 1.95;
        margin-bottom: 1.25rem;
    }

    .gm-about__features {
        gap: 0.6rem;
    }

    .gm-about__feature {
        padding: 0.95rem 1rem;
        min-height: 54px;
        border-radius: 14px;
    }

    .gm-about__feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .gm-about__feature-label {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .gm-product-carousel__view-more {
        max-width: none;
        font-size: 0.78rem;
        min-height: 44px;
    }

    .gm-product-carousel__btn {
        width: 36px;
        height: 36px;
    }

    .gm-product-card {
        padding: 0.8rem 0.75rem 0.9rem;
    }

    .gm-product-card__cta {
        min-height: 40px;
        font-size: 0.75rem;
    }

    .gm-trust-bar {
        margin: 1.5rem 0 1.5rem;
    }

    .gm-trust-bar__item {
        flex-basis: clamp(128px, 44vw, 156px);
        min-height: 124px;
        gap: 0.6rem;
        padding: 0.85rem 0.65rem 0.95rem;
        border-radius: 14px;
    }

    .gm-trust-bar__icon-wrap {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .gm-trust-bar__icon {
        width: 32px;
        height: 32px;
    }

    .gm-trust-bar__label {
        font-size: 0.76rem;
        line-height: 1.5;
    }

    .gm-about {
        margin: 1.5rem 0 1.75rem;
    }

    .gm-about__title {
        font-size: 1.1rem;
    }

    .gm-about__text {
        font-size: 0.85rem;
        line-height: 1.9;
    }

    .gm-about__feature {
        padding: 0.85rem 0.9rem;
        min-height: 50px;
    }

    .gm-about__feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.92rem;
    }

    .gm-about__feature-label {
        font-size: 0.78rem;
    }
}

/* Swiper RTL fixes */
.gm-theme .swiper-button-next {
    left: 10px;
    right: auto;
}

.gm-theme .swiper-button-prev {
    right: 10px;
    left: auto;
}

/* ==========================================================================
   Design tokens — global overrides (جایگزینی نارنجی/قرمز قدیمی)
   ========================================================================== */
.gm-theme .dk-btn-info,
.gm-theme .btn-info-element,
.gm-theme .btn-element.btn-info-element {
    background: var(--gm-green) !important;
    border-color: var(--gm-green) !important;
    color: #fff !important;
}

.gm-theme .dk-btn-info:hover,
.gm-theme .btn-info-element:hover {
    background: var(--gm-green-dark) !important;
    border-color: var(--gm-green-dark) !important;
}

.gm-theme .btn-link-border,
.gm-theme a.btn-link-border {
    color: var(--gm-green) !important;
}

.gm-theme .border-bottom-dt {
    border-bottom-color: var(--gm-green-light) !important;
}

/* ==========================================================================
   Product page
   ========================================================================== */
.gm-theme .single-product {
    padding-top: 0.5rem;
}

.gm-theme .single-product .breadcrumb nav a {
    color: var(--gm-text-muted);
    font-size: 0.8rem;
}

.gm-theme .single-product .breadcrumb nav a:last-child {
    color: var(--gm-text);
    font-weight: 600;
}

.gm-theme .single-product .product-title h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gm-text);
    line-height: 1.6;
}

.gm-theme .single-product .product-directory a {
    color: var(--gm-green) !important;
    background: var(--gm-green-light);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none !important;
}

.gm-theme .single-product #product-seller-info.gm-purchase-panel {
    border-radius: 16px;
    overflow: hidden;
}

.gm-theme .single-product .product-add a,
.gm-theme .single-product .product-add .js-add-cart,
.gm-theme .single-product .product-add .js-add-cart-bundle,
.gm-theme .single-product .gm-purchase-bar__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gm-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--gm-radius-sm) !important;
    padding: 0 1rem !important;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: background 0.2s;
    width: 100%;
    min-height: 48px;
    height: 100%;
}

.gm-theme .single-product .product-add a:hover,
.gm-theme .single-product .gm-purchase-bar__btn:hover {
    background: var(--gm-green-dark) !important;
}

/* Purchase bar — qty + add to cart */
.gm-purchase-bar {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.gm-purchase-bar__row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.gm-purchase-bar__qty {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.gm-purchase-bar__action {
    flex: 1;
    min-width: 0;
    display: flex;
}

.gm-theme .single-product .gm-purchase-bar .num-block {
    width: 118px;
    height: 48px;
    border: 1.5px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    padding: 0;
    display: flex;
    align-items: center;
    background: #FAFAFA;
}

.gm-theme .single-product .gm-purchase-bar .num-in {
    width: 100%;
    height: 100%;
    align-items: center;
}

.gm-theme .single-product .gm-purchase-bar .num-in span {
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 8px;
    transition: background 0.15s;
}

.gm-theme .single-product .gm-purchase-bar .num-in span:hover {
    background: var(--gm-green-light);
}

.gm-theme .single-product .gm-purchase-bar .num-in span.plus:before,
.gm-theme .single-product .gm-purchase-bar .num-in span.plus:after,
.gm-theme .single-product .gm-purchase-bar .num-in span.minus:before {
    background-color: var(--gm-green) !important;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.gm-theme .single-product .gm-purchase-bar .num-in span.plus:after {
    transform: translateX(-50%) rotate(90deg);
}

.gm-theme .single-product .gm-purchase-bar .num-in span.dis:before {
    background-color: #D1D5DB !important;
}

.gm-theme .single-product .gm-purchase-bar .num-in input {
    height: 36px;
    font-weight: 700;
    color: var(--gm-text);
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .gm-purchase-bar__row {
        flex-direction: column;
    }

    .gm-theme .single-product .gm-purchase-bar .num-block {
        width: 100%;
    }
}

.gm-theme .single-product .price-value,
.gm-theme .single-product .price-value span:first-child {
    color: var(--gm-text);
    font-weight: 800;
    font-size: 1.25rem;
}

.gm-theme .single-product .product-feature-item {
    color: var(--gm-text-muted);
    font-size: 0.75rem;
    text-decoration: none !important;
}

.gm-theme .single-product .product-feature-item:hover {
    color: var(--gm-green);
}

/* Chat with seller */
.gm-chat-seller {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--gm-green-soft) !important;
    border: 1px solid var(--gm-green-light);
    border-radius: var(--gm-radius-sm);
    padding: 0.85rem 1rem;
    margin: 1rem 0;
}

.gm-chat-seller__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gm-green-light);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.gm-chat-seller__text {
    flex: 1;
    min-width: 0;
}

.gm-chat-seller__text p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gm-text);
    line-height: 1.6;
}

.gm-chat-seller__btn,
.gm-theme .chat-btn-dng {
    position: static !important;
    flex-shrink: 0;
    border: none !important;
    background: var(--gm-green) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 0.5rem 1.15rem !important;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.gm-chat-seller__btn:hover,
.gm-theme .chat-btn-dng:hover {
    background: var(--gm-green-dark) !important;
}

/* Product carousels (related / cross-sell) */
.gm-theme .product-carousel.gm-product-section:not(.gm-product-carousel) {
    margin-bottom: 2rem;
    padding: 1.25rem 0;
}

.gm-theme .product-carousel:not(.gm-product-carousel) .gm-product-slider {
    padding: 0.25rem 0 2rem;
}

.gm-theme .product-carousel .gm-product-slider .swiper-slide {
    height: auto;
}

.gm-theme .product-carousel:not(.gm-product-carousel) .swiper-button-next,
.gm-theme .product-carousel:not(.gm-product-carousel) .swiper-button-prev {
    width: 36px;
    height: 36px;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: 50%;
    box-shadow: var(--gm-shadow);
    color: var(--gm-text);
}

.gm-theme .product-carousel:not(.gm-product-carousel) .swiper-button-next:after,
.gm-theme .product-carousel:not(.gm-product-carousel) .swiper-button-prev:after {
    font-size: 0.85rem;
    font-weight: 700;
}

.gm-theme .product-carousel .section-title h2,
.gm-theme .product-carousel .gm-section-header__title,
.gm-theme .product-carousel .gm-product-carousel__title {
    font-size: 1.15rem;
}

.gm-theme .product-carousel .gm-section-header__title::after,
.gm-theme .product-carousel .gm-product-carousel__title::after {
    background: var(--gm-green);
}

/* Product tabs */
.gm-product-tabs {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.gm-product-tabs__box {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    overflow: hidden;
}

.gm-product-tabs__nav {
    background: #F9FAFB;
    border-bottom: 1px solid var(--gm-border);
    padding: 0.5rem 0.75rem 0;
}

.gm-product-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    border: none !important;
    background: transparent !important;
}

.gm-product-tabs__item {
    border: none !important;
    margin: 0;
}

.gm-product-tabs__link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.15rem !important;
    border-radius: var(--gm-radius-sm) var(--gm-radius-sm) 0 0;
    color: var(--gm-text-muted) !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    transition: color 0.15s, background 0.15s;
    position: relative;
}

.gm-product-tabs__link i {
    font-size: 1rem;
    color: #9CA3AF;
    transition: color 0.15s;
}

.gm-product-tabs__link:hover {
    color: var(--gm-green) !important;
    background: rgba(0, 166, 81, 0.06) !important;
}

.gm-product-tabs__link:hover i {
    color: var(--gm-green);
}

.gm-product-tabs__link.active,
.gm-theme .single-product .gm-product-tabs__link.active {
    color: var(--gm-green) !important;
    background: var(--gm-white) !important;
    box-shadow: 0 -1px 0 var(--gm-white);
}

.gm-product-tabs__link.active::before,
.gm-theme .single-product .box-tabs-tab .active:before {
    display: none !important;
}

.gm-product-tabs__link.active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0.75rem;
    left: 0.75rem;
    height: 3px;
    background: var(--gm-green);
    border-radius: 0 0 3px 3px;
}

.gm-product-tabs__link.active i {
    color: var(--gm-green);
}

.gm-product-tabs__content {
    padding: 1.75rem 1.5rem 2rem !important;
    border: none !important;
    box-shadow: none !important;
}

.gm-product-tabs__content .param-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gm-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gm-border);
}

.gm-product-tabs__content .param-title span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gm-text-muted);
    margin-top: 0.25rem;
}

.gm-theme .single-product .tab-content .content-expert {
    height: auto !important;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
}

.gm-theme .single-product .parent-expert.gm-collapsible.is-collapsed .content-expert {
    max-height: 280px;
    overflow: hidden;
    padding-bottom: 2.5rem;
}

.gm-theme .single-product .parent-expert .sum-more,
.gm-theme .single-product .product-params .sum-more {
    display: none;
}

.gm-theme .single-product .parent-expert.gm-collapsible.is-collapsed .sum-more,
.gm-theme .single-product .product-params.gm-collapsible.is-collapsed .sum-more {
    display: flex;
}

.gm-theme .single-product .parent-expert:not(.gm-collapsible) .shadow-box,
.gm-theme .single-product .product-params:not(.gm-collapsible) .sum-more {
    display: none !important;
}

.gm-expandable-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    background: linear-gradient(to top, #fff 60%, rgba(255, 255, 255, 0));
    z-index: 2;
}

.gm-expandable-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1.5px solid var(--gm-green-light);
    background: var(--gm-white);
    color: var(--gm-green);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}

.gm-expandable-toggle__btn:hover {
    background: var(--gm-green-light);
    border-color: var(--gm-green);
}

.gm-expandable-toggle .show-less {
    display: none;
}

.gm-theme .single-product .parent-expert.is-expanded .shadow-box,
.gm-theme .single-product .parent-expert.is-expanded .show-more {
    display: none !important;
}

.gm-theme .single-product .parent-expert.is-expanded .show-less {
    display: inline-flex !important;
}

.gm-theme .single-product .product-params.is-expanded .show-more {
    display: none !important;
}

.gm-theme .single-product .product-params.is-expanded .show-less {
    display: inline-flex !important;
}

.gm-theme .single-product .tab-content .content-expert p {
    color: var(--gm-text-muted);
    line-height: 1.9;
    font-size: 0.9rem;
}

.gm-theme .single-product .content-expert-evaluation-positive span {
    color: var(--gm-green) !important;
}

.gm-theme .single-product .content-expert-evaluation-positive ul li:before {
    background-color: var(--gm-green) !important;
}

.gm-theme .single-product .params-list {
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    overflow: hidden;
}

.gm-theme .single-product .params-list li {
    display: flex;
    border-bottom: 1px solid var(--gm-border);
    margin: 0;
}

.gm-theme .single-product .params-list li:last-child {
    border-bottom: none;
}

.gm-theme .single-product .params-list-key,
.gm-theme .single-product .params-list-value {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

.gm-theme .single-product .params-list-key {
    background: #F9FAFB;
    color: var(--gm-text-muted);
    width: 40%;
    flex-shrink: 0;
}

.gm-theme .single-product .params-list-value {
    color: var(--gm-text);
    font-weight: 600;
}

.gm-theme .single-product .comments-headline {
    font-size: 1.05rem !important;
    color: var(--gm-text) !important;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.gm-theme .single-product .comments-summary-note {
    background: var(--gm-green-soft);
    border: 1px solid var(--gm-green-light);
    border-radius: var(--gm-radius-sm);
    padding: 1.25rem;
}

.gm-theme .single-product .comments-summary-note span {
    font-weight: 700;
    color: var(--gm-text);
    display: block;
    margin-bottom: 0.5rem;
}

.gm-theme .single-product .comments-summary-note p {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.gm-theme .single-product .product-params {
    height: auto !important;
    overflow: visible;
    padding-bottom: 0;
}

.gm-theme .single-product .product-params.gm-collapsible.is-collapsed {
    max-height: 140px;
    overflow: hidden;
    padding-bottom: 2rem;
}

.gm-theme .single-product .rating-rate {
    background: var(--gm-green) !important;
}

/* Acceptors section */
.gm-acceptors {
    position: relative;
    margin: 0 0 2.75rem;
    padding: 0.25rem 0 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

.gm-acceptors__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.gm-acceptors__intro {
    min-width: 0;
}

.gm-acceptors__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 166, 81, 0.08);
    color: var(--gm-green);
    font-size: 0.72rem;
    font-weight: 700;
}

.gm-acceptors__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gm-text);
    line-height: 1.35;
}

.gm-acceptors__desc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    line-height: 1.6;
}

.gm-acceptors__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.gm-acceptors__nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 166, 81, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--gm-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.gm-acceptors__nav-btn:hover:not(.swiper-button-disabled) {
    background: var(--gm-green);
    border-color: var(--gm-green);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 166, 81, 0.22);
}

.gm-acceptors__nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.gm-acceptors__filters {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
}

.gm-acceptors__filters::-webkit-scrollbar {
    display: none;
}

.gm-acceptors__filter {
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    color: var(--gm-text);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 0.5rem 1.05rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.gm-acceptors__filter:hover {
    border-color: rgba(0, 166, 81, 0.35);
    color: var(--gm-green);
    transform: translateY(-1px);
}

.gm-acceptors__filter.is-active {
    background: var(--gm-green);
    border-color: var(--gm-green);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 166, 81, 0.25);
}

.gm-acceptors__track {
    position: relative;
    margin: 0 -0.25rem;
    padding: 0.35rem 0 0.15rem;
}

.gm-acceptors__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 3;
    pointer-events: none;
}

.gm-acceptors__fade--start {
    right: 0;
    background: linear-gradient(to left, var(--gm-page-bg, #f5f7f6) 0%, transparent 100%);
}

.gm-acceptors__fade--end {
    left: 0;
    background: linear-gradient(to right, var(--gm-page-bg, #f5f7f6) 0%, transparent 100%);
}

.gm-acceptors__swiper {
    overflow: hidden;
    padding: 0.5rem 0.25rem 0.75rem;
}

.gm-acceptors__slide {
    width: auto;
}

.gm-acceptors__slide.is-hidden {
    display: none !important;
}

.gm-acceptor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 118px;
    text-decoration: none !important;
    position: relative;
}

.gm-acceptor-card__ring {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 104px;
    height: 104px;
    margin-left: -52px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 166, 81, 0.22);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}

.gm-acceptor-card:hover .gm-acceptor-card__ring,
.gm-acceptor-card:focus-visible .gm-acceptor-card__ring {
    opacity: 1;
    transform: scale(1);
}

.gm-acceptor-card__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.gm-acceptor-card:hover .gm-acceptor-card__logo-wrap,
.gm-acceptor-card:focus-visible .gm-acceptor-card__logo-wrap {
    transform: translateY(-4px);
}

.gm-acceptor-card__logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(160deg, #ffffff 0%, #f3faf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 166, 81, 0.06);
    transition: box-shadow 0.25s;
}

.gm-acceptor-card:hover .gm-acceptor-card__logo,
.gm-acceptor-card:focus-visible .gm-acceptor-card__logo {
    box-shadow:
        0 16px 36px rgba(0, 166, 81, 0.14),
        0 0 0 2px rgba(0, 166, 81, 0.12);
}

.gm-acceptor-card__logo--has-image {
    background: #fff;
    padding: 0.7rem;
}

.gm-acceptor-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gm-acceptor-card__initial {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--gm-green);
    line-height: 1;
}

.gm-acceptor-card__name {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gm-text-muted);
    text-align: center;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.gm-acceptor-card:hover .gm-acceptor-card__name,
.gm-acceptor-card:focus-visible .gm-acceptor-card__name {
    color: var(--gm-green);
}

.gm-acceptors__pagination {
    position: static !important;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.gm-acceptors__pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    opacity: 1;
    transition: width 0.25s, background 0.25s;
}

.gm-acceptors__pagination .swiper-pagination-bullet-active {
    width: 32px;
    background: var(--gm-green);
}

@media (max-width: 767.98px) {
    .gm-acceptors__head {
        flex-direction: column;
        align-items: stretch;
    }

    .gm-acceptors__nav {
        display: none;
    }

    .gm-acceptors__title {
        font-size: 1.15rem;
    }

    .gm-acceptor-card {
        width: 102px;
    }

    .gm-acceptor-card__logo {
        width: 84px;
        height: 84px;
    }

    .gm-acceptor-card__ring {
        width: 92px;
        height: 92px;
        margin-left: -46px;
    }

    .gm-acceptor-card__initial {
        font-size: 1.5rem;
    }

    .gm-acceptors__fade {
        width: 28px;
    }
}

@media (max-width: 767.98px) {
    .gm-product-tabs__list {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .gm-product-tabs__item {
        flex-shrink: 0;
    }

    .gm-product-tabs__content {
        padding: 1.25rem 1rem 1.5rem !important;
    }
}

@media (max-width: 767.98px) {
    .gm-chat-seller {
        flex-wrap: wrap;
    }

    .gm-chat-seller__btn {
        width: 100%;
        justify-content: center;
    }
}
/* ==========================================================================
   Modal — حذف از سبد
   ========================================================================== */
.gm-modal .modal-dialog {
    max-width: 400px;
}

.gm-modal--cart-remove__dialog {
    max-width: 420px;
}

.gm-modal__content {
    border: none !important;
    border-radius: var(--gm-radius) !important;
    padding: 2rem 1.75rem 1.5rem;
    text-align: center;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
    position: relative;
    overflow: hidden;
}

.gm-modal--cart-remove__content {
    padding: 0 1.35rem 1.35rem;
}

.gm-modal--cart-remove__accent {
    height: 4px;
    margin: 0 -1.35rem 1.15rem;
    background: linear-gradient(90deg, #FCA5A5 0%, #EF4444 50%, #F87171 100%);
}

.gm-modal--cart-remove__preview {
    display: none;
    align-items: center;
    gap: 0.75rem;
    text-align: right;
    direction: rtl;
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    background: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
}

.gm-modal--cart-remove__preview--has-product {
    display: flex;
}

.gm-modal--cart-remove__preview-media {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-modal--cart-remove__preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.gm-modal--cart-remove__preview-img[src]:not([src=""]) {
    display: block;
}

.gm-modal--cart-remove__preview-fallback {
    color: #9CA3AF;
    font-size: 1.15rem;
}

.gm-modal--cart-remove__preview-name {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gm-modal--cart-remove__icon {
    position: relative;
    margin-top: 0.15rem;
}

.gm-modal--cart-remove__icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.18);
    animation: gm-modal-pulse 2s ease-out infinite;
}

@keyframes gm-modal-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.08);
        opacity: 0;
    }
    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

.gm-modal--cart-remove__actions .gm-btn {
    gap: 0.4rem;
}

.gm-modal--cart-remove__actions .gm-btn i {
    font-size: 0.85rem;
}

.gm-modal__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border: none;
    background: #F3F4F6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.gm-modal__close:hover {
    background: #E5E7EB;
    color: var(--gm-text);
}

.gm-modal__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.gm-modal__icon--warning {
    background: #FEF2F2;
    color: #EF4444;
}

.gm-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gm-text);
    margin-bottom: 0.5rem;
}

.gm-modal__text {
    font-size: 0.875rem;
    color: var(--gm-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.gm-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.gm-modal__actions .gm-btn {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 1rem;
}

.gm-btn--outline {
    background: var(--gm-white);
    color: var(--gm-text) !important;
    border-color: var(--gm-border);
}

.gm-btn--outline:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.gm-btn--danger {
    background: #EF4444;
    color: #fff !important;
    border-color: #EF4444;
}

.gm-btn--danger:hover {
    background: #DC2626;
    border-color: #DC2626;
}

/* ==========================================================================
   Search dropdown — بهبود UX
   ========================================================================== */
.gm-header__search.search-state-trends .gm-search-dropdown__section:not(.gm-search-trends) {
    display: none !important;
}

.gm-header__search.search-state-results .gm-search-trends {
    display: none !important;
}

.gm-header__search .search-result,
.gm-search-dropdown {
    direction: rtl;
    scrollbar-gutter: stable;
}

.gm-search-item__link {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
}

.gm-search-item__thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gm-border);
    flex-shrink: 0;
}

.gm-search-item__title {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gm-text);
}

.gm-search-cat a,
.gm-search-keyword a {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.35rem;
    border-radius: 8px;
    transition: background 0.15s;
}

.gm-search-cat a:hover,
.gm-search-keyword a:hover {
    background: var(--gm-green-light);
}

.gm-search-cat a i {
    color: var(--gm-green);
    font-size: 0.85rem;
}

.gm-search-cat a strong {
    color: var(--gm-green);
    font-weight: 700;
}

.gm-search-dropdown__section.has-content + .gm-search-dropdown__section.has-content,
.gm-search-dropdown__section.has-content + .gm-search-trends {
    border-top: 1px solid var(--gm-border);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.gm-search-trends__tags li {
    display: none !important;
}

/* ==========================================================================
   Auth pages
   ========================================================================== */
.gm-auth-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.gm-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
}

.gm-auth__bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #E8F8EF 0%, #F4F6F8 50%, #FFF5F9 100%);
    z-index: 0;
}

.gm-auth__bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: radial-gradient(circle at 20% 80%, rgba(0, 166, 81, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(233, 30, 140, 0.06) 0%, transparent 50%);
}

.gm-auth__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.gm-auth__card {
    background: var(--gm-white);
    border-radius: var(--gm-radius);
    padding: 2.25rem 2rem;
    box-shadow: var(--gm-shadow);
    border: 1px solid var(--gm-border);
}

.gm-auth__logo {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
}

.gm-auth__logo img {
    max-height: 48px;
    width: auto;
}

.gm-auth__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gm-text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.gm-auth__subtitle {
    font-size: 0.875rem;
    color: var(--gm-text-muted);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.gm-auth__subtitle strong {
    color: var(--gm-text);
    font-weight: 700;
}

.gm-auth__edit-link {
    color: var(--gm-green);
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

.gm-auth__alert {
    padding: 0.75rem 1rem;
    border-radius: var(--gm-radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.gm-auth__alert--error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.gm-auth__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gm-text);
    margin-bottom: 0.5rem;
}

.gm-auth__input-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

.gm-auth__input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1.1rem;
    pointer-events: none;
}

.gm-auth__input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1.5px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #FAFAFA;
}

.gm-auth__input:focus {
    outline: none;
    border-color: var(--gm-green);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
    background: var(--gm-white);
}

.gm-auth__field-error {
    display: block;
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

.gm-auth__submit {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.gm-auth__terms {
    font-size: 0.75rem;
    color: var(--gm-text-muted);
    text-align: center;
    line-height: 1.8;
    margin: 0;
}

.gm-auth__terms a {
    color: var(--gm-green);
    text-decoration: underline;
}

.gm-auth__copyright {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gm-text-muted);
    margin-top: 1.5rem;
}

.gm-auth__alt-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--gm-green);
    font-size: 0.85rem;
}

.gm-auth__forgot-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gm-green);
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.gm-auth__forgot-link:hover {
    text-decoration: underline;
}

.gm-auth__card-footer {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--gm-border);
}

.gm-auth__footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gm-green-soft);
    border: 1px solid var(--gm-green-light);
    border-radius: var(--gm-radius-sm);
    color: var(--gm-green-dark) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s;
}

.gm-auth__footer-link:hover {
    background: var(--gm-green-light);
    border-color: var(--gm-green);
}

.gm-auth__footer-link i {
    font-size: 1rem;
}

.gm-auth__otp-meta {
    text-align: center;
    margin-top: 1.25rem;
}

.gm-auth__countdown,
.gm-auth__resend {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    margin: 0;
}

.gm-auth__resend a {
    color: var(--gm-green);
    font-weight: 600;
}

#timer {
    font-weight: 700;
    color: var(--gm-green);
    direction: ltr;
    display: inline-block;
}

/* OTP digit boxes */
.gm-otp {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin: 0.5rem 0;
}

.gm-otp__digit {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    border: 2px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    background: #FAFAFA;
    color: var(--gm-text);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    caret-color: var(--gm-green);
}

.gm-otp__digit:focus {
    outline: none;
    border-color: var(--gm-green);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
    background: var(--gm-white);
}

.gm-otp__digit--filled {
    border-color: var(--gm-green);
    background: var(--gm-green-light);
}

.gm-otp--loading .gm-otp__digit {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .gm-otp {
        gap: 0.45rem;
    }

    .gm-otp__digit {
        width: 44px;
        height: 50px;
        font-size: 1.15rem;
    }

    .gm-auth__card {
        padding: 1.75rem 1.25rem;
    }
}

/* ==========================================================================
   Error pages (404, 500, …)
   ========================================================================== */
.gm-error {
    position: relative;
    padding: 2.5rem 0 4rem;
    min-height: calc(100vh - var(--gm-header-h) - 220px);
    overflow: hidden;
}

.gm-error__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.gm-error__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
}

.gm-error__blob--1 {
    width: 320px;
    height: 320px;
    background: var(--gm-green-light);
    top: -80px;
    right: -60px;
}

.gm-error__blob--2 {
    width: 260px;
    height: 260px;
    background: var(--gm-earth-light);
    bottom: 10%;
    left: -40px;
}

.gm-error__blob--3 {
    width: 180px;
    height: 180px;
    background: rgba(0, 166, 81, 0.08);
    top: 40%;
    left: 45%;
}

.gm-error .container {
    position: relative;
    z-index: 1;
}

.gm-error__card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--gm-white);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    border: 1px solid var(--gm-border);
    padding: 2.5rem 2rem 2.25rem;
    text-align: center;
}

.gm-error__visual {
    margin-bottom: 1.5rem;
}

.gm-error__svg {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.gm-error__icon-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gm-green-light), var(--gm-green-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 166, 81, 0.12);
}

.gm-error__icon-wrap--maintenance {
    background: linear-gradient(145deg, var(--gm-earth-light), #fff8f0);
    border-color: rgba(196, 168, 130, 0.35);
}

.gm-error__icon-wrap i {
    font-size: 2.75rem;
    color: var(--gm-green);
}

.gm-error__icon-wrap--maintenance i {
    color: var(--gm-earth);
}

.gm-error__code-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: var(--gm-green);
    color: var(--gm-white);
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.25);
}

.gm-error__code {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gm-green);
    letter-spacing: 0.08em;
    margin: 0 0 0.35rem;
}

.gm-error__title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--gm-text);
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.gm-error__message {
    font-size: 0.95rem;
    color: var(--gm-text-muted);
    line-height: 1.85;
    margin: 0 0 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.gm-error__search {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: 999px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gm-error__search:focus-within {
    border-color: var(--gm-green);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.gm-error__search-icon {
    align-self: center;
    color: var(--gm-text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.gm-error__search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--gm-text);
    padding: 0.65rem 0;
}

.gm-error__search input:focus {
    outline: none;
}

.gm-error__search input::placeholder {
    color: #9CA3AF;
}

.gm-error__search-btn {
    flex-shrink: 0;
    border-radius: 999px !important;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.875rem !important;
    min-height: 44px;
}

.gm-error__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.gm-error__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.65rem 1.5rem;
    font-size: 0.925rem;
    border-radius: var(--gm-radius-sm);
}

.gm-error__btn--ghost {
    background: var(--gm-white);
    color: var(--gm-text);
    border: 1px solid var(--gm-border);
}

.gm-error__btn--ghost:hover {
    border-color: var(--gm-green);
    color: var(--gm-green);
    background: var(--gm-green-soft);
}

.gm-error__hint {
    margin: 1.25rem 0 0;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    line-height: 1.7;
}

.gm-error__hint a {
    color: var(--gm-green);
    font-weight: 600;
}

.gm-error__hint a:hover {
    color: var(--gm-green-dark);
}

@media (max-width: 575.98px) {
    .gm-error {
        padding: 1.5rem 0 2.5rem;
        min-height: auto;
    }

    .gm-error__card {
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: var(--gm-radius-sm);
    }

    .gm-error__title {
        font-size: 1.25rem;
    }

    .gm-error__search {
        flex-direction: column;
        border-radius: var(--gm-radius-sm);
        padding: 0.75rem;
        gap: 0.65rem;
    }

    .gm-error__search-icon {
        display: none;
    }

    .gm-error__search input {
        text-align: center;
        padding: 0.5rem;
        border-bottom: 1px solid var(--gm-border);
    }

    .gm-error__search-btn {
        width: 100%;
        border-radius: var(--gm-radius-sm) !important;
    }

    .gm-error__actions {
        flex-direction: column;
        width: 100%;
    }

    .gm-error__btn {
        width: 100%;
    }
}

/* ==========================================================================
   Checkout / Cart / Shipping / Payment
   ========================================================================== */
.gm-checkout .shopping-page,
.gm-checkout-page {
    background: var(--gm-bg);
}

.gm-checkout .header-shopping:not(.gm-checkout-progress) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.gm-checkout .header-shopping-logo img {
    max-height: 44px !important;
}

.gm-checkout .checkout-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
    padding: 0.75rem 0 0;
    margin: 0;
    border: none;
}

.gm-checkout .checkout-steps li {
    flex: 1;
    max-width: 220px;
    position: relative;
}

.gm-checkout .checkout-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--gm-border);
    z-index: 0;
}

.gm-checkout .checkout-steps li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem;
    color: var(--gm-text-muted) !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.gm-checkout .checkout-steps li a::before {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gm-white);
    border: 2px solid var(--gm-border);
    transition: all 0.2s;
}

.gm-checkout .checkout-steps li a.active::before,
.gm-checkout .checkout-steps li.active a::before {
    background: var(--gm-green);
    border-color: var(--gm-green);
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.15);
}

.gm-checkout .checkout-steps li a.active,
.gm-checkout .checkout-steps li.active a {
    color: var(--gm-green) !important;
}

.gm-checkout .cart-page,
.gm-checkout-page .container {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.gm-checkout-flow > .container.gm-checkout-shell {
    width: 100%;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.gm-checkout .cart-page-title h1,
.gm-checkout-page .cart-page-title h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-checkout .checkout-content,
.gm-checkout .checkout-aside,
.gm-checkout .checkout-summary,
.gm-checkout-page .checkout-content,
.gm-checkout-page .checkout-aside,
.gm-checkout-page .checkout-summary {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
}

.gm-checkout .checkout-header,
.gm-checkout-page .checkout-header {
    background: var(--gm-green-soft);
    border-bottom: 1px solid var(--gm-border);
    border-radius: var(--gm-radius) var(--gm-radius) 0 0;
    padding: 0.85rem 1rem;
}

.gm-checkout .checkout-header-title,
.gm-checkout-page .checkout-header-title {
    font-weight: 700;
    color: var(--gm-text) !important;
}

.gm-checkout .table-cart,
.gm-checkout-page .table-cart {
    margin: 0;
}

.gm-checkout .checkout-item td,
.gm-checkout-page .checkout-item td {
    vertical-align: middle;
    border-color: var(--gm-border);
    padding: 1rem;
}

.gm-checkout .checkout-item img,
.gm-checkout-page .checkout-item img {
    border-radius: var(--gm-radius-sm);
    max-width: 100px;
    height: auto;
}

.gm-checkout .checkout-btn-remove,
.gm-checkout-page .checkout-btn-remove {
    color: #EF4444 !important;
    border: none;
    background: transparent;
}

.gm-checkout .checkout-contact,
.gm-checkout .checkout-address-box,
.gm-checkout .checkout-paymethod-item {
    background: var(--gm-white);
    border: 1px solid var(--gm-border) !important;
    border-radius: var(--gm-radius-sm) !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gm-checkout .checkout-address-box.is-selected,
.gm-checkout .checkout-paymethod-item.is-selected,
.gm-checkout .checkout-paymethod-item.active {
    border-color: var(--gm-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.gm-checkout .checkout-contact-btn-edit,
.gm-checkout .checkout-address-btn-submit {
    color: var(--gm-green) !important;
}

.gm-checkout .checkout-summary-price-value-amount {
    color: var(--gm-green) !important;
    font-weight: 800;
}

.gm-checkout .btn-element.btn-info-element,
.gm-checkout .btn-info-element,
.gm-checkout-page .btn-element.btn-info-element,
.gm-checkout-page .btn-success-element,
.gm-checkout .btn-primary,
.gm-checkout-page .btn-primary,
.gm-checkout .dk-btn-success,
.gm-checkout-page .dk-btn-success {
    background: var(--gm-green) !important;
    border-color: var(--gm-green) !important;
    color: #fff !important;
    border-radius: var(--gm-radius-sm) !important;
    font-weight: 700;
    min-height: 48px;
    transition: background 0.15s;
}

.gm-checkout .btn-element.btn-info-element:hover,
.gm-checkout-page .btn-element.btn-info-element:hover,
.gm-checkout .btn-primary:hover,
.gm-checkout-page .btn-primary:hover {
    background: var(--gm-green-dark) !important;
    border-color: var(--gm-green-dark) !important;
}

.gm-checkout .ui-radio input:checked + label::before,
.gm-checkout .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--gm-green) !important;
    border-color: var(--gm-green) !important;
}

.gm-checkout .cart-empty,
.gm-checkout-page .cart-empty {
    background: var(--gm-white);
    border-radius: var(--gm-radius);
    padding: 3rem 1.5rem;
    box-shadow: var(--gm-shadow);
    margin: 2rem auto;
    max-width: 480px;
}

.gm-checkout .cart-empty-icon i,
.gm-checkout-page .cart-empty-icon i {
    color: var(--gm-green);
    font-size: 3rem;
}

.gm-checkout .cart-empty-title,
.gm-checkout-page .cart-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gm-text);
}

.gm-checkout .card-horizontal-address {
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
}

/* ==========================================================================
   CMS Static Pages
   ========================================================================== */
.gm-page {
    padding: 1.5rem 0 2.5rem;
}

.gm-page__card {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.gm-page__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 992px) {
    .gm-page__layout {
        grid-template-columns: 320px 1fr;
    }
}

.gm-page__thumb {
    background: var(--gm-green-soft);
    min-height: 220px;
}

.gm-page__thumb img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.gm-page__body {
    padding: 1.75rem 1.5rem;
}

.gm-page__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gm-text);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.gm-page__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
}

.gm-page__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
}

.gm-page__meta i {
    color: var(--gm-green);
}

.gm-page__meta a {
    color: var(--gm-green) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.gm-page__content {
    font-size: 0.925rem;
    line-height: 1.95;
    color: var(--gm-text);
}

.gm-page__content h2,
.gm-page__content h3,
.gm-page__content h4 {
    color: var(--gm-text);
    font-weight: 800;
    margin-top: 1.5rem;
}

.gm-page__content p {
    margin-bottom: 1rem;
}

.gm-page__content ul,
.gm-page__content ol {
    padding-right: 1.25rem;
    margin-bottom: 1rem;
}

.gm-page__content a {
    color: var(--gm-green);
    font-weight: 600;
}

.gm-page__related {
    margin-bottom: 2rem;
}

.gm-page__related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gm-page__related-item:hover {
    border-color: var(--gm-green);
    box-shadow: var(--gm-shadow);
}

.gm-page__related-thumb {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: var(--gm-radius-sm);
    overflow: hidden;
}

.gm-page__related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gm-page__related-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gm-text);
    margin: 0 0 0.35rem;
}

.gm-page__related-text p {
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.6;
}

.gm-page__related-date {
    font-size: 0.75rem;
    color: var(--gm-text-muted);
}

.gm-page__products {
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .gm-page__body {
        padding: 1.25rem 1rem;
    }

    .gm-page__title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Compact footer (startup-style)
   ========================================================================== */
.gm-footer--compact {
    background: var(--gm-white);
    border-top: 1px solid var(--gm-border);
    padding: 1.25rem 0 0.85rem;
    margin-top: 2rem;
}

.gm-footer--compact .gm-footer__compact-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--gm-border);
}

.gm-footer--compact .gm-footer__logo img {
    max-height: 32px;
}

.gm-footer--compact .gm-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    justify-content: center;
    flex: 1;
}

.gm-footer--compact .gm-footer__nav a {
    font-size: 0.8rem;
    color: var(--gm-text-muted) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.15s;
}

.gm-footer--compact .gm-footer__nav a:hover {
    color: var(--gm-green) !important;
}

.gm-footer--compact .gm-footer__social-list a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.gm-footer--compact .gm-footer__compact-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    padding: 0.65rem 0;
    font-size: 0.78rem;
    color: var(--gm-text-muted);
}

.gm-footer--compact .gm-footer__compact-meta a {
    color: var(--gm-text-muted) !important;
    text-decoration: none !important;
}

.gm-footer--compact .gm-footer__compact-meta a:hover {
    color: var(--gm-green) !important;
}

.gm-footer--compact .gm-footer__sep {
    opacity: 0.4;
}

.gm-footer--compact .gm-footer__trust {
    display: inline-flex;
    align-items: center;
}

.gm-footer--compact .gm-footer__trust img {
    max-height: 48px;
}

.gm-footer--compact .gm-footer__compact-bottom {
    text-align: center;
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    padding-top: 0.5rem;
}

@media (max-width: 767.98px) {
    .gm-footer--compact .gm-footer__compact-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gm-footer--compact .gm-footer__nav {
        justify-content: center;
    }
}

/* ==========================================================================
   Product: specs, reviews, sellers, purchase bar, features
   ========================================================================== */
.gm-params__heading {
    border-bottom: none !important;
    margin-bottom: 0.5rem !important;
}

.gm-params__group {
    margin-bottom: 1.5rem;
}

.gm-params__group-title,
.single-product .card-body.params .params-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--gm-green) !important;
    margin: 0 0 0.75rem !important;
    padding: 0 0.75rem 0 0 !important;
    border-right: 3px solid var(--gm-green);
    background: none !important;
}

.gm-params__list,
.single-product .card-body.params .params-list,
.gm-theme .single-product .tab-pane.gm-params .params-list,
.gm-theme .single-product .tab-pane.params .params-list {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    overflow: hidden;
}

.gm-params__list li,
.single-product .card-body.params .params-list li,
.gm-theme .single-product .tab-pane.gm-params .params-list li,
.gm-theme .single-product .params .params-list li {
    display: grid !important;
    grid-template-columns: minmax(120px, 34%) 1fr;
    gap: 0;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--gm-border);
    background: var(--gm-white);
}

.gm-params__list li:last-child,
.single-product .card-body.params .params-list li:last-child {
    border-bottom: none;
}

.gm-params__list li:nth-child(even),
.single-product .card-body.params .params-list li:nth-child(even) {
    background: var(--gm-green-soft);
}

.gm-params__list .params-list-key,
.gm-params__list .params-list-value,
.single-product .card-body.params .params-list .params-list-key,
.single-product .card-body.params .params-list .params-list-value,
.gm-theme .single-product .tab-pane.gm-params .params-list .params-list-key,
.gm-theme .single-product .tab-pane.gm-params .params-list .params-list-value,
.gm-theme .single-product .params .params-list .params-list-key,
.gm-theme .single-product .params .params-list .params-list-value {
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    min-height: auto !important;
    flex: none !important;
    max-width: none !important;
    width: auto !important;
}

.gm-theme .single-product .gm-params__list .params-list-key span,
.gm-theme .single-product .gm-params__list .params-list-value span,
.gm-theme .single-product .tab-pane.gm-params .params-list-key span,
.gm-theme .single-product .tab-pane.gm-params .params-list-value span,
.gm-theme .single-product .params .params-list-key span,
.gm-theme .single-product .params .params-list-value span {
    background: transparent !important;
    padding: 0 !important;
    display: block;
    height: auto !important;
}

.gm-params__list .params-list-key span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gm-text-muted);
}

.gm-params__list .params-list-value span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gm-text);
}

/* Reviews */
.gm-reviews__summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gm-reviews__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: var(--gm-text);
}

.gm-reviews__rating {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--gm-text-muted);
}

.gm-reviews__rating-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gm-green);
}

.gm-reviews__cta {
    background: var(--gm-green-soft) !important;
    border: 1px solid var(--gm-green-light) !important;
    border-radius: var(--gm-radius-sm) !important;
    padding: 1rem 1.15rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gm-reviews__cta p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    line-height: 1.7;
}

.gm-reviews__cta .gm-btn {
    align-self: flex-start;
    min-height: 42px;
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
}

.gm-reviews__bars {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gm-bg);
    border-radius: var(--gm-radius-sm);
}

.gm-reviews__count {
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    margin-bottom: 0.75rem;
}

.gm-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-comment-list > li {
    margin-bottom: 0.85rem;
}

.gm-comment-list .comment-body {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    padding: 1.15rem;
    margin-top: 0 !important;
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gm-theme .single-product .comments-area ol.comment-list li .comment-body {
    margin-top: 0 !important;
    padding: 1.15rem !important;
    border: 1px solid var(--gm-border) !important;
    border-radius: var(--gm-radius-sm) !important;
}

.gm-theme .single-product .comments-area ol.comment-list .comment-author {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0.75rem !important;
}

.gm-comment-list .comment-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gm-text);
    margin-bottom: 0.35rem;
}

.gm-comment-list .comment-author {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
    margin-bottom: 0.75rem;
}

.gm-comment-list .comments-likes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gm-border);
}

.gm-comment-list .text-comment-like {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
}

.gm-comment-list .btn-like {
    border: 1px solid var(--gm-border);
    background: var(--gm-white);
    color: var(--gm-text);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}

.gm-comment-list .btn-like:hover {
    border-color: var(--gm-green);
    color: var(--gm-green);
    background: var(--gm-green-soft);
}

.gm-comment-list .message-light {
    border-radius: var(--gm-radius-sm);
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}

/* Sellers cards */
.gm-sellers {
    margin: 2rem 0;
    overflow: visible;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gm-theme .single-product #product-seller-box {
    background: transparent !important;
}

.gm-theme .single-product .gm-sellers .seller-list-section,
.gm-theme .single-product .seller-list-section.gm-sellers__list {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}

.gm-sellers__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.15rem;
}

.gm-sellers__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--gm-text);
}

.gm-sellers__count {
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    background: var(--gm-bg);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.gm-sellers__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.65rem;
    overflow: visible;
}

.gm-seller-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr auto;
    align-items: center;
    gap: 0.85rem 1.25rem;
    padding: 1rem 1.35rem;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.gm-seller-card--featured {
    border-color: var(--gm-green);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.08);
    margin-top: 0.35rem;
}

.gm-seller-card--hidden {
    display: none;
}

.gm-seller-card--hidden.is-visible {
    display: grid;
}

.gm-seller-card__badge {
    position: absolute;
    top: 0;
    right: 1.25rem;
    transform: translateY(-50%);
    z-index: 3;
    background: var(--gm-green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.35;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.gm-seller-card__seller {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.gm-seller-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gm-green-light);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gm-seller-card__name {
    font-size: 0.925rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--gm-text);
}

.gm-seller-card__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gm-green);
    background: var(--gm-green-light);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-right: 0.35rem;
}

.gm-seller-card__rate {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
}

.gm-seller-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.gm-seller-card__detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
}

.gm-seller-card__detail i {
    color: var(--gm-green);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.gm-seller-card__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0;
    border-top: none;
    min-width: 156px;
    padding-left: 0.25rem;
}

.gm-seller-card__price-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-seller-card__price-unit {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
    margin-right: 0.25rem;
}

.gm-seller-card__btn {
    min-height: 42px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.gm-sellers__more {
    text-align: center;
    margin-top: 0.75rem;
}

.gm-sellers__toggle {
    border: none;
    background: transparent;
    color: var(--gm-green);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gm-sellers__more .show-less {
    display: none;
}

/* Purchase bar refinements */
.gm-theme .single-product .bottom-seller-info {
    padding: 0.75rem 0 0 !important;
}

.gm-theme .single-product .gm-purchase-bar {
    border-top: 1px solid var(--gm-border);
    margin-top: 0.5rem;
}

.gm-theme .single-product .gm-purchase-bar__btn {
    gap: 0.45rem !important;
    font-size: 0.9rem !important;
    letter-spacing: 0;
}

.gm-theme .single-product .gm-purchase-bar__btn i {
    font-size: 1.1rem;
}

/* Product trust bar — bottom of hero (Digikala-style) */
.gm-product-trust-bar {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.gm-product-trust-bar__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
}

.gm-product-trust-bar__inner::-webkit-scrollbar {
    display: none;
}

/* Legacy alias */
.gm-product-features {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.gm-theme .single-product .product-feature-box.gm-product-trust-bar,
.gm-theme .single-product .product-feature-box.gm-product-features {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-top: 1.25rem !important;
    padding-top: 0 !important;
}

.gm-theme .single-product .gm-product-hero .product-detail--info {
    position: static !important;
    min-width: 0;
    overflow: visible;
}

.gm-theme .single-product .gm-product-hero .product-detail--gallery {
    grid-column: 1;
    grid-row: 1;
}

.gm-theme .single-product .gm-product-hero .product-detail--info {
    grid-column: 2;
    grid-row: 1;
}

.gm-theme .single-product .gm-product-hero .product-detail--price {
    grid-column: 3;
    grid-row: 1;
    padding: 0 !important;
}

.gm-theme .single-product .gm-product-hero .product-detail--price #product-seller-info-box,
.gm-theme .single-product .gm-product-hero .product-detail--price #product-seller-info-box #product-seller-info {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.gm-product-features__list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.gm-product-features__list::-webkit-scrollbar {
    display: none;
}

.gm-product-trust-bar .gm-product-features__item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 0.35rem 0.5rem;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none !important;
}

.gm-product-trust-bar .gm-product-features__item:hover {
    background: transparent;
}

.gm-product-features__item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 72px;
    max-width: 88px;
    padding: 0.55rem 0.4rem;
    background: var(--gm-bg);
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.15s;
}

.gm-product-features__item:hover {
    background: var(--gm-green-soft);
}

.gm-product-features__item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.85;
}

.gm-product-features__item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gm-text-muted);
    text-align: center;
    line-height: 1.35;
}

.gm-product-features__item:hover span {
    color: var(--gm-green);
}

/* Hide empty search dropdown */
.gm-header__search:not(.show-result) .gm-search-dropdown,
.gm-header__search:not(.show-result) .search-result {
    display: none !important;
}

.gm-header__search.search-state-trends .gm-search-dropdown__section:not(:has(.gm-search-trends)) {
    display: none !important;
}

@media (max-width: 767.98px) {
    .gm-reviews__summary {
        grid-template-columns: 1fr;
    }

    .gm-seller-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gm-seller-card__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        padding-top: 0.75rem;
        border-top: 1px solid var(--gm-border);
    }

    .gm-seller-card__btn {
        width: auto;
        justify-content: center;
    }

    .gm-params__list li {
        grid-template-columns: 1fr;
    }

    .gm-params__list .params-list-key {
        padding-bottom: 0.25rem;
        border-bottom: none;
    }
}

/* ==========================================================================
   Checkout flow v2 — shipping & payment (mobile-first)
   ========================================================================== */

/* Kill legacy cyan stepper from theme.css */
.gm-checkout .shopping-page header.header-shopping ul.checkout-steps::after,
.gm-checkout .shopping-page header.header-shopping .checkout-steps li.active::before,
.gm-checkout .shopping-page header.header-shopping .checkout-steps li a.active::after,
.gm-checkout .checkout-steps li a::before,
.gm-checkout .checkout-steps li a::after {
    display: none !important;
    content: none !important;
}

.gm-checkout .shopping-page header.header-shopping .checkout-steps li a.active {
    color: inherit !important;
}

.gm-checkout-header {
    display: none !important;
}

/* Embedded progress inside checkout card */
.gm-checkout-progress--embedded {
    width: 100%;
    max-width: none !important;
    padding: 0 0 1.1rem;
    margin: 0 0 1.15rem;
    border-bottom: 1px solid var(--gm-border);
}

.gm-checkout-progress--embedded .gm-checkout-progress__status {
    justify-content: center;
    margin-bottom: 0.85rem;
}

.gm-checkout-progress__steps-wrap {
    position: relative;
    width: 100%;
    padding-top: 0.15rem;
}

.gm-checkout-progress__steps-wrap .gm-checkout-progress__track {
    position: absolute;
    top: 20px;
    left: 12%;
    right: 12%;
    height: 3px;
    margin: 0;
    z-index: 0;
}

.gm-checkout-progress__steps-wrap .gm-checkout-steps {
    position: relative;
    z-index: 1;
}

.gm-checkout-progress--embedded .gm-checkout-steps__item:not(:last-child)::after {
    display: none !important;
}

/* Unified checkout card */
.gm-checkout-card {
    position: relative;
}

.gm-checkout-card__body {
    display: block;
}

.gm-checkout-card__main {
    min-width: 0;
}

.gm-checkout-card__aside {
    min-width: 0;
}

.gm-checkout-shell {
    max-width: 980px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.gm-checkout-flow {
    padding: 1.25rem 0 2rem;
}

/* Kill legacy theme.css stepper pseudo-elements */
.gm-checkout .gm-checkout-steps.checkout-steps li a::before,
.gm-checkout .gm-checkout-steps.checkout-steps li a::after,
.gm-checkout .gm-checkout-steps.checkout-steps li::before {
    display: none !important;
    content: none !important;
}

.gm-checkout ol.gm-checkout-steps.checkout-steps > li {
    flex: 1 !important;
    max-width: none !important;
    float: none !important;
}

.gm-checkout ol.gm-checkout-steps.checkout-steps > li:not(:last-child)::after {
    top: 17px !important;
    left: -50% !important;
    width: 100% !important;
    height: 2px !important;
    background: var(--gm-border) !important;
}

.gm-checkout ol.gm-checkout-steps.checkout-steps > li.is-done:not(:last-child)::after {
    background: var(--gm-green) !important;
}

/* Checkout progress + stepper */
.gm-checkout-progress {
    width: 100%;
    max-width: 560px;
    position: relative;
}

.gm-checkout-progress__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    text-align: center;
}

.gm-checkout-progress__status span {
    color: var(--gm-text-muted);
    font-weight: 600;
}

.gm-checkout-progress__status strong {
    color: var(--gm-green);
    font-weight: 800;
}

.gm-checkout-progress__track {
    height: 3px;
    border-radius: 999px;
    background: var(--gm-border);
    overflow: hidden;
    margin-top: 0.65rem;
}

.gm-checkout-progress__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gm-green), #34d399);
    transition: width 0.35s ease;
}

.gm-checkout-steps {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    float: none !important;
}

.gm-checkout-steps__item {
    flex: 1;
    position: relative;
    text-align: center;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    max-width: none !important;
}

.gm-checkout-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--gm-border);
    z-index: 0;
}

.gm-checkout-steps__item.is-done:not(:last-child)::after {
    background: var(--gm-green);
}

.gm-checkout-steps__item a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.2rem;
    text-decoration: none !important;
    color: var(--gm-text-muted) !important;
    font-size: 0.72rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    background: none !important;
}

.gm-checkout-steps__dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--gm-white);
    border: 2px solid var(--gm-border);
    color: var(--gm-text-muted);
    transition: all 0.2s;
    box-sizing: border-box;
}

.gm-checkout-steps__item.is-current .gm-checkout-steps__dot {
    background: var(--gm-green);
    border-color: var(--gm-green);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.14);
}

.gm-checkout-steps__item.is-done .gm-checkout-steps__dot {
    background: var(--gm-green-soft);
    border-color: var(--gm-green);
    color: var(--gm-green);
}

.gm-checkout-steps__item.is-current .gm-checkout-steps__label {
    color: var(--gm-green) !important;
    font-weight: 800;
}

.gm-checkout-steps__label {
    line-height: 1.3;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .gm-checkout-progress__status {
        justify-content: center;
    }

    .gm-checkout-steps__label {
        font-size: 0.75rem;
    }
}

.gm-checkout-flow__main {
    min-width: 0;
}

.gm-checkout-section {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    padding: 1.25rem;
    margin-bottom: 0;
    box-shadow: var(--gm-shadow);
}

.gm-checkout-section--result {
    margin-bottom: 1rem;
}

.gm-checkout-section__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gm-text);
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--gm-border);
    clear: both;
}

.gm-checkout-section__subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: var(--gm-text) !important;
    margin: 1.35rem 0 0.85rem !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.gm-checkout-section__subtitle--block {
    padding-top: 1.15rem !important;
    margin-top: 1.15rem !important;
    border-top: 1px solid var(--gm-border) !important;
}

.gm-checkout-section__subtitle i {
    color: var(--gm-green);
}

.gm-checkout-flow .page-content {
    padding: 0 !important;
}

/* Address section */
.gm-address-section {
    width: 100%;
}

.gm-address-selected {
    border: 1px solid var(--gm-border) !important;
    border-radius: var(--gm-radius-sm) !important;
    margin-bottom: 0;
    overflow: hidden !important;
    background: var(--gm-white);
}

.gm-address-selected__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--gm-bg);
    border-bottom: 1px solid var(--gm-border);
}

.gm-address-selected__topbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-address-selected__topbar-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--gm-green-soft);
    color: var(--gm-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.gm-address-selected__switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--gm-green);
    border-radius: 999px;
    background: var(--gm-white);
    color: var(--gm-green) !important;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.gm-address-selected__switch:hover {
    background: var(--gm-green);
    color: #fff !important;
}

.gm-address-selected__card.checkout-contact-content {
    padding: 1rem 1.1rem 1.1rem !important;
    display: block;
    background: var(--gm-white);
}

.gm-address-selected .checkout-contact-content::before {
    display: none !important;
}

.gm-address-selected__body {
    min-width: 0;
}

.gm-address-selected__name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.gm-address-selected__name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.gm-address-selected__name .full-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--gm-text);
}

.gm-address-selected__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gm-text-muted);
}

.gm-address-selected__edit {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0;
    border: none !important;
    background: transparent;
    color: var(--gm-text-muted) !important;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: 1px dashed var(--gm-border) !important;
}

.gm-address-selected__edit:hover {
    color: var(--gm-green) !important;
    border-bottom-color: var(--gm-green) !important;
}

.gm-address-selected__line {
    margin: 0 0 0.75rem;
    font-size: 0.84rem;
    line-height: 1.8;
    color: var(--gm-text);
}

.gm-address-selected__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gm-address-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    font-size: 0.76rem;
    color: var(--gm-text-muted);
    font-weight: 600;
}

.gm-address-chip i {
    color: var(--gm-green);
    font-size: 0.72rem;
}

/* Address picker panel */
.gm-address-panel.checkout-address {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    margin: 0 !important;
    border: none;
    background: transparent;
    width: auto !important;
    max-width: none !important;
    overflow: hidden !important;
}

.gm-address-panel.checkout-address.show {
    display: block;
}

.gm-address-panel__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    cursor: pointer;
    padding: 0;
    animation: gm-fade-in 0.2s ease;
}

.gm-address-panel__dialog {
    position: absolute;
    inset: auto 0 0 0;
    max-height: 92vh;
    background: var(--gm-white);
    border-radius: var(--gm-radius) var(--gm-radius) 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    animation: gm-slide-up 0.28s ease;
}

.gm-address-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--gm-border);
    flex-shrink: 0;
}

.gm-address-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-address-section .checkout-address-cancel {
    position: static;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gm-border);
    background: var(--gm-white);
    color: var(--gm-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.gm-address-section .checkout-address-cancel::before {
    display: none !important;
}

.gm-address-section .checkout-address-cancel:hover {
    border-color: #FCA5A5;
    color: #DC2626;
    background: #FEF2F2;
}

.gm-address-section .checkout-address-content {
    padding: 1rem !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

.gm-address-section .checkout-address-headline {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gm-text-muted);
    margin: 0 0 0.85rem;
}

.gm-address-section .checkout-address-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gm-address-section .checkout-address-row,
.gm-address-section .checkout-address-col {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.gm-address-section .checkout-address-box {
    padding: 1rem !important;
    height: auto !important;
    min-height: 0 !important;
    border: 1px solid var(--gm-border) !important;
    border-radius: var(--gm-radius-sm);
    background: var(--gm-white);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: none !important;
}

.gm-address-section .checkout-address-box.is-selected {
    border-color: var(--gm-green) !important;
    background: linear-gradient(180deg, var(--gm-green-soft) 0%, var(--gm-white) 55%);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.gm-address-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.gm-address-card__badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--gm-green);
    color: #fff;
    flex-shrink: 0;
}

.gm-address-section .checkout-address-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
}

.gm-address-section .checkout-address-text {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    line-height: 1.7;
}

.gm-address-section .checkout-address-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.76rem;
    color: var(--gm-text-muted);
}

.gm-address-section .btn-group-address {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-address-section .checkout-address-btn-edit,
.gm-address-section .checkout-address-btn-remove {
    position: static !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--gm-border);
    background: var(--gm-bg);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--gm-text-muted);
    cursor: pointer;
}

.gm-address-section .checkout-address-btn-remove:hover {
    border-color: #FECACA;
    color: #DC2626;
    background: #FEF2F2;
}

.gm-address-section .checkout-address-box__footer {
    margin-top: auto;
    padding-top: 0.35rem;
}

.gm-address-section .checkout-address-btn-submit {
    position: static !important;
    width: 100%;
    margin: 0 !important;
    padding: 0.7rem 0.85rem !important;
    border-radius: var(--gm-radius-sm);
    border: 1px solid var(--gm-green) !important;
    background: var(--gm-white);
    color: var(--gm-green) !important;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1.5;
    cursor: pointer;
}

.gm-address-section .checkout-address-box.is-selected .checkout-address-btn-submit {
    background: var(--gm-green);
    color: #fff !important;
}

.gm-address-card--new {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1.5px dashed rgba(0, 166, 81, 0.35);
    border-radius: var(--gm-radius-sm);
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.04) 0%, var(--gm-white) 100%);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: right;
    color: var(--gm-green) !important;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font: inherit;
}

.gm-address-card--new:hover {
    border-color: var(--gm-green);
    background: var(--gm-green-soft);
    box-shadow: 0 4px 16px rgba(0, 166, 81, 0.1);
}

.gm-address-card--new__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gm-white);
    border: 1px solid rgba(0, 166, 81, 0.2);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.gm-address-card--new__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gm-address-card--new__text {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-address-card--new__hint {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--gm-text-muted);
}

.gm-address-card--new__arrow {
    color: var(--gm-green);
    font-size: 0.8rem;
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 0.15s, opacity 0.15s;
}

.gm-address-card--new:hover .gm-address-card--new__arrow {
    opacity: 1;
    transform: translateX(-3px);
}

.gm-address-section .checkout-address-location strong::before,
.gm-address-card--new strong::before {
    display: none !important;
    content: none !important;
}

body.gm-address-panel-open {
    overflow: hidden;
}

/* First-time address onboarding (/addresses/add) */
.gm-first-address {
    padding: 1.5rem 0 2.5rem;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #f4f8f5 0%, var(--gm-white) 45%);
}

.gm-first-address__shell {
    max-width: 560px;
    margin: 0 auto;
}

.gm-first-address__card {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 16px 48px rgba(0, 0, 0, 0.07);
    padding: 1.5rem 1.35rem 1.35rem;
    text-align: center;
}

.gm-first-address__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--gm-green-soft);
    color: var(--gm-green);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
}

.gm-first-address__hero {
    margin-bottom: 1.35rem;
}

.gm-first-address__icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.85rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gm-green-soft) 0%, #e8f5ee 100%);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    border: 1px solid rgba(0, 166, 81, 0.15);
}

.gm-first-address__title {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gm-text);
    line-height: 1.55;
}

.gm-first-address__subtitle {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.85;
    color: var(--gm-text-muted);
}

.gm-first-address__subtitle strong {
    color: var(--gm-text);
    font-weight: 700;
}

.gm-first-address__steps {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: right;
}

.gm-first-address__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--gm-border);
    border-radius: 12px;
    background: #fafcfb;
}

.gm-first-address__step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gm-green);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gm-first-address__step div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.gm-first-address__step strong {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--gm-text);
}

.gm-first-address__step span {
    font-size: 0.74rem;
    line-height: 1.55;
    color: var(--gm-text-muted);
}

.gm-first-address__cta {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #00a651 0%, #008f47 100%);
    color: #fff !important;
    cursor: pointer;
    text-align: right;
    box-shadow: 0 8px 24px rgba(0, 166, 81, 0.28);
    transition: transform 0.15s, box-shadow 0.15s;
    font: inherit;
}

.gm-first-address__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 166, 81, 0.32);
}

.gm-first-address__cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.gm-first-address__cta-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.gm-first-address__cta-copy strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.gm-first-address__cta-copy span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.88);
}

.gm-first-address__cta-arrow {
    font-size: 0.85rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.gm-first-address__note {
    margin: 1rem 0 0;
    font-size: 0.72rem;
    line-height: 1.65;
    color: var(--gm-text-muted);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    text-align: right;
}

.gm-first-address__note i {
    color: var(--gm-green);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .gm-first-address__card {
        padding: 2rem 1.75rem 1.75rem;
    }

    .gm-first-address__title {
        font-size: 1.28rem;
    }
}

@media (max-width: 575.98px) {
    .gm-first-address {
        padding: 1rem 0 2rem;
        align-items: flex-start;
    }

    .gm-first-address__card {
        border-radius: 14px;
        padding: 1.15rem 1rem;
    }

    .gm-first-address__cta {
        padding: 0.9rem;
    }
}

/* Address modals — map + form (remodal) */
.gm-address-modal.remodal {
    max-width: min(680px, calc(100vw - 1.5rem));
    max-height: min(92vh, 720px);
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    text-align: right;
    vertical-align: middle;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

/* Hidden until remodal opens — overrides remodal-is-initialized inline-block & display:flex leak */
[data-remodal-id].gm-address-modal,
.gm-address-modal.remodal.remodal-is-initialized,
.gm-address-modal.remodal.remodal-is-closed {
    display: none !important;
}

.gm-address-modal.remodal.remodal-is-opened,
.gm-address-modal.remodal.remodal-is-opening,
.gm-address-modal.remodal.remodal-is-closing {
    display: flex !important;
    flex-direction: column;
}

#edit-address-content {
    display: none !important;
}

.gm-address-modal--map.remodal {
    max-width: min(760px, calc(100vw - 1.5rem));
    max-height: min(92vh, 780px);
}

.gm-address-modal__close {
    top: 0.85rem;
    left: 0.85rem;
    right: auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--gm-text-muted);
    transition: background 0.15s, color 0.15s;
}

.gm-address-modal__close:hover,
.gm-address-modal__close:focus {
    background: rgba(0, 0, 0, 0.1);
    color: var(--gm-text);
}

.gm-address-modal__header {
    flex-shrink: 0;
    padding: 1.25rem 1.35rem 1rem;
    background: linear-gradient(180deg, #f0faf5 0%, var(--gm-white) 100%);
    border-bottom: 1px solid var(--gm-border);
}

.gm-address-modal__step {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--gm-green-soft);
    color: var(--gm-green);
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.gm-address-modal__title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gm-text);
    line-height: 1.5;
}

.gm-address-modal__desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.75;
    color: var(--gm-text-muted);
}

.gm-address-modal__desc strong {
    color: var(--gm-text);
    font-weight: 700;
}

.gm-address-modal__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem 1.25rem 0;
}

.gm-address-modal--map .gm-map-picker {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.gm-address-modal--map .gm-map-picker__frame {
    flex: 1;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.gm-address-modal--map .gm-map-picker__map {
    flex: 1;
    min-height: 280px;
}

.gm-address-modal__form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.gm-address-modal__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1.25rem 1rem;
}

.gm-address-modal__scroll > .gm-address-modal__map-link:first-child {
    margin-top: 0.15rem;
}

.gm-address-modal__map-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    border: 1px dashed rgba(0, 166, 81, 0.35);
    border-radius: 12px;
    background: rgba(0, 166, 81, 0.04);
    color: var(--gm-green) !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s;
}

.gm-address-modal__map-link:hover {
    background: var(--gm-green-soft);
    border-color: var(--gm-green);
}

.gm-address-modal__map-link > i:first-child {
    font-size: 1rem;
    flex-shrink: 0;
}

.gm-address-modal__map-link > span {
    flex: 1;
    min-width: 0;
}

.gm-address-modal__map-link > i:last-child {
    opacity: 0.6;
    font-size: 0.75rem;
}

.gm-address-form-section {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gm-border);
}

.gm-address-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gm-address-form-section__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-address-form-section__title i {
    color: var(--gm-green);
    font-size: 0.9rem;
}

.gm-address-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.gm-address-field {
    margin-bottom: 0.65rem;
}

.gm-address-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gm-text);
}

.gm-address-field__optional {
    font-weight: 500;
    color: var(--gm-text-muted);
    font-size: 0.72rem;
}

.gm-address-field__input,
.gm-address-modal .aeen-form-element-input {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--gm-border);
    border-radius: 10px;
    font-size: 0.85rem;
    background: var(--gm-white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gm-address-field__input:focus,
.gm-address-modal .aeen-form-element-input:focus {
    border-color: var(--gm-green);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
    outline: none;
}

.gm-address-field__select,
.gm-address-field .select2-container {
    width: 100% !important;
    display: block;
}

/* Select2 — address modal */
.gm-address-modal .select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 48px !important;
    border: 1.5px solid var(--gm-border) !important;
    border-radius: 12px !important;
    background: #fafcfb !important;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.gm-address-modal .select2-container--default.select2-container--focus .select2-selection--single,
.gm-address-modal .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--gm-green) !important;
    background: var(--gm-white) !important;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.gm-address-modal .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered,
.gm-address-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.45 !important;
    height: auto !important;
    min-height: 46px;
    padding: 0.7rem 0.85rem 0.7rem 3rem !important;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gm-text);
    display: flex;
    align-items: center;
}

.gm-address-modal .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--gm-text-muted);
    font-weight: 500;
}

.gm-address-modal .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow,
.gm-address-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    width: 44px;
    height: 100% !important;
    border-inline-end: 1px solid rgba(0, 166, 81, 0.15);
    background: var(--gm-green-soft);
    border-radius: 11px 0 0 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-address-modal .select2-container--default .select2-selection--single .select2-selection__arrow b {
    position: static !important;
    margin: 0 !important;
    border: none !important;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gm-green) !important;
    border-bottom: 2px solid var(--gm-green) !important;
    transform: rotate(45deg);
    transition: transform 0.15s;
}

.gm-address-modal .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(225deg);
    margin-top: 3px !important;
}

.gm-address-modal .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
    left: 48px;
    right: auto;
    font-size: 1.1rem;
    color: var(--gm-text-muted);
    margin-top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.gm-address-select2-dropdown.select2-dropdown {
    border: 1px solid rgba(0, 166, 81, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden;
    z-index: 10001 !important;
    padding: 0.35rem;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 240px !important;
    max-width: none !important;
    text-align: right !important;
    background-color: #fff !important;
}

/* Override shipping.css `.select2-dropdown { width: 60px }` and `.select-option--text-dropdown { width: 160px }` */
.gm-address-modal .select2-dropdown,
.gm-address-modal .select-option--text-dropdown,
body > .select2-dropdown.gm-address-select2-dropdown,
.select2-dropdown.gm-address-select2-dropdown {
    width: auto !important;
    min-width: 240px !important;
    max-width: none !important;
    text-align: right !important;
}

.gm-address-select2-dropdown .select2-results__options {
    width: 100% !important;
}

.gm-address-select2-dropdown .select2-search--dropdown {
    padding: 0.35rem 0.35rem 0.5rem;
}

.gm-address-select2-dropdown .select2-search__field {
    border: 1px solid var(--gm-border) !important;
    border-radius: 9px !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.88rem;
    min-height: 44px;
    width: 100% !important;
    box-sizing: border-box;
}

.gm-address-select2-dropdown .select2-search__field:focus {
    border-color: var(--gm-green) !important;
    outline: none;
}

.gm-address-select2-dropdown .select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    border-radius: 8px;
    margin-bottom: 2px;
}

.gm-address-select2-dropdown .select2-results__option--highlighted[aria-selected],
.gm-address-select2-dropdown .select2-results__option--highlighted[data-selected] {
    background: var(--gm-green-soft) !important;
    color: var(--gm-green) !important;
    font-weight: 700;
}

.gm-address-select2-dropdown .select2-results__option[aria-selected="true"] {
    background: rgba(0, 166, 81, 0.08) !important;
    color: var(--gm-text) !important;
    font-weight: 600;
}

.gm-address-select2-dropdown .select2-results > .select2-results__options {
    max-height: min(50vh, 320px) !important;
}

.gm-address-recipient-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--gm-border);
    border-radius: 12px;
    background: #fafcfb;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.gm-address-recipient-toggle:has(input:checked) {
    border-color: var(--gm-green);
    background: rgba(0, 166, 81, 0.05);
}

.gm-address-recipient-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gm-address-recipient-toggle__box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--gm-border);
    flex-shrink: 0;
    position: relative;
    background: var(--gm-white);
    transition: border-color 0.15s, background 0.15s;
}

.gm-address-recipient-toggle:has(input:checked) .gm-address-recipient-toggle__box {
    border-color: var(--gm-green);
    background: var(--gm-green);
}

.gm-address-recipient-toggle:has(input:checked) .gm-address-recipient-toggle__box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gm-address-recipient-toggle__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.gm-address-recipient-toggle__text strong {
    font-size: 0.84rem;
    color: var(--gm-text);
}

.gm-address-recipient-toggle__text span {
    font-size: 0.72rem;
    color: var(--gm-text-muted);
}

.gm-address-modal__footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--gm-border);
    background: var(--gm-white);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    z-index: 15;
}

.gm-address-modal__submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00a651 0%, #008f47 100%);
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.gm-address-modal__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 166, 81, 0.3);
}

/* Map picker inside modal */
.gm-map-picker {
    position: relative;
}

.gm-map-picker__toolbar {
    position: relative;
    z-index: 30;
    margin-bottom: 0.75rem;
    padding-bottom: 0.15rem;
    background: var(--gm-white);
}

.gm-map-picker__search {
    margin: 0;
}

.gm-map-picker .aeen-search-in-map .aeen-search-in-map-field {
    display: block;
    position: relative;
    flex-grow: unset;
}

.gm-map-picker__search-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gm-text);
    line-height: 1.5;
}

.gm-map-picker__search-field {
    position: relative;
    display: block;
    min-height: 48px;
    border: 1.5px solid var(--gm-border);
    border-radius: 12px;
    background: #fafcfb;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gm-map-picker__search-field:focus-within {
    border-color: var(--gm-green);
    background: var(--gm-white);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.gm-map-picker__search-icon-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gm-green);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.gm-map-picker__search-input {
    display: block;
    width: 100% !important;
    min-width: 0;
    min-height: 46px;
    padding: 0.65rem 2.85rem 0.65rem 2.85rem !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 0.88rem;
    background: transparent !important;
    box-shadow: none !important;
}

.gm-map-picker__search-input:focus {
    outline: none;
    box-shadow: none !important;
}

.gm-map-picker__search-clear {
    position: absolute !important;
    top: 50% !important;
    left: 10px !important;
    right: auto !important;
    flex-shrink: 0;
    width: 30px !important;
    height: 30px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--gm-text-muted) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gm-map-picker__search-clear:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: var(--gm-text) !important;
}

.gm-map-picker__search-clear.d-none {
    display: none !important;
}

.gm-map-picker__frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(0, 166, 81, 0.25);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    isolation: isolate;
}

.gm-map-picker__map {
    width: 100%;
    height: 380px;
    background: #e8ece9;
    z-index: 1;
}

.gm-map-picker__map .leaflet-pane,
.gm-map-picker__map .leaflet-top,
.gm-map-picker__map .leaflet-bottom {
    z-index: 1 !important;
}

.gm-map-picker__map .leaflet-control {
    z-index: 2 !important;
}

/* Results overlay — covers map while searching */
.gm-map-picker__results-overlay {
    position: absolute;
    inset: 0;
    z-index: 800;
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.7rem 0.7rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gm-map-picker__results-overlay.d-none {
    display: none !important;
}

.gm-map-picker__results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    flex-shrink: 0;
}

.gm-map-picker__results-hint {
    margin: 0;
    flex: 1;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--gm-green);
}

.gm-map-picker__results-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--gm-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.gm-map-picker__results-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--gm-text);
}

.gm-map-picker .aeen-search-in-map-result,
.gm-map-picker .map-search-content-result.gm-map-picker__results {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0.25rem;
    list-style: none !important;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: auto !important;
    -webkit-overflow-scrolling: touch;
}

.gm-map-picker--has-results .gm-map-picker__pin-layer,
.gm-map-picker--has-results .gm-map-picker__hint {
    opacity: 0;
    pointer-events: none;
}

.gm-map-picker .aeen-search-in-map-result li,
.gm-map-picker__result {
    margin: 0 0 0.35rem;
    padding: 0 !important;
    display: block;
}

.gm-map-picker .aeen-search-in-map-result li::before,
.gm-map-picker__result::before {
    display: none !important;
    content: none !important;
}

.gm-map-picker .aeen-search-in-map-result li:last-child,
.gm-map-picker__result:last-child {
    margin-bottom: 0;
}

.gm-map-picker .aeen-search-in-map-result li a,
.gm-map-picker__result a {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--gm-border);
    background: var(--gm-white);
    text-decoration: none !important;
    color: var(--gm-text) !important;
    font-weight: 400 !important;
    transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}

.gm-map-picker .aeen-search-in-map-result li a:hover,
.gm-map-picker .aeen-search-in-map-result li a:active,
.gm-map-picker__result a:hover,
.gm-map-picker__result a:active {
    border-color: rgba(0, 166, 81, 0.35);
    background: var(--gm-green-soft);
    box-shadow: 0 2px 8px rgba(0, 166, 81, 0.08);
}

.gm-map-picker__result-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--gm-green-soft);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.gm-map-picker__result-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    text-align: right;
}

.gm-map-picker__result-text strong {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--gm-text);
    line-height: 1.45;
}

.gm-map-picker__result-text > span {
    font-size: 0.73rem;
    line-height: 1.55;
    color: var(--gm-text-muted);
}

.gm-map-picker__pin-layer {
    position: absolute;
    inset: 0;
    z-index: 500;
    pointer-events: none;
    transition: opacity 0.2s;
}

.gm-map-picker__crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border: 3px solid rgba(0, 166, 81, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.45);
}

.gm-map-picker__crosshair::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gm-green);
    box-shadow: 0 0 0 2px #fff;
}

.gm-map-picker__pin-layer .map-center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -100%) !important;
    width: 34px;
    height: 50px;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.gm-map-picker__pin-layer .map-center-marker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gm-map-picker__hint {
    position: absolute;
    bottom: 0.65rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 520;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--gm-text);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s;
}

.gm-map-picker__hint i {
    color: var(--gm-green);
}

.gm-address-modal .remodal-title {
    display: none;
}

@media (min-width: 992px) {
    .remodal-wrapper:has(.gm-address-modal.remodal-is-opened),
    .remodal-wrapper:has(.gm-address-modal.remodal-is-opening),
    .remodal-wrapper:has(.gm-address-modal.remodal-is-closing) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .remodal-wrapper:has(.gm-address-modal)::after {
        display: none !important;
        height: 0 !important;
        content: none !important;
    }

    .gm-address-modal.remodal {
        width: min(680px, calc(100vw - 3rem)) !important;
        max-width: min(680px, calc(100vw - 3rem));
        max-height: min(92vh, 720px);
        margin: 0 !important;
        flex-shrink: 0;
        vertical-align: unset;
    }

    .gm-address-modal--map.remodal {
        width: min(760px, calc(100vw - 3rem)) !important;
        max-width: min(760px, calc(100vw - 3rem));
        max-height: min(92vh, 780px);
    }
}

@media (max-width: 991.98px) {
    .remodal-wrapper:has(.gm-address-modal.remodal-is-opened),
    .remodal-wrapper:has(.gm-address-modal.remodal-is-opening) {
        padding: 0 !important;
    }

    .remodal-wrapper:has(.gm-address-modal)::after {
        display: none !important;
        height: 0 !important;
    }

    .gm-address-modal.remodal.remodal-is-opened,
    .gm-address-modal.remodal.remodal-is-opening,
    .gm-address-modal.remodal.remodal-is-closing {
        max-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column;
        vertical-align: unset !important;
        text-align: right;
    }

    .gm-address-modal__close {
        top: calc(0.65rem + env(safe-area-inset-top, 0px));
        left: 0.75rem;
        z-index: 20;
    }

    .gm-address-modal__header {
        flex-shrink: 0;
        padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 1rem 0.85rem;
    }

    .gm-address-modal__title {
        font-size: 0.98rem;
        padding-left: 2.5rem;
    }

    .gm-address-modal__body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 0.85rem 1rem 0;
    }

    .gm-address-modal__form {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    .gm-address-modal__scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.65rem 1rem 1rem;
    }

    .gm-address-modal__footer {
        flex-shrink: 0;
        padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }

    .gm-address-modal--map .gm-map-picker {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .gm-address-modal--map .gm-map-picker__toolbar {
        flex-shrink: 0;
    }

    .gm-address-modal--map .gm-map-picker__frame {
        flex: 1;
        min-height: 240px;
        display: flex;
        flex-direction: column;
    }

    .gm-address-modal--map .gm-map-picker__map {
        height: 100%;
        min-height: 240px;
        flex: 1;
    }

    .gm-address-form-grid {
        grid-template-columns: 1fr;
    }

    .gm-map-picker__hint {
        font-size: 0.65rem;
        max-width: calc(100% - 1rem);
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .gm-address-modal__header {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .gm-address-modal__body {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .gm-address-modal__scroll {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .gm-address-modal__footer {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}

@media (min-width: 768px) {
    .gm-address-panel__dialog {
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%);
        width: min(560px, calc(100vw - 2rem));
        max-height: min(85vh, 680px);
        border-radius: var(--gm-radius);
        animation: gm-scale-in 0.22s ease;
    }
}

@media (min-width: 992px) {
    .gm-address-selected .checkout-contact-content {
        padding: 1.15rem 1.25rem !important;
    }
}

@keyframes gm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gm-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes gm-scale-in {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Shipping methods */
.gm-checkout-flow .checkout-pack,
.gm-checkout-flow .gm-ship-pack {
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    padding: 0;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.gm-ship-pack__head {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gm-border);
    background: var(--gm-white);
}

.gm-ship-pack__head-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gm-text-muted);
    margin-bottom: 0.65rem;
}

.gm-ship-pack__head-label i {
    color: var(--gm-green);
}

.gm-ship-pack__products {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
}

.gm-ship-pack__product {
    flex: 0 0 auto;
    width: 76px;
    text-align: center;
}

.gm-ship-pack__product img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: 10px;
    padding: 0.3rem;
    display: block;
    margin: 0 auto;
}

.gm-ship-pack__product-name {
    display: -webkit-box;
    margin-top: 0.3rem;
    font-size: 0.65rem;
    line-height: 1.4;
    color: var(--gm-text-muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gm-ship-methods {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 1rem 1rem;
}

.gm-ship-method.checkout-time-table,
.gm-ship-method.checkout-time-table-time {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.gm-ship-method__card.radio-box {
    width: 100% !important;
    float: none !important;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.gm-ship-method__card.radio-box input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    float: none !important;
}

.gm-ship-method__card.radio-box label {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    background: var(--gm-white);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin: 0 !important;
    float: none !important;
    position: relative;
    box-sizing: border-box;
}

.gm-ship-method__card.radio-box label::before,
.gm-ship-method__card.radio-box label::after {
    display: none !important;
    content: none !important;
}

.gm-ship-method__card:has(input:checked) label,
.gm-ship-method__card.radio-box input[type="radio"]:checked + label {
    border-color: var(--gm-green);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
    background: linear-gradient(90deg, rgba(0, 166, 81, 0.06) 0%, var(--gm-white) 45%);
}

.gm-ship-method__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gm-border);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
    order: -1;
}

.gm-ship-method__card:has(input:checked) .gm-ship-method__radio,
.gm-ship-method__card.radio-box input[type="radio"]:checked + label .gm-ship-method__radio {
    border-color: var(--gm-green);
}

.gm-ship-method__card:has(input:checked) .gm-ship-method__radio::after,
.gm-ship-method__card.radio-box input[type="radio"]:checked + label .gm-ship-method__radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gm-green);
}

.gm-ship-method__logo {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--gm-bg);
    border-radius: 10px;
    padding: 0.25rem;
    margin: 0 !important;
    float: none !important;
}

.gm-ship-method__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
    text-align: right;
}

.gm-ship-method__name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-ship-method__cost {
    font-size: 0.8rem;
    color: var(--gm-green);
    font-weight: 700;
}

.gm-ship-method__desc {
    font-size: 0.74rem;
    color: var(--gm-text-muted);
    line-height: 1.5;
}

.gm-invoice-box {
    background: var(--gm-bg) !important;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    padding: 0.85rem 1rem !important;
}

.gm-invoice-box .form-account-agree {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
}

.gm-checkout .shopping-page .gm-ship-method.checkout-time-table {
    padding: 0 !important;
    width: 100% !important;
}

.gm-checkout .shopping-page .gm-ship-method__card.radio-box label {
    width: 100% !important;
}

.gm-invoice-box label[for="agree"] {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gm-text);
    cursor: pointer;
}

/* Product — unavailable / contact price box */
.gm-unavailable-box {
    margin-top: 0.75rem;
    padding: 1.35rem 1.15rem;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    background: linear-gradient(165deg, #fafafa 0%, var(--gm-white) 55%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gm-unavailable-box::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 166, 81, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gm-unavailable-box__visual {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.85rem;
}

.gm-unavailable-box__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed #d1d5db;
    animation: gm-unavail-spin 18s linear infinite;
}

.gm-unavailable-box__icon {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.gm-unavailable-box__title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-unavailable-box__text {
    margin: 0 auto 1rem;
    max-width: 28ch;
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--gm-text-muted);
}

.gm-unavailable-box__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
}

.gm-unavailable-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: var(--gm-radius-sm);
    background: var(--gm-green);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.gm-unavailable-box__btn:hover {
    background: var(--gm-green-dark, #008f47);
    transform: translateY(-1px);
}

.gm-unavailable-box__btn--muted {
    background: #e5e7eb;
    color: #6b7280 !important;
    cursor: not-allowed;
}

.gm-unavailable-box__btn--muted:hover {
    transform: none;
    background: #e5e7eb;
}

.gm-unavailable-box__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gm-green);
    text-decoration: none !important;
}

.gm-theme .single-product--mobile .gm-unavailable-box {
    border-radius: var(--gm-radius-sm);
    margin-top: 0.5rem;
}

@keyframes gm-unavail-spin {
    to { transform: rotate(360deg); }
}

.gm-checkout-flow .checkout-invoice {
    background: var(--gm-bg);
    border-radius: var(--gm-radius-sm);
    padding: 1rem;
}

/* Payment methods */
.gm-pay-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gm-pay-group {
    border: 1px solid var(--gm-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--gm-white);
}

.gm-pay-group__header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(90deg, #f5f9f6 0%, var(--gm-white) 100%);
    border-bottom: 1px solid var(--gm-border);
}

.gm-pay-group__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--gm-green-soft);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.gm-pay-group__icon--muted {
    background: #f3f4f6;
    color: #6b7280;
}

.gm-pay-group__titles {
    min-width: 0;
    flex: 1;
}

.gm-pay-group__title {
    margin: 0 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-pay-group__subtitle {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.55;
    color: var(--gm-text-muted);
}

.gm-pay-group__options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 1rem 1rem;
}

.gm-pay-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--gm-border);
    border-radius: 12px;
    background: var(--gm-white);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    margin: 0;
}

.gm-pay-option:has(.gm-pay-option__input:checked) {
    border-color: var(--gm-green);
    border-inline-start: 3px solid var(--gm-green);
    background: linear-gradient(90deg, rgba(0, 166, 81, 0.06) 0%, var(--gm-white) 50%);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.08);
}

.gm-pay-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.gm-pay-option__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gm-border);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.gm-pay-option:has(.gm-pay-option__input:checked) .gm-pay-option__radio {
    border-color: var(--gm-green);
}

.gm-pay-option:has(.gm-pay-option__input:checked) .gm-pay-option__radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gm-green);
}

.gm-pay-option__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.gm-pay-option__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gm-text);
}

.gm-pay-option__hint {
    font-size: 0.72rem;
    color: var(--gm-text-muted);
}

.gm-pay-option__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--gm-bg);
    padding: 0.2rem;
}

/* Promo — discount & gift card */
.gm-promo-section {
    margin-top: 0.5rem;
}

.gm-promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.gm-promo-card {
    border: 1px solid var(--gm-border);
    border-radius: 14px;
    padding: 1rem;
    background: linear-gradient(180deg, #f8fbf9 0%, var(--gm-white) 60%);
}

.gm-promo-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.gm-promo-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gm-green-soft);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.gm-promo-card__icon--gift {
    background: #fef3c7;
    color: #d97706;
}

.gm-promo-card__title {
    margin: 0 0 0.15rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-promo-card__desc {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.55;
    color: var(--gm-text-muted);
}

.gm-promo-card__form-wrap {
    margin: 0;
}

.gm-promo-card__form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.gm-promo-card__input {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem !important;
    border: 1px solid var(--gm-border) !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    background: var(--gm-bg) !important;
    box-sizing: border-box;
}

.gm-promo-card__input:focus {
    border-color: var(--gm-green) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.gm-promo-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 10px;
    background: var(--gm-green);
    color: #fff !important;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s;
}

.gm-promo-card__btn:hover {
    background: var(--gm-green-dark, #008f47);
}

.gm-promo-card__btn--danger {
    background: #fef2f2;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
}

.gm-promo-card__btn--danger:hover {
    background: #fee2e2;
}

.gm-promo-card__message {
    margin-top: 0.5rem;
    font-size: 0.78rem;
}

/* Wallet toggle — payment page */
.gm-wallet-card {
    margin: 1.15rem 0 0.25rem;
    border: 1px solid rgba(0, 166, 81, 0.22);
    border-radius: 14px;
    padding: 1rem;
    background: linear-gradient(135deg, #f0faf5 0%, var(--gm-white) 55%);
    box-shadow: 0 1px 4px rgba(0, 166, 81, 0.06);
}

.gm-wallet-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.gm-wallet-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--gm-green-soft);
    color: var(--gm-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.gm-wallet-card__titles {
    min-width: 0;
    flex: 1;
}

.gm-wallet-card__title {
    margin: 0 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-wallet-card__balance {
    margin: 0;
    font-size: 0.78rem;
    color: var(--gm-text-muted);
    line-height: 1.55;
}

.gm-wallet-card__balance strong {
    color: var(--gm-green);
    font-weight: 800;
}

.gm-wallet-card__toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin: 0;
    border: 1px solid var(--gm-border);
    border-radius: 12px;
    background: var(--gm-white);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.gm-wallet-card__toggle:has(.gm-wallet-card__input:checked) {
    border-color: var(--gm-green);
    background: rgba(0, 166, 81, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.08);
}

.gm-wallet-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.gm-wallet-card__switch {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #d1d5db;
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s;
}

.gm-wallet-card__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gm-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s;
}

.gm-wallet-card__toggle:has(.gm-wallet-card__input:checked) .gm-wallet-card__switch {
    background: var(--gm-green);
}

.gm-wallet-card__toggle:has(.gm-wallet-card__input:checked) .gm-wallet-card__switch::after {
    transform: translateX(-18px);
}

.gm-wallet-card__toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.gm-wallet-card__toggle-text strong {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gm-text);
}

.gm-wallet-card__toggle-text span {
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--gm-text-muted);
}

.gm-wallet-card__applied {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(0, 166, 81, 0.08);
    color: var(--gm-green);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (min-width: 576px) {
    .gm-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gm-promo-card__form {
        flex-direction: row;
        align-items: stretch;
    }

    .gm-promo-card__input {
        flex: 1;
        min-width: 0;
    }

    .gm-promo-card__btn {
        width: auto;
        min-width: 88px;
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    .gm-pay-group__options {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 0.65rem;
    }
}

/* Order summary accordion */
.gm-checkout-flow .checkout-order-summary {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gm-checkout-flow .checkout-order-summary-item .card {
    border: 1px solid var(--gm-border) !important;
    border-radius: var(--gm-radius-sm) !important;
    overflow: hidden;
    box-shadow: none !important;
}

.gm-checkout-flow .checkout-order-summary-header {
    background: var(--gm-bg) !important;
    border: none !important;
    padding: 0 !important;
}

.gm-checkout-flow .checkout-order-summary-header .btn-link {
    width: 100%;
    text-align: right;
    padding: 0.85rem 1rem;
    color: var(--gm-text) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.gm-checkout-flow .checkout-order-summary-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.gm-checkout-flow .checkout-order-summary-col {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.gm-checkout-flow .checkout-order-summary-col span:first-child {
    color: var(--gm-text-muted);
    font-size: 0.72rem;
}

/* Legacy price-options — kept for other pages */
.gm-checkout-flow .checkout-price-options-container {
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    height: 100%;
}

.gm-checkout-flow .checkout-price-options-header {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gm-text);
    margin-bottom: 0.35rem;
}

.gm-checkout-flow .checkout-price-options-description {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
    line-height: 1.6;
}

.gm-checkout-flow .checkout-price-options-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.gm-checkout-flow .checkout-price-options-form-field {
    flex: 1;
    min-width: 0;
}

.gm-checkout-flow .checkout-price-options-form-field .form-element-row {
    margin: 0 !important;
    height: 100%;
}

.gm-checkout-flow .checkout-price-options-form-button {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.gm-checkout-flow .checkout-price-options-form-button .form-element-row {
    margin: 0 !important;
    height: 100%;
}

.gm-checkout-flow .checkout-price-options-form-button .btn-element,
.gm-checkout-flow .checkout-price-options-form-button button {
    min-height: 44px;
    height: 100%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    padding: 0 1rem !important;
}

@media (max-width: 479.98px) {
    .gm-checkout-flow .checkout-price-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gm-checkout-flow .checkout-price-options-form-button .btn-element,
    .gm-checkout-flow .checkout-price-options-form-button button {
        width: 100%;
    }
}

.gm-checkout-flow .input-element {
    border: 1px solid var(--gm-border) !important;
    border-radius: var(--gm-radius-sm) !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.875rem;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
}

/* Sidebar summary — desktop unified card */
@media (min-width: 992px) {
    .gm-checkout .shopping-page,
    .gm-checkout .page-content,
    .gm-checkout-flow,
    .gm-checkout-flow .container,
    .gm-checkout-flow .row,
    .gm-cart-flow,
    .gm-cart-flow .container,
    .gm-cart-flow .row {
        overflow: visible !important;
    }

    .gm-checkout-flow {
        padding: 2rem 0 3rem;
    }

    .gm-checkout-shell {
        width: 100%;
        max-width: 980px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        float: none !important;
    }

    .gm-checkout-card {
        width: 100%;
        background: var(--gm-white);
        border: 1px solid rgba(0, 0, 0, 0.07);
        border-radius: 18px;
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 12px 40px rgba(0, 0, 0, 0.07);
        overflow: hidden;
    }

    .gm-checkout-progress--embedded {
        padding: 1.35rem 2rem 1.25rem;
        margin: 0;
        border-bottom: 1px solid var(--gm-border);
        background: linear-gradient(180deg, #f4f8f5 0%, #fafcfb 55%, var(--gm-white) 100%);
    }

    .gm-checkout-progress--embedded .gm-checkout-progress__status {
        margin-bottom: 1rem;
        font-size: 0.84rem;
    }

    .gm-checkout-progress__steps-wrap .gm-checkout-progress__track {
        top: 21px;
        left: 10%;
        right: 10%;
        height: 4px;
        background: #e5ebe7;
    }

    .gm-checkout-progress--embedded .gm-checkout-steps__dot {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
        box-shadow: 0 0 0 4px var(--gm-white);
    }

    .gm-checkout-card__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        align-items: stretch;
        gap: 0;
    }

    .gm-checkout-card__main {
        padding: 1.75rem 2rem 2.25rem;
        border-inline-end: 1px solid var(--gm-border);
        background: var(--gm-white);
    }

    .gm-checkout-card__aside {
        align-self: stretch;
        padding: 1.35rem 1.25rem 1.5rem;
        background: #f4f8f5;
        border-inline-start: 1px solid var(--gm-border);
    }

    .gm-checkout-card__aside .checkout-aside {
        position: sticky;
        top: 1.25rem;
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: 0 !important;
        background: var(--gm-white) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05) !important;
        overflow: hidden;
    }

    .gm-checkout-card__aside .checkout-summary,
    .gm-checkout-card__aside .checkout-summary-main {
        display: block;
        height: auto !important;
        min-height: 0 !important;
        flex: none !important;
    }

    .gm-checkout-card__aside .checkout-summary-main {
        padding: 0 !important;
    }

    .gm-checkout-card__aside .gm-summary-card__head {
        margin-bottom: 0;
        padding: 0.9rem 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
        border-radius: 0 !important;
    }

    .gm-checkout-card__aside .checkout-summary-summary {
        padding: 0.85rem 1.1rem 0 !important;
        margin: 0;
    }

    .gm-checkout-card__aside .checkout-summary-devider {
        margin: 0.75rem 1.1rem;
    }

    .gm-checkout-card__aside .checkout-summary-content,
    .gm-checkout-card__aside .gm-summary-card__cta {
        margin-top: 0 !important;
        padding: 0 1.1rem 1.1rem !important;
    }

    .gm-checkout-card__aside .gm-summary-card__price-block {
        padding: 0.75rem 0.85rem;
        margin-bottom: 0.85rem;
        border-radius: 10px;
        background: linear-gradient(135deg, #f0faf5 0%, #f8fcfa 100%);
        border: 1px solid rgba(0, 166, 81, 0.12);
    }

    .gm-checkout-card__aside .checkout-summary-price-title {
        margin: 0 0 0.25rem;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--gm-text-muted);
    }

    .gm-checkout-card__aside .checkout-summary-price-value {
        margin: 0;
        padding: 0;
        line-height: 1.2;
    }

    .gm-checkout-card__aside .checkout-summary-price-value-amount {
        font-size: 1.35rem !important;
        font-weight: 800 !important;
        color: var(--gm-green) !important;
    }

    .gm-checkout-card__aside .gm-summary-card__btn {
        width: 100%;
        margin-top: 0;
        border-radius: 12px !important;
        min-height: 50px;
        font-size: 0.9rem !important;
    }

    .gm-checkout-card__aside .gm-summary-card__note {
        margin-top: 0.65rem;
        text-align: center;
    }

    .gm-checkout-card__aside .selenium-next-step-shipping,
    .gm-checkout-card__aside .js-submit-payment {
        display: block;
        width: 100%;
    }

    .gm-checkout-card__aside .form-element-row {
        margin: 0 !important;
    }

    .gm-checkout-progress--embedded .gm-checkout-steps__label {
        font-size: 0.8rem;
    }

    .gm-address-selected {
        border-radius: 14px !important;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .gm-address-selected__topbar {
        background: linear-gradient(90deg, #f3f8f5 0%, var(--gm-white) 100%);
    }

    .gm-ship-pack,
    .gm-checkout-flow .gm-ship-pack {
        border-radius: 14px;
        overflow: hidden;
    }

    .gm-pay-option__logo {
        max-height: 32px;
    }

    .gm-pay-group {
        border-radius: 12px;
    }

    .gm-promo-card {
        border-radius: 12px;
    }

    .gm-checkout-flow__aside,
    .gm-cart-flow__aside {
        position: static !important;
        top: auto !important;
    }

    .gm-checkout-section {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .gm-address-selected__switch {
        width: auto;
    }

    .gm-address-selected__topbar {
        flex-wrap: nowrap;
    }

    .gm-pay-groups {
        gap: 0.85rem;
    }

    .gm-pay-group__header {
        padding: 0.85rem;
    }

    .gm-pay-group__options {
        grid-template-columns: 1fr;
        padding: 0.75rem 0.85rem 0.85rem;
    }

    .gm-promo-grid {
        grid-template-columns: 1fr;
    }

    .gm-promo-card {
        padding: 0.85rem;
    }

    .gm-promo-card__form {
        flex-direction: column;
    }

    .gm-promo-card__btn {
        width: 100%;
    }

    .gm-checkout-flow .checkout-order-summary {
        margin-top: 0.5rem;
    }

    .gm-checkout-section__subtitle--block {
        margin-top: 1.5rem !important;
        padding-top: 1.35rem !important;
    }

    .gm-checkout-card__main .gm-order-packs {
        margin-top: 0.25rem;
    }

    .gm-checkout-card__main .gm-order-pack {
        border-radius: 12px;
    }

    .gm-checkout-card__main .gm-order-pack__head {
        padding: 0.85rem 1rem;
    }

    .gm-checkout .shopping-page {
        background: #ecefed;
    }
}

.gm-checkout-flow__grid,
.gm-cart-flow__grid {
    align-items: flex-start;
}

.gm-checkout-flow .checkout-aside,
.gm-checkout-flow .checkout-summary,
.gm-checkout-aside-inner .checkout-aside {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    overflow: hidden;
}

.gm-checkout-flow .checkout-summary-main {
    padding: 1.15rem;
}

.gm-checkout-flow .checkout-summary-summary {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-checkout-flow .checkout-summary-summary li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    font-size: 0.85rem;
    color: var(--gm-text-muted);
}

.gm-checkout-flow .checkout-summary-summary li span:last-child {
    font-weight: 600;
    color: var(--gm-text);
    text-align: left;
}

.gm-checkout-flow .checkout-summary-devider {
    margin: 0.75rem 0;
    border-top: 1px dashed var(--gm-border);
}

.gm-checkout-flow .checkout-summary-price-title {
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    margin-bottom: 0.25rem;
}

.gm-checkout-flow .checkout-summary-price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gm-green) !important;
    margin-bottom: 0.85rem;
}

.gm-checkout-flow .checkout-summary-price-value-amount {
    color: var(--gm-green) !important;
}

.gm-checkout-flow .checkout-summary-content > div:last-child {
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    line-height: 1.6;
    margin-top: 0.75rem;
}

.gm-checkout-flow .wiki-holder {
    display: none;
}

.gm-checkout-flow .btn-element.btn-info-element,
.gm-checkout-flow .js-submit-payment button,
.gm-checkout-flow .js-save-shipping-data button {
    width: 100%;
    min-height: 50px;
    border-radius: var(--gm-radius-sm) !important;
    font-size: 0.925rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gm-checkout .page-footer {
    margin-top: 1rem;
}

/* ==========================================================================
   Product hero, buy box, comment create — v2 refinements
   ========================================================================== */

.gm-theme .single-product .gm-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(280px, 300px);
    gap: 1.25rem 1.5rem;
    align-items: start;
}

.gm-theme .single-product--mobile .gm-product-hero {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    align-items: stretch !important;
}

.gm-theme .single-product .gm-product-hero .product-detail--gallery,
.gm-theme .single-product .gm-product-hero .product-detail--info,
.gm-theme .single-product .gm-product-hero .product-detail--price {
    flex: none !important;
    max-width: none !important;
    width: auto !important;
    padding: 0;
}

.gm-theme .single-product .gm-product-hero .product-detail--price {
    position: sticky;
    top: 96px;
    align-self: start;
}

@media (max-width: 1199.98px) {
    .gm-theme .single-product .gm-product-hero {
        grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    }

    .gm-theme .single-product .gm-product-hero .product-detail--gallery {
        grid-column: 1;
        grid-row: 1;
    }

    .gm-theme .single-product .gm-product-hero .product-detail--info {
        grid-column: 2;
        grid-row: 1;
    }

    .gm-theme .single-product .gm-product-hero .product-detail--price {
        grid-column: 1 / -1;
        grid-row: 2;
        position: static;
    }
}

@media (max-width: 767.98px) {
    .gm-theme .single-product .gm-product-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gm-theme .single-product .gm-product-hero .product-detail--gallery,
    .gm-theme .single-product .gm-product-hero .product-detail--info,
    .gm-theme .single-product .gm-product-hero .product-detail--price {
        grid-column: 1;
        grid-row: auto;
    }
}

.gm-theme .single-product .gm-product-hero .section-product-gallery {
    align-self: start;
}

.gm-theme .single-product .product-gallery #gallery_01f {
    width: 100% !important;
    float: none !important;
    max-width: 100%;
}

.gm-theme .single-product .product-gallery .zoom-img {
    max-width: 100%;
    height: auto;
}

.gm-theme .single-product .product-gallery .gallery-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Purchase panel — product sidebar */
.gm-theme .single-product .product-detail--price {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.gm-theme .single-product .gm-purchase-panel-wrap,
.gm-theme .single-product #product-seller-info-box {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gm-theme .single-product #product-seller-info-box #product-seller-info:not(.gm-purchase-panel) {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    min-height: 0 !important;
}

.gm-theme .single-product #product-seller-info.gm-purchase-panel {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    border-top: 4px solid var(--gm-green) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
    min-height: 0 !important;
    --gm-panel-x: 1rem;
}

.gm-purchase-panel__vendor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem var(--gm-panel-x);
    background: linear-gradient(135deg, #F0FDF4 0%, #fff 100%);
    border-bottom: 1px solid #ECFDF5;
}

.gm-purchase-panel__vendor-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gm-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.gm-purchase-panel__vendor-body {
    flex: 1;
    min-width: 0;
}

.gm-purchase-panel__vendor-label {
    display: none;
}

.gm-purchase-panel__vendor-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.1rem;
}

.gm-purchase-panel__vendor-name strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.gm-purchase-panel__vendor-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #DCFCE7;
    color: #15803D;
}

.gm-purchase-panel__vendor-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: #6B7280;
    line-height: 1.35;
}

.gm-purchase-panel__vendor-score {
    color: var(--gm-green);
    font-weight: 700;
}

.gm-purchase-panel__vendor-score i {
    font-size: 0.65rem;
    margin-left: 0.15rem;
}

.gm-purchase-panel__vendor-dot {
    opacity: 0.4;
}

.gm-purchase-panel__price-block {
    padding: 0.45rem var(--gm-panel-x) 0.5rem;
    border-bottom: 1px solid #F3F4F6;
}

.gm-purchase-panel__price-old {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.gm-purchase-panel__price-old del {
    font-size: 0.78rem;
    color: #9CA3AF;
}

.gm-purchase-panel__discount {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #FEE2E2;
    color: #DC2626;
}

.gm-purchase-panel__price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.gm-purchase-panel__price #price-with-wholesale-price {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gm-purchase-panel__currency {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6B7280;
}

.gm-purchase-panel__stock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.35rem var(--gm-panel-x);
    font-size: 0.72rem;
    font-weight: 600;
    color: #B45309;
    background: #FFFBEB;
    border-bottom: 1px solid #FDE68A;
}

.gm-purchase-panel__cta {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.55rem var(--gm-panel-x);
    border-bottom: 1px solid #F3F4F6;
}

.gm-purchase-panel__cta.gm-purchase-bar {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

.gm-purchase-panel__qty {
    flex-shrink: 0;
}

.gm-purchase-panel__qty .num-block {
    width: 100px !important;
    height: 44px !important;
    margin: 0 !important;
}

.gm-purchase-panel__cart-btn {
    flex: 1;
    min-width: 0;
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.22) !important;
}

.gm-purchase-panel__cart-btn span {
    white-space: nowrap;
}

.gm-purchase-panel__cta--disabled {
    display: block;
}

.gm-purchase-panel__services {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gm-purchase-panel__services li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem var(--gm-panel-x);
    font-size: 0.74rem;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
}

.gm-purchase-panel__services li:last-child {
    border-bottom: none;
}

.gm-purchase-panel__service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.gm-purchase-panel__service-icon i,
.gm-theme .single-product #product-seller-info.gm-purchase-panel .gm-purchase-panel__services li i {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 0.85rem !important;
    color: var(--gm-green) !important;
    line-height: 1 !important;
}

.gm-purchase-panel__service-text {
    min-width: 0;
    line-height: 1.55;
}

.gm-purchase-panel__expand {
    border-top: 1px solid #F3F4F6;
}

.gm-purchase-panel__expand summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem var(--gm-panel-x);
    font-size: 0.74rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    list-style: none;
}

.gm-purchase-panel__expand summary::-webkit-details-marker {
    display: none;
}

.gm-purchase-panel__expand summary > i:first-child {
    color: var(--gm-green);
    width: 18px;
    text-align: center;
    position: static !important;
    top: auto !important;
    right: auto !important;
}

.gm-purchase-panel__expand summary > span {
    flex: 1;
}

.gm-purchase-panel__expand summary > i:last-child {
    font-size: 0.7rem;
    color: #9CA3AF;
    transition: transform 0.2s;
}

.gm-purchase-panel__expand[open] summary > i:last-child {
    transform: rotate(180deg);
}

.gm-purchase-panel__expand-body {
    padding: 0 var(--gm-panel-x, 1rem) 0.75rem;
    font-size: 0.75rem;
    overflow-x: auto;
}

.gm-purchase-panel__expand-body table {
    width: 100%;
    font-size: 0.72rem;
}

.gm-purchase-panel__expand-body th,
.gm-purchase-panel__expand-body td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
}

.gm-purchase-panel__chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: calc(100% - (var(--gm-panel-x, 1rem) * 2));
    max-width: none;
    margin: 0.45rem var(--gm-panel-x, 1rem) 0.55rem;
    padding: 0.48rem 0.65rem;
    border: 1px solid #D1FAE5;
    border-radius: 8px;
    background: #F0FDF4;
    color: var(--gm-green) !important;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
    position: static !important;
    left: auto !important;
    top: auto !important;
}

.gm-theme .single-product #product-seller-info.gm-purchase-panel .gm-purchase-panel__chat.chat-btn {
    width: calc(100% - (var(--gm-panel-x, 1rem) * 2)) !important;
    max-width: none !important;
}

.gm-purchase-panel__chat:hover {
    background: #DCFCE7;
    border-color: var(--gm-green);
}

.gm-purchase-panel__sellers {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem var(--gm-panel-x);
    border-top: 1px solid #F3F4F6;
    background: #F9FAFB;
    text-decoration: none !important;
    color: #374151 !important;
    font-size: 0.74rem;
    transition: background 0.15s;
    margin-top: 0;
}

.gm-purchase-panel__sellers:hover {
    background: #F0FDF4;
}

.gm-purchase-panel__sellers span:last-child {
    color: var(--gm-green);
    font-weight: 700;
}

.gm-purchase-panel__sell-link {
    display: block;
    padding: 0.65rem var(--gm-panel-x);
    text-align: center;
    font-size: 0.75rem;
    color: var(--gm-green) !important;
    border-top: 1px solid #F3F4F6;
    text-decoration: none !important;
}

.gm-theme .single-product .product-detail--price .product-guaranteed {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 10px;
    border: 1px solid #BBF7D0;
    background: #F0FDF4;
    color: #15803D;
}

.gm-theme .single-product .gm-purchase-panel-wrap .skeleton-loader {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 280px;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    padding: 1rem !important;
}

/* Legacy overrides — prevent double box & clipping */
.gm-theme .single-product #product-seller-info-box #product-seller-info:not(.gm-purchase-panel) {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.gm-theme .single-product .gm-purchase-panel img,
.gm-theme .single-product .gm-purchase-panel i {
    position: static !important;
}

.gm-theme .single-product .chat-with-seller,
.gm-theme .single-product .chat-btn-dng {
    position: static !important;
    left: auto !important;
    top: auto !important;
    background: transparent !important;
}

@media (max-width: 480px) {
    .gm-theme .single-product #product-seller-info,
    .gm-theme .single-product #product-seller-info-box #product-seller-info {
        width: 100% !important;
        max-width: 100% !important;
    }

    .gm-purchase-panel__cta {
        flex-direction: column;
    }

    .gm-purchase-panel__qty .num-block {
        width: 100% !important;
    }
}

/* Chat modal — product page */
.gm-chat-modal.modal,
.gm-modal.modal {
    z-index: 1060 !important;
}

body.modal-open .modal-backdrop {
    z-index: 1050 !important;
}

body.modal-open .gm-chat-modal.modal,
body.modal-open .gm-modal.modal {
    z-index: 1060 !important;
}

.gm-chat-modal .modal-dialog {
    max-width: 720px;
    margin: 1rem auto;
}

.gm-chat-modal__content {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
}

.gm-chat-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #F0FDF4 0%, #fff 100%);
    border-bottom: 1px solid #E5E7EB;
}

.gm-chat-modal__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
}

.gm-chat-modal__title i {
    color: var(--gm-green);
}

.gm-chat-modal__close {
    width: 34px;
    height: 34px;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    background: #fff;
    color: #6B7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
}

.gm-chat-modal__close:hover {
    border-color: #FCA5A5;
    color: #DC2626;
    background: #FEF2F2;
}

.gm-chat-modal__body {
    padding: 0 !important;
    background: #F9FAFB;
}

.gm-chat-modal__iframe {
    display: block;
    width: 100%;
    height: min(72vh, 560px);
    border: 0;
    background: #fff;
}

.gm-chat-modal .modal-footer {
    display: none !important;
}

/* Chat modal — mobile fullscreen (server-side $is_mobile) */
.gm-chat-modal--mobile {
    padding: 0 !important;
}

.gm-chat-modal--mobile.modal.show {
    display: flex !important;
    align-items: stretch;
}

.gm-chat-modal--mobile .gm-chat-modal__dialog--mobile {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: stretch;
    transform: none !important;
}

.gm-chat-modal--mobile .gm-chat-modal__content {
    flex: 1;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
}

.gm-chat-modal--mobile .gm-chat-modal__header {
    flex-shrink: 0;
    padding: calc(0.75rem + env(safe-area-inset-top, 0px)) calc(0.85rem + env(safe-area-inset-right, 0px)) 0.75rem calc(0.85rem + env(safe-area-inset-left, 0px));
}

.gm-chat-modal--mobile .gm-chat-modal__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gm-chat-modal--mobile .gm-chat-modal__iframe {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
}

body.modal-open .gm-chat-modal--mobile.show {
    padding-right: 0 !important;
}

/* Chat embed — iframe content */
.gm-chat-embed__shell,
.gm-chat-embed .gm-chat-product {
    height: 100%;
    min-height: 100%;
}

.gm-chat-embed__shell {
    background: #fff;
}

.gm-chat-embed .gm-chat-product {
    display: flex;
    flex-direction: column;
    border: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    height: 100%;
}

.gm-chat-embed .gm-chat-product__holder {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.gm-chat-embed .gm-chat-product__header {
    flex-shrink: 0;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
}

.gm-chat-embed .gm-chat-product__vendor {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
    color: inherit;
}

.gm-chat-embed .gm-chat-product__vendor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.gm-chat-embed .gm-chat-product__vendor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gm-chat-embed .chat-messages-header-title__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #111827;
}

.gm-chat-embed .chat-messages-header-title__last-seen {
    display: block;
    font-size: 0.72rem;
    color: #6B7280;
    margin-top: 0.1rem;
}

.gm-chat-embed .gm-chat-product__messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 0.85rem;
    background: #F9FAFB;
}

.gm-chat-embed .gm-chat-product__rules {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem;
}

.gm-chat-embed .gm-chat-product__rules .rules__text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.7;
    color: #92400E;
}

.gm-chat-embed .gm-chat-product__card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.gm-chat-embed .gm-chat-product__card .message-product-container {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem;
    text-decoration: none !important;
    color: inherit;
}

.gm-chat-embed .message-product__image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #F3F4F6;
}

.gm-chat-embed .message-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gm-chat-embed .message-product-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.gm-chat-embed .message-product__vendor {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: #6B7280;
}

.gm-chat-embed .message-product__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.gm-chat-embed .message-product__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
}

.gm-chat-embed .message-product__price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--gm-green);
}

.gm-chat-embed .gm-chat-product__form {
    flex-shrink: 0;
    border-top: 1px solid #E5E7EB;
    background: #fff;
    padding: 0.55rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 10px));
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
}

.gm-chat-embed .gm-chat-product__composer {
    display: block;
    direction: rtl;
}

.gm-chat-embed .gm-chat-product__input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    min-width: 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1.35rem;
    padding: 0.35rem 0.4rem 0.35rem 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s, border-radius 0.15s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gm-chat-embed .gm-chat-product__input-wrap.is-multiline {
    border-radius: 1rem;
    padding: 0.45rem 0.45rem 0.45rem 0.5rem;
    align-items: flex-end;
}

.gm-chat-embed .gm-chat-product__input-wrap:focus-within {
    border-color: rgba(22, 163, 74, 0.55);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.gm-chat-embed .gm-chat-product__input,
.gm-chat-embed .gm-chat-product__input:focus,
.gm-chat-embed .gm-chat-product__input:focus-visible,
.gm-chat-embed .gm-chat-product__input.error,
.gm-chat-embed .chat-message-form textarea.gm-chat-product__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    resize: none;
    overflow-y: hidden;
    min-height: 1.5rem;
    max-height: 7.5rem;
    font-size: 0.84rem;
    line-height: 1.5;
    padding: 0.4rem 0.15rem !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: #111827;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0 !important;
    field-sizing: content;
}

.gm-chat-embed .gm-chat-product__input::placeholder {
    color: #9CA3AF;
}

.gm-chat-embed .gm-chat-product__attach {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: #6B7280 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    outline: none !important;
    box-shadow: none !important;
}

.gm-chat-embed .gm-chat-product__attach:hover {
    background: #F3F4F6 !important;
    color: var(--gm-green) !important;
}

.gm-chat-embed .gm-chat-product__attach svg {
    width: 20px;
    height: 20px;
}

.gm-chat-embed .gm-chat-product__send {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: var(--gm-green) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.28);
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    outline: none !important;
}

.gm-chat-embed .gm-chat-product__send:hover {
    background: #15803d !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.32);
}

.gm-chat-embed .gm-chat-product__send:active {
    transform: scale(0.95);
}

.gm-chat-embed .gm-chat-product__send svg {
    width: 18px;
    height: 18px;
}

/* File attachment chips */
.gm-chat-embed .gm-chat-product__files {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    min-height: 0;
    overflow-x: auto;
    padding: 0.45rem 0.5rem;
    background: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    scrollbar-width: thin;
}

.gm-chat-embed .gm-chat-product__files:empty {
    display: none;
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.gm-chat-embed .gm-chat-file {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 64px;
    flex-shrink: 0;
}

.gm-chat-embed .gm-chat-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gm-chat-embed .gm-chat-file__thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #fff center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gm-chat-embed .gm-chat-file__thumb--image {
    border-color: rgba(22, 163, 74, 0.25);
}

.gm-chat-embed .gm-chat-file__thumb--doc {
    background: #ECFDF5;
    border-color: rgba(22, 163, 74, 0.2);
}

.gm-chat-embed .gm-chat-file__icon {
    font-size: 1.25rem;
    color: var(--gm-green);
    line-height: 1;
}

.gm-chat-embed .gm-chat-file__name {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #6B7280;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gm-chat-embed .gm-chat-file__remove {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    background: #fff;
    color: #EF4444;
    font-size: 0.65rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: background 0.15s, color 0.15s;
}

.gm-chat-embed .gm-chat-file__remove:hover {
    background: #FEF2F2;
    border-color: #FECACA;
}

/* Override legacy chat form styles inside embed */
.gm-chat-embed .chat-message-form,
.gm-chat-embed .chat-message-form form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gm-chat-embed .chat-message-form .mf,
.gm-chat-embed .chat-message-form .mf-body,
.gm-chat-embed .chat-message-form .btn-link,
.gm-chat-embed .chat-message-form textarea,
.gm-chat-embed .chat-message-form button {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.gm-chat-embed .chat-message-form textarea.error {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gm-chat-embed .gm-chat-product__input-wrap--invalid {
    border-color: #FCA5A5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.gm-chat-embed .gm-chat-validate-error,
.gm-chat-embed .gm-chat-validate-valid {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.gm-chat-embed label.error {
    display: none !important;
}

.gm-chat-embed .chat-message-form .avatar-upload {
    display: none !important;
}

.gm-chat-embed .gm-chat-product__dropzone {
    display: none;
}

/* Review helpful votes */
.gm-comment-list .comment-content {
    position: relative;
    padding-bottom: 0 !important;
}

.gm-theme .single-product .comments-area ol.comment-list .footer,
.gm-comment-list .row.footer {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
}

.gm-review-helpful {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--gm-border);
}

.gm-review-helpful__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gm-text-muted);
}

.gm-review-helpful__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.gm-review-helpful__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--gm-border);
    background: var(--gm-white);
    color: var(--gm-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.gm-review-helpful__btn i {
    font-size: 0.85rem;
}

.gm-review-helpful__count {
    font-weight: 800;
    color: var(--gm-text);
    min-width: 0.85rem;
    text-align: center;
}

.gm-review-helpful__btn--yes:hover,
.gm-review-helpful__btn--yes.is-active {
    border-color: var(--gm-green);
    background: var(--gm-green-soft);
    color: var(--gm-green);
}

.gm-review-helpful__btn--no:hover,
.gm-review-helpful__btn--no.is-active {
    border-color: #FCA5A5;
    background: #FEF2F2;
    color: #DC2626;
}

@media (max-width: 575.98px) {
    .gm-review-helpful {
        flex-direction: column;
        align-items: stretch;
    }

    .gm-review-helpful__actions {
        justify-content: center;
    }
}

/* Comment list enhancements */
.gm-comment-list .comment-content > .row:first-of-type {
    margin-bottom: 0.75rem;
}

.gm-comment-list .content-expert-evaluation-positive,
.gm-comment-list .content-expert-evaluation-negative {
    background: var(--gm-bg);
    border-radius: var(--gm-radius-sm);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    height: 100%;
}

.gm-comment-list .content-expert-evaluation-positive > span,
.gm-comment-list .content-expert-evaluation-negative > span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gm-comment-list .content-expert-evaluation-positive > span {
    color: var(--gm-green);
}

.gm-comment-list .content-expert-evaluation-negative > span {
    color: #DC2626;
}

.gm-comment-list .content-expert-evaluation-positive ul,
.gm-comment-list .content-expert-evaluation-negative ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-comment-list .content-expert-evaluation-positive li,
.gm-comment-list .content-expert-evaluation-negative li {
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    padding: 0.2rem 0;
}

.gm-comment-list .comment-content p {
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--gm-text);
    margin: 0;
}

.gm-comment-list .message-light--purchased {
    background: var(--gm-green-soft);
    color: var(--gm-green);
    border: 1px solid var(--gm-green-light);
    padding: 0.35rem 0.65rem;
    font-weight: 600;
}

.gm-comment-list .message-light--opinion-positive {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 0.35rem 0.65rem;
    font-weight: 600;
}

/* Comment create page */
.gm-comment-create {
    padding-bottom: 2.5rem;
}

.gm-comment-create__article {
    margin-top: 0.5rem;
}

.gm-comment-create__hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    margin-bottom: 1.5rem;
}

.gm-comment-create__image-link {
    display: block;
    background: var(--gm-bg);
    border-radius: var(--gm-radius-sm);
    padding: 0.75rem;
    border: 1px solid var(--gm-border);
}

.gm-comment-create__image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.gm-comment-create__intro {
    min-width: 0;
}

.gm-comment-create__title h1 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: var(--gm-text);
}

.gm-comment-create__subtitle {
    display: block;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    font-weight: 400;
}

.gm-comment-create__ratings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gm-border);
}

.gm-comment-create__ratings-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: var(--gm-text);
}

.gm-comment-create__ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.gm-comment-create__rating-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gm-text-muted);
    margin-bottom: 0.5rem;
}

.gm-comment-create__meta {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gm-green-soft);
    border: 1px solid var(--gm-green-light);
    border-radius: var(--gm-radius-sm);
}

.gm-comment-create__meta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
}

.gm-comment-create__meta-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.82rem;
}

.gm-comment-create__meta-list li span {
    color: var(--gm-text-muted);
}

.gm-comment-create__meta-list li strong {
    color: var(--gm-text);
    font-weight: 700;
}

.gm-comment-create__meta-note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    line-height: 1.7;
}

.gm-comment-create__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.25rem;
    align-items: start;
}

.gm-comment-create__form-card,
.gm-comment-create__guide-card {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    padding: 1.35rem;
}

.gm-comment-create__form-title,
.gm-comment-create__guide-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--gm-text);
}

.gm-comment-create__form .form-element-row {
    margin-bottom: 1rem;
}

.gm-comment-create__form .label-element {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gm-text);
    margin-bottom: 0.4rem;
}

.gm-comment-create__form .input-element {
    border: 1.5px solid var(--gm-border) !important;
    border-radius: var(--gm-radius-sm) !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.875rem;
    transition: border-color 0.15s;
}

.gm-comment-create__form .input-element:focus {
    border-color: var(--gm-green) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.12);
}

.gm-comment-create__radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gm-comment-create__radio {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1.5px solid var(--gm-border);
    border-radius: 999px;
    font-size: 0.82rem;
    cursor: pointer;
    margin: 0;
    transition: all 0.15s;
}

.gm-comment-create__radio:has(input:checked) {
    border-color: var(--gm-green);
    background: var(--gm-green-soft);
    color: var(--gm-green);
}

.gm-comment-create__radio input {
    margin: 0;
}

.gm-comment-create__submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gm-border);
}

.gm-comment-create__submit .gm-btn {
    min-height: 46px;
    padding: 0.55rem 1.35rem;
    gap: 0.45rem;
}

.gm-comment-create__legal {
    margin: 0;
    font-size: 0.78rem;
    color: var(--gm-text-muted);
    line-height: 1.7;
    flex: 1;
    min-width: 200px;
}

.gm-comment-create__legal a {
    color: var(--gm-green);
    font-weight: 600;
}

.gm-comment-create__guide-card p {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    line-height: 1.75;
    margin: 0 0 0.85rem;
}

.gm-comment-create__guide-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-comment-create__guide-card li {
    position: relative;
    padding-right: 1rem;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
    line-height: 1.65;
}

.gm-comment-create__guide-card li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gm-green);
}

.gm-comment-create .ui-input-point {
    background: var(--gm-green) !important;
    border-radius: 8px !important;
}

.gm-comment-create .ui-dynamic-label--positive {
    background: var(--gm-green-soft);
    color: var(--gm-green);
    border: 1px solid var(--gm-green-light);
}

.gm-comment-create .ui-dynamic-label--negative {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

@media (max-width: 991.98px) {
    .gm-comment-create__layout {
        grid-template-columns: 1fr;
    }

    .gm-comment-create__guide {
        order: -1;
    }
}

@media (max-width: 767.98px) {
    .gm-comment-create__hero {
        grid-template-columns: 1fr;
    }

    .gm-comment-create__image-link {
        max-width: 200px;
        margin: 0 auto;
    }

    .gm-comment-create__ratings-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Cart page + checkout polish v3
   ========================================================================== */

.gm-cart-page,
.gm-checkout .shopping-page {
    background: var(--gm-bg);
    min-height: 60vh;
}

.gm-cart-flow {
    padding: 0.5rem 0 2rem;
}

.gm-cart-flow__grid {
    align-items: flex-start;
}

.gm-cart {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    overflow: hidden;
}

.gm-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--gm-border);
    background: linear-gradient(180deg, var(--gm-green-soft) 0%, var(--gm-white) 100%);
}

.gm-cart__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: var(--gm-text);
}

.gm-cart__subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gm-text-muted);
}

.gm-cart__continue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    color: var(--gm-green) !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.15s;
}

.gm-cart__continue:hover {
    border-color: var(--gm-green);
    background: var(--gm-green-soft);
}

.gm-cart__group {
    display: flex;
    flex-direction: column;
}

.gm-cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--gm-border);
    align-items: start;
}

.gm-cart-item:last-child {
    border-bottom: none;
}

.gm-cart-item__media {
    position: relative;
    background: var(--gm-bg);
    border-radius: var(--gm-radius-sm);
    padding: 0.5rem;
    border: 1px solid var(--gm-border);
}

.gm-cart-item__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.gm-cart-item__badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    background: #F59E0B;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
}

.gm-cart-item__name {
    font-size: 0.925rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--gm-text);
    line-height: 1.55;
}

.gm-cart-item__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gm-cart-item__meta li {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.gm-cart-item__meta i {
    color: var(--gm-green);
    width: 14px;
}

.gm-cart-item__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.gm-cart-item__variant {
    font-size: 0.75rem;
    background: var(--gm-bg);
    border: 1px solid var(--gm-border);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    color: var(--gm-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gm-cart-item__color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.gm-cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    min-width: 148px;
}

.gm-cart-item__qty-label {
    display: block;
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    margin-bottom: 0.35rem;
}

.gm-qty-input.number-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    background: #FAFAFA;
    overflow: hidden;
    height: 38px;
}

.gm-qty-input.number-input button {
    width: 34px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--gm-green);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.gm-qty-input.number-input button:hover {
    background: var(--gm-green-light);
}

.gm-qty-input.number-input input {
    width: 42px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--gm-text);
    padding: 0;
}

.gm-cart-item__price {
    text-align: left;
}

.gm-cart-item__price-old {
    display: block;
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    margin-bottom: 0.15rem;
}

.gm-cart-item__discount {
    display: block;
    font-size: 0.72rem;
    color: var(--gm-green);
    margin-bottom: 0.15rem;
}

.gm-cart-item__price-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gm-text);
}

.gm-cart-item__remove {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #FECACA;
    background: #FEF2F2;
    color: #DC2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.gm-cart-item__remove:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
}

/* Summary card */
.gm-summary-card .checkout-summary-main {
    padding: 0 !important;
}

.gm-summary-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    background: var(--gm-green-soft);
    border-bottom: 1px solid var(--gm-green-light);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gm-text);
}

.gm-summary-card__head i {
    color: var(--gm-green);
}

.gm-summary-card .checkout-summary-summary,
.gm-summary-card .checkout-summary-content {
    padding: 0 1.15rem;
}

.gm-summary-card .checkout-summary-content {
    padding-bottom: 1.15rem;
}

.gm-summary-card__currency {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gm-text-muted);
    margin-right: 0.25rem;
}

.gm-summary-card__btn {
    border-radius: var(--gm-radius-sm) !important;
    min-height: 50px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(0, 166, 81, 0.25);
}

.gm-summary-card__note {
    margin: 0.75rem 0 0;
    font-size: 0.72rem;
    color: var(--gm-text-muted);
    line-height: 1.6;
}

.gm-summary-card__wallet {
    margin-bottom: 0.5rem !important;
}

/* Sticky summary — cart + checkout (desktop rules in min-width 992 block above) */

.gm-checkout-flow .checkout-aside,
.gm-checkout-flow .checkout-summary,
.gm-cart-flow .checkout-aside,
.gm-cart-flow .checkout-summary,
.gm-checkout-page .checkout-aside,
.gm-checkout-page .checkout-summary {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    overflow: hidden;
}

.gm-checkout-page .btn-element.btn-info-element,
.gm-cart-flow .btn-element.btn-info-element,
.gm-checkout-flow .btn-element.btn-info-element {
    background: var(--gm-green) !important;
    border-color: var(--gm-green) !important;
    color: #fff !important;
}

/* Order packs (payment summary) */
.gm-order-packs {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.gm-order-pack {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    overflow: hidden;
}

.gm-order-pack__head {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--gm-bg);
    border: none;
    text-align: right;
    cursor: pointer;
    transition: background 0.15s;
}

.gm-order-pack__head:hover {
    background: var(--gm-green-soft);
}

.gm-order-pack__head:not(.collapsed) .gm-order-pack__chevron {
    transform: rotate(180deg);
}

.gm-order-pack__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-start;
}

.gm-order-pack__badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gm-green);
    background: var(--gm-green-light);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.gm-order-pack__count {
    font-size: 0.78rem;
    color: var(--gm-text-muted);
}

.gm-order-pack__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
}

.gm-order-pack__meta li {
    font-size: 0.78rem;
    color: var(--gm-text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.gm-order-pack__meta i {
    color: var(--gm-green);
    font-size: 0.85rem;
}

.gm-order-pack__chevron {
    color: var(--gm-text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.gm-order-pack__body {
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--gm-border);
    background: var(--gm-white);
}

.gm-order-pack__items {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gm-order-pack__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    background: var(--gm-bg);
    border-radius: var(--gm-radius-sm);
}

.gm-order-pack__item img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    flex-shrink: 0;
}

.gm-order-pack__item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--gm-text);
    margin-bottom: 0.15rem;
}

.gm-order-pack__item span {
    font-size: 0.75rem;
    color: var(--gm-text-muted);
}

/* Cart empty state */
.gm-cart-page .cart-empty {
    background: var(--gm-white);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    padding: 3rem 1.5rem;
    margin: 2rem auto;
    max-width: 420px;
    text-align: center;
}

.gm-cart-page .cart-empty-icon i {
    font-size: 3rem;
    color: var(--gm-green);
    margin-bottom: 1rem;
}

.gm-cart-page .cart-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--gm-text);
}

/* Mobile — preserve existing excellent layout */
@media (max-width: 991.98px) {
    .gm-checkout-card {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .gm-checkout-progress--embedded {
        padding: 1rem 1rem 0.85rem;
        margin: 0;
        border: 1px solid var(--gm-border);
        border-bottom: none;
        border-radius: var(--gm-radius) var(--gm-radius) 0 0;
        background: var(--gm-white);
    }

    .gm-checkout-progress__steps-wrap .gm-checkout-progress__track {
        top: 15px;
        left: 8%;
        right: 8%;
        height: 3px;
    }

    .gm-checkout-progress--embedded .gm-checkout-steps__dot {
        box-shadow: 0 0 0 3px var(--gm-white);
    }

    .gm-checkout-card__main {
        padding: 1rem;
        background: var(--gm-white);
        border: 1px solid var(--gm-border);
        border-top: none;
        border-radius: 0 0 var(--gm-radius) var(--gm-radius);
    }

    .gm-checkout-header {
        padding-bottom: 0.65rem;
    }

    .gm-checkout-progress {
        max-width: 100%;
    }

    .gm-checkout-progress__status {
        font-size: 0.7rem;
        flex-wrap: wrap;
    }

    .gm-checkout-steps__item a {
        font-size: 0.62rem;
        gap: 0.28rem;
    }

    .gm-checkout-steps__dot {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .gm-checkout-steps__item:not(:last-child)::after {
        top: 15px;
    }

    .gm-checkout-steps__label {
        font-size: 0.62rem;
        line-height: 1.25;
        max-width: 72px;
    }

    .gm-address-selected__topbar {
        flex-wrap: wrap;
    }

    .gm-address-selected__switch {
        width: 100%;
        justify-content: center;
    }

    .gm-address-selected__name-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gm-address-selected__edit {
        align-self: flex-start;
    }

    .gm-checkout-section {
        margin-top: 0.75rem;
    }

    .gm-wallet-card {
        margin-top: 1rem;
        padding: 0.9rem;
    }

    .gm-wallet-card__toggle {
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .gm-wallet-card__switch {
        order: -1;
    }

    .gm-checkout-flow .gm-promo-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .gm-pay-groups {
        gap: 0.75rem;
    }

    .gm-pay-group__header {
        padding: 0.85rem;
        gap: 0.65rem;
    }

    .gm-pay-group__icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .gm-pay-group__options {
        padding: 0.75rem 0.85rem 0.85rem;
    }

    .gm-pay-option {
        padding: 0.9rem 0.85rem;
        min-height: 56px;
    }

    .gm-pay-option__logo {
        width: 32px;
        height: 32px;
    }

    .gm-promo-card {
        padding: 0.85rem;
    }

    .gm-promo-card__head {
        margin-bottom: 0.75rem;
    }

    .gm-checkout-section__title {
        margin-top: 0;
        clear: both;
    }

    .gm-cart-flow,
    .gm-checkout-flow {
        padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px));
    }

    .gm-checkout-flow__aside,
    .gm-cart-flow__aside,
    .gm-checkout-card__aside {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto !important;
        z-index: 950;
        padding: 0 !important;
        max-width: none !important;
        flex: none !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .gm-checkout-flow__aside .checkout-aside,
    .gm-cart-flow__aside .checkout-aside,
    .gm-checkout-card__aside .checkout-aside {
        border-radius: var(--gm-radius) var(--gm-radius) 0 0;
        border-bottom: none;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.14);
        margin: 0;
    }

    .gm-summary-card__head {
        display: none;
    }

    .gm-checkout-flow__aside .checkout-summary-summary,
    .gm-cart-flow__aside .checkout-summary-summary {
        display: none;
    }

    .gm-checkout-flow__aside .checkout-summary-devider,
    .gm-cart-flow__aside .checkout-summary-devider {
        display: none;
    }

    .gm-checkout-flow__aside .checkout-summary-main,
    .gm-cart-flow__aside .checkout-summary-main {
        padding: 0 !important;
    }

    .gm-checkout-flow__aside .checkout-summary-content,
    .gm-cart-flow__aside .checkout-summary-content,
    .gm-checkout-flow__aside .gm-summary-card__cta,
    .gm-cart-flow__aside .gm-summary-card__cta {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0 0.75rem;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .gm-checkout-flow__aside .gm-summary-card__price-block,
    .gm-cart-flow__aside .gm-summary-card__price-block {
        grid-column: 1;
        grid-row: 1 / span 2;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        border-radius: 0;
    }

    .gm-checkout-flow__aside .checkout-summary-price-title,
    .gm-cart-flow__aside .checkout-summary-price-title {
        grid-column: auto;
        grid-row: auto;
        margin: 0;
        font-size: 0.72rem;
        padding: 0;
    }

    .gm-checkout-flow__aside .checkout-summary-price-value,
    .gm-cart-flow__aside .checkout-summary-price-value {
        grid-column: auto;
        grid-row: auto;
        font-size: 1.05rem;
        margin: 0;
        padding: 0;
    }

    .gm-checkout-flow__aside .gm-summary-card__note,
    .gm-cart-flow__aside .gm-summary-card__note,
    .gm-checkout-flow__aside .checkout-summary-content > div:last-child,
    .gm-cart-flow__aside .checkout-summary-content > p {
        display: none !important;
    }

    .gm-checkout-flow__aside .selenium-next-step-shipping,
    .gm-cart-flow__aside .selenium-next-step-shipping,
    .gm-checkout-flow__aside .js-submit-payment {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .gm-checkout-flow__aside .form-element-row,
    .gm-cart-flow__aside .form-element-row {
        margin: 0;
    }

    .gm-checkout-flow__aside .gm-summary-card__btn,
    .gm-cart-flow__aside .gm-summary-card__btn,
    .gm-checkout-flow__aside .btn-element,
    .gm-cart-flow__aside .btn-element {
        min-height: 46px !important;
        font-size: 0.82rem !important;
        padding: 0.5rem 0.85rem !important;
        white-space: nowrap;
        box-shadow: none;
    }

    .gm-cart-item {
        grid-template-columns: 72px 1fr;
        gap: 0.75rem;
    }

    .gm-cart-item__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        padding-top: 0.5rem;
        border-top: 1px dashed var(--gm-border);
    }

    .gm-cart-item__price {
        text-align: right;
    }

    .gm-cart__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gm-order-pack__head {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .gm-order-pack__info {
        grid-column: 1;
    }

    .gm-order-pack__chevron {
        grid-column: 2;
        grid-row: 1;
    }

    .gm-order-pack__meta {
        grid-column: 1 / -1;
        flex-direction: column;
        gap: 0.35rem;
    }

    .gm-address-panel__dialog {
        max-height: 94vh;
    }

    .gm-checkout-flow .page-content > .row > [class*="col-"] {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .gm-cart-item {
        padding: 1rem;
    }

    .gm-checkout-section {
        padding: 0.85rem;
    }
}

/* ==========================================================================
   Product page — server-side mobile (single-product--mobile)
   ========================================================================== */

.gm-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.gm-theme .single-product--mobile {
    background: #f0f0f1;
    padding-bottom: 5.5rem;
    max-width: 100%;
    overflow-x: clip;
}

.gm-theme .single-product--mobile.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.gm-theme .single-product--mobile .product {
    background: transparent;
    padding: 0 !important;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

.gm-theme .single-product--mobile > .row {
    margin-left: 0;
    margin-right: 0;
}

.gm-theme .single-product--mobile > .row > .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gm-theme .single-product--mobile .breadcrumb {
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.gm-theme .single-product--mobile .breadcrumb nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.2rem;
    font-size: 0.72rem;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
}

.gm-theme .single-product--mobile .breadcrumb nav::-webkit-scrollbar {
    display: none;
}

.gm-theme .single-product--mobile .breadcrumb nav a {
    flex-shrink: 0;
    white-space: nowrap;
}

.gm-theme .single-product--mobile .gm-product-hero--mobile {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 8px;
    background: transparent;
}

.gm-theme .single-product--mobile .hero-product-detail .product-detail--gallery,
.gm-theme .single-product--mobile .hero-product-detail .product-detail--info,
.gm-theme .single-product--mobile .hero-product-detail .product-detail--price {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.gm-theme .single-product--mobile .gm-mobile-surface,
.gm-theme .single-product--mobile .gm-mobile-card {
    background: #fff !important;
    border: 1px solid #e0e0e2;
    border-radius: 10px;
    box-shadow: none;
}

.gm-theme .single-product--mobile .gm-mobile-surface {
    padding: 0.85rem 0.9rem;
    margin-bottom: 0;
}

.gm-theme .single-product--mobile .gm-mobile-card {
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.gm-theme .single-product--mobile .gm-mobile-card__head,
.gm-theme .single-product--mobile .gm-mobile-card--meta .gm-mobile-card__head {
    display: block;
    padding: 0.7rem 0.9rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #3f4064;
    border-bottom: 1px solid #f0f0f1;
    background: #fff;
}

.gm-theme .single-product--mobile .gm-mobile-card--meta::before {
    content: none;
    display: none;
}

.gm-theme .single-product--mobile .gm-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #f0f0f1;
    background: #fff;
}

.gm-theme .single-product--mobile .gm-meta-row:last-child {
    border-bottom: none;
}

.gm-theme .single-product--mobile .gm-meta-row__label {
    color: #81858b;
    font-size: 0.78rem;
    font-weight: 600;
}

.gm-theme .single-product--mobile .gm-meta-row__value {
    color: #232933;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: left;
}

.gm-theme .single-product--mobile .gm-meta-row__link {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--gm-green);
    font-weight: 700;
    text-decoration: none !important;
}

.gm-theme .single-product--mobile .product-detail--gallery {
    order: 1;
    background: #fff !important;
    border: 1px solid #e0e0e2;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gm-theme .single-product--mobile .gm-product-gallery {
    padding: 0.65rem 0.65rem 0.35rem;
}

.gm-theme .single-product--mobile .gm-product-gallery .zoom-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    max-height: min(58vw, 280px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.gm-theme .single-product--mobile .product-gallery .gallery-items.hidden-sm {
    display: none !important;
}

.gm-theme .single-product--mobile #gallery-slider {
    display: block !important;
    margin: 0;
    padding: 0 0.15rem 0.35rem;
}

.gm-theme .single-product--mobile #gallery-slider.gm-gallery-slider--single {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.gm-theme .single-product--mobile #gallery-slider .swiper-slide {
    width: 68px !important;
}

.gm-theme .single-product--mobile #gallery-slider .swiper-slide a {
    display: block;
    width: 64px;
    height: 64px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.gm-theme .single-product--mobile #gallery-slider .swiper-slide a.active {
    border-color: var(--gm-green);
}

.gm-theme .single-product--mobile #gallery-slider .swiper-button-next,
.gm-theme .single-product--mobile #gallery-slider .swiper-button-prev,
.gm-theme .single-product--mobile #gallery-slider .gm-gallery-pagination {
    display: none !important;
}

.gm-theme .single-product--mobile ul.gallery-options {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gm-theme .single-product--mobile .product-detail--info {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible !important;
}

.gm-theme .single-product--mobile .product-title.default.gm-mobile-surface h1 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #3f4064 !important;
    line-height: 1.55 !important;
}

.gm-theme .single-product--mobile .product-title h1 .product-title-en {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 0.75rem !important;
    color: #a1a3a8 !important;
}

.gm-theme .single-product--mobile .gm-variant-picker__title,
.gm-theme .single-product--mobile .gm-variant-block__title {
    display: block;
    padding: 0.7rem 0.9rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #3f4064;
    border-bottom: 1px solid #f0f0f1;
    background: #fff;
}

.gm-theme .single-product--mobile .gm-variant-picker__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem 0.75rem;
    background: #fff;
}

.gm-theme .single-product--mobile .gm-variant-pill {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
}

.gm-theme .single-product--mobile .gm-variant-pill.is-active {
    border-color: var(--gm-green);
    color: var(--gm-green);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12);
}

.gm-theme .single-product--mobile .gm-variant-picker__native--hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.gm-theme .single-product--mobile .product-variant-select > span {
    display: none !important;
}

.gm-theme .single-product--mobile .product-params ul[data-title]::before {
    content: attr(data-title);
    display: block;
    padding: 0.75rem 1rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #232933;
    border-bottom: 1px solid #f0f0f0;
}

.gm-theme .single-product--mobile .product-params ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.78rem;
}

.gm-theme .single-product--mobile .gm-spec-row__label {
    color: #81858b;
    font-weight: 600;
    flex-shrink: 0;
}

.gm-theme .single-product--mobile .gm-spec-row__label::after {
    content: ':\00a0';
}

.gm-theme .single-product--mobile .gm-spec-row__value {
    color: #232933;
    font-weight: 700;
    text-align: left;
}

.gm-theme .single-product--mobile .product-params ul li > span:first-child {
    color: #81858b;
    font-weight: 600;
}

.gm-theme .single-product--mobile .product-params ul li > span:last-child {
    color: #232933;
    font-weight: 700;
    text-align: left;
}

.gm-theme .single-product--mobile .gm-mobile-specs-cta {
    padding: 0.65rem 1rem 0.85rem;
}

.gm-theme .single-product--mobile .gm-mobile-specs-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.08);
    color: var(--gm-green);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
}

.gm-theme .single-product--mobile .product-detail--price {
    order: 3;
    position: static !important;
    padding: 0 !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel__desktop-only {
    display: none !important;
}

.gm-theme .single-product--mobile #product-seller-info.gm-purchase-panel {
    border: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    --gm-panel-x: 0.9rem;
}

.gm-theme .single-product--mobile .gm-purchase-panel__vendor {
    background: #fff !important;
    border-bottom: 1px solid #f0f0f1;
    padding: 0.75rem 0.9rem;
}

.gm-theme .single-product--mobile .gm-purchase-panel__vendor-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    box-shadow: none;
}

.gm-theme .single-product--mobile .gm-purchase-panel__vendor-name strong {
    font-size: 0.84rem;
    color: #3f4064;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #f0f0f1;
    background: #fff;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-head-title {
    font-size: 0.9rem;
    font-weight: 800;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-head-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: #19bfd3;
    text-decoration: none !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel__service-row,
.gm-theme .single-product--mobile .gm-purchase-panel__services > li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid #f0f0f1;
    font-size: 0.78rem;
    color: #3f4064;
    grid-template-columns: none;
    background: #fff;
}

.gm-theme .single-product--mobile .gm-purchase-panel__vendor-chevron,
.gm-theme .single-product--mobile .gm-purchase-panel__service-chevron,
.gm-theme .single-product--mobile .gm-purchase-panel__action-chevron {
    display: none !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-chat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-top: 1px solid #f0f0f1;
    border-radius: 0;
    background: #fff;
    text-align: right;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-chat:hover,
.gm-theme .single-product--mobile .gm-purchase-panel__mobile-chat:focus {
    background: #f9fafb;
    outline: none;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-chat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0fdf4;
    color: var(--gm-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-chat-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-chat-body strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3f4064;
    line-height: 1.35;
}

.gm-theme .single-product--mobile .gm-purchase-panel__mobile-chat-body small {
    font-size: 0.68rem;
    color: #81858b;
    line-height: 1.4;
}

.gm-theme .single-product--mobile .gm-purchase-panel__chat {
    display: none !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel__services {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gm-theme .single-product--mobile .gm-purchase-panel__expand {
    margin-top: 0;
    border-top: none;
    background: #fff;
}

.gm-theme .single-product--mobile .gm-purchase-panel__expand summary {
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
    color: #3f4064;
    font-weight: 600;
}

.gm-theme .single-product--mobile .gm-purchase-panel__service-text,
.gm-theme .single-product--mobile .gm-purchase-panel__action-body {
    flex: 1;
}

.gm-theme .single-product--mobile .gm-purchase-panel__action-sub {
    display: block;
    font-size: 0.68rem;
    color: #81858b;
    margin-top: 0.15rem;
}

.gm-theme .single-product--mobile .gm-product-trust-bar.gm-mobile-card--trust {
    margin-top: 8px;
    padding: 0.7rem 0.25rem;
    background: #fff !important;
    border: 1px solid #e0e0e2 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.gm-theme .single-product--mobile .gm-product-trust-bar__inner {
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0 0.35rem;
}

.gm-theme .single-product--mobile .gm-product-trust-bar .gm-product-features__item {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.62rem;
}

.gm-theme .single-product--mobile .gm-product-trust-bar .gm-product-features__item img {
    width: 28px;
    height: 28px;
}

.gm-theme .single-product--mobile .gm-sellers {
    overflow: visible;
}

.gm-theme .single-product--mobile .gm-seller-card {
    overflow: visible;
}

.gm-mobile-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: none;
    pointer-events: none;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

.gm-mobile-buy-bar--visible {
    display: block;
    pointer-events: auto;
}

.gm-mobile-buy-bar__alert {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0.65rem 0.35rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 600;
}

.gm-mobile-buy-bar__surface {
    background: #fff;
    border-top: 1px solid #e8e8ec;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
}

.gm-mobile-buy-bar__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.gm-mobile-buy-bar__price-col {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.gm-mobile-buy-bar__price {
    font-size: 0.9rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.gm-mobile-buy-bar__currency {
    font-size: 0.72rem;
    color: #6b7280;
    margin-right: 0.2rem;
}

.gm-mobile-buy-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 1 auto;
    min-width: 0;
    flex-shrink: 1;
}

.gm-mobile-buy-bar__qty {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.35rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.gm-mobile-buy-bar__qty-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #374151;
}

.gm-mobile-buy-bar__qty-value {
    min-width: 1.25rem;
    text-align: center;
    font-weight: 700;
}

.gm-theme .single-product--mobile .gm-mobile-card--vendor {
    padding: 0;
    overflow: hidden;
    margin-top: 0;
    background: #fff !important;
    border: 1px solid #e0e0e2 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.gm-theme .single-product--mobile .gm-mobile-card--vendor #product-seller-info.gm-purchase-panel {
    border: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.gm-theme .single-product--mobile .product-directory ul {
    list-style: none;
    margin: 0 !important;
    padding: 0;
    display: block !important;
    width: 100%;
}

.gm-theme .single-product--mobile .product-directory.default {
    padding: 0;
    margin: 0;
}

.gm-theme .single-product--mobile .product-variant.default {
    padding: 0;
    margin: 0;
}

.gm-theme .single-product--mobile .product-params.default {
    padding: 0;
    margin: 0;
}

.gm-theme .single-product--mobile .product-title.default {
    margin: 0;
    border: none;
    background: transparent;
}

.gm-theme .single-product--mobile .nice-select,
.gm-theme .single-product--mobile .product-variant-select .nice-select {
    display: none !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel__desktop-only,
.gm-theme .single-product--mobile .gm-purchase-panel__price-block,
.gm-theme .single-product--mobile .gm-purchase-panel__stock,
.gm-theme .single-product--mobile .gm-purchase-panel__cta:not(.gm-purchase-panel__cta--disabled),
.gm-theme .single-product--mobile .product-add.gm-purchase-bar:not(.gm-purchase-panel__cta--disabled),
.gm-theme .single-product--mobile .gm-purchase-panel__sellers {
    display: none !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel__vendor-badge--score {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f59e0b;
}

.gm-theme .single-product--mobile .gm-purchase-panel__vendor-badge--satisfaction {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 600;
}

.gm-theme .single-product--mobile .gm-purchase-panel__vendor-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin-top: 0.2rem;
}

.gm-theme .single-product--mobile .gm-mobile-accordion {
    margin-top: 0.75rem;
}

.gm-theme .single-product--mobile .gm-mobile-accordion .card {
    border: 1px solid #e8e8ec;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
}

.gm-theme .single-product--mobile .gm-mobile-card--note {
    padding: 0.85rem 1rem;
}

.gm-theme .single-product--mobile .gm-mobile-card--note .c-product-additional-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #4b5563;
}

.gm-theme .single-product--mobile .gm-variant-block--color {
    padding-bottom: 0.5rem;
}

.gm-theme .single-product--mobile .gm-variant-block__selected {
    color: var(--gm-green);
    font-weight: 700;
}

.gm-theme .single-product--mobile .gm-variant-pills--color {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem 0.75rem;
    list-style: none;
    margin: 0;
}

.gm-theme .single-product--mobile .gm-variant-pills--color .c-ui-variant {
    margin: 0;
    display: block;
}

.gm-theme .single-product--mobile .gm-color-variant-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 4.25rem;
    padding: 0.45rem 0.35rem 0.4rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gm-theme .single-product--mobile .gm-color-variant-label:has(.variant-selector:checked) {
    border-color: var(--gm-green);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.gm-theme .single-product--mobile .gm-variant-pills--color .c-ui-variant-shape {
    position: static !important;
    right: auto !important;
    top: auto !important;
    display: block;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.gm-theme .single-product--mobile .gm-color-variant-label:has(.variant-selector:checked) .c-ui-variant-shape {
    border-color: var(--gm-green) !important;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.gm-theme .single-product--mobile .gm-variant-pills--color .c-ui-variant--check {
    display: block;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.65rem !important;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    line-height: 1.25;
    max-width: 4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gm-theme .single-product--mobile .gm-color-variant-label:has(.variant-selector:checked) .c-ui-variant--check {
    color: var(--gm-green);
    font-weight: 700;
}

.gm-theme .single-product--mobile .gm-variant-pills--color .variant-selector:checked + .c-ui-variant--check {
    border-color: transparent !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel-wrap--mobile .skeleton-loader {
    display: none !important;
}

.gm-mobile-buy-bar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 8.5rem;
    min-height: 40px;
    padding: 0 0.6rem;
    border-radius: 10px;
    background: var(--gm-green);
    color: #fff !important;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.gm-theme .single-product--mobile .product-gallery #gallery_01f,
.gm-theme .single-product--mobile .gm-gallery-thumbs-wrap {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.gm-theme .single-product--mobile .zoomWrapper {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0.5rem !important;
}

.gm-theme .single-product--mobile .section-product-gallery {
    border-left: none !important;
}

.gm-theme .single-product--mobile .gm-mobile-surface,
.gm-theme .single-product--mobile .gm-mobile-card,
.gm-theme .single-product--mobile .product-detail--gallery,
.gm-theme .single-product--mobile .product-detail--info > .gm-mobile-surface,
.gm-theme .single-product--mobile .product-detail--info > .gm-mobile-card,
.gm-theme .single-product--mobile .product-detail--price {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.gm-theme .single-product--mobile .gm-purchase-panel-wrap .skeleton-loader {
    min-height: 0;
}

.gm-theme .single-product--mobile .container .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel-wrap {
    min-height: 0 !important;
}

.gm-theme .single-product--mobile .gm-purchase-panel-wrap .skeleton-loader {
    min-height: 0;
    border-radius: 10px;
}

.gm-theme .single-product--mobile .gm-purchase-panel__service-icon {
    width: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gm-theme .single-product--mobile .gm-purchase-panel__service-text {
    flex: 1;
    min-width: 0;
}

.gm-theme:has(.single-product--mobile) {
    overflow-x: hidden;
}

/* ==========================================================================
   Order result — payment success / failed
   ========================================================================== */

.gm-order-result-page {
    padding: 1.25rem 0 2.5rem;
    background: #f4f6f5;
}

.gm-order-result-layout {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gm-order-result-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.gm-order-result-hero__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

.gm-order-result-hero--success .gm-order-result-hero__icon {
    background: #ecfdf5;
    color: #16a34a;
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.1);
}

.gm-order-result-hero--pending .gm-order-result-hero__icon {
    background: #fffbeb;
    color: #d97706;
    box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.1);
}

.gm-order-result-hero--failed .gm-order-result-hero__icon {
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.1);
}

.gm-order-result-hero__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.gm-order-result-hero__code {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.04em;
}

.gm-order-result-hero__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.6;
}

.gm-order-result-hero__subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: #6b7280;
    line-height: 1.7;
}

.gm-order-result-hero__subtitle strong {
    color: #15803d;
}

.gm-order-result-notice {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.7;
}

.gm-order-result-notice p {
    margin: 0.35rem 0 0;
}

.gm-order-result-notice--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.gm-order-result-notice--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.gm-order-result-details,
.gm-order-result-timeline,
.gm-order-result-pay {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.gm-order-result-details__title,
.gm-order-result-timeline__title,
.gm-order-result-pay .gm-checkout-section__title {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
}

.gm-order-result-details__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.gm-order-result-details__item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    min-width: 0;
}

.gm-order-result-details__item--full {
    grid-column: 1 / -1;
}

.gm-order-result-details__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
}

.gm-order-result-details__label i {
    color: var(--gm-green);
    font-size: 0.78rem;
}

.gm-order-result-details__value {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.55;
    word-break: break-word;
}

.gm-order-result-details__value--ltr {
    direction: ltr;
    text-align: right;
}

.gm-order-result-details__value--price small {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
}

.gm-order-result-details__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.gm-order-result-details__badge--success {
    background: #ecfdf5;
    color: #15803d;
}

.gm-order-result-details__badge--warning {
    background: #fffbeb;
    color: #b45309;
}

.gm-order-result-details__badge--danger {
    background: #fef2f2;
    color: #b91c1c;
}

.gm-order-result-details__badge--info {
    background: #eff6ff;
    color: #1d4ed8;
}

.gm-order-result-details__badge--neutral {
    background: #f3f4f6;
    color: #4b5563;
}

.gm-order-result-timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gm-order-result-timeline__step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    position: relative;
}

.gm-order-result-timeline__step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 2.5rem;
    bottom: -0.25rem;
    width: 2px;
    background: #e5e7eb;
}

.gm-order-result-timeline__step.is-done:not(:last-child)::after {
    background: #bbf7d0;
}

.gm-order-result-timeline__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    background: #f3f4f6;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.gm-order-result-timeline__step.is-done .gm-order-result-timeline__dot {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.gm-order-result-timeline__step.is-current .gm-order-result-timeline__dot {
    background: #fff;
    border-color: #16a34a;
    color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.gm-order-result-timeline__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.15rem;
}

.gm-order-result-timeline__content strong {
    font-size: 0.84rem;
    color: #111827;
}

.gm-order-result-timeline__content span {
    font-size: 0.76rem;
    color: #6b7280;
    line-height: 1.6;
}

.gm-order-result-pay__lead {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
}

.gm-order-result-pay .checkout-paymethod {
    margin-bottom: 0.85rem;
}

.gm-order-result-pay__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 12px;
    background: var(--gm-green);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.22);
}

.gm-order-result-pay__submit:hover {
    background: #15803d;
}

.gm-order-result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.gm-order-result-actions__primary,
.gm-order-result-actions__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gm-order-result-actions__primary {
    background: var(--gm-green);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.gm-order-result-actions__primary:hover {
    background: #15803d;
    color: #fff !important;
}

.gm-order-result-actions__secondary {
    background: #fff;
    color: #374151 !important;
    border: 1px solid #e5e7eb;
}

.gm-order-result-actions__secondary:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.gm-order-result-footnote {
    margin: 0;
    text-align: center;
    font-size: 0.74rem;
    color: #9ca3af;
    line-height: 1.7;
}

.gm-order-result-footnote i {
    color: var(--gm-green);
    margin-left: 0.25rem;
}

@media (max-width: 767.98px) {
    .gm-order-result-page {
        padding: 0.85rem 0 1.75rem;
    }

    .gm-order-result-layout {
        gap: 0.75rem;
    }

    .gm-order-result-hero {
        padding: 1.35rem 1rem 1.15rem;
        border-radius: 12px;
    }

    .gm-order-result-details__grid {
        grid-template-columns: 1fr;
    }

    .gm-order-result-actions {
        grid-template-columns: 1fr;
    }

    .gm-order-result-details,
    .gm-order-result-timeline,
    .gm-order-result-pay {
        border-radius: 12px;
        padding: 0.95rem;
    }
}

