/* ================================
   BazarStore Landing Page - Custom CSS
   ================================ */

/* ================================
   Global Styles & Reset
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
}

p {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    line-height: 1.7;
}

/* ================================
   Utility Classes
   ================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Smooth Scroll Links */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* ================================
   Animations & Transitions
   ================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Fade In on Scroll */
.fade-in-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Futuristic typewriter treatment for headings and descriptions */
[data-typewriter] {
    position: relative;
    letter-spacing: 0.02em;
}

[data-typewriter].typewriter-active {
    border-right: 2px solid #4F46E5;
    animation: typewriterCaret 0.8s step-end infinite;
}

[data-typewriter].typewriter-done {
    border-right: none;
}

@keyframes typewriterCaret {
    0%, 49% {
        border-right-color: #4F46E5;
    }
    50%, 100% {
        border-right-color: transparent;
    }
}

/* Floating Animation for Hero Illustration */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatDelayed2 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-delayed-2 {
    animation: floatDelayed2 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Geometric Pattern Background */
.geometric-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .05) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .05) 75%, rgba(0, 0, 0, .05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .05) 26%, transparent 27%, transparent 74%, rgba(0, 0, 0, .05) 75%, rgba(0, 0, 0, .05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, #000000 0%, #4A4A4A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   System Diagrams (SVG)
   ================================ */
.diagram-node {
    fill: #F8F8F8;
    stroke: #1A1A1A;
    stroke-width: 1.5;
}

.diagram-node-primary {
    fill: #000000;
    stroke: #000000;
}

.diagram-node-accent {
    fill: #1A1A1A;
    stroke: #1A1A1A;
}

.diagram-node-dark {
    fill: #111111;
    stroke: #4A4A4A;
}

.diagram-label {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    fill: #1A1A1A;
}

.diagram-label-primary,
.diagram-label-accent,
.diagram-label-dark {
    fill: #FFFFFF;
}

.diagram-sublabel {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.045em;
    fill: rgba(255, 255, 255, 0.6);
}

/* Engineered mechanical depth while scrolling */
.machine-scroll {
    transform: none;
    transition: none;
    will-change: auto;
}

.diagram-line {
    fill: none;
    stroke: #C9C9C9;
    stroke-width: 1.5;
}

.diagram-line-dark {
    stroke: #333333;
}

.diagram-dot {
    fill: #000000;
}

.diagram-dot-dark {
    fill: #FFFFFF;
}

/* ================================
   Platform Rows
   ================================ */
.platform-row {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid #E5E5E5;
    position: relative;
    transition: padding-left 0.3s ease;
}

.platform-row:hover {
    padding-left: 1rem;
}

.platform-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #000000;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.platform-row:hover::before {
    transform: scaleY(1);
}

.platform-card-inverse .platform-row {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.platform-card-inverse .platform-row::before {
    background: #ffffff;
}

/* ================================
   AI Chat Window Mockups
   ================================ */
.chat-window {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    overflow: hidden;
}

.chat-window-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.chat-window-body {
    padding: 1.75rem;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.6rem 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ================================
   Commerce Lifecycle Track
   ================================ */
.lifecycle-track {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem 1rem;
    padding-top: 1rem;
}

.lifecycle-line {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.35) 25%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.35) 75%, transparent);
    background-size: 200% 100%;
    animation: lifecycleFlow 5s linear infinite;
}

@keyframes lifecycleFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lifecycle-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex: 1 1 auto;
}

.lifecycle-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000000;
}

.lifecycle-track-inverse .lifecycle-stage {
    color: #f3f4f6;
}

.lifecycle-track-inverse .lifecycle-line {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25) 25%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.25) 75%, transparent);
}

.lifecycle-track-inverse .lifecycle-dot {
    background: #ffffff;
}

/* ================================
   Header Styles
   ================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(240, 245, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Logo Fallback (if image not loaded) */
#logo-img {
    display: inline-block;
}

#logo-img.hidden {
    display: none;
}

/* Language Selector Styles */
.language-selector-wrapper {
    position: relative;
}

.language-selector-wrapper label {
    position: relative;
}

.language-selector-wrapper select {
    cursor: pointer;
    padding-right: 8px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.language-selector-wrapper select option {
    background-color: #000000;
    color: #FFFFFF;
    padding: 8px;
}

/* Remove default select arrow in IE */
.language-selector-wrapper select::-ms-expand {
    display: none;
}

/* Mobile Language Selector */
#mobile-language-selector {
    width: 100%;
    cursor: pointer;
}

#mobile-language-selector option {
    padding: 8px;
}

