/* CSS Custom Properties for Color Customization */
:root
{
    --color-dark: #010B13;
    --color-light: #f5f5f5;
    --color-bg: #ffffff;
    --color-accent: #000000;
}

/* Prevent horizontal overflow */
body.demo-page
{
    max-width: 100%;
}

body.demo-page
{
    position: relative;
}

:where(.demo-page) h1,
:where(.demo-page) h2,
:where(.demo-page) h3,
:where(.demo-page) h4,
:where(.demo-page) h5,
:where(.demo-page) h6,
:where(.demo-page) p,
:where(.demo-page) span,
:where(.demo-page) strong,
:where(.demo-page) a
{
    color: var(--color-dark);
}

.demo-page hr
{
    border-color: var(--color-accent) !important;
}

.demo-page .btn
{
    display: inline-block !important;
    padding: 0.6rem 1rem !important;
    background-color: var(--color-dark) !important;
    color: var(--color-bg) !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap;
    border-radius: 4px !important;
}

.demo-page .btn:hover
{
    opacity: 0.85;
}

.demo-page .btn.btn--secondary
{
    background-color: transparent !important;
    color: var(--color-dark) !important;
    border: 1px solid var(--color-dark) !important;
}

.demo-homepage h1,
.demo-homepage h2,
.demo-homepage h3,
.demo-homepage h4,
.demo-homepage h5,
.demo-homepage h6
{
    font-weight: 400;
    line-height: 1.2;
}

.demo-homepage h1
{
    font-size: clamp(1.875rem, 3.25vw, 2.75rem);
}

.demo-homepage h2
{
    font-size: clamp(1.625rem, 2.75vw, 2.5rem);
}

.demo-homepage h3
{
    font-size: clamp(1.25rem, 1.875vw, 1.75rem);
}

.demo-homepage h4
{
    font-size: 1.25rem;
}

.demo-homepage h5
{
    font-size: 1.0625rem;
}

.demo-homepage h6
{
    font-size: 1rem;
}

.demo-section-divider
{
    border: 0;
    border-top: 1px solid;
    border-color: #dedede !important;
    margin-bottom: 2rem;
}

/* Demo-specific styles for the new navbar */
.demo-page > .bg-black h2,
.demo-page > .bg-black p,
.demo-page > .bg-black span,
.demo-page > .bg-black strong,
.demo-page > .bg-black a
{
    color: #ffffff;
}

