/*
 * EasyShop Headless Storefront CSS
 */

/* Local Google Fonts for GDPR compliance */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/outfit.woff2') format('woff2');
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg-dark: #07080d;
    --bg-card: rgba(17, 18, 25, 0.75);
    --bg-card-hover: rgba(25, 27, 38, 0.9);
    --border-color: rgba(255, 255, 255, 0.05);
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --primary-hover: #4f46e5;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --success: #10b981;
    --danger: #ef4444;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-main: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#storefront-root {
    container-type: inline-size;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .easyshop-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .easyshop-hide-desktop {
        display: none !important;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Loader */
.storefront-loader-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.storefront-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header Navbar */
.storefront-nav {
    border-bottom: 1px solid var(--border-color);
    background: rgba(7, 8, 13, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1002;
    padding: 16px 0;
}
.storefront-nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.storefront-logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}
.storefront-logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.storefront-nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.storefront-cart-trigger {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}
.storefront-cart-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.storefront-cart-badge {
    background: #fff;
    color: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
}

/* Hero Section */
.storefront-hero {
    text-align: center;
    padding: 80px 8% 60px 8%;
    max-width: 800px;
    margin: 0 auto;
}
.storefront-hero h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #fff;
}
.storefront-hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.storefront-hero p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Category Filter Bar */
.storefront-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
    padding: 0 8%;
    flex-wrap: wrap;
}
.storefront-filter-tag {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}
.storefront-filter-tag:hover, .storefront-filter-tag.active {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
    border-color: var(--primary);
}

/* Product Grid */
.storefront-container {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding: 0 4%;
}

.storefront-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.storefront-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}
.storefront-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.1);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-main);
}

.storefront-product-image-container {
    aspect-ratio: 1.1;
    overflow: hidden;
    background: rgba(255,255,255,0.01);
    position: relative;
}
.storefront-product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.storefront-product-card:hover .storefront-product-image-container img {
    transform: scale(1.05);
}

.storefront-product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.storefront-product-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}
.storefront-product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.storefront-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.storefront-product-price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.storefront-add-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}
.storefront-add-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

/* Cart Slide Over Drawer */
.storefront-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.storefront-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.storefront-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #0d0e15;
    border-left: 1px solid var(--border-color);
    z-index: 1003;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-main);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.storefront-drawer.active {
    right: 0;
}

.storefront-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.storefront-drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin: 0;
    color: #fff;
}
.storefront-drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
}
.storefront-drawer-close:hover {
    color: #fff;
}

.storefront-drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.storefront-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(13, 14, 21, 0.5);
}

/* Cart Items inside Drawer */
.storefront-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.storefront-cart-item:last-child {
    border-bottom: none;
}
.storefront-cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.storefront-cart-item-info {
    flex-grow: 1;
}
.storefront-cart-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}
.storefront-cart-item-price {
    font-size: 13px;
    color: var(--text-muted);
}
.storefront-cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.storefront-cart-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.storefront-cart-qty-btn:hover {
    background: rgba(255,255,255,0.1);
}
.storefront-cart-qty-val {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* Drawer Totals */
.storefront-drawer-totals {
    margin-bottom: 20px;
}
.storefront-drawer-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
}
.storefront-drawer-row.total {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
}

/* Form Styles for Checkout */
.storefront-form-group {
    margin-bottom: 16px;
}
.storefront-form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}
.storefront-input {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    box-sizing: border-box;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}
.storefront-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.04);
}

.storefront-btn-full {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
    transition: all 0.3s ease;
}
.storefront-btn-full:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

/* Modals (Legal) */
.storefront-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5,5,8,0.85);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.storefront-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.storefront-modal {
    background: #0f1016;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 32px;
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.storefront-modal-overlay.active .storefront-modal {
    transform: scale(1);
}

.storefront-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.storefront-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 0;
    color: #fff;
}

.storefront-modal-body {
    overflow-y: auto;
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}
.storefront-modal-body h4 {
    color: #fff;
    margin: 20px 0 10px 0;
}

.storefront-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}
.storefront-modal-close:hover {
    color: #fff;
}

/* Footer Links */
.storefront-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 8%;
    text-align: center;
    background: rgba(0,0,0,0.2);
}
.storefront-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}
.storefront-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}
.storefront-footer-links a:hover {
    color: #fff;
}
.storefront-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .storefront-nav {
        padding: 12px 0;
    }
    .storefront-hero {
        padding: 50px 4% 40px 4%;
    }
    .storefront-hero h1 {
        font-size: 40px;
    }
    .storefront-hero p {
        font-size: 15px;
    }
    .storefront-container {
        padding: 0 4%;
    }
}