/* ================================
   Claim store URL (hero)
   ================================ */
.claim-store-form {
    width: 100%;
    max-width: 34rem;
}

.claim-store-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0.35rem 0.35rem 0.75rem;
    border: 1.5px solid #000000;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.claim-store-url {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.45rem;
    /* Keep domain + store name as one URL line. */
    flex-wrap: nowrap;
}

.claim-store-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    overflow: hidden;
    background: #000000;
}

.claim-store-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.claim-store-prefix {
    flex-shrink: 0;
    color: #4A4A4A;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.claim-store-url input {
    flex: 1 1 auto;
    min-width: 4.5rem;
    width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.55rem 0;
}

.claim-store-url input::placeholder {
    color: #9A9A9A;
}

.claim-store-submit {
    flex: 0 1 auto;
    max-width: 100%;
    border: none;
    background: #000000;
    color: #ffffff;
    padding: 0.7rem 1.15rem;
    font-size: calc(0.875rem * var(--i18n-scale, 1));
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.claim-store-submit:hover {
    background: #1a1a1a;
}

.claim-store-submit:focus-visible,
.claim-store-url input:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .claim-store-bar {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        padding: 0.35rem;
        gap: 0.35rem;
    }

    .claim-store-url {
        width: 100%;
        padding: 0 0.3rem;
    }

    .claim-store-mark {
        width: 1.35rem;
        height: 1.35rem;
    }

    .claim-store-prefix,
    .claim-store-url input {
        font-size: 0.78rem;
    }

    .claim-store-url input {
        padding: 0.5rem 0;
        min-width: 3.25rem;
    }

    .claim-store-submit {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: calc(0.875rem * var(--i18n-scale, 1));
    }
}

/* ================================
   Button Styles
   ================================ */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ================================
   Card Hover Effects
   ================================ */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #000000;
    transition: width 0.3s ease;
}

.feature-card:hover::after {
    width: 100%;
}

/* ================================
   Form Styles
   ================================ */
#beta-form input:focus,
#beta-form select:focus,
#beta-form textarea:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Input Validation States */
input.valid,
select.valid,
textarea.valid {
    border-color: #10B981;
}

input.invalid,
select.invalid,
textarea.invalid {
    border-color: #EF4444;
}

/* Error Message Styles */
.error-message {
    display: none;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.error-message.active {
    display: block;
}

/* Success State */
#success-message {
    animation: fadeIn 0.5s ease-out;
}

/* Loading State */
#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Character Counter */
#char-count {
    font-weight: 600;
}

/* ================================
   Responsive Design
   ================================ */

/* Mobile Menu — 300px was too short and clipped Book a demo / language. */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#mobile-menu.active {
    display: block;
    max-height: min(70vh, 28rem);
    max-height: min(70dvh, 28rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

#mobile-menu.active .flex.flex-col {
    padding-bottom: 0.35rem;
}

#mobile-menu.active #mobile-language-selector {
    min-height: 44px;
    margin-bottom: 0.25rem;
}

/* Header background when mobile menu is open */
#header.mobile-menu-open {
    background-color: rgba(240, 245, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* ================================
   Accessibility
   ================================ */

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Skip to Main Content Link (for screen readers) */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    background: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================
   Responsive Breakpoints
   ================================ */

/* Tablet */
@media (max-width: 1023px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Adjust padding for mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Stack hero buttons */
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Adjust form padding */
    #beta-form {
        padding: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 0.875rem;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {
    header,
    footer,
    #contact {
        display: none;
    }
    
    body {
        color: #000000;
        background: #FFFFFF;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ================================
   Dark Mode Support (Optional Enhancement)
   ================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    body {
        background-color: #1A1A1A;
        color: #FFFFFF;
    }
    
    #header {
        background-color: rgba(26, 26, 26, 0.95);
    }
    
    .bg-pure-white {
        background-color: #1A1A1A;
    }
    
    .bg-off-white {
        background-color: #000000;
    }
    
    .text-pure-black {
        color: #FFFFFF;
    }
    
    .text-medium-gray {
        color: #E5E5E5;
    }
    */
}

/* ================================
   Spinner Animation
   ================================ */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ================================
   Hero Illustration Styles
   ================================ */
.hero-illustration {
    perspective: 1000px;
}

.hero-illustration svg {
    transform-style: preserve-3d;
}

/* ================================
   Scroll Progress Indicator (Optional)
   ================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #000000;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ================================
   Custom Scrollbar (Webkit browsers)
   ================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F8F8F8;
}

::-webkit-scrollbar-thumb {
    background: #4A4A4A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

/* ================================
   Selection Styles
   ================================ */
::selection {
    background-color: #000000;
    color: #FFFFFF;
}

::-moz-selection {
    background-color: #000000;
    color: #FFFFFF;
}

/* ================================
   Storefront section copy (i18n-safe)
   Longer locales scale type via --i18n-scale from language.js
   ================================ */
#storefront .storefront-layout > * {
    min-width: 0;
}

