@media (max-width: 639px) {
    html, body { max-width: 100%; overflow-x: clip; }
    #homepageMain, #homepageHero, #featuredProducts, #featuredGrid { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
    #homepageHeroContent { width: 100%; min-width: 0; }
    #featuredGrid > article { min-width: 0; }
}
.glass-header { backdrop-filter: blur(14px); background-color: rgba(255, 255, 255, 0.94); }
.homepage-banner { position: relative; min-height: 360px; padding: 42px 5%; display: flex; align-items: center; overflow: hidden; border-radius: 24px; color: #fff; background: linear-gradient(112deg,#18243a 0%,#253953 56%,#dfe6ea 100%); }
.homepage-banner-copy { position: relative; z-index: 2; width: 62%; max-width: 650px; }
.homepage-banner-eyebrow { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); border-radius: 999px; padding: 7px 11px; color: #ffe2c9; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.homepage-banner-copy h1 { margin: 15px 0 10px; max-width: 580px; color: #fff; font-size: clamp(2rem,4.2vw,3.4rem); line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; }
.homepage-banner-copy p { max-width: 520px; margin: 0; color: #d5dde6; font-size: 14px; line-height: 1.65; }
.homepage-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.homepage-banner-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 11px; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; }
.homepage-banner-actions a:hover { transform: translateY(-1px); }
.homepage-banner-primary { background: #f36b21; color: #fff; box-shadow: 0 8px 20px rgba(243,107,33,.28); }
.homepage-banner-secondary { border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.08); color: #fff; }
.homepage-banner-art { position: absolute; top: 50%; right: 5%; transform: translateY(-50%); width: min(32%,290px); height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; border-radius: 20px; background: #fff; color: #1b2940; text-align: center; box-shadow: 0 24px 48px rgba(8,17,33,.3); }
.homepage-banner-art img { width: 100%; height: 100%; max-height: 180px; object-fit: contain; border-radius: 12px; }
.homepage-banner-art-icon { width: 100%; height: 142px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 14px; background: linear-gradient(135deg,#f7d9be,#f7eee4 48%,#dae5e6); font-size: 58px; }
.homepage-banner-art strong { color: #1b2940; font-size: 13px; }
.homepage-banner-art small { margin-top: 6px; color: #e95d19; font-size: 9px; font-weight: 850; }
.homepage-banner-no-art { width: 100%; }
@media (max-width: 767px) {
    .homepage-banner { min-height: 480px; padding: 24px 20px; align-items: flex-start; background-image: linear-gradient(145deg,#18243a 0%,#30435b 68%,#18243a 100%); }
    .homepage-banner-copy { width: 100%; }
    .homepage-banner-copy h1 { margin-top: 13px; font-size: clamp(1.9rem,8vw,2.4rem); }
    .homepage-banner-copy p { font-size: 12px; }
    .homepage-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }
    .homepage-banner-actions a { padding: 0 10px; font-size: 11px; }
    .homepage-banner-art { top: auto; right: 50%; bottom: 18px; transform: translateX(50%); width: min(72%,235px); height: 150px; padding: 10px; }
    .homepage-banner-art img { max-height: 112px; }
    .homepage-banner-art-icon { height: 76px; margin-bottom: 6px; font-size: 37px; }
    .homepage-banner-art strong { font-size: 11px; }
    .homepage-banner-art small { margin-top: 3px; font-size: 8px; }
}
.badge-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@media (hover: none) {
    #accountDropdown { opacity: 0 !important; pointer-events: none !important; }
    #accountMenu[data-open="true"] #accountDropdown { opacity: 1 !important; pointer-events: auto !important; }
}
@media (max-width: 639px) {
    #storefrontHeaderInner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem; width: 100%; box-sizing: border-box; }
    #storefrontHeaderBrand { min-width: 0; }
    #storefrontHeaderActions { gap: .125rem; }
    #storefrontWishlistLink { display: none; }
}
:root { --shopin-navy: #1e293b; --shopin-orange: #f97316; --shopin-orange-dark: #c2410c; }
.bg-brand-50 { background-color: #fff7ed !important; }
.bg-brand-100 { background-color: #ffedd5 !important; }
.bg-brand-500, .bg-brand-600 { background-color: var(--shopin-orange) !important; }
.bg-brand-700 { background-color: var(--shopin-orange-dark) !important; }
.bg-brand-800 { background-color: #9a3412 !important; }
.bg-brand-900 { background-color: var(--shopin-navy) !important; }
.text-brand-100 { color: #ffedd5 !important; }
.text-brand-500, .text-brand-600 { color: #ea580c !important; }
.text-brand-700, .text-brand-800 { color: #c2410c !important; }
.border-brand-100 { border-color: #fed7aa !important; }
.border-brand-300, .border-brand-400 { border-color: #fdba74 !important; }
.from-brand-600 { --tw-gradient-from: #f97316 var(--tw-gradient-from-position) !important; --tw-gradient-to: rgb(249 115 22 / 0%) var(--tw-gradient-to-position) !important; }
.from-brand-900, .via-brand-900 { --tw-gradient-from: #1e293b var(--tw-gradient-from-position) !important; --tw-gradient-to: rgb(30 41 59 / 0%) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.via-brand-800 { --tw-gradient-to: rgb(30 41 59 / 0%) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), #263449 var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
.to-brand-700, .to-brand-800, .to-brand-900 { --tw-gradient-to: #1e293b var(--tw-gradient-to-position) !important; }
.text-accent { color: #f97316 !important; }
.bg-accent { background-color: #f97316 !important; }
.hover\:text-brand-600:hover { color: #ea580c !important; }
.hover\:bg-brand-700:hover { background-color: #c2410c !important; }

#accountMenu[data-open="true"] #accountDropdown { opacity: 1; pointer-events: auto; }
#shopin-stores, #featuredProducts { scroll-margin-top: 8rem; }
.market2-storefront .cart-badge:not(.has-items),
.market2-storefront #cartBadgeBottom:not(.has-items) { display: none; }
.market2-favorite.active { color: #f97316; }
.market2-favorite:focus-visible,
.market2-buy:focus-visible { outline: 2px solid #c2410c; outline-offset: 3px; }
.market2-card-actions { flex-wrap: wrap; }
.market2-product-card .market2-buy { flex-shrink: 0; }
.market2-product-card [data-gallery-select] { min-width: 0; min-height: 0; padding: 0; }
.market2-storefront:not(.market2-catalog) .notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: calc(100vw - 2rem);
    z-index: 1000;
}
.market2-storefront:not(.market2-catalog) .notification {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .5rem;
    padding: .9rem 1.25rem;
    border-radius: .75rem;
    background: #1e293b;
    color: #fff;
    opacity: 0;
    transition: opacity .2s;
}
.market2-storefront:not(.market2-catalog) .notification[class*="notification-"] { position: fixed; top: 1rem; right: 1rem; z-index: 1000; }
.market2-storefront:not(.market2-catalog) .notification.show { opacity: 1; }
.market2-storefront:not(.market2-catalog) .notification-close { padding: .25rem; }
.market2-storefront:not(.market2-catalog) .cookie-consent {
    display: none;
    position: fixed;
    z-index: 60;
    bottom: 4.5rem;
    left: .75rem;
    right: .75rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: .9rem 1rem;
    background: #fff;
    box-shadow: 0 8px 30px rgb(15 23 42 / 16%);
    font-size: .875rem;
}
.market2-storefront:not(.market2-catalog) .cookie-consent.show { display: block; }
.market2-storefront:not(.market2-catalog) .cookie-content,
.market2-storefront:not(.market2-catalog) .cookie-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.market2-storefront:not(.market2-catalog) .cookie-content { justify-content: space-between; }
.market2-storefront:not(.market2-catalog) .cookie-content a { color: #c2410c; text-decoration: underline; }
.market2-storefront:not(.market2-catalog) .cookie-actions button {
    padding: .5rem .8rem;
    border-radius: .5rem;
    border: 1px solid #c2410c;
    color: #c2410c;
    font-weight: 700;
}
.market2-storefront:not(.market2-catalog) .cookie-actions .btn-primary-modern { background: #c2410c; color: #fff; }
@media (min-width: 768px) {
    .market2-storefront:not(.market2-catalog) .cookie-consent { bottom: 1rem; left: auto; max-width: 36rem; }
}
.storefront-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding: .25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f1f5f9;
}
.storefront-search-desktop { padding-inline-start: .85rem; }
.storefront-search:focus-within { border-color: #f97316; background: #fff; box-shadow: 0 0 0 2px #ffedd5; }
.storefront-search input {
    flex: 1;
    width: 0;
    min-width: 0;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    padding: .35rem .4rem;
    color: #1e293b;
    font: inherit;
    font-size: .875rem;
}
.storefront-search input:focus { outline: none; }
.storefront-search-icon { order: -1; color: #64748b; font-size: .8rem; }
.storefront-search-submit {
    flex: none;
    min-height: 2rem;
    min-width: 0;
    padding: .35rem .9rem;
    border-radius: .7rem;
    background: var(--shopin-orange-dark);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}
.storefront-search-submit:hover { background: #9a3412; }
.storefront-search-submit:focus-visible { outline: 2px solid #9a3412; outline-offset: 2px; }
#mobileDrawer .storefront-search-submit { min-height: 2.5rem; }
.storefront-category-dropdown { max-height: min(65vh, 32rem); overflow-y: auto; overscroll-behavior: contain; }
.storefront-category-dropdown[hidden] { display: none; }
.storefront-category-dropdown a[aria-current="page"],
.storefront-mobile-categories a[aria-current="page"] { border-radius: .55rem; background: #fff1e8; color: #9a3412; font-weight: 750; }
.storefront-category-toggle { width: 2.5rem; }
.storefront-category-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.storefront-category-children[hidden] { display: none; }

.storefront-footer-grid > div { min-width: 0; overflow-wrap: anywhere; }

.storefront-info {
    --primary: #c2410c;
    --dark: #0f172a;
    --text: #334155;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --success: #15803d;
    --error: #dc2626;
    --border-color: #e2e8f0;
    --shadow-md: 0 4px 12px rgb(15 23 42 / 8%);
    flex: 1;
    min-width: 0;
    padding-block: clamp(1.25rem, 5vw, 3.75rem);
    overflow-wrap: anywhere;
}
.storefront-info-inner { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.storefront-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.storefront-contact-form { background: #fff; padding: clamp(1rem, 5vw, 3rem); border-radius: 1rem; box-shadow: var(--shadow-md); }
.storefront-contact-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.storefront-contact-submit { width: 100%; padding: .875rem; border-radius: .5rem; color: #fff; background: var(--primary); font-weight: 700; }
.storefront-contact-submit:hover { background: #9a3412; }

@media (max-width: 767.98px) {
    .market2-storefront { --storefront-nav-height: calc(3.75rem + env(safe-area-inset-bottom)); }
    .storefront-footer { margin-top: 2.5rem; }
    .storefront-footer-with-nav { margin-bottom: var(--storefront-nav-height); }
    .storefront-footer-inner { padding-block: 1.75rem; }
    .storefront-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; margin-bottom: 1.25rem; }
    .storefront-footer-brand { grid-column: 1 / -1; }
    .storefront-footer-grid h4 { margin-bottom: .625rem; }
    .storefront-footer-grid a { display: inline-block; padding-block: .125rem; }
    .storefront-footer-legal { padding-top: 1rem; }
    .storefront-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        min-height: var(--storefront-nav-height);
        padding: 0 max(.25rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(.25rem, env(safe-area-inset-left));
    }
    .storefront-bottom-nav > a { min-width: 0; justify-content: center; white-space: nowrap; }
    .market2-storefront:has(.storefront-bottom-nav) .chat-widget { bottom: calc(5rem + env(safe-area-inset-bottom)); }
    .market2-storefront:has(.storefront-bottom-nav) .chat-window { bottom: calc(9.375rem + env(safe-area-inset-bottom)); }
    .market2-storefront:has(.storefront-bottom-nav) .cookie-consent { bottom: calc(var(--storefront-nav-height) + .75rem); }
}

/* The catalog also loads the legacy stylesheet, which reserves room for its old mobile nav. */
@media (max-width: 768px) {
    body.market2-catalog { padding-bottom: 0 !important; }
}