.demo-page > .bg-black .btn.btn--secondary
{
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.demo-nav
{
    --nav-inline-padding: 3rem;
    background-color: var(--color-dark);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.demo-nav-container
{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.375rem var(--nav-inline-padding);
    max-width: 100%;
    margin: 0 auto;
    gap: 3rem;
}

.demo-logo
{
    display: block;
    max-width: 320px;
    height: auto;
    flex-shrink: 0;
}

@media (min-width: 1025px)
{
    .demo-nav-container
    {
        padding-top: 1rem;
        padding-bottom: 1rem;
        transition: padding 240ms ease;
    }

    .demo-nav-container > a
    {
        flex-shrink: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        transition: padding 240ms ease;
    }

    .demo-logo
    {
        width: clamp(320px, calc(100vw - 700px), 450px);
        max-width: 450px;
        transition: width 240ms ease;
    }

    .demo-nav--compact .demo-logo
    {
        width: 320px;
    }

    .demo-nav--compact .demo-nav-container
    {
        padding-top: 0.375rem;
        padding-bottom: 0.375rem;
    }

    .demo-nav--compact .demo-nav-container > a
    {
        padding-top: 0;
        padding-bottom: 0;
    }

    .demo-nav--compact .demo-mail-order-nav
    {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce)
{
    .demo-logo,
    .demo-nav-container,
    .demo-nav-container > a
    {
        transition: none;
    }
}

.demo-nav-links
{
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 0;
}

.demo-nav-dropdown-trigger
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: var(--color-bg);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.demo-nav-dropdown-trigger:hover
{
    color: #cccccc;
}

.demo-nav-dropdown
{
    display: flex;
    align-items: center;
    position: relative;
}

.demo-nav-dropdown-panel
{
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    width: 440px;
    max-height: calc(100vh - var(--navbar-height, 100px) - 2rem);
    max-height: calc(100dvh - var(--navbar-height, 100px) - 2rem);
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: var(--color-dark);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.demo-nav-dropdown-panel--explore
{
    width: 300px;
    overflow: visible;
}

.demo-locations
{
    position: relative;
}

.demo-locations-trigger
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    padding: 0.75rem;
    border: 0;
    border-radius: 3px;
    background: none;
    color: var(--color-bg);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.demo-locations-trigger:hover
{
    background: rgba(255, 255, 255, 0.06);
}

.demo-locations-trigger:focus-visible
{
    outline: 2px solid var(--color-light);
    outline-offset: 2px;
}

.demo-locations-panel
{
    position: absolute;
    top: 0;
    left: 100%;
    width: 280px;
    max-height: calc(100dvh - var(--navbar-height, 100px) - 3rem);
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: var(--color-dark);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.demo-locations-panel--left
{
    left: auto;
    right: 100%;
}

.demo-mobile-locations
{
    margin: 0 0 0.5rem 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
}

.demo-mobile-menu-links .demo-locations-trigger
{
    min-height: 36px;
    padding: 0.25rem;
}

.demo-mail-order-nav
{
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.demo-category-link
{
    display: block;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid transparent;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.demo-category-links
{
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 0.5rem;
    padding: 0 var(--nav-inline-padding);
    margin: 0;
    list-style: none;
}

.demo-category-links > li:first-child .demo-category-link
{
    padding-left: 0;
}

.demo-category-toolbar
{
    position: relative;
}

@media (max-width: 1024px)
{
    .demo-category-toolbar
    {
        position: sticky;
        top: var(--navbar-height, 0px);
    }
}

.demo-category-link:hover,
.demo-category-link[aria-expanded="true"]
{
    border-bottom-color: #000000;
}

.demo-mail-order-nav #subnavDropdown
{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--navbar-height, 150px) - 1rem);
    overflow-y: auto;
    color: #000000;
}

@media (max-width: 1024px)
{
    .demo-mail-order-nav
    {
        display: none;
    }
}

.demo-nav-dropdown-links
{
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo-nav-dropdown-links li + li
{
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-nav-dropdown-links a
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.75rem;
    border-radius: 3px;
    color: var(--color-bg);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    text-decoration: none;
}

.demo-nav-dropdown-links a:hover
{
    background: rgba(255, 255, 255, 0.06);
}

.demo-nav-dropdown-copy
{
    min-width: 0;
}

.demo-nav-dropdown-title
{
    color: var(--color-bg);
    font-weight: 600;
}

.demo-nav-dropdown-title-row
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
}

.demo-nav-dropdown-description
{
    display: block;
    margin-top: 0.25rem;
    color: #cccccc;
    font-size: 0.75rem;
}

.demo-nav-dropdown-links .feather-chevron-right
{
    flex-shrink: 0;
}

.demo-nav-dropdown-trigger:focus-visible,
.demo-nav-dropdown-links a:focus-visible,
.demo-nav-icons a[data-demo-desktop-destination]:focus-visible
{
    outline: 2px solid var(--color-light);
    outline-offset: 2px;
}

.demo-nav-icons
{
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
}

.demo-nav-icons a
{
    color: var(--color-bg);
    font-size: 1.25rem;
    text-decoration: none;
    cursor: default;
    display: flex;
    align-items: center;
}

.demo-nav-icon-btn
{
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--color-bg);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.demo-nav-icons a[data-demo-desktop-destination]
{
    cursor: pointer;
}

.mobile-nav-left
{
    display: none;
}

/* Mobile menu styles */
.demo-mobile-nav
{
    display: none;
}

.demo-mobile-menu
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-dark);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    z-index: 1001;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #5c6a73 var(--color-dark);
}

.demo-mobile-menu::-webkit-scrollbar
{
    width: 6px;
}

.demo-mobile-menu::-webkit-scrollbar-track
{
    background: var(--color-dark);
}

.demo-mobile-menu::-webkit-scrollbar-thumb
{
    background: #5c6a73;
    border-radius: 999px;
}

.demo-mobile-menu::-webkit-scrollbar-thumb:hover
{
    background: #82909a;
}

.demo-mobile-menu.open
{
    transform: translateX(0);
    visibility: visible;
}

.demo-mobile-menu-overlay
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1000;
}

.demo-mobile-menu-overlay.open
{
    display: block;
}

.demo-mobile-menu-header
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem 0;
}

.demo-mobile-menu-header .demo-nav-icon-btn
{
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.demo-mobile-menu-content
{
    padding: 0 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.demo-mobile-menu-heading
{
    margin: 0.75rem 0 0.125rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-light);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.075em;
}

#demoExploreHeading
{
    margin-top: 1.5rem;
}

.demo-mobile-menu-links
{
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-flex-title {
    display: flex;
    justify-content: space-between;
    /* align at the bottom not the center */
    align-items: flex-end;
}

@media screen and (max-width: 600px) {
    .demo-flex-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.demo-flex-title.lg\:hidden {
    display: none !important;
}

.demo-mobile-menu-links a
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    color: var(--color-bg);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s;
}

.demo-mobile-menu-copy,
.demo-mobile-menu-title
{
    min-width: 0;
    color: var(--color-bg);
}

.demo-mobile-menu-content section .demo-mobile-menu-links > li + li
{
    margin-top: 0.375rem;
}

.demo-mobile-menu-content section .demo-mobile-menu-explore > li + li
{
    margin-top: 0.125rem;
}

.demo-mobile-menu-explore a
{
    min-height: 36px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.demo-mobile-menu-title-row
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
}

.demo-mobile-menu-pill
{
    padding: 0.125rem 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--color-light);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.5625rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.demo-mobile-menu-title,
.demo-mobile-menu-description
{
    display: block;
}

.demo-mobile-menu-description
{
    margin-top: 0.125rem;
    color: #cccccc;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
}

.demo-mobile-menu-links .feather-chevron-right
{
    flex-shrink: 0;
    font-size: 1.125rem;
}

.demo-mobile-menu-account .feather-user
{
    margin-right: 0.375rem;
    font-size: 1rem;
}

.demo-mobile-menu-account a
{
    min-height: 32px;
    padding: 0.25rem;
    font-size: 0.8125rem;
}

.demo-mobile-menu a:focus-visible,
.demo-mobile-menu button:focus-visible,
.demo-mobile-nav:focus-visible
{
    outline: 2px solid var(--color-light);
    outline-offset: 2px;
}

.demo-mobile-menu-links a:hover
{
    background-color: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1200px)
{
    .demo-nav-container
    {
        gap: 1.5rem;
    }

    .demo-nav-links
    {
        gap: 2rem;
    }
    
    .demo-nav-dropdown-trigger
    {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px)
{
    .demo-nav-links
    {
        display: none;
    }
    
    .demo-mobile-nav
    {
        display: block;
    }
    
    .demo-nav-container
    {
        padding: 0.375rem 1.5rem;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 0;
    }
    
    .mobile-nav-left
    {
        display: flex;
        justify-content: flex-start;
    }
    
    .demo-nav-container > a
    {
        justify-self: center;
    }
    
    .demo-logo
    {
        max-width: 200px;
    }
    
    .demo-nav-icons
    {
        margin-left: 0;
        gap: 1.25rem;
        justify-content: flex-end;
    }
    
    .demo-nav-icons .desktop-only
    {
        display: none !important;
    }
}

/* Hero carousel styles */
.demo-hero-slider
{
    margin: 0;
    position: relative;
}

.demo-hero-slide
{
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--navbar-height, 90px) - 20px);
    max-height: 700px;
}

.demo-hero-slide img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
}

.demo-hero-content
{
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    width: 45%;
    max-width: 640px;
}

.demo-hero-content h2
{
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-dark);
}

