/* Shared header and footer use the Customer Panel brand palette. */
/* Only the purpose-built placeholder fills differently shaped product frames. */
body img[src$="/product-placeholder.svg"] { object-fit: cover; }
.shop-shell {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    margin-inline: auto;
    box-sizing: border-box;
}
.shop-shell .shop-shell {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}
.customer-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.storefront-frame {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: clamp(340px, 55vh, 720px);
    padding-top: 0;
    padding-bottom: 28px;
    box-sizing: border-box;
}
.storefront-frame.shop-shell {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    margin-inline: auto;
}
.storefront-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.storefront-main > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.shop-header { position: sticky; top: 0; flex-shrink: 0; background: var(--primary-color); color: var(--on-primary-color); border-bottom: 1px solid color-mix(in srgb, var(--on-primary-color) 15%, var(--primary-color)); box-shadow: 0 2px 10px color-mix(in srgb, var(--text-color) 12%, transparent); z-index: 1020; }
body:has(#storefrontNavigation.show) .floating-chat, body:has(#productQuickView.show) .floating-chat,
body:has(#storefrontCart.show) .floating-chat, body:has(#storefrontCart.showing) .floating-chat { display: none; }
.shop-header .shop-header-main { height: auto; min-height: 90px; padding: 16px 0; gap: 32px; align-items: center; }
.shop-header .shop-logo { display: inline-flex; flex-shrink: 0; padding: 6px 8px; border-radius: 8px; background: var(--theme-color-ffffff); }
.shop-header .shop-logo-image { width: 150px; height: 42px; object-fit: contain; }
.storefront-search { display: flex; flex: 1; max-width: 560px; margin-inline: auto; border: 1px solid var(--theme-color-ffffff); border-radius: 5px; overflow: hidden; background: var(--theme-color-ffffff); }
.storefront-search input { width: 100%; min-width: 0; border: 0; padding: 13px 16px; background: var(--theme-color-ffffff); color: var(--text-color); font: inherit; }
.storefront-search input::placeholder { color: var(--muted-color); }
.storefront-search button { border: 0; width: 48px; flex-shrink: 0; display: grid; place-items: center; background: var(--secondary-color); color: var(--on-secondary-color); }
.storefront-search button:hover { background: color-mix(in srgb, var(--secondary-color) 85%, var(--theme-color-ffffff)); }
.shop-header .shop-actions { gap: 18px; align-items: center; }
.storefront-action { border: 0; background: transparent; display: flex; gap: 5px; align-items: center; padding: 0; color: var(--on-primary-color); font: inherit; font-size: 12px; }
.storefront-action:disabled { opacity: .65; }
.shop-header .shop-actions > a { width: 38px; height: 38px; color: var(--on-primary-color); background: transparent; border: 1px solid color-mix(in srgb, var(--on-primary-color) 35%, var(--primary-color)); }
.shop-header .shop-actions > a.storefront-action { display:flex; width:auto; height:auto; border:0; background:transparent; color:var(--on-primary-color); text-decoration:none; }
.shop-header .shop-actions > a:hover, .shop-header .header-user-btn:hover, .shop-header .storefront-action--track:hover { color: var(--secondary-color); }
.shop-header .header-user-btn { color: var(--on-primary-color); background: transparent; }
.storefront-menu-toggle { display: none; border: 0; background: transparent; color: var(--on-primary-color); padding: 6px; }
.storefront-navigation-bar { flex-shrink: 0; background: color-mix(in srgb, var(--primary-color) 70%, var(--theme-color-111111)); }
.storefront-navigation { flex-shrink: 0; color: var(--on-primary-color); }
.storefront-navigation .offcanvas-body { padding: 0; align-items: stretch; }
.storefront-categories { position: relative; flex-shrink: 0; width: 190px; border-right: 1px solid var(--border-color); }
.storefront-categories summary { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 14px 12px 0; list-style: none; font-size: 12px; font-weight: 600; cursor: pointer; }
.storefront-categories summary::-webkit-details-marker { display: none; }
.storefront-categories summary > span:last-child { margin-left: auto; font-size: 18px; }
.storefront-categories > summary { padding-inline: 14px; background: var(--secondary-color); color: var(--on-secondary-color); }
.storefront-category-list { position: absolute; top: 100%; left: 0; z-index: 40; width: 260px; max-height: 360px; overflow-y: auto; padding: 8px; background: var(--theme-color-ffffff); border: 1px solid var(--border-color); box-shadow: 0 8px 24px color-mix(in srgb, var(--text-color) 12%, transparent); }
.storefront-category-list { color: var(--text-color); }
.storefront-category-list a, .storefront-empty { display: block; padding: 10px; overflow-wrap: anywhere; font-size: 13px; }
.storefront-category-list a:hover { background: var(--customer-surface-color); }
.storefront-nav-links { display: flex; flex-wrap: wrap; gap: 0 22px; align-items: stretch; padding-inline: 24px 0; overflow: visible; min-width: 0; }
.storefront-nav-links a { display: flex; align-items: center; white-space: nowrap; min-height: 52px; font-size: 12px; color: var(--text-color); border-bottom: 2px solid transparent; }
.storefront-nav-links a:hover, .storefront-nav-links a[aria-current="page"] { color: var(--customer-link-color); border-bottom-color: var(--primary-color); }
.storefront-category-group > summary { min-height: 44px; padding: 10px; white-space: normal; overflow-wrap: anywhere; }
.storefront-category-group[open] > summary { color: var(--primary-color); }
.storefront-category-group[open] > summary .material-symbols-outlined { transform: rotate(180deg); }
.storefront-subcategories { padding-left: 14px; margin-left: 10px; border-left: 2px solid var(--secondary-color); }
.storefront-subcategories a[aria-current="page"] { background: var(--customer-surface-color); font-weight: 600; }
.storefront-featured-group { position: relative; min-width: 0; }
.storefront-featured-group > summary { display: flex; align-items: center; gap: 4px; min-height: 52px; font-size: 12px; cursor: pointer; border-bottom: 2px solid transparent; list-style: none; }
.storefront-featured-group > summary::-webkit-details-marker { display: none; }
.storefront-featured-group > summary .material-symbols-outlined { font-size: 16px; }
.storefront-featured-group[data-current-category] > summary, .storefront-featured-group[open] > summary { color: var(--customer-link-color); border-bottom-color: var(--primary-color); }
.storefront-featured-children { position: absolute; top: 100%; left: 0; z-index: 50; width: 260px; max-width: calc(100vw - 32px); max-height: 360px; overflow-y: auto; padding: 8px; background: var(--theme-color-ffffff); border: 1px solid var(--border-color); box-shadow: 0 8px 24px color-mix(in srgb, var(--text-color) 12%, transparent); }
.storefront-featured-group--align-end .storefront-featured-children { left: auto; right: 0; }
.storefront-featured-children a { padding: 10px; min-height: 42px; white-space: normal; overflow-wrap: anywhere; }
.storefront-featured-group > summary:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.storefront-nav-actions { display: flex; align-items: center; margin-left: auto; flex-shrink: 0; }
.storefront-nav-track-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; background: var(--secondary-color); color: var(--on-secondary-color); transition: filter .15s ease, transform .15s ease, background-color .15s ease; white-space: nowrap; }
.storefront-nav-track-btn:hover { filter: brightness(0.92); color: var(--on-secondary-color); transform: translateY(-1px); }
.storefront-nav-track-btn:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 3px; }
.storefront-nav-track-btn .material-symbols-outlined { font-size: 18px; }
.shop-footer {
    --storefront-footer-bg: color-mix(in srgb, var(--primary-color) 70%, var(--theme-color-111111));
    --storefront-footer-bottom-bg: color-mix(in srgb, var(--primary-color) 50%, var(--theme-color-111111));
    --storefront-footer-border: color-mix(in srgb, var(--theme-color-ffffff) 18%, var(--storefront-footer-bg));
    background: var(--storefront-footer-bg); color: var(--theme-color-ffffff);
    margin-top: auto;
    flex-shrink: 0;
}
.storefront-trust { background: var(--primary-color); color: var(--on-primary-color); }
.storefront-trust-inner { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 20px; align-items: center; padding-block: 22px; }
.storefront-trust h2 { font-size: 19px; margin: 0; line-height: 1.4; overflow-wrap: anywhere; }
.storefront-trust h2 span { color: var(--secondary-color); }
.storefront-trust-item { display: flex; gap: 10px; align-items: center; color: var(--on-primary-color); }
.storefront-trust-item:hover { color: var(--secondary-color); }
.storefront-trust-item > .material-symbols-outlined { padding: 8px; border: 1px solid var(--secondary-color); border-radius: 50%; color: var(--secondary-color); font-size: 22px; }
.storefront-trust-item strong { display: block; font-size: 12px; font-weight: 600; }
.storefront-trust-item small { display: block; font-size: 10px; margin-top: 4px; }
.shop-footer .footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 32px; padding-block: 36px; text-align: left; }
.shop-footer .footer-intro { background: transparent; padding: 0; border-radius: 0; }
.shop-footer .footer-main > section + section { border-left: 1px solid var(--storefront-footer-border); padding-left: 24px; }
.shop-footer .footer-main h2 { font-size: 14px; color: var(--secondary-color); letter-spacing: 0; text-transform: none; margin-bottom: 16px; }
.shop-footer .footer-main p, .shop-footer .footer-main address { font-size: 12px; line-height: 1.8; color: color-mix(in srgb, var(--theme-color-ffffff) 88%, var(--storefront-footer-bg)); }
.shop-footer .shop-logo { display: inline-flex; padding: 10px 12px; border-radius: 8px; background: var(--theme-color-ffffff); }
.shop-footer .shop-logo-image { width: 140px; height: 46px; object-fit: contain; }
.shop-footer .footer-intro p { margin-top: 14px; }
.shop-footer .footer-main a { color: var(--theme-color-ffffff); }
.shop-footer .footer-main a:hover { color: var(--secondary-color); }
.storefront-footer-links { display: grid; gap: 9px; font-size: 12px; overflow-wrap: anywhere; }
.shop-footer .footer-track-order-btn,
.shop-footer .footer-track-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 16px;
    border: 1px solid var(--customer-btn-color);
    border-radius: 6px;
    background: var(--customer-btn-color);
    color: var(--on-button-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--text-color) 20%, transparent);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .15s ease;
}
.shop-footer .footer-track-order-btn .footer-track-icon,
.shop-footer .footer-track-order-link .footer-track-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--on-button-color);
    transition: transform .2s ease;
}
.shop-footer .footer-track-order-btn:hover,
.shop-footer .footer-track-order-link:hover {
    background: var(--customer-btn-hover-color);
    border-color: var(--customer-btn-hover-color);
    color: var(--on-button-hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--text-color) 30%, transparent);
}
.shop-footer .footer-track-order-btn:hover .footer-track-icon,
.shop-footer .footer-track-order-link:hover .footer-track-icon {
    color: var(--on-button-hover-color);
    transform: scale(1.08);
}
.shop-footer .footer-track-order-btn:focus-visible,
.shop-footer .footer-track-order-link:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}
.shop-footer .social-links { justify-content: flex-start; gap: 8px; }
.shop-footer .social-links a { width: 30px; height: 30px; background: color-mix(in srgb, var(--theme-color-ffffff) 10%, var(--storefront-footer-bg)); border: 1px solid var(--storefront-footer-border); color: var(--theme-color-ffffff); }
.shop-footer .social-links a:hover { background: var(--secondary-color); color: var(--on-secondary-color); }
.shop-footer .footer-icon { width: 14px; height: 14px; }
.storefront-contact { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.storefront-contact > .material-symbols-outlined { font-size: 18px; padding-top: 2px; color: var(--secondary-color); }
.storefront-contact a, .storefront-contact address { min-width: 0; overflow-wrap: anywhere; margin: 0; }
.shop-footer .footer-bottom { background: var(--storefront-footer-bottom-bg); border-top: 1px solid var(--storefront-footer-border); color: color-mix(in srgb, var(--theme-color-ffffff) 88%, var(--storefront-footer-bottom-bg)); font-size: 11px; padding-block: 12px; }
.shop-footer .footer-bottom > div { flex-direction: row; justify-content:space-between; gap:14px; }
.shop-footer .footer-bottom > div > span { min-width:0; overflow-wrap:anywhere; }
.footer-payment-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: color-mix(in srgb, var(--theme-color-ffffff) 85%, var(--storefront-footer-bottom-bg)); }
.footer-payment-badge .material-symbols-outlined { font-size: 16px; color: var(--secondary-color); }
.shop-footer .storefront-back-top { background: var(--secondary-color); color: var(--on-secondary-color); border-radius: 50%; padding: 6px; display: flex; flex-shrink:0; }
.storefront-back-top .material-symbols-outlined { font-size: 18px; }
.shop-header a:focus-visible, .shop-header button:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 3px; }
.storefront-categories summary:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.shop-footer a:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 3px; }
@media (min-width: 992px) {
    .storefront-nav-links { flex: 1 1 auto; }
    .storefront-nav-links > a, .storefront-featured-group > summary { color: var(--on-primary-color); }
    .storefront-nav-links > a:hover, .storefront-nav-links > a[aria-current="page"],
    .storefront-featured-group > summary:hover, .storefront-featured-group[open] > summary,
    .storefront-featured-group[data-current-category] > summary { color: var(--secondary-color); border-bottom-color: var(--secondary-color); }
    .storefront-nav-links > a:focus-visible, .storefront-featured-group > summary:focus-visible { outline: 2px solid var(--secondary-color); outline-offset: 3px; }
    .storefront-categories { position: relative; }
    .storefront-category-list { overflow: visible; max-height: none; width: 250px; }
    .storefront-category-group { position: relative; }
    .storefront-category-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; min-height: 40px; cursor: pointer; border-radius: 4px; transition: background-color .15s ease, color .15s ease; }
    .storefront-category-group > summary:hover, .storefront-category-group[open] > summary { background: var(--customer-surface-color); color: var(--primary-color); }
    .storefront-category-group > summary .material-symbols-outlined { transform: rotate(-90deg); font-size: 16px; margin-left: auto; transition: transform .2s ease; }
    .storefront-category-group[open] > summary .material-symbols-outlined { transform: rotate(-90deg); color: var(--primary-color); }
    .storefront-category-group .storefront-subcategories { position: absolute; top: -1px; left: 100%; width: 250px; min-height: 100%; max-height: 460px; overflow-y: auto; padding: 8px; margin-left: 0; border-left: 1px solid var(--border-color); background: var(--theme-color-ffffff); border: 1px solid var(--border-color); box-shadow: 0 8px 24px color-mix(in srgb, var(--text-color) 12%, transparent); border-radius: 0 6px 6px 0; z-index: 60; }
    .storefront-category-group .storefront-subcategories a { padding: 9px 12px; font-size: 13px; border-radius: 4px; }
    .storefront-category-group .storefront-subcategories a:hover { background: var(--customer-surface-color); color: var(--primary-color); }
    .storefront-featured-children { border-radius: 0 0 6px 6px; }
    .storefront-featured-children a { border-radius: 4px; transition: background-color .15s ease, color .15s ease; }
    .storefront-featured-children a:hover { background: var(--customer-surface-color); color: var(--primary-color); border-bottom-color: transparent; }
}
@media (max-width: 991.98px) {
    .shop-header .shop-header-main { flex-wrap: wrap; gap: 12px; padding-block: 14px; }
    .storefront-menu-toggle { display: flex; }
    .shop-header .shop-logo-image { width: 120px; height: 36px; }
    .shop-header .shop-actions { margin-left: auto; gap: 12px; }
    .storefront-action-label { display: none; }
    .storefront-search { order: 3; flex-basis: 100%; max-width: none; }
    .storefront-navigation { --bs-offcanvas-width: min(340px, 88vw); background: var(--theme-color-ffffff); color: var(--text-color); width: min(340px, 88vw); }
    .storefront-navigation .offcanvas-body { display: block; width: 100%; padding: 16px; }
    .storefront-categories { width: 100%; border-right: 0; border-bottom: 1px solid var(--border-color); }
    .storefront-categories > summary { border-radius: 6px; }
    .storefront-category-list { position: static; width: 100%; box-shadow: none; border: 0; }
    .storefront-category-group .storefront-subcategories { position: static; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--secondary-color); padding-left: 14px; margin-left: 10px; border-radius: 0; }
    .storefront-nav-links { flex-direction: column; padding: 12px 0; gap: 0; overflow: visible; }
    .storefront-nav-links a { white-space: normal; overflow-wrap: anywhere; }
    .storefront-featured-children { position: static; width: 100%; max-width: 100%; max-height: none; box-shadow: none; border: 0; padding-left: 14px; border-left: 2px solid var(--secondary-color); }
    .storefront-nav-actions { display: block; margin-left: 0; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
    .storefront-nav-track-btn { display: flex; justify-content: center; width: 100%; min-height: 44px; padding: 11px 16px; font-size: 13px; }
    .storefront-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .storefront-trust h2 { grid-column: 1 / -1; }
    .storefront-trust h2 br { display: none; }
    .storefront-trust h2 span { margin-left: 5px; }
    .shop-footer .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .shop-footer .footer-main > section + section { border-left: 0; padding-left: 0; }
}
@media (max-width: 767.98px) {
    .shop-shell,
    .storefront-frame.shop-shell {
        width: calc(100% - 32px);
        max-width: 100%;
    }
}
@media (max-width: 575.98px) {
    .shop-shell,
    .storefront-frame.shop-shell {
        width: calc(100% - 32px);
        max-width: 100%;
    }
    .shop-header .shop-header-main { gap: 8px; }
    .shop-header .shop-logo-image { width: 100px; height: 32px; }
    .shop-header .shop-actions { gap: 8px; }
    .shop-header .storefront-action--track .material-symbols-outlined { font-size: 20px; }
    .shop-footer .footer-main { grid-template-columns: 1fr; gap: 24px; }
    .shop-footer .footer-main > section + section { border-top: 1px solid var(--storefront-footer-border); padding-top: 20px; }
    .shop-footer .footer-track-order-btn,
    .shop-footer .footer-track-order-link { width: 100%; min-height: 44px; font-size: 13px; margin-top: 10px; }
    .storefront-trust-inner { gap: 16px 12px; }
    .storefront-trust-item { gap: 8px; }
    .storefront-trust-item > .material-symbols-outlined { padding: 6px; font-size: 18px; }
    .shop-footer .footer-bottom > div { flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* Customer Account Dropdown Menu */
.customer-user-menu {
    min-width: 230px !important;
    padding: 0 !important;
    margin: 8px 0 0 0 !important;
    list-style: none !important;
    background-color: #ffffff !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    z-index: 1050 !important;
}
.customer-user-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.customer-user-menu li::before,
.customer-user-menu li::after {
    display: none !important;
    content: none !important;
}
.customer-user-menu .customer-user-header {
    padding: 12px 16px !important;
    background-color: var(--customer-surface-color, #f8fafc) !important;
    border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
}
.customer-user-menu .customer-user-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}
.customer-user-menu .customer-user-email {
    font-size: 12px !important;
    color: #64748b !important;
    line-height: 1.3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 2px !important;
}
.customer-user-menu .dropdown-item,
.customer-user-menu a.dropdown-item,
.customer-user-menu button.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 38px !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #334155 !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background-color .15s ease, color .15s ease !important;
}
.customer-user-menu .dropdown-item:hover,
.customer-user-menu a.dropdown-item:hover,
.customer-user-menu button.dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: var(--primary-color, #0f172a) !important;
}
.customer-user-menu .dropdown-item.text-danger,
.customer-user-menu button.dropdown-item.text-danger {
    color: #dc2626 !important;
}
.customer-user-menu .dropdown-item.text-danger:hover,
.customer-user-menu button.dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}
.customer-user-menu .dropdown-item .material-symbols-outlined,
.customer-user-menu .customer-menu-icon {
    font-size: 18px !important;
    line-height: 1 !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--primary-color, #166534) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.customer-user-menu .dropdown-item.text-danger .material-symbols-outlined,
.customer-user-menu .dropdown-item.text-danger .customer-menu-icon {
    color: #dc2626 !important;
}
.customer-user-menu hr.dropdown-divider {
    margin: 4px 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--border-color, #e2e8f0) !important;
    opacity: 1 !important;
}