#storefront .storefront-copy {
    min-width: 0;
    overflow-wrap: break-word;
}

#storefront .storefront-eyebrow {
    font-size: calc(0.75rem * var(--i18n-scale, 1));
    line-height: 1.4;
}

@media (min-width: 768px) {
    #storefront .storefront-eyebrow {
        font-size: calc(0.875rem * var(--i18n-scale, 1));
    }
}

#storefront .storefront-title {
    font-size: calc(clamp(1.7rem, 1.05rem + 2.2vw, 3.75rem) * var(--i18n-scale, 1));
    line-height: 1.15;
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
}

#storefront .storefront-desc {
    font-size: calc(clamp(1.05rem, 0.95rem + 0.55vw, 1.5rem) * var(--i18n-scale, 1));
    line-height: 1.45;
    text-wrap: pretty;
    overflow-wrap: break-word;
    hyphens: auto;
}

#storefront .storefront-actions {
    width: 100%;
    flex-wrap: wrap;
}

#storefront .storefront-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem clamp(1rem, 2.5vw, 2rem);
    font-size: calc(0.875rem * var(--i18n-scale, 1));
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#storefront .storefront-cta-solid {
    background: #ffffff;
    color: #000000;
}

#storefront .storefront-cta-solid:hover {
    background: #e5e5e5;
}

#storefront .storefront-cta-outline {
    border: 1px solid #a3a3a3;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
}

.site-nav-links {
    max-width: min(100%, 52rem);
}

.site-nav-link {
    font-size: calc(0.95rem * var(--i18n-scale, 1));
    white-space: nowrap;
}

/* ================================
   Landing storefront mock snippets
   ================================ */
.snippet-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 560px;
    padding: 1rem 0.75rem 1.25rem;
    background: #ffffff;
    border-radius: 2px;
}

/* Same control pattern as admin .design-modes */
.snippet-modes {
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid #000;
    background: #fff;
}

.snippet-modes button {
    border: 0;
    background: transparent;
    color: #000;
    height: 34px;
    margin: 0;
    padding: 0 0.9rem;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.snippet-modes button.is-selected {
    background: #000;
    color: #fff;
}

.snippet-modes button:disabled {
    cursor: default;
    opacity: 0.55;
}

.snippet-modes[hidden] {
    display: none !important;
}

.snippet-frame {
    width: 100%;
    max-width: 100%;
    background: #111;
    border: 1px solid #2a2a2a;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: max-width 0.2s ease;
}

.snippet-frame.is-mobile {
    max-width: 390px;
}

.snippet-frame-chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #1c1c1c;
    border-bottom: 1px solid #2a2a2a;
}

.snippet-frame.is-mobile .snippet-frame-chrome {
    display: none;
}

.device-desktop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
}

.device-desktop-url {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.7rem;
    color: #aaa;
    background: #0d0d0d;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snippet-frame-screen {
    position: relative;
    background: #fff;
    color: #000;
    height: 520px;
    overflow: auto;
}

.snippet-frame.is-mobile .snippet-frame-screen {
    height: 640px;
}

.mock-store {
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    background: #fff;
}

.mock-store-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    z-index: 2;
}

.mock-store-nav-over-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
}