/* Glassmorphic Dropdown Menu Panel */
.storefront-menu-drawer {
    position: fixed;
    top: 70px;
    left: 4%;
    width: 380px;
    height: auto;
    max-height: calc(100vh - 90px);
    background: rgba(7, 8, 13, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-main);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.storefront-menu-drawer.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.storefront-menu-drawer-header {
    display: none !important;
}
.storefront-menu-drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.storefront-menu-drawer-body {
    padding: 0 !important;
    overflow: hidden !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Dual Panel Menu Slider */
.storefront-menu-panels-wrapper {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.storefront-menu-panel {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
}

.storefront-menu-drawer.show-subcategories .storefront-menu-panels-wrapper {
    transform: translateX(-50%);
}

.storefront-menu-back-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 0 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.storefront-menu-back-btn:hover {
    color: #fff;
}
.storefront-menu-back-btn svg {
    transition: transform 0.2s ease;
}
.storefront-menu-back-btn:hover svg {
    transform: translateX(-3px);
}

.storefront-subcat-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.storefront-subcat-link:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: var(--primary);
    color: #fff;
}

.storefront-menu-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.storefront-menu-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.2s ease;
    cursor: pointer;
}
.storefront-menu-link:hover,
.storefront-menu-link.active {
    color: var(--primary);
    padding-left: 4px;
}

.storefront-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}

.storefront-menu-trigger {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: 12px;
}
.storefront-menu-trigger:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.02);
}

/* Category Hierarchy Accordion Tree styles */
.storefront-menu-cat-parent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    padding-right: 8px;
    transition: all 0.2s ease;
}
.storefront-menu-cat-parent-row:hover {
    background: rgba(255, 255, 255, 0.03);
}
.storefront-menu-cat-parent-row .storefront-menu-link {
    flex-grow: 1;
}
.storefront-menu-cat-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.storefront-menu-cat-toggle-btn.open {
    transform: rotate(90deg);
}
.storefront-menu-cat-toggle-btn svg {
    transition: color 0.2s ease;
}
.storefront-menu-cat-toggle-btn:hover svg {
    color: #fff;
}
.storefront-menu-cat-children {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: 8px;
}

/* Product Detail Modal */
.storefront-product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.storefront-product-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.storefront-product-modal {
    width: 94%;
    max-width: 960px;
    max-height: 90vh;
    background: rgba(13, 14, 21, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalScaleIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.storefront-product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.storefront-product-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Default Mobile-First (Stacked) Layout */
.storefront-product-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.storefront-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.storefront-detail-gallery,
.storefront-detail-info {
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Fixes CSS Grid layout overflow bug with carousels */
}

/* Desktop Responsive Layout Override */
@media (min-width: 992px) {
    .storefront-product-modal {
        width: 90%;
    }
    .storefront-product-modal-body {
        padding: 40px;
    }
    .storefront-detail-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
    }
}

.storefront-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.storefront-detail-main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.storefront-detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.storefront-detail-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.storefront-detail-thumb.active,
.storefront-detail-thumb:hover {
    border-color: var(--primary);
}

.storefront-detail-info {
    display: flex;
    flex-direction: column;
}
.storefront-detail-cats {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.storefront-detail-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.storefront-detail-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
}
@media (min-width: 992px) {
    .storefront-detail-title {
        font-size: 32px;
    }
}
.storefront-detail-price {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}
.storefront-detail-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}
.storefront-detail-attributes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.storefront-qty-picker {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    width: fit-content;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.storefront-qty-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}
.storefront-qty-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.storefront-qty-val {
    width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* Premium Collapsible Accordions */
.storefront-details-tab summary::-webkit-details-marker {
    display: none;
}
.storefront-details-tab summary {
    outline: none;
    user-select: none;
}
.storefront-details-tab[open] .details-chevron {
    transform: rotate(180deg);
}
.details-chevron {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}
.storefront-details-tab:hover summary span {
    color: var(--primary);
}

/* Cross-Selling Recommendations Shelf */
.storefront-crosssell-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.05) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.storefront-crosssell-card img {
    transition: transform 0.3s ease;
}
.storefront-crosssell-card:hover img {
    transform: scale(1.03);
}

/* Detail Modal Back Button Hover */
#product-detail-back-btn:hover {
    color: #fff !important;
}
#product-detail-back-btn svg {
    transition: transform 0.2s ease;
}
#product-detail-back-btn:hover svg {
    transform: translateX(-2px);
}

/* ==========================================================================
   Search, Wishlist & Profile Account Custom Premium Styles
   ========================================================================== */

/* Search Container in Header */
.storefront-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0 12px;
    height: 38px;
    width: 250px;
    margin: 0 20px;
    position: relative;
    transition: all 0.3s ease;
}
.storefront-search-container:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
    width: 320px;
}
.storefront-search-icon {
    color: var(--text-muted);
    margin-right: 8px;
    flex-shrink: 0;
}
.storefront-search-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
    font-family: var(--font-body);
}
.storefront-search-input::placeholder {
    color: var(--text-muted);
}
.storefront-search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.storefront-search-clear:hover {
    color: #fff;
}