.demo-hero-content p
{
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-dark);
}

.demo-hero-subtitle
{
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.demo-hero-divider
{
    width: 10rem;
    margin: 0.75rem 0;
}

.demo-hero-content .btn
{
    border-radius: 4px !important;
    background-color: #000000 !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.demo-hero-slider .swiper-pagination-demo-hero
{
    bottom: 12px;
}

.demo-hero-slider .swiper-pagination-bullet
{
    background: #000000;
}

.demo-hero-slider .swiper-button-prev,
.demo-hero-slider .swiper-button-next
{
    display: flex;
    opacity: 1;
    visibility: visible;
    color: #5c5c5c;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: none;
    transition: background 0.3s, border-color 0.3s;
}

.demo-hero-slider .swiper-button-prev
{
    left: 0;
}

.demo-hero-slider .swiper-button-next
{
    right: 0;
}

.demo-hero-slider .swiper-button-prev:hover,
.demo-hero-slider .swiper-button-next:hover
{
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: none;
}

.demo-hero-slider .swiper-button-prev:after,
.demo-hero-slider .swiper-button-next:after
{
    font-size: 12px;
    font-weight: 600;
}

@media (min-width: 769px)
{
    .demo-hero-content
    {
        left: clamp(5.5rem, 6vw, 8rem);
        max-width: 600px;
    }

    .demo-hero-slider .swiper-button-prev
    {
        left: clamp(1.5rem, 2vw, 3rem);
    }

    .demo-hero-slider .swiper-button-next
    {
        right: clamp(1.5rem, 2vw, 3rem);
    }
}

@media (max-width: 1200px)
{
    .demo-hero-content
    {
        width: 55%;
    }
}

@media (max-width: 1279px)
{
    .demo-homepage
    {
        overflow-x: clip;
    }

    .demo-homepage .home-full-bleed
    {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

/* Shrink the font on short screens, keeping the paragraph visible */
@media (max-height: 600px)
{
    .demo-hero-content h2
    {
        font-size: 1.625rem;
    }
    .demo-hero-content p
    {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px)
{
    .demo-hero-slide
    {
        height: calc(90dvh - 60px);
    }
    
    .demo-hero-content
    {
        padding: 1rem;
        /* center the content on smaller screens */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 65%;
        max-width: 400px;
    }
    
    .demo-hero-content h2
    {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .demo-hero-content p
    {
        font-size: 0.8rem;
        margin-bottom: .5rem;
    }

    .demo-hero-content .btn
    {
        padding: 0.5rem 1rem !important;
        font-size: 0.875rem !important;
    }

    .demo-hero-subtitle
    {
        font-size: 0.9rem;
    }

    .demo-hero-slider .swiper-button-prev,
    .demo-hero-slider .swiper-button-next
    {
        display: none;
    }
}

/* Background image utility class */
:where(.demo-page) .background-image
{
    background-image: var(--bgImg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.demo-wide-banner
{
    padding: clamp(3rem, 6vw, 6rem) 1rem;
}

.demo-wide-banner-content
{
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Ensure images display properly */
:where(.demo-page) img
{
    max-width: 100%;
    height: auto;
}

/* Product grid image fixes */
:where(.demo-page) .product-image, :where(.demo-page) .item-image
{
    display: block;
    width: 100%;
    height: auto;
}

/* Lazy loading image states */
:where(.demo-page) img.lazy,
:where(.demo-page) img.swiper-lazy
{
    opacity: 0;
    transition: opacity 0.3s;
}

:where(.demo-page) img.lazy.loaded,
:where(.demo-page) img.swiper-lazy.loaded,
:where(.demo-page) img.swiper-lazy-loaded
{
    opacity: 1 !important;
}

/* Swiper lazy preloader */
:where(.demo-page) .swiper-lazy-preloader
{
    width: 42px;
    height: 42px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    z-index: 10;
    transform-origin: 50%;
    animation: swiper-preloader-spin 1s infinite linear;
    box-sizing: border-box;
    border: 4px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
}

@keyframes swiper-preloader-spin
{
    100%
    {
        transform: rotate(360deg);
    }
}

.demo-featured-page-grid
{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.demo-homepage .featured-page-image
{
    transition: opacity 0.3s;
    width: 100%;
    height: 16rem;
    object-fit: cover;
}

.demo-homepage .featured-page-content
{
    min-width: 0;
}

.demo-homepage .demo-featured-page-eyebrow
{
    font-size: 1.125rem;
    font-weight: 400;
    text-transform: uppercase;
}

@media (min-width: 640px)
{
    .demo-featured-page-grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }

    .demo-homepage .featured-page-image
    {
        height: 24rem;
    }
}

/* Demo heading utility classes */
.demo-heading-small
{
    font-size: 1.125rem;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.demo-heading-large
{
    font-size: 2.3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.demo-text
{
    color: var(--color-dark);
    line-height: 1.6;
}

/* Demo-only live search */
#demoSearchTrigger
{
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

#demoSearchTrigger:focus-visible
{
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.demo-search
{
    width: min(820px, calc(100% - 48px));
    max-width: none;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--color-bg);
    color: var(--color-dark);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.3);
    overscroll-behavior: contain;
}

.demo-search::backdrop
{
    background: rgba(1, 11, 19, 0.7);
    backdrop-filter: blur(5px);
}

.demo-search [hidden]
{
    display: none !important;
}

.demo-search-shell
{
    padding: 32px;
}

.demo-search-heading
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.demo-search-eyebrow,
.demo-search-result-label
{
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.demo-search-heading h2
{
    margin: 6px 0 0;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.25;
}

.demo-search-control
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    color: var(--color-dark);
    background: #f0f2f3;
    cursor: pointer;
}

.demo-search-label
{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.demo-search-input-row
{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid #75808a;
    border-radius: 10px;
}

.demo-search-input-row:focus-within
{
    outline: 2px solid var(--color-dark);
    outline-offset: 2px;
}

#demoSearchInput
{
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    color: var(--color-dark);
    font-size: 1rem;
}

#demoSearchInput::-webkit-search-cancel-button
{
    -webkit-appearance: none;
}

.demo-search-status
{
    margin: 12px 0;
    color: #45515c;
    font-size: 0.875rem;
    line-height: 1.6;
}

.demo-search-status:empty
{
    margin: 0;
}

.demo-search-intents,
.demo-search-suggestions
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    font-size: 0.875rem;
}

.demo-search-suggestions > span
{
    color: #45515c;
    font-size: 0.8125rem;
}

.demo-search-intents button,
.demo-search-suggestions button,
.demo-search-action
{
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #75808a;
    border-radius: 24px;
    background: #ffffff;
    color: var(--color-dark);
    font-size: 0.875rem;
    cursor: pointer;
}

.demo-search-intents
{
    width: fit-content;
    max-width: 100%;
    gap: 4px;
    margin: 12px 0;
    padding: 4px;
    border-radius: 12px;
    background: #f0f2f3;
}

.demo-search-intents button
{
    flex: 1 1 auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 0.8125rem;
}

.demo-search-suggestions
{
    gap: 4px 12px;
    margin: 16px 0 0;
}

.demo-search-suggestions button
{
    padding: 8px 2px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 0.8125rem;
    text-decoration: underline;
    text-decoration-color: #b5bcc2;
    text-underline-offset: 4px;
}

.demo-search button:hover,
.demo-search-result:hover
{
    background: #f0f2f3;
}

.demo-search-intents button[aria-pressed="true"]
{
    background: var(--color-dark);
    color: #ffffff;
}

.demo-search button:focus-visible,
.demo-search-result:focus-visible
{
    outline: 2px solid var(--color-dark);
    outline-offset: 3px;
}

.demo-search-results
{
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo-search-results > li
{
    border-top: 1px solid #e0e4e7;
}

.demo-search-result
{
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 8px;
    border-radius: 8px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.demo-search-result img
{
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f2f3;
}

.demo-search-result-label
{
    display: block;
    color: #45515c;
    text-transform: uppercase;
}

.demo-search-result h3
{
    margin: 3px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.demo-search-result p,
.demo-search-availability
{
    margin: 4px 0 0;
    color: #45515c;
    font-size: 0.875rem;
    line-height: 1.5;
}

.demo-search-availability
{
    display: block;
    font-weight: 600;
}

.demo-search-result p
{
    font-size: 0.8125rem;
    font-weight: 400;
}

.demo-search-result-featured
{
    margin: 12px 0;
    padding: 20px;
    background: #fff7f8;
    border: 1px solid #ead7dc;
}

.demo-search-result-featured img
{
    width: 112px;
    height: 112px;
}

.demo-search-result-featured .demo-search-result-label
{
    color: #b00030;
}

.demo-search-result-featured h3
{
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}

.demo-search-result-cta
{
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #b00030;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 480px)
{
    .demo-search-result-featured
    {
        align-items: flex-start;
        gap: 12px;
        padding: 14px 10px;
    }

    .demo-search-result-featured img
    {
        width: 64px;
        height: 64px;
    }
}

.demo-search-actions
{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.demo-search-action[aria-disabled="true"]
{
    cursor: default;
    color: #45515c;
}

@media (max-width: 640px)
{
    .demo-search
    {
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: 100%;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .demo-search-shell
    {
        padding: 24px 18px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .demo-search-heading h2
    {
        font-size: 1.75rem;
    }

    .demo-search-result
    {
        gap: 12px;
    }

    .demo-search-result img
    {
        width: 60px;
        height: 60px;
    }
}