.mock-store-brand {
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.mock-store-nav-links {
    display: flex;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
}

.mock-store-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mock-pill {
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #fff;
    padding: 0.22rem 0.5rem;
    font-size: 0.62rem;
    line-height: 1.2;
}

.mock-pill-solid {
    background: #000;
    border-color: #000;
    color: #fff;
}

.mock-pill-ghost {
    background: rgba(255, 255, 255, 0.12);
}

.mock-menu-icon {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background:
        linear-gradient(#fff, #fff) center 6px / 12px 1.5px no-repeat,
        linear-gradient(#fff, #fff) center / 12px 1.5px no-repeat,
        linear-gradient(#fff, #fff) center 15px / 12px 1.5px no-repeat;
}

.mock-store-hero {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #111;
}

.mock-store-hero.has-wallpaper {
    min-height: 240px;
}

.snippet-frame.is-mobile .mock-store-hero.has-wallpaper {
    min-height: 200px;
}

.mock-store-wallpaper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mock-store-hero.has-wallpaper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.22) 0%,
        rgba(0, 0, 0, 0.4) 42%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

.mock-store-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 0.75rem;
    align-items: end;
    padding: 2.6rem 0.85rem 1rem;
}

.snippet-frame.is-mobile .mock-store-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 2.2rem;
}

.mock-store-hero-name {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(0, 0, 0, 0.4);
}

.mock-store-hero-desc {
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.45;
    max-width: 22rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.snippet-frame.is-mobile .mock-store-hero-desc {
    -webkit-line-clamp: 2;
}

.mock-store-logo-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.snippet-frame.is-mobile .mock-store-logo-wrap {
    justify-content: flex-start;
}

.mock-store-logo {
    width: 4.25rem;
    height: 4.25rem;
    border: 1px solid #000;
    background: #fff;
    overflow: hidden;
}

.snippet-frame.is-mobile .mock-store-logo {
    width: 3.4rem;
    height: 3.4rem;
}

.mock-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.mock-cat {
    border: 1px solid #111;
    background: #fff;
    color: #111;
    padding: 0.35rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.mock-cat.is-active {
    background: #000;
    color: #fff;
}

.mock-catalog {
    padding: 0.85rem;
}

.mock-catalog-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #e5e5e5;
}

.mock-catalog-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
    text-transform: none;
}

.mock-catalog-page {
    font-size: 0.65rem;
    color: #888;
}

.mock-ig-card {
    border: 1px solid #111;
    background: #fff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    padding: 0;
    transition: transform 0.15s ease;
}

.mock-ig-card:hover {
    transform: translateY(-2px);
}

.mock-ig-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid #e5e5e5;
}

.mock-ig-avatar {
    width: 1.55rem;
    height: 1.55rem;
    border: 1px solid #111;
    overflow: hidden;
    flex-shrink: 0;
}

.mock-ig-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-ig-title {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-ig-media {
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #111;
}

.mock-ig-media img {
    width: 42%;
    height: auto;
    object-fit: contain;
}

.mock-ig-meta {
    padding: 0.7rem 0.75rem 0.85rem;
}

.mock-ig-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.mock-ig-meta p {
    margin: 0.4rem 0 0;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.68rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mock-empty {
    margin: 1.5rem 0;
    color: #888;
    font-size: 0.8rem;
    text-align: center;
}

body.mock-modal-open {
    overflow: hidden;
}

.mock-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mock-modal[hidden] {
    display: none !important;
}

.mock-modal-panel {
    width: min(920px, 100%);
    max-height: min(90vh, 640px);
    background: #fff;
    color: #111;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.mock-modal-media {
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
}

.mock-modal-media img {
    max-width: 55%;
    max-height: 70%;
    object-fit: contain;
}

.mock-modal-body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow: auto;
}

.mock-modal-top {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.mock-modal-top button {
    border: 1px solid #ccc;
    background: #fff;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.mock-modal-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #777;
}

.mock-modal-body h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mock-modal-price {
    font-size: 1.05rem;
}

.mock-modal-desc {
    margin: 0;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.45;
}

.mock-field label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.35rem;
}

.mock-field select,
.mock-qty-row input {
    width: 100%;
    border: 1px solid #ccc;
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
    background: #fff;
}

.mock-swatch-row {
    display: flex;
    gap: 0.45rem;
}

.mock-swatch {
    width: 28px;
    height: 28px;
    border: 1px solid #bbb;
    background: var(--swatch, #000);
    cursor: pointer;
    position: relative;
}

.mock-swatch.is-selected::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.mock-qty-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mock-qty-row button {
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.mock-qty-row input {
    width: 64px;
    text-align: center;
}

.mock-stock {
    font-size: 0.75rem;
    color: #777;
}

.mock-add {
    margin-top: auto;
    width: 100%;
    border: 0;
    background: #000;
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.mock-add:hover {
    background: #222;
}

.mock-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(120%);
    background: #111;
    color: #fff;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    z-index: 110;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}

.mock-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 800px) {
    .snippet-preview {
        min-height: 0;
        padding: 0.75rem 0.5rem 1rem;
    }

    .snippet-frame,
    .snippet-frame.is-mobile {
        max-width: 100%;
    }

    .snippet-frame-screen,
    .snippet-frame.is-mobile .snippet-frame-screen {
        height: min(70vh, 640px);
    }
}

@media (max-width: 900px) {
    .mock-modal-panel {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }

    .mock-modal-media {
        min-height: 200px;
    }
}