/* Icon Buttons Triggers */
.storefront-icon-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.storefront-icon-trigger:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.storefront-icon-trigger svg {
    transition: transform 0.2s ease;
}
.storefront-icon-trigger:hover svg {
    transform: scale(1.08);
}
.storefront-nav-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0d0e15;
}

/* Card Wishlist Heart Overlays */
.storefront-card-image-wrapper {
    position: relative;
    overflow: hidden;
}
.storefront-wishlist-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(13, 14, 21, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}
.storefront-wishlist-heart-btn:hover {
    background: rgba(13, 14, 21, 0.8);
    color: #ef4444;
    transform: scale(1.1);
}
.storefront-wishlist-heart-btn.active {
    color: #ef4444;
    background: rgba(13, 14, 21, 0.85);
    border-color: rgba(239, 68, 68, 0.3);
}
.storefront-wishlist-heart-btn.active svg {
    fill: #ef4444;
}

/* Wishlist Drawer Card Items */
.storefront-wishlist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.storefront-wishlist-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.storefront-wishlist-item-info {
    flex-grow: 1;
    min-width: 0;
}
.storefront-wishlist-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.storefront-wishlist-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.storefront-wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
.storefront-wishlist-btn-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.storefront-wishlist-btn-cart:hover {
    background: #4f46e5;
}
.storefront-wishlist-btn-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s ease;
}
.storefront-wishlist-btn-remove:hover {
    color: #ef4444;
}

/* Account Profile forms & structures */
.storefront-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}
.storefront-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: color 0.2s ease;
}
.storefront-tab-btn.active {
    color: var(--primary);
}
.storefront-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.storefront-form-group {
    margin-bottom: 16px;
}
.storefront-form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.storefront-form-control {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}
.storefront-form-control:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.06);
}

/* Customer Account Profile Panel */
.storefront-profile-section {
    margin-bottom: 28px;
}
.storefront-profile-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    border-left: 3px solid var(--primary);
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Collapsible Orders History */
.storefront-order-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.storefront-order-header {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}
.storefront-order-header:hover {
    background: rgba(255, 255, 255, 0.04);
}
.storefront-order-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.storefront-order-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.storefront-order-status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.storefront-order-status-badge.processing {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.storefront-order-status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.storefront-order-status-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}
.storefront-order-body {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: none;
    background: rgba(0, 0, 0, 0.15);
}
.storefront-order-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.storefront-order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.storefront-order-item-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}
.storefront-order-item-name {
    flex-grow: 1;
    font-size: 12px;
    color: #d1d5db;
}
.storefront-order-item-qty-price {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

/* Responsive adjustments for header items */
@media (max-width: 768px) {
    .storefront-nav .storefront-search-container,
    .storefront-nav #wishlist-trigger-btn,
    .storefront-nav #profile-trigger-btn {
        display: none !important;
    }
    .storefront-logo {
        font-size: 20px;
    }
    .storefront-mobile-search-bar {
        display: block !important;
    }
    .storefront-menu-mobile-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    .cart-text {
        display: none;
    }
    .storefront-cart-trigger {
        padding: 8px 12px;
    }
    .storefront-nav-right {
        gap: 6px;
    }
    .storefront-menu-drawer {
        top: 117px !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 117px) !important;
        max-height: calc(100vh - 117px) !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        transform: translateY(-20px) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .storefront-menu-drawer.active {
        transform: translateY(0) !important;
    }
}

/* Visual Category Tiles */
.storefront-menu-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.storefront-menu-category-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 0;
    box-sizing: border-box;
}
.storefront-menu-category-tile:hover,
.storefront-menu-category-tile.active {
    background: rgba(147, 51, 234, 0.1);
    border-color: var(--primary);
}
.storefront-menu-category-tile-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    padding-right: 6px;
}
.storefront-menu-category-tile-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

/* Category Action Card & Legal Footer */
.storefront-menu-action-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.storefront-menu-action-card:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: var(--primary);
    color: #fff;
}
.storefront-menu-action-card svg {
    color: var(--primary);
}

.storefront-menu-legal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}
.storefront-menu-legal-footer span {
    color: rgba(255, 255, 255, 0.15);
}
.storefront-menu-legal-footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}
.storefront-menu-legal-footer a:hover {
    color: #fff;
}

/* Headless Payments Integrations */
#stripe-checkout-container {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    margin-top: 10px !important;
}

#stripe-card-element {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#stripe-card-element.StripeElement--focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

#paypal-checkout-container {
    margin-top: 12px;
}

/* ==========================================================================
   FLEXIBLE NAVIGATION & MEGA-MENU SYSTEM (Minimal / Classic / Boutique)
   ========================================================================== */

