/* —— Store design themes —— */
.store-theme--market-flow {
    --store-design-card-radius: 0.35rem;
    --store-design-section-gap: 1rem;
}

.store-theme--orange-grid {
    --store-design-card-radius: 0.7rem;
    --store-design-section-gap: 1.2rem;
    --store-topbar-surface: color-mix(in srgb, var(--color-primary, #ff6000) 2.5%, #ffffff);
    --store-menu-surface: var(--color-page-bg, #f9fafb);
    --store-menu-border: color-mix(in srgb, var(--color-primary, #ff6000) 5%, var(--color-border, #e5e7eb));
    --store-search-surface: var(--color-card-bg, #ffffff);
    --store-search-surface-muted: color-mix(in srgb, var(--color-primary, #ff6000) 3.5%, var(--color-page-bg, #f9fafb));
    --store-brand-stripe: linear-gradient(
        90deg,
        var(--color-primary, #ff6000) 0%,
        #5bc2e7 32%,
        #7e5bef 64%,
        #5bd46a 100%
    );
}

.store-theme--coupon-pulse {
    --store-design-card-radius: 0.55rem;
    --store-design-section-gap: 1.35rem;
}

.store-theme--soft-gift {
    --store-design-card-radius: 1.1rem;
    --store-design-section-gap: 1.35rem;
}

.store-theme--mono-fashion {
    --store-design-card-radius: 0.15rem;
    --store-design-section-gap: 2rem;
}

.store-theme--fresh-market {
    --store-design-card-radius: 1.25rem;
    --store-design-section-gap: 1.5rem;
}

.store-theme--gourmet-dark {
    --store-design-card-radius: 0.2rem;
    --store-design-section-gap: 1.6rem;
}

.store-app[class*="store-theme--"] .store-section {
    margin-block: var(--store-design-section-gap, 1rem);
}

.store-app[class*="store-theme--"] .store-product-card,
.store-app[class*="store-theme--"] .store-banner-slider__viewport,
.store-app[class*="store-theme--"] .store-banner-slider__media,
.store-app[class*="store-theme--"] .store-banner-slider__image {
    border-radius: var(--store-design-card-radius, var(--radius-card, 0.75rem));
}

.store-theme--orange-grid .store-header,
.store-theme--coupon-pulse .store-header {
    border-bottom-width: 0;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
}

.store-theme--market-flow .store-header {
    border-bottom: 0;
    box-shadow: none;
    background: #ffffff;
    backdrop-filter: none;
}

.store-theme--market-flow .store-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ebebeb;
    border-radius: 0.5rem;
    box-shadow: none;
    background: #ffffff;
}

.store-theme--market-flow .store-product-card:hover {
    border-color: #d8d8d8;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transform: none;
}

.store-theme--market-flow .store-product-card__body-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    text-decoration: none;
}

.store-theme--market-flow .store-product-card__media {
    aspect-ratio: 1;
    padding: 0.65rem 0.65rem 0.35rem;
    background: #ffffff;
}

.store-theme--market-flow .store-product-card__media img {
    object-fit: contain;
}

.store-theme--market-flow .store-product-card__discount-badge,
.store-theme--market-flow .store-product-card__bestseller-badge {
    display: none;
}

.store-theme--market-flow .store-product-card__quick-actions {
    top: 0.45rem;
    right: 0.45rem;
    opacity: 1;
}

.store-theme--market-flow .store-product-card__quick-actions .store-icon-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.14);
    color: #666666;
}

.store-theme--market-flow .store-product-card__quick-actions .store-icon-btn.is-active {
    color: #e63737;
    background: #fff5f5;
}

.store-theme--market-flow .store-product-card__quick-actions .store-icon-btn--compare.is-active {
    color: #ffffff !important;
    background: #333333 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
}

.store-theme--market-flow .store-product-card__quick-view {
    bottom: 0.4rem;
    padding: 0.28rem 0.5rem;
    font-size: 0.625rem;
    color: var(--color-primary, #f27a1a);
}

.store-theme--market-flow .store-product-card__body {
    flex: 1;
    padding: 0.35rem 0.7rem 0.5rem;
}

.store-theme--market-flow .store-product-card__title {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    color: #333333;
    -webkit-line-clamp: 2;
}

.store-theme--market-flow .store-product-card__brand {
    font-weight: 700;
    color: #333333;
}

.store-theme--market-flow .store-product-card:hover .store-product-card__title,
.store-theme--market-flow .store-product-card:hover .store-product-card__brand {
    color: #333333;
}

.store-theme--market-flow .store-product-card__body .store-product-card__price-row {
    margin-top: 0.45rem;
    gap: 0.3rem;
}

.store-theme--market-flow .store-product-card__discount-chip {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 0.2rem;
    background: #fff1f1;
    padding: 0.1rem 0.3rem;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.2;
    color: #e63737;
}

.store-theme--market-flow .store-product-card__body .store-price {
    gap: 0.35rem;
    min-width: 0;
}

.store-theme--market-flow .store-product-card__body .store-price__current {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #333333 !important;
}

.store-theme--market-flow .store-product-card__body .store-product-card__price-row:has(.store-product-card__discount-chip) .store-price__current {
    color: #e63737 !important;
}

.store-theme--market-flow .store-product-card__body .store-price__old {
    font-size: 0.75rem;
    color: #999999;
}

.store-theme--market-flow .store-product-card__rating {
    margin-top: 0.3rem;
    font-size: 0.6875rem;
}

.store-theme--market-flow .store-product-card__rating-stars {
    color: #ffc107;
}

.store-theme--market-flow .store-product-card__rating-value {
    color: #666666;
    font-weight: 700;
}

.store-theme--market-flow .store-product-card__rating-count {
    color: #999999;
}

.store-theme--market-flow .store-product-card__foot {
    display: block;
    margin-top: auto;
    border-top: 0;
    padding: 0 0.7rem 0.7rem;
}

.store-theme--market-flow .store-product-card__foot .store-product-card__icon-btn {
    display: none;
}

.store-theme--market-flow .store-product-card__cart-btn {
    width: 100%;
    min-height: 2rem;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--color-primary, #f27a1a);
    border-radius: 0.35rem;
    background: #ffffff !important;
    color: var(--color-primary, #f27a1a) !important;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-theme--market-flow .store-product-card__cart-btn:hover:not(:disabled) {
    transform: none;
    border-color: var(--color-primary, #f27a1a) !important;
    background: var(--color-primary, #f27a1a) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(242, 122, 26, 0.28);
}

.store-theme--market-flow .store-product-card__cart-btn-icon {
    display: none;
}

.store-theme--market-flow .store-product-card__cart-btn span:not(.store-product-card__cart-btn-loading) {
    display: inline !important;
}

.store-theme--market-flow .store-product-card--showcase {
    border-radius: 0.5rem;
    box-shadow: none;
}

.store-theme--market-flow .store-product-card--showcase .store-product-card__body {
    padding: 0.35rem 0.7rem 0.5rem;
}

.store-theme--market-flow .store-product-card--showcase .store-product-card__foot {
    padding: 0 0.7rem 0.7rem;
}

.store-theme--market-flow .store-home-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.75rem 1rem 1.5rem;
    overflow: visible;
}

.store-theme--market-flow .store-home-product-module {
    max-width: 80rem;
    margin-inline: auto;
    padding: 1.1rem 1rem 1.25rem;
    border: 1px solid #ebebeb;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, #f3f3f3 0%, #fafafa 38%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    overflow: visible;
    position: relative;
}

.store-theme--market-flow .store-home-product-module .store-product-rail {
    overflow: visible;
}

.store-product-rail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-product-rail__see-all {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.store-product-rail__see-all:hover {
    color: var(--color-primary, #f97316);
}

.store-theme--market-flow .store-home-product-module .store-product-rail__head {
    margin-bottom: 0.85rem;
    gap: 0.75rem;
}

.store-theme--market-flow .store-home-product-module .store-product-rail__see-all {
    color: #666666;
    font-size: 0.8125rem;
    font-weight: 500;
}

.store-theme--market-flow .store-home-product-module .store-product-rail__see-all:hover {
    color: var(--color-primary, #f27a1a);
}

.store-theme--market-flow .store-home-product-module .store-section__title {
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #333333;
    letter-spacing: -0.01em;
}

.store-theme--market-flow .store-home-product-module .store-product-rail__track {
    gap: 0.75rem;
    padding-bottom: 0.15rem;
}

.store-theme--market-flow .store-home-product-module .store-product-rail__arrow {
    border-color: #e8e8e8;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.store-theme--market-flow .store-home-product-module .store-product-rail__arrow--edge {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid #d6d6d6 !important;
    background: #ffffff !important;
    color: #333333 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-theme--market-flow .store-home-product-module .store-product-rail__arrow--edge:hover:not(:disabled) {
    border-color: #333333 !important;
    background: #333333 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}

.store-theme--market-flow .store-home-product-module .store-product-rail__viewport {
    padding-inline: 0;
    overflow: visible;
}

.store-theme--market-flow .store-home-product-module .store-product-rail__arrow--prev {
    left: -1.15rem;
}

.store-theme--market-flow .store-home-product-module .store-product-rail__arrow--next {
    right: -1.15rem;
}

.store-theme--market-flow .store-home-product-module .store-product-rail__dots {
    margin-top: 0.65rem;
}

.store-theme--market-flow .store-product-rail__dot.is-active,
.store-theme--market-flow .store-home-product-module .store-product-rail__dot.is-active {
    width: 1.35rem;
    background: var(--color-primary, #f27a1a);
}

.store-theme--orange-grid .store-search-input:not(.store-search-input--modern) {
    border-color: #ff6000;
    box-shadow: 0 0 0 3px rgba(255, 96, 0, 0.08);
}

.store-theme--orange-grid .store-banner-slider__shell {
    padding: 0.35rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, rgba(255, 96, 0, 0.14), rgba(255, 255, 255, 0));
}

.store-theme--coupon-pulse .store-banner-slider__shell,
.store-theme--soft-gift .store-banner-slider__shell {
    padding: 0.55rem;
    border-radius: 1.1rem;
    background: color-mix(in srgb, var(--color-primary, #f97316) 12%, #fff);
}

.store-theme--mono-fashion {
    background: #fff;
}

.store-theme--mono-fashion .store-header {
    position: relative;
    background: #fff;
    box-shadow: none;
}

.store-theme--mono-fashion .store-banner-slider__shell {
    max-width: 72rem;
    margin-inline: auto;
}

.store-theme--mono-fashion .store-banner-slider__media,
.store-theme--mono-fashion .store-banner-slider__image {
    border-radius: 0;
}

.store-theme--mono-fashion .store-product-card {
    border: 0;
    box-shadow: none;
}

.store-theme--mono-fashion .store-product-card__body {
    padding-inline: 0;
}

.store-theme--fresh-market .store-header {
    background: rgba(250, 255, 250, 0.94);
}

.store-theme--fresh-market .store-product-card {
    border-color: rgba(87, 189, 104, 0.22);
    box-shadow: 0 12px 30px rgba(87, 189, 104, 0.08);
}

.store-theme--fresh-market .store-banner-slider__shell {
    padding: 0.5rem;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, rgba(87, 189, 104, 0.14), rgba(255, 255, 255, 0));
}

.store-theme--gourmet-dark {
    background: #111;
    color: #f8fafc;
}

.store-theme--gourmet-dark main {
    background: #111;
}

.store-theme--gourmet-dark .store-header {
    background: rgba(17, 17, 17, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
}

.store-theme--gourmet-dark .store-product-card,
.store-theme--gourmet-dark .store-section,
.store-theme--gourmet-dark .store-banner-slider__shell {
    color: #111827;
}

.store-theme--gourmet-dark .store-banner-slider__shell {
    padding: 0.4rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
}

.store-theme--market-flow .store-stories__ring {
    border-radius: 999px;
}

.store-theme--orange-grid .store-stories__ring,
.store-theme--coupon-pulse .store-stories__ring {
    border-radius: 1rem;
}

.store-theme--soft-gift .store-stories__ring {
    min-width: 5rem;
    border-radius: 999px;
}

.store-theme--mono-fashion .store-stories__ring,
.store-theme--gourmet-dark .store-stories__ring {
    border-radius: 0.25rem;
}

.store-theme--fresh-market .store-stories__ring {
    border-radius: 999px 999px 999px 0.45rem;
}

.store-theme--orange-grid .store-stories__cover,
.store-theme--coupon-pulse .store-stories__cover {
    border-radius: 0.8rem;
}

.store-theme--soft-gift .store-stories__cover {
    width: 5rem;
    border-radius: 999px;
}

.store-theme--mono-fashion .store-stories__cover,
.store-theme--gourmet-dark .store-stories__cover {
    border-radius: 0.1rem;
}

.store-theme--fresh-market .store-stories__cover {
    border-radius: 999px 999px 999px 0.35rem;
}

.store-theme--mono-fashion .store-stories {
    padding-block: 1.25rem;
}

.store-theme--gourmet-dark .store-stories__label,
.store-theme--gourmet-dark .store-section__title {
    color: #f8fafc;
}


/* —— Strong storefront template differences —— */
.store-app[class*="store-theme--"] .store-header,
.store-app[class*="store-theme--"] .store-category-nav,
.store-app[class*="store-theme--"] .store-footer,
.store-app[class*="store-theme--"] .store-mobile-nav,
.store-app[class*="store-theme--"] .store-drawer {
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, border-radius 0.2s ease;
}

.store-app[class*="store-theme--"] .store-section__title {
    letter-spacing: -0.025em;
}

.store-app[class*="store-theme--"] .store-search-submit,
.store-app[class*="store-theme--"] .store-btn-primary,
.store-app[class*="store-theme--"] .store-product-card__cart-btn {
    border-radius: var(--store-design-button-radius, 999px);
}

.store-app[class*="store-theme--"] .store-mobile-nav {
    box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.12);
}

/* Market Flow: Trendyol-style marketplace */
.store-theme--market-flow {
    --store-design-button-radius: 0.35rem;
    --store-topbar-surface: #ffffff;
    --store-menu-border: #ebebeb;
    --store-search-surface: #f3f3f3;
    --store-search-surface-muted: #f8f8f8;
    --color-page-bg: #ffffff;
}

.store-theme--market-flow .store-header__topbar {
    border-bottom: 0;
    background: var(--store-topbar-surface);
}

.store-theme--market-flow .store-header__topbar-inner {
    gap: 0.65rem !important;
    min-height: 1.7rem;
    padding-top: 0.3rem;
    padding-bottom: 0.15rem;
}

.store-theme--market-flow .store-header__toplink {
    color: #9b9b9b;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.store-theme--market-flow .store-header__toplink:hover {
    color: var(--color-primary, #f27a1a);
    transform: none;
    text-decoration: none !important;
}

.store-theme--market-flow .store-header__bar {
    padding: 0.85rem 1rem 0.65rem;
}

.store-theme--market-flow .store-header__inner {
    gap: 1.5rem;
}

.store-theme--market-flow .store-header__search {
    max-width: none;
}

.store-theme--market-flow .store-search-input--modern,
.store-theme--market-flow .store-search--modern .store-search-input {
    border: 0 !important;
    border-radius: 0.45rem !important;
    background: var(--store-search-surface) !important;
    box-shadow: none !important;
    padding: 0.8rem 3rem 0.8rem 2.75rem;
    font-size: 0.875rem;
    color: #333333;
}

.store-theme--market-flow .store-search-input--modern:focus,
.store-theme--market-flow .store-search--modern .store-search-input:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #f27a1a) 28%, transparent) !important;
    background: #ffffff !important;
}

.store-theme--market-flow .store-search__icon-wrap {
    left: 0.85rem;
    width: 1.5rem;
    height: 1.5rem;
    background: transparent;
    color: var(--color-primary, #f27a1a);
}

.store-theme--market-flow .store-header__actions {
    gap: 1.1rem !important;
}

.store-theme--market-flow .store-icon-link,
.store-theme--market-flow .store-mini-cart__desktop-button,
.store-theme--market-flow .store-mini-cart__mobile-link {
    flex-direction: column;
    gap: 0.2rem;
    min-width: 3.35rem;
    padding: 0.15rem 0.25rem;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    color: #333333 !important;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
}

.store-theme--market-flow .store-icon-link svg,
.store-theme--market-flow .store-mini-cart__desktop-button svg,
.store-theme--market-flow .store-mini-cart__mobile-link svg {
    width: 1.35rem;
    height: 1.35rem;
}

.store-theme--market-flow .store-icon-link__label {
    display: inline !important;
    line-height: 1.1;
    max-width: 4.5rem;
}

.store-theme--market-flow .store-icon-link:hover,
.store-theme--market-flow .store-mini-cart__desktop-button:hover,
.store-theme--market-flow .store-mini-cart__mobile-link:hover {
    background: transparent !important;
    color: var(--color-primary, #f27a1a) !important;
    transform: none;
}

.store-theme--market-flow .store-icon-link:hover svg,
.store-theme--market-flow .store-mini-cart__desktop-button:hover svg,
.store-theme--market-flow .store-mini-cart__mobile-link:hover svg {
    transform: none;
}

.store-theme--market-flow .store-currency-switcher {
    min-height: 2rem;
    border: 1px solid #e6e6e6 !important;
    border-radius: 0.35rem !important;
    background: #ffffff !important;
    box-shadow: none;
    font-size: 0.75rem;
    font-weight: 700;
}

.store-theme--market-flow .store-category-nav--with-menu {
    border-top: 0;
    border-bottom: 1px solid var(--store-menu-border);
    background: #ffffff;
    position: relative;
}

.store-theme--market-flow .store-category-nav--with-menu .store-category-nav__inner {
    min-height: 2.75rem;
    align-items: stretch !important;
    gap: 0.1rem;
    padding-inline: 1rem;
}

.store-theme--market-flow .store-category-nav {
    background: #ffffff;
    border-top: 0;
    border-bottom: 1px solid var(--store-menu-border);
}

.store-theme--market-flow .store-category-nav--with-menu .store-category-trigger {
    margin: 0 0.65rem 0 0;
    padding: 0.55rem 0.85rem 0.55rem 0;
    border-right: 1px solid var(--store-menu-border);
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    color: #333333 !important;
    font-size: 0.8125rem;
    font-weight: 700;
}

.store-theme--market-flow .store-category-trigger:hover {
    transform: none;
    filter: none;
    color: var(--color-primary, #f27a1a) !important;
}

.store-theme--market-flow .store-category-nav--with-menu .store-nav-link {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0.75rem 0.55rem;
    border-top: 0 !important;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    box-shadow: none;
}

.store-theme--market-flow .store-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    border-radius: 0;
    border-top: 0 !important;
    padding: 0.75rem 0.55rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: transparent !important;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #333333 !important;
    box-shadow: none;
}

.store-theme--market-flow .store-category-nav--with-menu .store-nav-item {
    display: flex;
    align-items: stretch;
}

.store-theme--market-flow .store-nav-link:hover,
.store-theme--market-flow .store-category-nav--with-menu .store-nav-link:hover {
    background: transparent !important;
    color: var(--color-primary, #f27a1a) !important;
    border-bottom-color: var(--color-primary, #f27a1a);
}

.store-theme--market-flow .store-nav-link.is-active,
.store-theme--market-flow .store-category-nav--with-menu .store-nav-link.is-active {
    background: transparent !important;
    color: var(--color-primary, #f27a1a) !important;
    border-bottom-color: var(--color-primary, #f27a1a);
}

.store-theme--market-flow .store-nav-link:hover::after,
.store-theme--market-flow .store-nav-link.is-active::after {
    content: none;
    display: none;
}

.store-theme--market-flow .store-category-mega {
    top: calc(100% - 1px) !important;
    left: 0;
    right: 0;
    padding: 0 1rem !important;
    background: transparent !important;
    box-shadow: none;
    pointer-events: none;
}

.store-theme--market-flow .store-category-mega__shell {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    border: 1px solid #ebebeb;
    border-top: 0;
    border-radius: 0 0 0.35rem 0.35rem !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
    min-height: 22rem;
    max-height: min(32rem, calc(100vh - 10rem));
    grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr);
}

.store-theme--market-flow .store-category-mega__roots {
    background: #ffffff !important;
    border-right: 1px solid #f0f0f0;
    padding: 0.45rem 0;
}

.store-theme--market-flow .store-category-mega__root {
    gap: 0.55rem;
    border-radius: 0.45rem;
    margin: 0 0.35rem 0 0;
    padding: 0.65rem 0.85rem;
    color: #333333;
    font-size: 0.8125rem;
    font-weight: 600;
    background: transparent;
}

.store-theme--market-flow .store-category-mega__root > svg:last-of-type:not(:only-of-type) {
    display: none;
}

.store-theme--market-flow .store-category-mega__root::after {
    content: "›";
    margin-left: auto;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 400;
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.store-theme--market-flow .store-category-mega__root:hover::after,
.store-theme--market-flow .store-category-mega__root.is-active::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-primary, #f27a1a);
}

.store-theme--market-flow .store-category-mega__root svg {
    width: 1rem;
    height: 1rem;
    color: #9b9b9b;
    flex-shrink: 0;
}

.store-theme--market-flow .store-category-mega__root:hover,
.store-theme--market-flow .store-category-mega__root.is-active {
    background: color-mix(in srgb, var(--color-primary, #f27a1a) 11%, #ffffff) !important;
    color: var(--color-primary, #f27a1a) !important;
}

.store-theme--market-flow .store-category-mega__root:hover svg,
.store-theme--market-flow .store-category-mega__root.is-active svg {
    color: var(--color-primary, #f27a1a);
}

.store-theme--market-flow .store-category-mega__content {
    padding: 1rem 1.5rem 1.25rem;
    background: #ffffff !important;
}

.store-theme--market-flow .store-category-mega__head {
    display: none;
}

.store-theme--market-flow .store-category-mega__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem 1.35rem;
    padding-top: 0;
}

.store-theme--market-flow .store-category-branch > .store-category-branch__link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--color-primary, #f27a1a) !important;
    font-size: 0.8125rem;
    font-weight: 700;
}

.store-theme--market-flow .store-category-branch > .store-category-branch__link::after {
    content: "›";
    font-size: 0.9rem;
    line-height: 1;
}

.store-theme--market-flow .store-category-branch__children {
    margin-top: 0.55rem;
    padding-left: 0;
    gap: 0.42rem;
}

.store-theme--market-flow .store-category-branch__children .store-category-branch__link {
    color: #333333 !important;
    font-size: 0.8125rem;
    font-weight: 500;
}

.store-theme--market-flow .store-category-branch__children .store-category-branch__link:hover {
    color: var(--color-primary, #f27a1a) !important;
}

.store-theme--market-flow .store-footer {
    background: #111827;
}

.store-theme--market-flow .store-mobile-nav {
    border-radius: 0;
    background: #ffffff;
    border-top: 1px solid #ebebeb;
    box-shadow: none;
}

/* Orange Grid: wide orange commerce */
.store-theme--orange-grid {
    --store-design-button-radius: 0.45rem;
    --store-header-control-radius: 0.45rem;
}

.store-theme--orange-grid .store-announcement {
    background: linear-gradient(90deg, #ff6000, #fb923c);
    color: #fff;
}

.store-theme--orange-grid .store-search-submit {
    background: #111827;
}

.store-theme--orange-grid .store-section__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 96, 0, 0.1);
}

.store-theme--orange-grid .store-footer {
    background: linear-gradient(135deg, #111827, #2d1b10);
}

.store-theme--orange-grid .store-mobile-nav {
    background: #ff6000;
}

.store-theme--orange-grid .store-mobile-nav__link,
.store-theme--orange-grid .store-mobile-nav__link.is-active,
.store-theme--orange-grid .store-mobile-nav__link:hover {
    color: #fff;
}

/* Coupon Pulse: promotion blocks */
.store-theme--coupon-pulse {
    --store-design-button-radius: 0.6rem;
}

.store-theme--coupon-pulse .store-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.store-theme--coupon-pulse .store-category-nav {
    background: #f5f3ff;
    border-block: 1px solid #ddd6fe;
}

.store-theme--coupon-pulse .store-nav-link {
    margin-block: 0.35rem;
    border: 1px dashed #c4b5fd;
    border-radius: 0.65rem;
    background: #fff;
    font-weight: 700;
}

.store-theme--coupon-pulse .store-search-input {
    border-style: dashed;
    border-color: #8b5cf6;
    background: #fff;
}

.store-theme--coupon-pulse .store-section__title {
    padding-left: 0.8rem;
    border-left: 5px solid #8b5cf6;
}

.store-theme--coupon-pulse .store-product-card {
    border-style: dashed;
}

.store-theme--coupon-pulse .store-footer {
    background: #2e1065;
}

.store-theme--coupon-pulse .store-mobile-nav {
    background: #f5f3ff;
    border-top: 2px dashed #c4b5fd;
}

/* Soft Gift: friendly rounded gift shop */
.store-theme--soft-gift {
    --store-design-button-radius: 999px;
}

.store-theme--soft-gift .store-header {
    background: linear-gradient(180deg, #fff7fb, #ffffff);
}

.store-theme--soft-gift .store-category-nav {
    background: #fdf2f8;
    border-color: #fbcfe8;
}

.store-theme--soft-gift .store-nav-link {
    border-radius: 999px;
    color: #9d174d;
    font-weight: 700;
}

.store-theme--soft-gift .store-nav-link:hover {
    background: #fce7f3;
    color: #831843;
}

.store-theme--soft-gift .store-search-input {
    border-color: #f9a8d4;
    background: #fffafd;
}

.store-theme--soft-gift .store-product-card,
.store-theme--soft-gift .store-category-tile {
    box-shadow: 0 14px 34px rgba(236, 72, 153, 0.09);
}

.store-theme--soft-gift .store-footer {
    background: linear-gradient(135deg, #831843, #be185d);
}

.store-theme--soft-gift .store-mobile-nav {
    border-radius: 1.4rem 1.4rem 0 0;
    background: #fff7fb;
}

/* Mono Fashion: editorial minimal */
.store-theme--mono-fashion {
    --store-design-button-radius: 0;
}

.store-theme--mono-fashion .store-announcement {
    background: #111;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.store-theme--mono-fashion .store-header {
    border-bottom: 1px solid #111;
}

.store-theme--mono-fashion .store-category-nav {
    background: #fff;
    border-block: 1px solid #111;
}

.store-theme--mono-fashion .store-nav-link {
    border-radius: 0;
    color: #111;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.store-theme--mono-fashion .store-search-input {
    border: 1px solid #111;
    border-radius: 0;
}

.store-theme--mono-fashion .store-search-submit {
    border-radius: 0;
    background: #111;
}

.store-theme--mono-fashion .store-section__title {
    font-family: Georgia, serif;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 500;
}

.store-theme--mono-fashion .store-footer {
    background: #050505;
}

.store-theme--mono-fashion .store-mobile-nav {
    background: #111;
}

.store-theme--mono-fashion .store-mobile-nav__link,
.store-theme--mono-fashion .store-mobile-nav__link.is-active,
.store-theme--mono-fashion .store-mobile-nav__link:hover {
    color: #fff;
}

/* Fresh Market: grocery airy */
.store-theme--fresh-market {
    --store-design-button-radius: 1rem;
}

.store-theme--fresh-market .store-announcement {
    background: linear-gradient(90deg, #166534, #57bd68);
}

.store-theme--fresh-market .store-header {
    border-bottom: 1px solid rgba(87, 189, 104, 0.22);
    box-shadow: 0 10px 30px rgba(87, 189, 104, 0.08);
}

.store-theme--fresh-market .store-category-nav {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.store-theme--fresh-market .store-nav-link {
    border-radius: 999px 999px 999px 0.45rem;
    color: #166534;
    font-weight: 700;
}

.store-theme--fresh-market .store-nav-link:hover {
    background: #dcfce7;
}

.store-theme--fresh-market .store-search-input {
    border-color: #86efac;
    background: #fbfffc;
}

.store-theme--fresh-market .store-search-submit {
    background: #16a34a;
}

.store-theme--fresh-market .store-section__title {
    color: #14532d;
}

.store-theme--fresh-market .store-footer {
    background: linear-gradient(135deg, #052e16, #166534);
}

.store-theme--fresh-market .store-mobile-nav {
    background: #f0fdf4;
    border-top-color: #bbf7d0;
}

/* Gourmet Dark: restaurant premium */
.store-theme--gourmet-dark {
    --store-design-button-radius: 0.25rem;
}

.store-theme--gourmet-dark .store-announcement {
    background: #000;
    color: #f8fafc;
}

.store-theme--gourmet-dark .store-category-nav {
    background: #111;
    border-color: rgba(255, 255, 255, 0.12);
}

.store-theme--gourmet-dark .store-nav-link {
    color: #f8fafc;
    font-family: Georgia, serif;
    font-size: 0.92rem;
}

.store-theme--gourmet-dark .store-nav-link:hover {
    color: #facc15;
}

.store-theme--gourmet-dark .store-search-input {
    border-color: rgba(250, 204, 21, 0.45);
    background: #1f1f1f;
    color: #fff;
}

.store-theme--gourmet-dark .store-search-submit {
    background: #b7791f;
}

.store-theme--gourmet-dark .store-footer {
    background: #050505;
    border-top-color: rgba(250, 204, 21, 0.24);
}

.store-theme--gourmet-dark .store-mobile-nav {
    background: #111;
    border-top-color: rgba(250, 204, 21, 0.24);
}

.store-theme--gourmet-dark .store-mobile-nav__link,
.store-theme--gourmet-dark .store-mobile-nav__link.is-active,
.store-theme--gourmet-dark .store-mobile-nav__link:hover {
    color: #f8fafc;
}

.store-theme--gourmet-dark .store-drawer {
    background: #111;
    color: #f8fafc;
}


/* —— Deep template differentiation: header, search, prices, arrows —— */
.store-app[class*="store-theme--"] .store-header__logo .store-brand,
.store-app[class*="store-theme--"] .store-header__logo img {
    transition: max-width 0.2s ease, height 0.2s ease, transform 0.2s ease;
}

.store-app[class*="store-theme--"] .store-banner-slider__nav,
.store-app[class*="store-theme--"] .store-product-rail__arrow,
.store-app[class*="store-theme--"] .store-category-rail__arrow,
.store-app[class*="store-theme--"] .store-stories__nav {
    border-radius: var(--store-design-arrow-radius, 999px);
    background: var(--store-design-arrow-bg, #fff);
    color: var(--store-design-arrow-color, #0f172a);
    border: var(--store-design-arrow-border, 1px solid #e2e8f0);
    box-shadow: var(--store-design-arrow-shadow, 0 10px 24px rgba(15, 23, 42, 0.12));
}

.store-app[class*="store-theme--"] .store-search-panel {
    border-radius: var(--store-design-panel-radius, 1rem);
    border: var(--store-design-panel-border, 1px solid #e8ecf4);
}

.store-app[class*="store-theme--"] .store-icon-link,
.store-app[class*="store-theme--"] .store-currency-switcher,
.store-app[class*="store-theme--"] .store-mini-cart > a {
    border-radius: var(--store-design-icon-radius, 0.75rem);
}

.store-app[class*="store-theme--"] .store-product-card__discount-badge {
    border-radius: var(--store-design-badge-radius, 0.55rem);
    background: var(--store-design-badge-bg, #ef4444);
}

.store-app[class*="store-theme--"] .store-price {
    align-items: var(--store-design-price-align, baseline);
}

.store-app[class*="store-theme--"] .store-price__current {
    font-size: var(--store-design-price-size, 1.125rem);
    color: var(--store-design-price-color, var(--color-primary, #f97316)) !important;
}

.store-app[class*="store-theme--"] .store-product-card__cart-btn {
    background: var(--store-design-cart-bg, var(--color-primary, #f97316));
    color: var(--store-design-cart-color, #fff);
    box-shadow: var(--store-design-cart-shadow, none);
}

/* Market Flow */
.store-theme--market-flow {
    --store-design-arrow-radius: 50%;
    --store-design-arrow-bg: #ffffff;
    --store-design-arrow-color: #111827;
    --store-design-icon-radius: 0.5rem;
    --store-design-panel-radius: 0.75rem;
    --store-design-badge-bg: #f27a1a;
    --store-design-price-size: 1rem;
    --store-design-cart-bg: #ffffff;
    --store-design-cart-color: #f27a1a;
}

.store-theme--market-flow .store-header__logo .store-brand {
    max-width: 10.5rem;
}

.store-theme--market-flow .store-header__actions {
    gap: 1.1rem !important;
}

/* Orange Grid */
.store-theme--orange-grid {
    --store-design-arrow-radius: 0.85rem;
    --store-design-arrow-bg: #ff6000;
    --store-design-arrow-color: #fff;
    --store-design-arrow-border: 0;
    --store-design-icon-radius: 0.55rem;
    --store-design-badge-bg: #111827;
    --store-design-price-size: 1.2rem;
    --store-design-cart-bg: #111827;
    --store-design-cart-shadow: 0 12px 28px rgba(17, 24, 39, 0.22);
}

.store-theme--orange-grid .store-header {
    border-bottom: 0;
}

.store-theme--orange-grid .store-header__bar {
    position: relative;
    padding-bottom: 0.65rem;
}

.store-theme--orange-grid .store-header__bar::after {
    display: none;
}

.store-theme--orange-grid .store-header__logo .store-brand {
    max-width: 8.5rem;
}

.store-theme--orange-grid .store-currency-switcher,
.store-theme--orange-grid .store-icon-link {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

/* Orange Grid ürün kartı + modül stilleri vite (store-theme.css) içinde */

/* Coupon Pulse */
.store-theme--coupon-pulse {
    --store-design-arrow-radius: 0.35rem;
    --store-design-arrow-bg: #5b2be0;
    --store-design-arrow-color: #fff;
    --store-design-arrow-border: 2px dashed #c4b5fd;
    --store-design-icon-radius: 0.55rem;
    --store-design-badge-bg: #5b2be0;
    --store-design-price-size: 1.05rem;
    --store-design-cart-bg: #5b2be0;
}

.store-theme--coupon-pulse .store-header__logo .store-brand {
    max-width: 7.8rem;
}

.store-theme--coupon-pulse .store-header__actions {
    padding: 0.25rem;
    border: 1px dashed #c4b5fd;
    border-radius: 0.8rem;
    background: #fff;
}

.store-theme--coupon-pulse .store-price {
    padding: 0.35rem 0.5rem;
    border: 1px dashed #c4b5fd;
    border-radius: 0.6rem;
    background: #faf5ff;
}

.store-theme--coupon-pulse .store-price::before {
    content: "Fırsat";
    margin-right: 0.2rem;
    color: #5b2be0;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Soft Gift */
.store-theme--soft-gift {
    --store-design-arrow-radius: 999px;
    --store-design-arrow-bg: #fce7f3;
    --store-design-arrow-color: #9d174d;
    --store-design-arrow-border: 1px solid #fbcfe8;
    --store-design-icon-radius: 999px;
    --store-design-badge-bg: #ec4899;
    --store-design-price-size: 1.18rem;
    --store-design-cart-bg: linear-gradient(135deg, #ec4899, #f97316);
    --store-design-cart-shadow: 0 14px 30px rgba(236, 72, 153, 0.22);
}

.store-theme--soft-gift .store-header__logo .store-brand {
    max-width: 10.5rem;
}

.store-theme--soft-gift .store-header__actions .store-icon-link,
.store-theme--soft-gift .store-currency-switcher {
    background: #fff7fb;
    border: 1px solid #fbcfe8;
}

.store-theme--soft-gift .store-search-submit__text {
    font-size: 0;
}

.store-theme--soft-gift .store-search-submit__text::after {
    content: "⌕";
    font-size: 1rem;
}

/* Mono Fashion */
.store-theme--mono-fashion {
    --store-design-arrow-radius: 0;
    --store-design-arrow-bg: #111;
    --store-design-arrow-color: #fff;
    --store-design-arrow-border: 1px solid #111;
    --store-design-icon-radius: 0;
    --store-design-badge-radius: 0;
    --store-design-badge-bg: #111;
    --store-design-price-size: 1.35rem;
    --store-design-price-color: #111;
    --store-design-cart-bg: #111;
}

.store-theme--mono-fashion .store-header__inner {
    justify-content: center;
}

.store-theme--mono-fashion .store-header__logo .store-brand {
    max-width: 12rem;
    transform: translateY(1px);
}

.store-theme--mono-fashion .store-header__search {
    max-width: 24rem;
    flex: 0 1 24rem;
}

.store-theme--mono-fashion .store-header__actions .store-icon-link,
.store-theme--mono-fashion .store-currency-switcher {
    border: 1px solid #111;
    background: #fff;
}

.store-theme--mono-fashion .store-product-card__cart-btn {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Fresh Market */
.store-theme--fresh-market {
    --store-design-arrow-radius: 999px 999px 999px 0.45rem;
    --store-design-arrow-bg: #dcfce7;
    --store-design-arrow-color: #166534;
    --store-design-arrow-border: 1px solid #bbf7d0;
    --store-design-icon-radius: 999px 999px 999px 0.45rem;
    --store-design-badge-bg: #16a34a;
    --store-design-price-size: 1.22rem;
    --store-design-price-color: #16a34a;
    --store-design-cart-bg: #16a34a;
    --store-design-cart-shadow: 0 12px 26px rgba(22, 163, 74, 0.18);
}

.store-theme--fresh-market .store-header__logo .store-brand {
    max-width: 11rem;
}

.store-theme--fresh-market .store-header__actions .store-icon-link,
.store-theme--fresh-market .store-currency-switcher {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.store-theme--fresh-market .store-product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), transparent 42%);
}

/* Gourmet Dark */
.store-theme--gourmet-dark {
    --store-design-arrow-radius: 0.2rem;
    --store-design-arrow-bg: rgba(0, 0, 0, 0.78);
    --store-design-arrow-color: #facc15;
    --store-design-arrow-border: 1px solid rgba(250, 204, 21, 0.38);
    --store-design-icon-radius: 0.25rem;
    --store-design-badge-bg: #b7791f;
    --store-design-price-size: 1.25rem;
    --store-design-price-color: #b7791f;
    --store-design-cart-bg: #b7791f;
    --store-design-cart-shadow: 0 14px 28px rgba(183, 121, 31, 0.22);
}

.store-theme--gourmet-dark .store-header__logo .store-brand {
    max-width: 10rem;
}

.store-theme--gourmet-dark .store-header__actions .store-icon-link,
.store-theme--gourmet-dark .store-currency-switcher {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(250, 204, 21, 0.24);
    color: #f8fafc;
}

.store-theme--gourmet-dark .store-product-card__cart-btn {
    font-family: Georgia, serif;
}

@media (max-width: 767px) {
    .store-theme--soft-gift .store-header__mobile-search .store-search:focus-within,
    .store-theme--mono-fashion .store-header__mobile-search .store-search:focus-within,
    .store-theme--gourmet-dark .store-header__mobile-search .store-search:focus-within {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: flex;
        align-items: flex-start;
        padding: 5rem 1rem 1rem;
        background: var(--store-design-full-search-bg, rgba(255, 255, 255, 0.98));
    }

    .store-theme--mono-fashion .store-header__mobile-search .store-search:focus-within {
        --store-design-full-search-bg: #fff;
    }

    .store-theme--gourmet-dark .store-header__mobile-search .store-search:focus-within {
        --store-design-full-search-bg: rgba(17, 17, 17, 0.98);
    }

    .store-header__mobile-search .store-search:focus-within .store-search__form,
    .store-header__mobile-search .store-search:focus-within .store-search-panel {
        width: 100%;
        max-width: 38rem;
        margin-inline: auto;
    }

    .store-header__mobile-search .store-search:focus-within .store-search-panel {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 9rem;
        width: auto;
    }

    .store-theme--orange-grid .store-mobile-nav,
    .store-theme--coupon-pulse .store-mobile-nav {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        border-radius: 1.25rem;
    }

    .store-theme--mono-fashion .store-mobile-nav {
        left: 0;
        right: 0;
        bottom: 0;
        border-top: 1px solid #fff;
    }
}


/* —— Marketplace style header refinements —— */
.store-header__topbar {
    border-bottom: 1px solid #eef2f7;
    background: #ffffff;
    font-size: 0.78rem;
}

.store-header__topbar-inner {
    min-height: 2rem;
}

.store-header__toplink {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.16s ease, transform 0.16s ease;
}

.store-header__toplink:hover {
    color: var(--color-primary, #f97316);
    transform: translateY(-1px);
}

.store-category-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: var(--store-design-category-radius, 999px);
    background: var(--store-design-category-bg, linear-gradient(135deg, var(--color-primary, #f97316), color-mix(in srgb, var(--color-primary, #f97316) 76%, #111)));
    color: var(--store-design-category-color, #fff);
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: var(--store-design-category-shadow, 0 12px 26px color-mix(in srgb, var(--color-primary, #f97316) 24%, transparent));
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.store-category-trigger:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.store-category-trigger__icon {
    flex-shrink: 0;
    stroke-width: 2.25;
    opacity: 0.96;
}

.store-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.35rem;
}

.store-search-submit__icon {
    display: block;
}

.store-search-submit__text {
    font-size: 0;
}

.store-currency-switcher {
    min-height: 2.25rem;
    appearance: none;
    border-radius: 999px !important;
    background:
        linear-gradient(45deg, transparent 50%, currentColor 50%) right 0.85rem center / 0.35rem 0.35rem no-repeat,
        linear-gradient(135deg, #fff, #f8fafc) !important;
    padding: 0.45rem 1.65rem 0.45rem 0.75rem !important;
    color: #334155;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.store-icon-link,
.store-mini-cart > a {
    border: 1px solid transparent;
}

.store-icon-link svg,
.store-mini-cart > a svg,
.store-header__toplink svg {
    transition: fill 0.16s ease, color 0.16s ease, stroke-width 0.16s ease, transform 0.16s ease;
}

.store-icon-link:hover,
.store-mini-cart > a:hover {
    border-color: color-mix(in srgb, var(--color-primary, #f97316) 24%, #e2e8f0);
    background: color-mix(in srgb, var(--color-primary, #f97316) 9%, #fff);
    color: var(--color-primary, #f97316) !important;
}

.store-icon-link:hover svg,
.store-mini-cart > a:hover svg,
.store-header__toplink:hover svg {
    fill: currentColor;
    stroke-width: 2.8;
    transform: translateY(-1px) scale(1.04);
}

.store-icon-link--account:hover svg {
    fill: currentColor;
}

.store-icon-link--wishlist:hover svg {
    fill: currentColor;
}

.store-mini-cart > a:hover svg {
    fill: none;
    stroke-width: 3;
}

.store-drawer {
    border-right: 1px solid #e8ecf4;
    box-shadow: 22px 0 60px rgba(15, 23, 42, 0.18);
}

.store-drawer a:hover {
    color: var(--color-primary, #f97316);
}

@media (max-width: 767px) {
    .store-header__topbar {
        display: none;
    }

    .store-category-trigger {
        padding: 0.58rem;
    }

    .store-category-trigger span {
        display: none;
    }
}

/* Theme-specific header polish */
.store-theme--market-flow .store-category-trigger {
    --store-design-category-radius: 0;
    --store-design-category-bg: transparent;
    --store-design-category-color: #333333;
    --store-design-category-shadow: none;
}

.store-theme--orange-grid .store-header__topbar {
    background: var(--store-topbar-surface, #fffdfb);
    border-color: var(--store-menu-border);
}

.store-theme--orange-grid .store-category-trigger {
    --store-design-category-radius: 0;
    --store-design-category-bg: var(--color-primary, #ff6000);
    --store-design-category-color: #fff;
    --store-design-category-shadow: none;
}

.store-theme--coupon-pulse .store-category-trigger {
    --store-design-category-radius: 0.55rem;
    --store-design-category-bg: #5b2be0;
}

.store-theme--soft-gift .store-category-trigger {
    --store-design-category-radius: 999px;
    --store-design-category-bg: linear-gradient(135deg, #ec4899, #f472b6);
}

.store-theme--mono-fashion .store-header__topbar {
    background: #111;
    border-color: #111;
}

.store-theme--mono-fashion .store-header__toplink {
    color: #e5e7eb;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-theme--mono-fashion .store-category-trigger {
    --store-design-category-radius: 0;
    --store-design-category-bg: #111;
    --store-design-category-shadow: none;
    border: 1px solid #111;
}

.store-theme--fresh-market .store-header__topbar {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.store-theme--fresh-market .store-category-trigger {
    --store-design-category-radius: 999px 999px 999px 0.5rem;
    --store-design-category-bg: linear-gradient(135deg, #16a34a, #57bd68);
}

.store-theme--gourmet-dark .store-header__topbar {
    background: #050505;
    border-color: rgba(250, 204, 21, 0.18);
}

.store-theme--gourmet-dark .store-header__toplink {
    color: #d1d5db;
}

.store-theme--gourmet-dark .store-category-trigger {
    --store-design-category-radius: 0.2rem;
    --store-design-category-bg: #b7791f;
    --store-design-category-shadow: 0 14px 28px rgba(183, 121, 31, 0.24);
}


/* —— Menu manager driven header/drawer —— */
.store-header__topitem {
    display: inline-flex;
    align-items: center;
}

.store-header__top-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 55;
    min-width: 12rem;
    overflow: hidden;
    border: 1px solid #e8ecf4;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.store-header__top-dropdown a {
    display: block;
    padding: 0.7rem 0.85rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.store-header__top-dropdown a:hover {
    background: #f8fafc;
    color: var(--color-primary, #f97316);
}

.store-category-nav--trigger-only {
    padding-block: 0.45rem;
}

.store-category-nav--trigger-only .store-category-trigger {
    padding-inline: 0.85rem 1rem;
}

.store-drawer__section + .store-drawer__section {
    margin-top: 1.25rem;
    border-top: 1px solid #eef2f7;
    padding-top: 1rem;
}

.store-drawer__title {
    margin-bottom: 0.45rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.8rem 0.25rem;
    color: #334155;
    font-weight: 800;
    text-decoration: none;
}

.store-drawer__link:hover {
    color: var(--color-primary, #f97316);
}

.store-drawer__link--child {
    padding-left: calc(1rem + (var(--menu-depth, 2) - 2) * 0.75rem);
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 700;
}

.store-theme--gourmet-dark .store-header__top-dropdown,
.store-theme--gourmet-dark .store-drawer {
    background: #111;
    border-color: rgba(250, 204, 21, 0.2);
}

.store-theme--gourmet-dark .store-header__top-dropdown a,
.store-theme--gourmet-dark .store-drawer__link {
    color: #f8fafc;
}

.store-theme--gourmet-dark .store-drawer__section + .store-drawer__section,
.store-theme--gourmet-dark .store-drawer__link {
    border-color: rgba(255, 255, 255, 0.1);
}


/* —— Header menu beside categories —— */
.store-category-nav--with-menu {
    display: none;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

@media (min-width: 768px) {
    .store-category-nav--with-menu {
        display: block;
    }
}

.store-category-nav--with-menu .store-category-nav__inner {
    min-height: 3.15rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.store-category-nav--with-menu .store-category-nav__inner::-webkit-scrollbar {
    display: none;
}

.store-category-nav--with-menu .store-category-trigger {
    flex: none;
    margin-top: 0;
    margin-bottom: 0;
}

.store-category-nav--with-menu .store-nav-item--categories {
    display: flex;
    align-items: stretch;
}

.store-category-nav--with-menu .store-nav-item {
    flex: none;
}

.store-category-nav--with-menu .store-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.store-menu-item-media__img {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    border-radius: 0.35rem;
    flex-shrink: 0;
}

.store-menu-item-media__icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.store-menu-dropdown__visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-mega-menu--menu-items {
    min-width: 13rem;
    padding: 0.45rem;
}

.store-mega-menu__link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 0.55rem;
    padding: 0.65rem 0.75rem;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.store-mega-menu__link:hover {
    background: #f8fafc;
    color: var(--color-primary, #f97316);
}

.store-theme--orange-grid .store-category-nav--with-menu {
    background: var(--store-menu-surface) !important;
    border-block: 1px solid var(--store-menu-border);
    margin-top: 0;
    padding-top: 0;
}

.store-theme--orange-grid .store-category-nav--with-menu::before {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: var(--store-brand-stripe);
}

.store-theme--orange-grid .store-category-nav--with-menu .store-category-nav__inner {
    padding-inline: 1rem;
    gap: 0;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-category-trigger {
    border-right: 1px solid var(--store-menu-border);
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    align-self: stretch;
    min-height: 100%;
    padding-inline: 1rem;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-item--categories {
    display: flex;
    align-items: stretch;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-item + .store-nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1.35rem;
    background: var(--store-menu-border);
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-item {
    display: flex;
    align-items: stretch;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-link {
    color: #484848;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.8rem 1rem;
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    transition: background 0.15s ease, color 0.15s ease;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-item:hover .store-nav-link {
    background: #fff;
    color: var(--color-primary, #ff6000);
    position: relative;
    z-index: 82;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-item:hover .store-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #fff;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-item:hover + .store-nav-item::before {
    opacity: 0;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-mega-menu--menu-items {
    top: 100% !important;
    margin-top: 0;
    border-radius: 0;
    border-top: 0;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-link:hover {
    background: #fff;
    color: var(--color-primary, #ff6000);
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-link.is-active {
    background: #fff;
    color: var(--color-primary, #ff6000);
    position: relative;
    z-index: 82;
}

.store-theme--orange-grid .store-category-nav--with-menu .store-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--color-primary, #ff6000);
}

.store-theme--orange-grid .store-search--modern .store-search__form--modern::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0;
    height: 2px;
    border-radius: 0 0 0.45rem 0.45rem;
    background: var(--store-brand-stripe);
    pointer-events: none;
}

.store-theme--orange-grid .store-search-input--modern,
.store-theme--orange-grid .store-search--modern .store-search-input {
    background: var(--store-search-surface) !important;
    border-color: var(--store-menu-border) !important;
    border-radius: 0.45rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.store-theme--orange-grid .store-search-panel--modern,
.store-theme--orange-grid .store-search-panel__main {
    background: var(--store-search-surface) !important;
    border-color: var(--store-menu-border);
}

.store-theme--orange-grid .store-search-rail {
    background: var(--store-search-surface-muted) !important;
    border-left-color: var(--store-menu-border) !important;
}

.store-theme--orange-grid .store-search-rail__thumb-wrap,
.store-theme--orange-grid .store-search-rail__price-bar {
    background: var(--store-search-surface);
}

.store-theme--orange-grid .store-search-term:hover,
.store-theme--orange-grid .store-search-tag {
    background: var(--store-search-surface-muted);
}

.store-theme--orange-grid .store-search-popular__chip {
    background: var(--store-search-surface);
    border-color: var(--store-menu-border);
}

.store-theme--orange-grid .store-search-hit__image {
    background: var(--store-search-surface-muted);
    box-shadow: inset 0 0 0 1px var(--store-menu-border);
}

.store-theme--orange-grid .store-header__bar {
    background: var(--store-search-surface);
}

.store-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.store-theme--orange-grid .store-search-backdrop--portal {
    position: fixed;
    inset: 0;
    z-index: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(1px);
    pointer-events: auto;
    cursor: default;
}

.store-search-portal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

.store-search-portal.is-active {
    display: block;
}

body.store-search-portal-open {
    overflow: hidden;
}

.store-search-portal__anchor {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.store-search-portal__anchor > .store-search--elevated {
    pointer-events: auto;
}

.store-theme--orange-grid .store-header__search.is-search-elevated {
    min-height: 2.85rem;
}

.store-theme--market-flow .store-header__search.is-search-elevated {
    min-height: 2.75rem;
}

@keyframes store-search-float-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .store-theme--orange-grid .store-search--expanded.store-search--elevated {
        position: fixed;
        z-index: 2;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 2px solid color-mix(in srgb, var(--color-primary, #ff6000) 72%, #e5e7eb);
        border-radius: 1.25rem;
        background: #fff;
        box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2);
        animation: store-search-float-in 0.2s ease;
    }

    .store-theme--orange-grid .store-search--expanded.store-search--elevated .store-search__form--modern {
        position: relative;
        z-index: 2;
        flex: none;
        border: 0;
        border-radius: 1.15rem 1.15rem 0 0;
        background: #fff;
        box-shadow: none;
    }

    .store-theme--orange-grid .store-search--expanded .store-search__form--modern::after {
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        border-radius: 0;
        opacity: 1;
        background: var(--store-brand-stripe);
    }

    .store-theme--orange-grid .store-search--expanded .store-search-input--modern,
    .store-theme--orange-grid .store-search--expanded.store-search--modern .store-search-input {
        border: 0 !important;
        border-radius: 1.15rem 1.15rem 0 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        padding: 1.05rem 3.5rem 1.05rem 3rem;
        font-size: 1rem;
        font-weight: 500;
        color: #0f172a;
    }

    .store-theme--orange-grid .store-search--expanded .store-search__icon-wrap {
        left: 1rem;
        width: 1.75rem;
        height: 1.75rem;
        background: transparent;
        color: #94a3b8;
    }

    .store-theme--orange-grid .store-search--expanded .store-search-close-btn {
        right: 0.9rem;
    }

    .store-theme--orange-grid .store-search--expanded .store-search-clear--mini {
        right: 3.15rem;
        font-size: 0.8125rem;
        font-weight: 600;
        color: #64748b;
        background: transparent;
    }

    .store-theme--orange-grid .store-search--expanded.store-search--elevated .store-search-panel--modern {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0;
        border: 0;
        border-radius: 0 0 1.1rem 1.1rem;
        box-shadow: none;
        background: #fff !important;
        z-index: 1;
        max-height: min(36rem, calc(100vh - 10rem));
    }

    .store-theme--orange-grid .store-search--expanded.store-search--elevated .store-search-panel--wide {
        grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
    }

    .store-theme--orange-grid .store-search--expanded .store-search-panel__main--scroll,
    .store-theme--orange-grid .store-search--expanded .store-search-panel__main--idle {
        max-height: min(34rem, calc(100vh - 11.5rem));
        padding: 0.85rem 1rem 1rem;
    }

    .store-theme--orange-grid .store-search--expanded .store-search-rail {
        padding: 0.85rem 0.9rem 1rem;
        background: #f8fafc !important;
        border-left-color: #e8edf4 !important;
    }

    .store-theme--market-flow .store-search--expanded.store-search--elevated {
        position: fixed;
        z-index: 2;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #e6e6e6;
        border-radius: 0.45rem;
        background: #fff;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
        animation: store-search-float-in 0.2s ease;
    }

    .store-theme--market-flow .store-search--expanded.store-search--elevated .store-search__form--modern {
        position: relative;
        z-index: 2;
        flex: none;
        border: 0;
        border-radius: 0.45rem 0.45rem 0 0;
        background: #fff;
        box-shadow: none;
    }

    .store-theme--market-flow .store-search--expanded .store-search__form--modern::after {
        display: none;
    }

    .store-theme--market-flow .store-search--expanded .store-search-input--modern,
    .store-theme--market-flow .store-search--expanded.store-search--modern .store-search-input {
        border: 0 !important;
        border-radius: 0.45rem 0.45rem 0 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        padding: 1rem 3.5rem 1rem 2.85rem;
        font-size: 0.9375rem;
        font-weight: 500;
        color: #333333;
    }

    .store-theme--market-flow .store-search--expanded .store-search__icon-wrap {
        left: 0.95rem;
        width: 1.5rem;
        height: 1.5rem;
        background: transparent;
        color: var(--color-primary, #f27a1a);
    }

    .store-theme--market-flow .store-search--expanded.store-search--elevated .store-search-panel--modern {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0;
        border: 0;
        border-top: 1px solid #f0f0f0;
        border-radius: 0 0 0.45rem 0.45rem;
        box-shadow: none;
        background: #fff !important;
        z-index: 1;
        max-height: min(36rem, calc(100vh - 10rem));
    }

    .store-theme--market-flow .store-search--expanded.store-search--elevated .store-search-panel--wide {
        grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
    }

    .store-theme--market-flow .store-search--expanded .store-search-panel__main--scroll,
    .store-theme--market-flow .store-search--expanded .store-search-panel__main--idle {
        max-height: min(34rem, calc(100vh - 11.5rem));
        padding: 0.85rem 1rem 1rem;
    }

    .store-theme--market-flow .store-search--expanded .store-search-rail {
        padding: 0.85rem 0.9rem 1rem;
        background: var(--store-search-surface-muted) !important;
        border-left-color: #f0f0f0 !important;
    }
}

.store-theme--orange-grid .store-currency-switcher {
    border-radius: var(--store-header-control-radius, 0.45rem) !important;
}

.store-theme--orange-grid .store-icon-link,
.store-theme--orange-grid .store-mini-cart > a {
    border-radius: var(--store-header-control-radius, 0.45rem);
}

.store-theme--coupon-pulse .store-category-nav--with-menu {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.store-theme--soft-gift .store-category-nav--with-menu {
    background: #fdf2f8;
    border-color: #fbcfe8;
}

.store-theme--mono-fashion .store-category-nav--with-menu {
    border-block: 1px solid #111;
}

.store-theme--fresh-market .store-category-nav--with-menu {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.store-theme--gourmet-dark .store-category-nav--with-menu {
    background: #111;
    border-color: rgba(255, 255, 255, 0.12);
}


/* —— Desktop category mega menu and mobile tab drawer —— */
.store-category-nav--with-menu {
    position: relative;
}

.store-category-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 48;
    padding: 0.65rem 1rem 1rem;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(2px);
}

.store-category-mega__shell {
    display: grid;
    grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
    overflow: hidden;
    min-height: 19rem;
    max-height: min(31rem, calc(100vh - 11rem));
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.store-category-mega__roots {
    overflow-y: auto;
    border-right: 1px solid #eef2f7;
    background: #f8fafc;
    padding: 0.55rem;
}

.store-category-mega__root {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 0.75rem;
    padding: 0.8rem 0.85rem;
    color: #334155;
    font-weight: 800;
    text-decoration: none;
}

.store-category-mega__root:hover,
.store-category-mega__root.is-active {
    background: #0f172a;
    color: #fff;
}

.store-category-mega__content {
    overflow-y: auto;
    padding: 1rem 1.2rem 1.2rem;
}

.store-category-mega__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 0.85rem;
}

.store-category-mega__title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
}

.store-category-mega__subtitle {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
}

.store-category-mega__all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #0f172a;
    border-radius: 999px;
    padding: 0.48rem 0.75rem;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.store-category-mega__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    padding-top: 1rem;
}

.store-category-branch__link {
    display: inline-flex;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

.store-category-branch__link:hover {
    color: var(--color-primary, #f97316);
}

.store-category-branch__children {
    display: grid;
    gap: 0.32rem;
    margin-top: 0.45rem;
    padding-left: 0.55rem;
}

.store-category-branch__children .store-category-branch__link {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 650;
}

.store-category-mega__empty {
    color: #94a3b8;
    font-size: 0.9rem;
}

.store-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-drawer__close {
    display: inline-flex;
    width: 2.65rem;
    height: 2.65rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

.store-drawer__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: #f1f5f9;
    padding: 0.28rem;
}

.store-drawer__tabs button {
    border: 0;
    border-radius: 0.8rem;
    background: transparent;
    padding: 0.7rem 0.8rem;
    color: #64748b;
    font-weight: 900;
}

.store-drawer__tabs button.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.store-drawer__tab-panel .store-category-branch {
    margin-left: 0.75rem;
    border-bottom: 1px solid #f8fafc;
    padding: 0.35rem 0 0.35rem 0.65rem;
}

.store-drawer__tab-panel .store-category-branch__children {
    padding-left: 0.85rem;
}

.store-drawer__empty {
    border-radius: 1rem;
    background: #f8fafc;
    padding: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.store-theme--orange-grid .store-category-mega__root:hover,
.store-theme--orange-grid .store-category-mega__root.is-active {
    background: #ff6000;
}

.store-theme--coupon-pulse .store-category-mega__shell {
    border-style: dashed;
    border-color: #c4b5fd;
}

.store-theme--soft-gift .store-category-mega__shell,
.store-theme--soft-gift .store-drawer__tabs {
    border-radius: 1.35rem;
}

.store-theme--mono-fashion .store-category-mega__shell,
.store-theme--mono-fashion .store-category-mega__root,
.store-theme--mono-fashion .store-drawer__tabs,
.store-theme--mono-fashion .store-drawer__tabs button {
    border-radius: 0;
}

.store-theme--fresh-market .store-category-mega__roots,
.store-theme--fresh-market .store-drawer__tabs {
    background: #f0fdf4;
}

.store-theme--fresh-market .store-category-mega__root:hover,
.store-theme--fresh-market .store-category-mega__root.is-active {
    background: #16a34a;
}

.store-theme--gourmet-dark .store-category-mega {
    background: rgba(0, 0, 0, 0.42);
}

.store-theme--gourmet-dark .store-category-mega__shell,
.store-theme--gourmet-dark .store-category-mega__roots,
.store-theme--gourmet-dark .store-category-mega__content {
    background: #111;
    border-color: rgba(250, 204, 21, 0.22);
}

.store-theme--gourmet-dark .store-category-mega__title,
.store-theme--gourmet-dark .store-category-branch__link {
    color: #f8fafc;
}

@media (max-width: 767px) {
    .store-category-mega {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .store-category-mega__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* —— Header dropdown visibility fixes —— */
.store-category-nav--with-menu {
    z-index: 55;
    overflow: visible !important;
}

.store-category-nav--with-menu .store-category-nav__inner {
    overflow: visible !important;
}

.store-category-nav--with-menu .store-nav-item {
    position: relative;
}

.store-category-nav--with-menu .store-mega-menu--menu-items {
    left: 0;
    top: calc(100% + 0.55rem);
    z-index: 80;
    border-radius: 0.85rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.store-category-mega {
    top: 100%;
    z-index: 70;
    padding: 0.65rem 1rem 1rem;
    background: transparent !important;
    backdrop-filter: none !important;
    pointer-events: none;
}

.store-category-mega__shell {
    pointer-events: auto;
}

.store-category-trigger:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary, #f97316) 26%, transparent);
    outline-offset: 3px;
}


/* —— Category mega flush under nav —— */
.store-category-mega {
    top: calc(100% - 1px) !important;
    padding-top: 0 !important;
}

.store-category-mega__shell {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}


/* —— Color source guard: layouts use admin color settings —— */
.store-app[class*="store-theme--"] {
    background: var(--color-page-bg, #f9fafb) !important;
    color: var(--color-text-body, #374151) !important;
}

.store-app[class*="store-theme--"] main {
    background: var(--color-page-bg, #f9fafb) !important;
    color: var(--color-text-body, #374151) !important;
}

.store-app[class*="store-theme--"] .store-header,
.store-app[class*="store-theme--"] .store-category-nav,
.store-app[class*="store-theme--"] .store-category-nav--with-menu,
.store-app[class*="store-theme--"] .store-mobile-nav,
.store-app[class*="store-theme--"] .store-drawer,
.store-app[class*="store-theme--"] .store-category-mega__shell,
.store-app[class*="store-theme--"] .store-category-mega__content,
.store-app[class*="store-theme--"] .store-search-panel,
.store-app[class*="store-theme--"] .store-product-card,
.store-app[class*="store-theme--"] .store-category-tile {
    background: var(--color-card-bg, #ffffff) !important;
    border-color: var(--color-border, #e5e7eb) !important;
    color: var(--color-text-body, #374151) !important;
}

.store-app.store-theme--orange-grid .store-header .store-category-nav--with-menu {
    background: var(--store-menu-surface) !important;
    border-top-color: transparent !important;
    border-bottom-color: var(--store-menu-border) !important;
}

.store-app.store-theme--market-flow .store-category-nav--with-menu {
    border-top: 0 !important;
    border-bottom: 1px solid var(--store-menu-border) !important;
}

.store-app.store-theme--orange-grid .store-header__topbar {
    background: var(--store-topbar-surface, #fffdfb) !important;
    border-color: var(--store-menu-border) !important;
}

.store-app.store-theme--orange-grid .store-category-mega__roots {
    background: var(--store-menu-surface) !important;
    border-color: var(--store-menu-border) !important;
}

.store-app.store-theme--orange-grid .store-category-nav--with-menu .store-nav-item:hover .store-nav-link {
    background: #fff !important;
    color: var(--color-primary, #ff6000) !important;
}

.store-app[class*="store-theme--"] .store-announcement,
.store-app[class*="store-theme--"] .store-footer {
    background: var(--color-secondary, #1f2937) !important;
    color: var(--color-card-bg, #ffffff) !important;
    border-color: color-mix(in srgb, var(--color-secondary, #1f2937) 74%, #ffffff) !important;
}

.store-app[class*="store-theme--"]:not(.store-theme--market-flow):not(.store-theme--orange-grid) .store-category-trigger,
.store-app[class*="store-theme--"]:not(.store-theme--market-flow):not(.store-theme--orange-grid) .store-search-submit,
.store-app[class*="store-theme--"]:not(.store-theme--market-flow):not(.store-theme--orange-grid) .store-product-card__cart-btn,
.store-app[class*="store-theme--"]:not(.store-theme--market-flow):not(.store-theme--orange-grid) .store-btn-primary {
    background: var(--color-primary, #f97316) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--color-primary, #f97316) 24%, transparent) !important;
}

.store-app[class*="store-theme--"] .store-product-card__discount-badge,
.store-app[class*="store-theme--"] .store-count-badge {
    background: color-mix(in srgb, var(--color-primary, #f97316) 82%, #000000) !important;
    color: #ffffff !important;
}

.store-app[class*="store-theme--"] .store-nav-link,
.store-app[class*="store-theme--"] .store-header__toplink,
.store-app[class*="store-theme--"] .store-drawer__link,
.store-app[class*="store-theme--"] .store-category-branch__link,
.store-app[class*="store-theme--"] .store-category-mega__title,
.store-app[class*="store-theme--"] .store-section__title {
    color: var(--color-text-heading, #111827) !important;
}

.store-app[class*="store-theme--"] .store-nav-link:hover,
.store-app[class*="store-theme--"] .store-nav-link.is-active,
.store-app[class*="store-theme--"] .store-header__toplink:hover,
.store-app[class*="store-theme--"] .store-drawer__link:hover,
.store-app[class*="store-theme--"] .store-category-branch__link:hover,
.store-app[class*="store-theme--"] .store-icon-link:hover,
.store-app[class*="store-theme--"] .store-mini-cart > a:hover {
    color: var(--color-primary, #f97316) !important;
}

.store-app[class*="store-theme--"] .store-icon-link,
.store-app[class*="store-theme--"] .store-mini-cart > a,
.store-app[class*="store-theme--"] .store-currency-switcher,
.store-app[class*="store-theme--"] .store-search-input,
.store-app[class*="store-theme--"] .store-drawer__close,
.store-app[class*="store-theme--"] .store-drawer__tabs {
    background: color-mix(in srgb, var(--color-card-bg, #ffffff) 88%, var(--color-primary, #f97316) 12%) !important;
    border-color: var(--color-border, #e5e7eb) !important;
    color: var(--color-text-body, #374151) !important;
}

.store-app[class*="store-theme--"]:not(.store-theme--market-flow) .store-category-mega__roots {
    background: color-mix(in srgb, var(--color-card-bg, #ffffff) 88%, var(--color-primary, #f97316) 12%) !important;
    border-color: var(--color-border, #e5e7eb) !important;
    color: var(--color-text-body, #374151) !important;
}

.store-app.store-theme--market-flow .store-category-mega__roots {
    background: #ffffff !important;
    border-color: #f0f0f0 !important;
    color: #333333 !important;
}

.store-app.store-theme--orange-grid .store-search-input,
.store-app.store-theme--orange-grid .store-search-input--modern {
    background: var(--store-search-surface) !important;
    border-color: var(--store-menu-border) !important;
}

.store-app.store-theme--orange-grid .store-search-panel {
    background: var(--store-search-surface) !important;
    border-color: var(--store-menu-border) !important;
}

.store-app.store-theme--orange-grid .store-search-rail {
    background: var(--store-search-surface-muted) !important;
    border-color: var(--store-menu-border) !important;
}

.store-app.store-theme--market-flow .store-category-trigger {
    background: transparent !important;
    color: #333333 !important;
    box-shadow: none !important;
}

.store-app.store-theme--market-flow .store-icon-link,
.store-app.store-theme--market-flow .store-mini-cart__desktop-button,
.store-app.store-theme--market-flow .store-mini-cart__mobile-link {
    background: transparent !important;
    border-color: transparent !important;
    color: #333333 !important;
}

.store-app.store-theme--market-flow,
.store-app.store-theme--market-flow main {
    background: #ffffff !important;
}

.store-app.store-theme--market-flow .store-category-mega {
    background: transparent !important;
    box-shadow: none !important;
}

.store-app.store-theme--market-flow .store-category-mega__shell,
.store-app.store-theme--market-flow .store-category-mega__content {
    background: #ffffff !important;
}

.store-app.store-theme--market-flow .store-category-mega__roots {
    background: #ffffff !important;
    border-color: #f0f0f0 !important;
}

.store-app.store-theme--market-flow .store-category-mega__root:hover,
.store-app.store-theme--market-flow .store-category-mega__root.is-active {
    background: color-mix(in srgb, var(--color-primary, #f27a1a) 11%, #ffffff) !important;
    color: var(--color-primary, #f27a1a) !important;
}

.store-app.store-theme--market-flow .store-search-input,
.store-app.store-theme--market-flow .store-search-input--modern {
    background: var(--store-search-surface) !important;
    border-color: transparent !important;
    color: #333333 !important;
}

.store-app.store-theme--market-flow .store-search-panel {
    background: #ffffff !important;
    border-color: #f0f0f0 !important;
}

.store-app.store-theme--market-flow .store-search-rail {
    background: var(--store-search-surface-muted) !important;
    border-color: #f0f0f0 !important;
}

.store-app[class*="store-theme--"]:not(.store-theme--market-flow) .store-category-mega__root:hover,
.store-app[class*="store-theme--"]:not(.store-theme--market-flow) .store-category-mega__root.is-active,
.store-app[class*="store-theme--"] .store-mega-menu__link:hover {
    background: var(--color-primary, #f97316) !important;
    color: #ffffff !important;
}

.store-app[class*="store-theme--"] .store-banner-slider__nav,
.store-app[class*="store-theme--"] .store-product-rail__arrow,
.store-app[class*="store-theme--"] .store-category-rail__arrow,
.store-app[class*="store-theme--"] .store-stories__nav {
    background: var(--color-card-bg, #ffffff) !important;
    color: var(--color-text-heading, #111827) !important;
    border-color: var(--color-border, #e5e7eb) !important;
}

.store-app[class*="store-theme--"] .store-price__current {
    color: var(--color-primary, #f97316) !important;
}

.store-app[class*="store-theme--"] .store-category-mega {
    background: transparent !important;
}


/* —— Header menu dropdown flush under nav item —— */
.store-category-nav--with-menu .store-mega-menu--menu-items {
    top: calc(100% - 1px) !important;
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}


/* —— Header panels above menu row —— */
.store-header {
    overflow: visible !important;
}

.store-header__bar {
    position: relative;
    z-index: 90;
    overflow: visible !important;
}

.store-category-nav,
.store-category-nav--with-menu {
    position: relative;
    z-index: 70;
}

.store-header__search,
.store-header__actions,
.store-mini-cart,
.store-search {
    position: relative;
    z-index: 95;
}

.store-header__search .store-search-panel,
.store-header__mobile-search .store-search-panel,
.store-mini-cart .store-search-panel {
    z-index: 140 !important;
}

.store-mini-cart .store-search-panel {
    top: calc(100% + 0.45rem) !important;
}


/* —— Mobile drawer category accordion —— */
.store-drawer__link--button {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    text-align: left;
}

.store-drawer-category__children {
    overflow: hidden;
    padding: 0.25rem 0 0.55rem 0.65rem;
}

.store-drawer__link--all {
    color: var(--color-primary, #f97316) !important;
    font-size: 0.82rem;
    font-weight: 900;
}

.store-drawer-category__children .store-category-branch {
    margin-left: 0;
}


/* —— Desktop header hamburger hard hide —— */
@media (min-width: 768px) {
    .store-header__inner > button[aria-label="Menü"],
    .store-header__inner .store-icon-link[aria-label="Menü"] {
        display: none !important;
    }
}

/* Mini cart side drawer */
.store-mini-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}

.store-mini-cart-drawer__panel {
    position: fixed;
    top: 1rem;
    right: 0;
    bottom: 1rem;
    display: grid;
    width: min(100vw - 1rem, 440px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    pointer-events: auto;
    border: 1px solid color-mix(in srgb, var(--color-primary, #0891b2) 18%, #e5e7eb);
    border-right: 0;
    border-radius: 1.35rem 0 0 1.35rem;
    background: var(--color-card-bg, #fff);
    box-shadow: -24px 0 70px rgba(15, 23, 42, 0.2);
}

.store-mini-cart-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    padding: 1.2rem 1.25rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary, #0891b2) 10%, #fff), #fff);
}

.store-mini-cart-panel__title {
    color: var(--color-text-heading, #111827);
    font-size: 1.05rem;
    font-weight: 900;
}

.store-mini-cart-panel__subtitle {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

.store-mini-cart-panel__close {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    color: var(--color-text-heading, #111827);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.store-mini-cart-panel__close:hover {
    border-color: color-mix(in srgb, var(--color-primary, #0891b2) 35%, #e5e7eb);
    color: var(--color-primary, #0891b2);
}

.store-mini-cart-panel__items {
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem;
}

.store-mini-cart-line {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.9rem;
    margin-bottom: 0.7rem;
    padding: 0.75rem;
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.store-mini-cart-line__image {
    width: 5rem;
    height: 5rem;
    border-radius: 0.8rem;
    object-fit: cover;
    background: #f8fafc;
}

.store-mini-cart-line__body {
    min-width: 0;
}

.store-mini-cart-line__top,
.store-mini-cart-line__actions,
.store-mini-cart-panel__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.store-mini-cart-line__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-text-heading, #111827);
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.store-mini-cart-line__remove {
    display: inline-flex;
    flex: none;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f8fafc;
    color: #94a3b8;
}

.store-mini-cart-line__remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.store-mini-cart-line__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
}

.store-mini-cart-line__actions {
    margin-top: 0.55rem;
}

.store-mini-cart-qty {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 999px;
    background: #fff;
}

.store-mini-cart-qty button {
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: var(--color-primary, #0891b2);
    font-size: 1rem;
    font-weight: 900;
}

.store-mini-cart-qty button:hover {
    background: color-mix(in srgb, var(--color-primary, #0891b2) 10%, #fff);
}

.store-mini-cart-qty span {
    min-width: 1.65rem;
    text-align: center;
    color: var(--color-text-heading, #111827);
    font-size: 0.82rem;
    font-weight: 900;
}

.store-mini-cart-line__actions strong {
    color: var(--color-text-heading, #111827);
    font-size: 0.95rem;
    font-weight: 950;
}

.store-mini-cart-panel__foot {
    margin: 0 0.9rem 0.9rem;
    padding: 0.9rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.store-mini-cart-panel__total {
    margin-bottom: 0.75rem;
}

.store-mini-cart-panel__total span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 900;
}

.store-mini-cart-panel__total strong {
    color: var(--color-text-heading, #111827);
    font-size: 1.25rem;
    font-weight: 950;
}

.store-mini-cart-panel__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.store-mini-cart-panel__button {
    display: inline-flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 900;
    text-align: center;
}

.store-mini-cart-panel__button--secondary {
    border: 1px solid var(--color-border, #e5e7eb);
    background: #f8fafc;
    color: var(--color-text-heading, #111827);
}

.store-mini-cart-panel__button--primary {
    background: var(--color-primary, #0891b2);
    color: #fff;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--color-primary, #0891b2) 28%, transparent);
}

.store-mini-cart-panel__empty {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    padding: 2rem 1rem;
    color: #94a3b8;
    font-weight: 800;
}

@media (max-width: 640px) {
    .store-mini-cart-drawer__panel {
        top: 0.75rem;
        bottom: 0.75rem;
        width: calc(100vw - 0.75rem);
        border-radius: 1.15rem 0 0 1.15rem;
    }
}

@media (max-width: 420px) {
    .store-mini-cart-panel__buttons {
        grid-template-columns: 1fr;
    }
}


/* Mini cart responsive trigger split */
.store-mini-cart__mobile-link {
    display: inline-flex !important;
}

.store-mini-cart__desktop-button {
    display: none !important;
}

@media (min-width: 768px) {
    .store-mini-cart__mobile-link {
        display: none !important;
    }

    .store-mini-cart__desktop-button {
        display: inline-flex !important;
    }
}

.store-app.store-theme--market-flow .store-product-card__cart-btn {
    background: #ffffff !important;
    color: var(--color-primary, #f27a1a) !important;
    border: 1.5px solid var(--color-primary, #f27a1a) !important;
    box-shadow: none !important;
}

.store-app.store-theme--market-flow .store-product-card__cart-btn:hover:not(:disabled) {
    background: var(--color-primary, #f27a1a) !important;
    color: #ffffff !important;
    border-color: var(--color-primary, #f27a1a) !important;
    box-shadow: 0 4px 12px rgba(242, 122, 26, 0.28) !important;
}

/* —— Header menu dropdown types (Fashion) —— */
.store-menu-dropdown--columns_products_banner,
.store-menu-dropdown--visual_products_banner_brands,
.store-menu-dropdown--visual_brands {
    min-width: min(92vw, 56rem);
    padding: 0.85rem;
}

.store-menu-dropdown__layout {
    display: grid;
    gap: 0.85rem;
}

.store-menu-dropdown__layout--columns {
    grid-template-columns: minmax(0, 1fr) 11rem;
}

.store-menu-dropdown__layout--visual-full {
    grid-template-columns: minmax(0, 1fr) 10rem;
}

.store-menu-dropdown__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 1rem;
}

.store-menu-dropdown__text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.store-menu-dropdown__text-link:hover,
.store-menu-dropdown__text-link.is-active {
    color: var(--color-primary, #f97316);
}

.store-menu-dropdown__banner {
    display: flex;
    align-items: flex-end;
    min-height: 8rem;
    border-radius: 0.75rem;
    background: linear-gradient(160deg, #fde68a 0%, #fbbf24 100%);
    padding: 0.75rem;
}

.store-menu-dropdown__banner--tall {
    min-height: 11rem;
}

.store-menu-dropdown__banner-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #78350f;
}

.store-menu-dropdown__visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.store-menu-dropdown__visual-grid--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-menu-dropdown__visual-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-radius: 0.7rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.55rem;
    text-decoration: none;
    color: #334155;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-menu-dropdown__visual-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
}

.store-menu-dropdown__visual-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 0.55rem;
    background: #f8fafc;
    overflow: hidden;
}

.store-menu-dropdown__visual-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-menu-dropdown__visual-label {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.store-menu-dropdown__brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.store-menu-dropdown__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.store-menu-dropdown__brand img {
    max-height: 1.25rem;
    max-width: 4rem;
    object-fit: contain;
}

.store-menu-dropdown__empty {
    grid-column: 1 / -1;
    padding: 0.75rem;
    color: #94a3b8;
    font-size: 0.8125rem;
}

@media (max-width: 1023px) {
    .store-menu-dropdown__columns,
    .store-menu-dropdown__visual-grid,
    .store-menu-dropdown__visual-grid--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-menu-dropdown__layout--columns,
    .store-menu-dropdown__layout--visual-full {
        grid-template-columns: 1fr;
    }
}