.storefront-nav.is-transparent {
    background: rgba(7, 8, 13, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.storefront-desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
}

.storefront-desktop-nav.is-centered {
    justify-content: center;
    margin-left: 0;
    gap: 14px;
}

.storefront-boutique-subnav {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 14px;
    padding-top: 10px;
}

/* Boutique 2-Row Layout: 3-column balanced header on Desktop */
@media (min-width: 901px) {
    .storefront-nav.nav-style-boutique .storefront-nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .storefront-nav.nav-style-boutique .storefront-nav-left {
        justify-self: start;
    }

    .storefront-nav.nav-style-boutique .storefront-nav-left .storefront-search-container {
        margin: 0;
        width: 220px;
    }

    .storefront-nav.nav-style-boutique .storefront-logo-centered {
        justify-self: center;
        position: static;
        transform: none;
    }

    .storefront-nav.nav-style-boutique .storefront-nav-right {
        justify-self: end;
    }

    /* Hide Burger Menu on Desktop in Classic & Boutique modes unless explicitly enabled */
    .storefront-nav.nav-style-classic:not(.show-desktop-burger) #menu-trigger-btn,
    .storefront-nav.nav-style-boutique:not(.show-desktop-burger) #menu-trigger-btn {
        display: none !important;
    }
}

.storefront-desktop-nav-item {
    position: relative;
}

.storefront-desktop-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.storefront-desktop-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.storefront-desktop-nav-link.is-highlight {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.28);
    font-weight: 700;
}

.storefront-desktop-nav-link.is-highlight:hover {
    background: rgba(244, 63, 94, 0.22);
    color: #fda4af;
}

/* Glassmorphic Mega-Dropdown on Hover */
.storefront-mega-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 520px;
    background: rgba(13, 15, 24, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    pointer-events: none;
}

.storefront-desktop-nav.is-centered .storefront-mega-dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
}

.storefront-desktop-nav-item.has-mega::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 14px;
}

.storefront-desktop-nav-item.has-mega:hover .storefront-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.storefront-desktop-nav.is-centered .storefront-desktop-nav-item.has-mega:hover .storefront-mega-dropdown {
    transform: translateX(-50%) translateY(0);
}

.storefront-mega-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.storefront-mega-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}

.storefront-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.storefront-mega-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.2s ease;
}

.storefront-mega-card:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.storefront-mega-card img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.storefront-mega-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.storefront-mega-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storefront-mega-card-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Custom Quick Links inside Burger Drawer */
.storefront-drawer-custom-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.storefront-drawer-custom-pill:hover {
    border-color: var(--primary);
    color: #fff;
}

.storefront-drawer-custom-pill.is-highlight {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.35);
    color: #fda4af;
}

/* Mobile App Bottom-Tab-Bar */
.storefront-mobile-bottom-bar {
    display: none;
}

@media (max-width: 900px) {
    .storefront-desktop-nav,
    .storefront-boutique-subnav {
        display: none !important;
    }
    .storefront-logo-centered {
        position: static;
        transform: none;
    }
}

@media (max-width: 768px) {
    .storefront-mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: rgba(10, 11, 18, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        z-index: 1005;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    }

    body {
        padding-bottom: 66px;
    }

    .storefront-mobile-tab-item {
        background: none;
        border: none;
        color: #94a3b8;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 10px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s ease;
        padding: 0;
    }

    .storefront-mobile-tab-item.active,
    .storefront-mobile-tab-item:hover {
        color: var(--primary);
    }

    .storefront-mobile-tab-badge {
        position: absolute;
        top: -5px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 99px;
        background: #ef4444;
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .storefront-mobile-tab-badge.is-cart {
        background: var(--primary);
    }

    /* Mobile Container & Bottom-Sheet Modals */
    #storefront-root {
        container-type: inline-size;
        overflow-x: hidden;
    }

    .storefront-mobile-search-bar .storefront-search-container:focus-within {
        width: auto !important;
    }

    .storefront-product-modal-overlay,
    #product-info-sheet-modal-overlay,
    #legal-modal-overlay,
    #revocation-modal-overlay {
        align-items: flex-end !important;
    }

    .storefront-product-modal,
    #product-info-sheet-modal-overlay .storefront-modal,
    #legal-modal-overlay .storefront-modal,
    #revocation-modal-overlay .storefront-modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 90vh !important;
        border-radius: 22px 22px 0 0 !important;
        margin: 0 !important;
    }

    #product-info-sheet-modal-body {
        padding: 16px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #modal-back-in-stock-box > div {
        flex-wrap: wrap !important;
    }

    #easyshop-cookie-banner {
        bottom: 72px !important;
        left: 12px !important;
        right: 12px !important;
        padding: 16px !important;
    }
}
