/*
 * Mercadin Design System — Festival
 */

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
    /* Purple palette */
    --purple-900: #3b0764;
    --purple-800: #581c87;
    --purple-700: #7c3aed;
    --purple-500: #a855f7;
    --purple-200: #e9d5ff;
    --purple-100: #f3e8ff;
    --purple-50: #faf5ff;
    /* Yellow accent */
    --yellow-400: #facc15;
    --yellow-300: #fde047;
    /* Coral accent */
    --coral-500: #f43f5e;
    --coral-100: #ffe4e6;
    /* Neutrals */
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-500: #78716c;
    --neutral-700: #44403c;
    --neutral-900: #1c1917;
    --white: #ffffff;
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 25px rgba(124, 58, 237, 0.12), 0 4px 10px rgba(0,0,0,0.06);
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Preserved from original - still used throughout */
    --font-size-base: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-sm: .875rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --line-height-base: 1.5;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 1rem;
    --spacing-4: 1.5rem;
    --spacing-5: 3rem;
    --spacing-6: 2.5rem;

    /* Borders */
    --border-width: 1px;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: var(--font-body);
    line-height: var(--line-height-base);
    color: var(--neutral-900);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-900);
    background: var(--neutral-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

a {
    color: var(--purple-700);
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: var(--purple-800);
    text-decoration: underline;
}

img {
    vertical-align: middle;
    border-style: none;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}
@media (min-width: 768px) {
    .container { max-width: 720px; }
}
@media (min-width: 992px) {
    .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

/* ==========================================================================
   Component: Header
   ========================================================================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.75rem;
    color: var(--purple-700);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo:hover {
    text-decoration: none;
    color: var(--purple-700);
}
.logo span {
    color: var(--yellow-400);
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
}
.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--purple-700);
    text-decoration: none;
}
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--neutral-100);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    width: 240px;
    transition: all 0.2s;
    border: 2px solid transparent;
}
.nav-search:focus-within {
    border-color: var(--purple-500);
    background: var(--white);
    width: 300px;
}
.nav-search svg {
    color: var(--neutral-500);
    flex-shrink: 0;
}
.nav-search input {
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
    color: var(--neutral-900);
}
.nav-search input::placeholder { color: var(--neutral-500); }
.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    color: var(--neutral-700);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.cart-btn:hover {
    background: var(--purple-50);
    text-decoration: none;
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--yellow-400);
    color: var(--neutral-900);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-login {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--purple-700);
    background: transparent;
    color: var(--purple-700);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-login:hover {
    background: var(--purple-700);
    color: var(--white);
    text-decoration: none;
}
.btn-login--block {
    width: 100%;
    justify-content: center;
}

/* Mobile menu toggle (hamburger) */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--neutral-700);
    transition: background 0.2s;
}
.mobile-menu-toggle:hover {
    background: var(--neutral-100);
}

/* Checkbox toggle (hidden) */
.nav-toggle { display: none; }

/* Mobile overlay */
.nav-toggle__overlay {
    display: none;
    cursor: pointer;
}

/* Mobile menu panel */
.mobile-menu {
    display: none;
}
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--neutral-200);
    margin-bottom: var(--spacing-3);
}
.mobile-menu__close {
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--neutral-700);
    transition: background 0.2s;
}
.mobile-menu__close:hover {
    background: var(--neutral-100);
}
.mobile-menu__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}
.mobile-menu__links a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 1.1rem;
    padding: var(--spacing-2) 0;
    display: block;
    transition: color 0.2s;
}
.mobile-menu__links a:hover {
    color: var(--purple-700);
    text-decoration: none;
}
.mobile-menu__actions {
    margin-top: var(--spacing-4);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

/* ==========================================================================
   Component: Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    padding: var(--spacing-3) 0;
    font-size: var(--font-size-sm);
    color: var(--neutral-500);
}

.breadcrumbs a {
    color: var(--neutral-500);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
    margin-bottom: var(--spacing-4);
}

.page-title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-normal);
    margin: 0;
}

/* ==========================================================================
   Component: Sidebar / Filter
   ========================================================================== */
.filter__group {
    margin-bottom: var(--spacing-4);
}

.filter__group-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-3);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-3);
}

.filter-bar__label {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
    white-space: nowrap;
}

.filter-bar .form-select {
    width: auto;
    min-width: 200px;
}

/* ==========================================================================
   Product Grid
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--spacing-4);
    padding-top: var(--spacing-3);
}

/* ==========================================================================
   Component: Card
   ========================================================================== */
.card {
    border: var(--border-width) solid var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    background: var(--white);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* Remove default link underline only within card content; buttons keep their own styles */
.card a:not(.btn) {
    text-decoration: none;
    color: var(--neutral-900);
}

.card__image {
    display: block;
    width: 100%;
    background-color: var(--neutral-100);
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

.card__body {
    padding: var(--spacing-3);
    display: grid;
    gap: var(--spacing-2);
    flex: 1;
}

.card__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-2);
}

.card__title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1.3;
}

.card__price {
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1.4;
}

/* Utility / layout helpers */
.text-muted { color: var(--neutral-500); }
.page-subtitle { color: var(--neutral-500); margin-top: var(--spacing-2); }
.page-title--h2 { font-size: var(--font-size-h2); }
.section--tight { margin-bottom: var(--spacing-3); }
.card--spacious { padding: var(--spacing-4); }
.card__placeholder { padding: var(--spacing-3); text-align: center; color: var(--neutral-500); background: var(--neutral-100); }
.container--narrow { max-width: 520px; margin: 0 auto; }
.form-stack { display: grid; gap: var(--spacing-3); }
.btn-row { display: flex; gap: var(--spacing-2); flex-wrap: wrap; }
.placeholder-box { padding: var(--spacing-3); text-align: center; color: var(--neutral-500); border: 1px solid var(--neutral-200); background: var(--neutral-100); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--spacing-3); align-items: start; }
.grid-auto--stretch { align-items: stretch; }
.placeholder-box--sm { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.pt-3 { padding-top: var(--spacing-3); }
.action-bar { display: flex; justify-content: flex-end; gap: var(--spacing-2); flex-wrap: wrap; margin-bottom: var(--spacing-3); }

/* Dashboard */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 72px);
}
.dashboard-sidebar {
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    border-right: 1px solid var(--neutral-200);
}
.dashboard-sidebar__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--spacing-4) 24px;
}
.dashboard-main { min-width: 0; padding: var(--spacing-4) 24px; }
.dashboard-brand { display: grid; gap: var(--spacing-1); }
.dashboard-title { font-size: var(--font-size-h3); font-weight: var(--font-weight-bold); }
.dashboard-nav { display: grid; gap: var(--spacing-1); margin-top: var(--spacing-3); align-content: start; }
.dashboard-nav__link { display: flex; align-items: center; gap: var(--spacing-2); padding: var(--spacing-2) var(--spacing-3); border-radius: var(--radius-md); color: var(--neutral-900); text-decoration: none; font-weight: var(--font-weight-bold); font-size: var(--font-size-sm); }
.dashboard-nav__link:hover { background: var(--neutral-100); text-decoration: none; }
.dashboard-nav__link--active { background: var(--purple-100); color: var(--purple-700); }
.dashboard-nav__link--danger { color: var(--coral-500); }
.dashboard-nav__link .nav-icon { display: flex; align-items: center; flex-shrink: 0; }
.dashboard-nav__footer { border-top: 1px solid var(--neutral-200); padding-top: var(--spacing-2); margin-top: auto; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--spacing-3); margin-bottom: var(--spacing-3); }
.dashboard-section { margin-top: var(--spacing-4); }
.dashboard-cards { display: grid; gap: var(--spacing-3); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-3); }
.stat-card { padding: var(--spacing-3); display: flex; flex-direction: column; gap: var(--spacing-1); }
.stat-card__label { color: var(--neutral-500); margin: 0; font-size: var(--font-size-sm); }
.stat-card__value { font-size: var(--font-size-h2); font-weight: var(--font-weight-bold); margin: 0; }
/* Sidebar store selector */
.dashboard-nav__store-select-wrapper { padding: 0 var(--spacing-2); margin-top: var(--spacing-1); margin-bottom: var(--spacing-2); }
.dashboard-nav__store-select {
    display: block;
    width: 100%;
    padding: var(--spacing-1) var(--spacing-2);
    padding-right: var(--spacing-4);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    background: var(--neutral-50);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.dashboard-nav__store-select:focus {
    outline: none;
    border-color: var(--purple-700);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
/* Mobile sidebar toggle */
.dashboard-toggle:checked ~ .dashboard-sidebar { transform: translateX(0); }
.dashboard-toggle:checked ~ .dashboard-overlay { display: block; }
.dashboard-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 40; }
.dashboard-mobile-toggle { display: none; }

/* ==========================================================================
   Component: Form
   ========================================================================== */
.form-select {
    display: block;
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    text-align: center;
}

/* Form rendering from Django's form.as_p */
.form-stack p {
    margin: 0;
    display: grid;
    gap: var(--spacing-2);
}

.form-stack label {
    font-weight: var(--font-weight-bold);
    color: var(--neutral-900);
}

.form-stack input,
.form-stack select,
.form-stack textarea {
    display: block;
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    font-family: inherit;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--neutral-900);
    background-color: #fff;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
    border-color: var(--purple-500);
}

.form-stack input::placeholder,
.form-stack textarea::placeholder {
    color: var(--neutral-500);
    opacity: 0.7;
}

.form-stack .helptext {
    display: block;
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
}

.form-stack ul {
    margin: 0;
    padding-left: var(--spacing-4);
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    display: grid;
    gap: var(--spacing-1);
}

.form-stack p:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.form-stack p:has(input[type="checkbox"]) label {
}

.form-stack p:has(input[type="checkbox"]) input {
    width: auto;
}

/* Manual form rendering */
.form-group {
    display: grid;
    gap: var(--spacing-1);
}

.form-group label {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
}

.form-group .helptext {
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
}

.form-help {
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    margin: 4px 0 0;
}

.form-group .errorlist {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--coral-500);
    font-size: var(--font-size-sm);
}
.form-error {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--coral-500);
    font-size: var(--font-size-sm);
}
.form-error svg {
    flex-shrink: 0;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--coral-500);
}

.form-group input[type="checkbox"] {
    width: auto;
}

.form-group:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3);
    align-items: start;
}

.form-actions {
    display: flex;
    gap: var(--spacing-2);
    justify-content: flex-end;
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--neutral-200);
}

/* ============ BRANDING SECTION ============ */
.branding-section {
    padding-top: var(--spacing-4);
    margin-top: var(--spacing-3);
    border-top: 2px solid var(--neutral-200);
}
.branding-section__header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.branding-section__header svg {
    color: var(--purple-700);
}
.branding-section__header h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--neutral-900);
    margin: 0;
}
.branding-section__desc {
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    margin: 4px 0 0 30px;
}
.branding-fields {
    display: grid;
    gap: var(--spacing-4);
    margin-top: var(--spacing-4);
}
.branding-field__label {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
    display: block;
    margin-bottom: 8px;
}
.branding-field__hint {
    color: var(--neutral-500);
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
}

/* Logo + Color row */
.branding-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
    align-items: start;
}

/* Logo upload */
.branding-logo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}
.branding-logo-preview {
    min-width: 72px;
    min-height: 72px;
    max-width: 120px;
    border-radius: var(--radius-lg);
    background: var(--neutral-100);
    border: 2px dashed var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--neutral-500);
}
.branding-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.branding-logo-input {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}
.branding-logo-hint {
    color: var(--neutral-500);
    font-size: 0.8rem;
}

/* Color picker */
.branding-color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}
.branding-color-swatch {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--neutral-200);
    flex-shrink: 0;
    cursor: pointer;
}
.branding-color-swatch input[type="color"] {
    position: absolute;
    inset: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
}
.branding-color-swatch input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.branding-color-swatch input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 0;
}
.branding-color-swatch input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 0;
}
.branding-color-hex {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

/* Grid layout options */
.branding-grid-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.branding-grid-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.15s;
    background: var(--white);
    position: relative;
}
.branding-grid-option:hover {
    border-color: var(--purple-200);
    background: var(--purple-50);
}
.branding-grid-option.selected {
    border-color: var(--purple-700);
    background: var(--purple-50);
}
.branding-grid-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.branding-grid-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-align: center;
}
.branding-grid-option.selected .branding-grid-label {
    color: var(--purple-700);
}

/* Wireframe thumbnails */
.branding-grid-svg {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
.branding-grid-option.selected .branding-grid-svg rect:first-child {
    fill: var(--purple-50);
}
.branding-grid-option.selected .branding-grid-svg rect:not(:first-child) {
    fill: var(--purple-300);
}

@media (max-width: 480px) {
    .branding-grid-options {
        grid-template-columns: 1fr;
    }
    .branding-logo-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Input group (prepend) */
.input-group {
    display: flex;
    align-items: stretch;
}
.input-group__prepend {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}
.input-group input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    min-width: 0;
    flex: 1;
}
.input-group--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.input-group--disabled input {
    background: var(--neutral-50);
    color: var(--neutral-500);
    cursor: not-allowed;
}

/* Delivery toggles inline */
.delivery-toggles {
    display: flex;
    gap: var(--spacing-4);
}

/* Conditional fields */
.conditional-fields {
    display: grid;
    gap: var(--spacing-3);
}

/* Branding accordion */
.branding-accordion > summary {
    cursor: pointer;
    list-style: none;
}
.branding-accordion > summary::-webkit-details-marker {
    display: none;
}
.branding-accordion__summary {
    display: flex;
    align-items: center;
    gap: 10px;
}
.branding-accordion__badge {
    font-size: var(--font-size-sm);
    color: var(--neutral-500);
    background: var(--neutral-100);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 500;
}
.branding-accordion__chevron {
    margin-left: auto;
    color: var(--neutral-400);
    transition: transform 0.2s;
}
.branding-accordion[open] .branding-accordion__chevron {
    transform: rotate(180deg);
}

.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    color: var(--neutral-900);
    background-color: var(--neutral-100);
    margin-left: var(--spacing-2);
}

/* ==========================================================================
   Component: Button
   ========================================================================== */
.btn {
    display: inline-block;
    font-weight: var(--font-weight-bold);
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: var(--border-width) solid transparent;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    border-radius: var(--radius-md);
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/* ==========================================================================
   Component: Table
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border: var(--border-width) solid var(--neutral-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table th,
.table td {
    padding: var(--spacing-3);
    text-align: left;
    border-bottom: var(--border-width) solid var(--neutral-200);
    vertical-align: top;
}

.table thead th {
    font-size: var(--font-size-sm);
    color: var(--neutral-500);
    background: var(--neutral-100);
    font-weight: var(--font-weight-bold);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #f4f6f9;
}

.table--striped tbody tr:nth-child(even) {
    background: var(--neutral-100);
}

.order-list-mobile { display: none; }

/* Order detail */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3);
}

.order-detail-item {
    display: grid;
    gap: var(--spacing-1);
}

.order-detail-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--neutral-500);
}

.order-detail-value {
    font-size: var(--font-size-base);
    color: var(--neutral-900);
}

.order-detail-notes {
    margin-top: var(--spacing-3);
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--neutral-200);
}

.order-detail-notes p {
    margin: var(--spacing-1) 0 0;
}

.card-section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-3) 0;
}

.product-thumbnail {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.product-thumbnail--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100);
    color: var(--neutral-500);
    font-size: 0.65rem;
}
.link-unstyled {
    color: inherit;
    text-decoration: none;
}
.link-unstyled:hover {
    text-decoration: underline;
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-flex;
}

.dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: var(--radius-md);
    color: var(--neutral-500);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.dropdown__trigger:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

.dropdown__menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 140px;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card-hover);
    z-index: 20;
    padding: var(--spacing-1) 0;
}

.dropdown.is-open .dropdown__menu {
    display: block;
}

.dropdown__item {
    display: block;
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
    color: var(--neutral-900);
    background: none;
    border: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.dropdown__item:hover {
    background: var(--neutral-100);
    text-decoration: none;
    color: var(--neutral-900);
}

.dropdown__item--danger {
    color: var(--coral-500);
}

.dropdown__item--danger:hover {
    background: var(--coral-100);
    color: var(--coral-500);
}

.btn--primary {
    color: #fff;
    background-color: var(--purple-700);
    border-color: var(--purple-700);
}

.btn--primary:hover {
    color: #fff;
    background-color: var(--purple-800);
    border-color: var(--purple-800);
    text-decoration: none;
}

.btn--secondary {
    color: var(--purple-700);
    background-color: transparent;
    border-color: var(--neutral-200);
    padding-left: var(--spacing-3);
    padding-right: var(--spacing-3);
}

.btn--secondary:hover {
    background-color: var(--neutral-100);
}

.btn--danger {
    color: var(--white);
    background-color: var(--coral-500);
    border-color: var(--coral-500);
}
.btn--danger:hover {
    background-color: #e11d48;
    border-color: #e11d48;
}

.btn--block {
    display: block;
    width: 100%;
}

/* ============ PRODUCT DETAIL ============ */
.pd-store-header {
    border-bottom: 1px solid var(--neutral-100);
    background: var(--white);
}
.pd-store-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.pd-store-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--neutral-900);
    min-width: 0;
}
.pd-store-header-brand:hover { color: var(--store-700, var(--purple-700)); }
.pd-store-header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.pd-store-header-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-store-header .btn-whatsapp-bar {
    font-size: 0.8rem;
    padding: 6px 16px;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .pd-store-header-inner { padding: 10px 16px; }
    .pd-store-header-name { font-size: 0.85rem; }
}

.pd-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--neutral-500);
    margin-bottom: 32px;
}
.pd-breadcrumbs a {
    color: var(--neutral-500);
    text-decoration: none;
    transition: color 0.2s;
}
.pd-breadcrumbs a:hover { color: var(--store-700, var(--purple-700)); }
.pd-breadcrumbs svg { flex-shrink: 0; color: var(--neutral-200); }

.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.pd-image-area {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.pd-image-area:has(img) {
    max-height: 600px;
}
.pd-main-image {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: contain;
}
video.pd-main-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
.pd-placeholder {
    color: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pd-info .tag { margin-bottom: 12px; }
.pd-info > .pd-title:first-child { margin-top: 4px; }
.pd-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--neutral-900);
    line-height: 1.2;
    margin-bottom: 16px;
}
.pd-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.pd-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--neutral-700);
}
.pd-stock {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}
.pd-stock--available {
    background: #dcfce7;
    color: #166534;
}
.pd-stock--unavailable {
    background: var(--coral-100);
    color: var(--coral-500);
}
.pd-description {
    color: var(--neutral-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

.pd-cart-form {
    border-top: 1px solid var(--neutral-200);
    padding-top: 24px;
    margin-bottom: 24px;
}
.pd-quantity {
    margin-bottom: 16px;
}
.pd-quantity label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neutral-700);
    margin-bottom: 8px;
}
.pd-quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.pd-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--neutral-50);
    color: var(--neutral-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.pd-qty-btn:hover { background: var(--neutral-200); }
.pd-qty-input {
    width: 60px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--neutral-200);
    border-right: 1px solid var(--neutral-200);
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    outline: none;
    -moz-appearance: textfield;
}
.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pd-add-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
}

.pd-store-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    margin-top: 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pd-store-info--link:hover {
    border-color: var(--store-300, var(--neutral-300));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.pd-store-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--store-100, var(--purple-100));
    color: var(--store-700, var(--purple-700));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pd-store-logo {
    max-width: 80px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    align-self: center;
}
.pd-store-details {
    flex: 1;
    min-width: 0;
}
.pd-store-info--stacked {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.pd-store-info--stacked .pd-store-logo {
    max-width: 140px;
    max-height: 48px;
}
.pd-store-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 2px;
}
.pd-store-location {
    font-size: 0.8rem;
    color: var(--neutral-500);
    margin: 0;
}
.pd-store-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--store-700, var(--neutral-500));
    margin-top: 2px;
}
.pd-store-arrow {
    flex-shrink: 0;
    color: var(--neutral-400);
    display: flex;
    align-items: center;
    align-self: center;
    transition: color 0.2s;
}
.pd-store-info--link:hover .pd-store-arrow {
    color: var(--neutral-600);
}
.pd-share {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}
.pd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Customer Account Layout
   ========================================================================== */
.account-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
}
.account-sidebar {
    position: sticky;
    top: 104px;
    align-self: start;
}
.account-sidebar__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-500);
    margin-bottom: 16px;
}
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.account-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.account-nav__link:hover {
    background: var(--purple-50);
    color: var(--purple-700);
}
.account-nav__link--active {
    background: var(--purple-50);
    color: var(--purple-700);
    font-weight: 600;
}
.account-nav__link svg { flex-shrink: 0; }

/* ==========================================================================
   Shopping Cart Page
   ========================================================================== */
.store-checkout-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}
.cart-page-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--neutral-900);
    margin-bottom: 24px;
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}
.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--neutral-100);
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-200);
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.cart-item-category {
    font-size: 0.78rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cart-item-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--neutral-900);
    margin-top: 4px;
}
.cart-qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cart-qty-input {
    width: 40px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--neutral-200);
    border-right: 1px solid var(--neutral-200);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-900);
    outline: none;
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    color: var(--neutral-500);
    transition: all 0.2s;
}
.cart-item-remove:hover {
    background: var(--coral-100);
    color: var(--coral-500);
}

.cart-summary {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 104px;
}
.cart-summary-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--neutral-200);
    font-size: 0.95rem;
}
.cart-summary-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}
.cart-summary-note {
    font-size: 0.8rem;
    color: var(--neutral-500);
    margin-top: 8px;
    margin-bottom: 24px;
}
.cart-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--neutral-700);
}
.cart-notes {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.cart-notes:focus { border-color: var(--purple-500); }
.delivery-notes {
    font-size: 0.8rem;
    color: var(--neutral-500);
    line-height: 1.4;
    text-align: center;
}

.delivery-method-label {
    font-size: var(--font-size-base);
    color: var(--neutral-700);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--neutral-700);
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}
.payment-option:has(input:checked) {
    border-color: var(--purple-500);
    background: var(--purple-50);
}
.payment-option input[type="radio"] {
    accent-color: var(--purple-600);
}
.payment-notice {
    font-size: 0.8rem;
    color: var(--neutral-500);
    line-height: 1.4;
}
.cart-checkout-btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   Component: Toast Messages
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toast-in 0.3s ease-out;
}
.toast--success {
    background: #065f46;
    color: #fff;
}
.toast--error {
    background: var(--coral-500);
    color: #fff;
}
.toast--info, .toast--warning {
    background: var(--neutral-900);
    color: #fff;
}
.toast__text {
    flex: 1;
}
.toast__close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 2px;
    line-height: 1;
}
.toast__close:hover {
    opacity: 1;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 480px) {
    .toast-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

/* ==========================================================================
   Component: Footer
   ========================================================================== */
.footer {
    background: var(--neutral-900);
    color: rgba(255,255,255,0.6);
    padding: 48px 24px 24px;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo {
    margin-bottom: 12px;
    display: block;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer a:hover { color: var(--white); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* ============ BUTTONS ============ */
.btn-primary {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--yellow-400);
    color: var(--neutral-900);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    background: var(--yellow-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(250,204,21,0.4);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
}

.btn-purple {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--purple-700);
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-purple:hover {
    background: var(--purple-500);
    transform: translateY(-1px);
}

.btn-outline-purple {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--purple-700);
    background: transparent;
    color: var(--purple-700);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-purple:hover {
    background: var(--purple-700);
    color: var(--white);
}

.btn-brand {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--store-700, var(--purple-700));
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-brand:hover {
    background: var(--store-500, var(--purple-500));
    transform: translateY(-1px);
    color: var(--white);
    text-decoration: none;
}

.btn-outline-brand {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--store-700, var(--purple-700));
    background: transparent;
    color: var(--store-700, var(--purple-700));
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-brand:hover {
    background: var(--store-700, var(--purple-700));
    color: var(--white);
    text-decoration: none;
}

.btn-add-cart {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--store-700, var(--purple-700));
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-add-cart:hover {
    background: var(--store-500, var(--purple-500));
    transform: scale(1.1);
}
.btn-add-cart:active { transform: scale(0.95); }

/* ============ TAGS & BADGES ============ */
.tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.tag-purple { background: var(--purple-100); color: var(--purple-700); }
.tag-yellow { background: #fef9c3; color: #854d0e; }
.tag-coral { background: var(--coral-100); color: var(--coral-500); }
.tag-brand { background: var(--store-100, var(--purple-100)); color: var(--store-700, var(--purple-700)); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-new { background: var(--yellow-400); color: var(--neutral-900); }
.badge-sale { background: var(--coral-500); color: var(--white); }

/* ============ CATEGORY PILLS ============ */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--neutral-200);
    background: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.cat-pill:hover {
    border-color: var(--purple-500);
    color: var(--purple-700);
    background: var(--purple-50);
}
.cat-pill.active {
    border-color: var(--purple-700);
    background: var(--purple-700);
    color: var(--white);
}

/* ============ SECTIONS ============ */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
    margin-top: var(--spacing-4);
    padding: var(--spacing-3) 0;
}
.pagination__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-200);
    background: var(--white);
    color: var(--store-700, var(--purple-700));
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.pagination__link:hover {
    background: var(--store-50, var(--purple-50));
    border-color: var(--store-200, var(--purple-200));
}
.pagination__info {
    font-size: var(--font-size-sm);
    color: var(--neutral-500);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--neutral-900);
}
.section-link {
    font-weight: 600;
    color: var(--purple-700);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.section-link:hover { gap: 8px; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation: fadeInUp 0.5s ease 0.05s both; }
.stagger-2 { animation: fadeInUp 0.5s ease 0.1s both; }
.stagger-3 { animation: fadeInUp 0.5s ease 0.15s both; }
.stagger-4 { animation: fadeInUp 0.5s ease 0.2s both; }
.stagger-5 { animation: fadeInUp 0.5s ease 0.25s both; }
.stagger-6 { animation: fadeInUp 0.5s ease 0.3s both; }
.stagger-7 { animation: fadeInUp 0.5s ease 0.35s both; }
.stagger-8 { animation: fadeInUp 0.5s ease 0.4s both; }

/* ============ HERO ============ */
.hero {
    background: var(--purple-900);
    position: relative;
    overflow: hidden;
    padding: 80px 24px 100px;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168,85,247,0.3) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(250,204,21,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    color: var(--yellow-300);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease both;
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    line-height: 1.1;
    max-width: 700px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 em {
    font-style: normal;
    color: var(--yellow-400);
}
.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ============ STORE CARDS ============ */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.store-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.store-card-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    position: relative;
    padding: 16px;
}
.store-card-banner.alt-1 {
    background: linear-gradient(135deg, #059669, #34d399);
}
.store-card-banner.alt-2 {
    background: linear-gradient(135deg, var(--coral-500), #fb923c);
}
.store-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--purple-700);
    font-family: var(--font-display);
    position: absolute;
    bottom: -24px;
    left: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.store-avatar-logo {
    position: absolute;
    bottom: -24px;
    left: 20px;
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.store-card-body {
    padding: 32px 20px 20px;
}
.store-card-body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.store-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--neutral-500);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.store-meta svg { flex-shrink: 0; }
.store-description {
    font-size: 0.85rem;
    color: var(--neutral-500);
    line-height: 1.5;
}

/* ============ LOCATION CARDS ============ */
.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--white);
    border: 2px solid var(--neutral-100);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    text-align: center;
}
.location-card:hover {
    border-color: var(--purple-200);
    background: var(--purple-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
.location-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--purple-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-700);
    transition: background 0.2s;
}
.location-card:hover .location-card-icon {
    background: var(--purple-100);
}
.location-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--neutral-900);
}
.location-card-count {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

/* ============ PRODUCT CARDS ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}
.product-card-link:hover { color: inherit; }
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.product-img {
    aspect-ratio: 4 / 5;
    background: var(--neutral-100);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-img .placeholder-icon { color: var(--neutral-200); }
.product-img__video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: var(--neutral-100);
}
.product-img__video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-img__video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-img__play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img__play-icon svg {
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border-radius: var(--radius-full);
    padding: 10px;
    width: 48px;
    height: 48px;
    transition: transform 0.15s ease, background 0.15s ease;
}
.product-img__video-wrapper:hover .product-img__play-icon svg {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}
.product-img__video-wrapper.playing .product-img__play-icon {
    display: none;
}
.product-card-body {
    padding: 16px;
}
.product-category {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--purple-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-card-body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-current {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--neutral-900);
}
.price-old {
    font-size: 0.85rem;
    color: var(--neutral-500);
    text-decoration: line-through;
}
.product-card-footer {
    padding: 0 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-store-name {
    font-size: 0.8rem;
    color: var(--neutral-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ STORE DETAIL ============ */
.store-hero {
    position: relative;
}

/* Brand-colored banner */
.store-hero-banner {
    background:
        radial-gradient(ellipse 60% 70% at 0% 100%, var(--store-500, var(--purple-500)), transparent 60%),
        radial-gradient(ellipse 50% 80% at 100% 0%, var(--store-700, var(--purple-700)), transparent 55%),
        radial-gradient(ellipse 40% 50% at 50% 120%, var(--store-800, var(--purple-800)), transparent 50%),
        linear-gradient(160deg, var(--store-900, var(--purple-900)) 0%, var(--store-800, var(--purple-800)) 100%);
    padding: 44px 24px 40px;
    position: relative;
    overflow: hidden;
}
.store-hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.store-hero-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ─── Logo wrap (transparent logos get glass background) ─── */
.store-hero-logo-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.store-hero-logo-wrap--glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
}
.store-hero-logo-wrap--dark-logo {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* ─── Wide logo (wordmark): stacked, logo is the title ─── */
.store-hero-banner--wide .store-hero-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.store-hero-logo--wide {
    max-width: 240px;
    max-height: 56px;
    object-fit: contain;
    display: block;
}

/* ─── Square logo: side by side with text ─── */
.store-hero-logo--square {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.15);
    padding: 6px;
    flex-shrink: 0;
}

/* ─── No logo: letter avatar ─── */
.store-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--white);
    flex-shrink: 0;
}

/* Name + description */
.store-hero-text {
    flex: 1;
    min-width: 0;
}
.store-hero-text h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}
.store-hero-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin-top: 6px;
    max-width: 480px;
    line-height: 1.5;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Details bar below banner */
.store-hero-bar {
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
}
.store-hero-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.store-hero-details {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.store-hero-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--neutral-500);
    font-size: 0.84rem;
}
.store-hero-detail svg {
    flex-shrink: 0;
    color: var(--store-700, var(--purple-700));
}
.store-hero-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neutral-700);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--neutral-200);
    background: var(--white);
    transition: all 0.2s;
    flex-shrink: 0;
}
.store-hero-share:hover {
    border-color: var(--store-700, var(--purple-700));
    color: var(--store-700, var(--purple-700));
    background: var(--store-50, var(--purple-50));
    text-decoration: none;
}

.store-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.store-filters-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    width: 280px;
    transition: all 0.2s;
}
.store-filters-search:focus-within {
    border-color: var(--purple-500);
}
.store-filters-search svg { color: var(--neutral-500); flex-shrink: 0; }
.store-search-input {
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
    color: var(--neutral-900);
}
.store-filters-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.store-filters-cats::-webkit-scrollbar { display: none; }
.sort-select {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 10px 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--neutral-700);
    cursor: pointer;
    outline: none;
}
.sort-select:focus { border-color: var(--purple-500); }
.store-product-count {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--neutral-500);
}
.store-branded .cat-pill:hover {
    border-color: var(--store-500);
    color: var(--store-700);
    background: var(--store-50);
}
.store-branded .cat-pill.active {
    border-color: var(--store-700);
    background: var(--store-700);
    color: var(--white);
}
.store-branded .store-filters-search:focus-within {
    border-color: var(--store-500);
}
.store-branded .sort-select:focus {
    border-color: var(--store-500);
}
.store-branded .product-category {
    color: var(--store-700);
}
.store-branded .btn-add-cart {
    background: var(--store-700);
}
.store-branded .btn-add-cart:hover {
    background: var(--store-500);
}
.store-branded .product-card:hover {
    color: inherit;
}
.store-branded .product-card:hover .product-card-body h3 {
    color: var(--store-700);
}
.products-grid--compact .products-grid { grid-template-columns: repeat(2, 1fr); }
.products-grid--standard .products-grid { grid-template-columns: repeat(3, 1fr); }
.products-grid--list .products-grid { grid-template-columns: 1fr; }

@media (max-width: 768px) {
    .products-grid--standard .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .products-grid--compact .products-grid,
    .products-grid--standard .products-grid { grid-template-columns: 1fr; }
}
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--neutral-500);
}
.empty-state p { margin-top: 12px; }

/* ============ CTA BANNER ============ */
.cta-banner {
    background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-800) 50%, var(--purple-700) 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250,204,21,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 8px;
}
.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
}
.cta-banner .btn-primary { position: relative; z-index: 1; }

/* ============ SEARCH PAGE ============ */
.search-hero {
    background: var(--purple-900);
    padding: 48px 24px 56px;
    text-align: center;
}
.search-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}
.search-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 24px;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.search-bar svg { color: var(--neutral-500); flex-shrink: 0; }
.search-bar input {
    border: none;
    background: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    width: 100%;
    color: var(--neutral-900);
}
.search-bar input::placeholder { color: var(--neutral-500); }
.search-submit {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--purple-700);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-submit:hover { background: var(--purple-500); }

.search-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}
.search-filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.search-results-count {
    font-size: 0.9rem;
    color: var(--neutral-500);
    margin-bottom: 24px;
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--neutral-50);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
}
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 16px 0 4px;
}
.auth-header p {
    color: var(--neutral-500);
    font-size: 0.9rem;
}
.auth-form p {
    margin-bottom: 16px;
}
.auth-form .helptext {
    display: none;
}
.auth-form > ul:not(.errorlist) {
    display: none;
}
.auth-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--red-600, #dc2626);
}
.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--neutral-700);
    margin-bottom: 6px;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--purple-500);
}
.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}
.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--neutral-500);
}
.auth-link a {
    color: var(--purple-700);
    font-weight: 600;
    text-decoration: none;
}
.auth-link a:hover { text-decoration: underline; }
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--neutral-200);
}
.auth-divider span {
    background: var(--white);
    padding: 0 16px;
    color: var(--neutral-500);
    font-size: 0.85rem;
    position: relative;
}

/* ============ MERCHANT CTA ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--purple-100);
    color: var(--purple-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--neutral-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

.how-it-works {
    background: var(--purple-50);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.step { text-align: center; }
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--purple-700);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 12px;
}
.step h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.step p {
    color: var(--neutral-500);
    font-size: 0.85rem;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
    }

    .nav-toggle__overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 900;
    }

    .nav-toggle:checked ~ .nav-toggle__overlay {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 88vw);
        background: var(--white);
        padding: var(--spacing-4);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow-card-hover);
        z-index: 1000;
    }

    .nav-toggle:checked ~ .mobile-menu {
        transform: translateX(0);
    }

    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        background: var(--white);
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 1000;
        height: 100vh;
    }

    .dashboard-mobile-toggle {
        display: flex;
        align-items: center;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero { padding: 60px 24px 80px; }
    .hero h1 { font-size: 2rem; }
    .stores-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-banner { flex-direction: column; text-align: center; padding: 32px; }

    .store-hero-banner { padding: 32px 20px; }
    .store-hero-banner-inner { flex-direction: column; text-align: center; gap: 16px; }
    .store-hero-banner--wide .store-hero-banner-inner { align-items: center; }
    .store-hero-logo--wide { max-width: 200px; }
    .store-hero-bar-inner { flex-direction: column; gap: 12px; align-items: center; }
    .store-hero-details { justify-content: center; flex-direction: column; align-items: center; gap: 8px; }
    .store-hero-bar-actions { margin-left: 0; justify-content: center; }
    .store-hero-share { align-self: center; }
    .store-filters { flex-direction: column; align-items: stretch; }
    .store-filters-search { width: 100%; }

    .pd-layout { grid-template-columns: 1fr; gap: 24px; }

    .search-filters { flex-direction: column; }

    .account-layout { grid-template-columns: 1fr; padding: 16px 12px; gap: 16px; }
    .account-sidebar { display: none; }

    .footer--compact-mobile { padding: 24px 16px 16px; margin-top: 24px; }
    .footer--compact-mobile .footer-inner { gap: 0; margin-bottom: 16px; }
    .footer--compact-mobile .footer-links-col { display: none; }
    .footer--compact-mobile .footer-brand p { display: none; }
    .footer--compact-mobile .footer-bottom { padding-top: 16px; font-size: 0.8rem; }

    .account-main .card--spacious { padding: var(--spacing-2); }
    .account-main .page-header { margin-bottom: var(--spacing-2); }
    .account-main .page-title { font-size: 1.5rem; }

    .order-detail-grid { grid-template-columns: 1fr; gap: var(--spacing-2); }

    .order-list-mobile { display: flex; flex-direction: column; gap: var(--spacing-2); }
    .order-list-mobile .order-card {
        display: block;
        padding: var(--spacing-3);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-lg);
        text-decoration: none;
        color: inherit;
    }
    .order-list-mobile .order-card:hover { background: var(--neutral-50); }
    .order-list-mobile .order-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-1);
    }
    .order-list-mobile .order-card-header strong { font-size: var(--font-size-base); color: var(--primary-600); }
    .order-list-mobile .order-card-header span { font-size: var(--font-size-sm); color: var(--neutral-500); }
    .order-list-mobile .order-card-body { font-size: var(--font-size-sm); color: var(--neutral-600); }
    .order-list-mobile .order-card-body span { display: inline-block; margin-right: var(--spacing-2); }
    .order-list-mobile .order-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: var(--spacing-1);
        padding-top: var(--spacing-1);
        border-top: 1px solid var(--neutral-100);
        font-size: var(--font-size-sm);
    }

    .table-responsive-desktop { display: none; }

    .action-bar {
        flex-direction: column;
        gap: var(--spacing-2);
    }
    .action-bar .btn,
    .action-bar form { width: 100%; }
    .action-bar form button { width: 100%; }

    .cart-layout { grid-template-columns: 1fr; gap: 16px; }

    .store-checkout-page { padding: 16px 12px 32px; }

    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px;
    }
    .cart-item-image { width: 64px; height: 64px; }
    .cart-item-info { flex-basis: calc(100% - 80px); }
    .cart-item-qty { margin-left: auto; }
    .cart-item-remove { position: absolute; top: 12px; right: 12px; }
    .cart-item { position: relative; padding-right: 40px; }

    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .how-it-works { padding: 32px 24px; }

    .merchant-stores-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Merchant Global Dashboard
   ========================================================================== */

/* Store cards grid */
.merchant-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-3);
}

.merchant-store-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.merchant-store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    text-decoration: none;
    color: inherit;
}

.merchant-store-card__banner {
    height: 6px;
    background: linear-gradient(90deg, var(--purple-700), var(--purple-500));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.merchant-store-card__body {
    padding: var(--spacing-3);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.merchant-store-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
}

.merchant-store-card__name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.merchant-store-card__stats {
    display: flex;
    gap: var(--spacing-3);
    margin-top: auto;
    padding-top: var(--spacing-2);
    border-top: 1px solid var(--neutral-200);
}

.merchant-store-card__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.merchant-store-card__stat-value {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
}

.merchant-store-card__stat-label {
    font-size: var(--font-size-sm);
    color: var(--neutral-500);
}

.merchant-store-card__footer {
    padding: var(--spacing-2) var(--spacing-3);
    border-top: 1px solid var(--neutral-200);
    text-align: center;
}

/* Colored stat card variants */
.stat-card--purple {
    border-left: 4px solid var(--purple-700);
    background: linear-gradient(135deg, var(--purple-50), var(--white));
}

.stat-card--yellow {
    border-left: 4px solid var(--yellow-400);
    background: linear-gradient(135deg, #fffbeb, var(--white));
}

/* Quick action cards */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3);
}
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-1);
    padding: var(--spacing-3);
    text-align: center;
    text-decoration: none;
    color: var(--neutral-900);
    transition: box-shadow 0.2s, transform 0.2s;
}
.quick-action-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.quick-action-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--purple-100);
    color: var(--purple-700);
}
.quick-action-card__label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--font-size-base);
}
.quick-action-card__desc {
    font-size: var(--font-size-sm);
    color: var(--neutral-500);
}
@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2);
    }
    .quick-action-card { padding: var(--spacing-2); }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

.badge--success {
    background: #dcfce7;
    color: #166534;
}

.badge--muted {
    background: var(--neutral-100);
    color: var(--neutral-500);
}

/* Sidebar additions */
.dashboard-nav__divider {
    height: 1px;
    background: var(--neutral-200);
    margin: var(--spacing-2) 0;
}

.dashboard-nav__store-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--neutral-500);
    padding: 0 var(--spacing-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Small button */
.btn--sm {
    padding: var(--spacing-1) var(--spacing-2);
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   Media Upload Widget
   ========================================================================== */
.media-upload__items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.media-upload__item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--neutral-100);
}
.media-upload__item img,
.media-upload__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-upload__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-upload__remove:hover {
    background: rgba(0,0,0,0.8);
}
.media-upload__badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: var(--purple-700);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.media-upload__item[draggable="true"] {
    cursor: grab;
}
.media-upload__item[draggable="true"]:active {
    cursor: grabbing;
}
.media-upload__item--dragging {
    opacity: 0.4;
}
.media-upload__item--dragover {
    outline: 2px solid var(--purple-500);
    outline-offset: 2px;
}
.media-upload__add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 2px dashed var(--neutral-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--neutral-500);
    transition: border-color 0.2s, color 0.2s;
}
.media-upload__add:hover {
    border-color: var(--purple-500);
    color: var(--purple-700);
}
.media-upload__add-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.media-upload__add-text {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ==========================================================================
   Product Detail Gallery
   ========================================================================== */
.pd-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}
.pd-thumb {
    flex-shrink: 0;
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--neutral-100);
    transition: border-color 0.2s;
}
.pd-thumb img,
.pd-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-thumb--active {
    border-color: var(--store-700, var(--purple-700));
}
.pd-thumb:hover {
    border-color: var(--store-500, var(--purple-500));
}
.pd-thumb__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: var(--white);
    font-size: 1.2rem;
}

/* ==========================================================================
   Merchant Panel: Form Section Headers
   ========================================================================== */
.form-section-header {
    padding-top: 0;
    margin-top: 0;
}
.form-section-header ~ .form-section-header {
    padding-top: var(--spacing-3);
    margin-top: var(--spacing-2);
    border-top: 2px solid var(--neutral-200);
}
.form-section-header__title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section-header__title svg {
    color: var(--purple-700);
}
.form-section-header__title h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
}
.form-section-header__desc {
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    margin: 4px 0 0 30px;
}

/* ==========================================================================
   Merchant Panel: Empty States
   ========================================================================== */
.empty-state--merchant {
    text-align: center;
    padding: 48px 24px;
    color: var(--neutral-500);
}
.empty-state--merchant svg {
    color: var(--neutral-300);
    margin-bottom: var(--spacing-3);
}
.empty-state--merchant__title {
    font-family: var(--font-display);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--neutral-700);
    margin: 0 0 var(--spacing-2);
}
.empty-state--merchant__desc {
    color: var(--neutral-500);
    font-size: var(--font-size-base);
    margin: 0 0 var(--spacing-4);
}
.empty-state--merchant .btn {
    margin-top: var(--spacing-2);
}

/* ==========================================================================
   Merchant Panel: Card Section Title with Icon
   ========================================================================== */
.card-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--spacing-3) var(--spacing-3) 0;
    margin-bottom: var(--spacing-2);
}
.card-section-header svg {
    color: var(--purple-700);
    flex-shrink: 0;
}
.card-section-header h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.suggestion-item:hover { background: var(--neutral-50); }

@media (max-width: 768px) {
    .filter-toggle-btn { display: inline-flex !important; }
    .search-filters { display: none !important; }
    .search-filters.is-open { display: flex !important; flex-direction: column; width: 100%; }
}

/* ==========================================================================
   Order Status Pipeline
   ========================================================================== */

.order-status-section {
    margin-top: var(--spacing-3);
    padding-top: var(--spacing-3);
    border-top: 1px solid var(--neutral-200);
}

.order-pipeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    padding: var(--spacing-2) 0;
}

.pipeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.pipeline-step::after {
    content: '';
    position: absolute;
    top: 10px;
    left: calc(50% + 12px);
    right: calc(-50% + 12px);
    height: 2px;
    background: var(--neutral-200);
}

.pipeline-step:last-child::after {
    display: none;
}

.pipeline-step--done::after {
    background: var(--store-700, var(--purple-700));
}

.pipeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neutral-200);
    border: 2px solid var(--neutral-200);
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.pipeline-step--done .pipeline-dot {
    background: var(--store-700, var(--purple-700));
    border-color: var(--store-700, var(--purple-700));
}

.pipeline-step--done .pipeline-dot::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 3px;
    width: 8px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

.pipeline-step--active .pipeline-dot {
    background: white;
    border-color: var(--store-700, var(--purple-700));
    border-width: 3px;
    box-shadow: 0 0 0 4px var(--store-100, var(--purple-100));
}

.pipeline-step--cancelled .pipeline-dot {
    background: var(--coral-500);
    border-color: var(--coral-500);
}

.pipeline-step--cancelled .pipeline-dot::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 5px;
    width: 6px;
    height: 6px;
    background: transparent;
    border: none;
    transform: none;
}

.pipeline-step--cancelled .pipeline-dot::before,
.pipeline-step--cancelled .pipeline-dot::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 3px;
    width: 8px;
    height: 2px;
    background: white;
    border: none;
    transform: rotate(45deg);
}

.pipeline-step--cancelled .pipeline-dot::after {
    transform: rotate(-45deg);
}

.pipeline-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.pipeline-step--active .pipeline-label {
    color: var(--store-700, var(--purple-700));
}

.pipeline-step--done .pipeline-label {
    color: var(--neutral-700);
}

.pipeline-step--cancelled .pipeline-label {
    color: var(--coral-500);
}

.order-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-top: var(--spacing-4);
    padding-top: var(--spacing-3);
}

.order-actions .btn--primary {
    flex: 0 0 auto;
}

.btn--ghost-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    font-family: 'DM Sans', sans-serif;
    color: var(--neutral-500);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color 0.15s ease;
}

.btn--ghost-danger:hover {
    color: var(--coral-500);
}

@media (max-width: 480px) {
    .pipeline-label {
        font-size: 0.6rem;
    }
    .order-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .order-actions .btn--primary,
    .order-actions .btn--ghost-danger {
        width: 100%;
    }
}

/* ─── Store Page Nav ─── */
/* ─── Store Nav Brand (scroll-reveal) ─── */
.store-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--neutral-900);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    position: absolute;
}
.header:not(.header--store-visible) .store-nav-brand {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: static;
}
@media (min-width: 769px) {
    body:has(.pd-store-header) .header { display: none; }
}
.store-nav-brand:hover { color: var(--store-700, var(--purple-700)); }
.store-nav-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.store-nav-brand-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.store-nav-powered {
    font-size: 0.75rem;
    color: var(--neutral-400);
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

.store-nav-powered strong {
    font-family: 'Outfit', sans-serif;
    color: var(--neutral-500);
}

.store-nav-powered .logo-dot {
    color: var(--yellow-400);
}

.store-nav-powered:hover {
    color: var(--neutral-600);
}

.store-nav-powered:hover strong {
    color: var(--store-700, var(--purple-700));
}

.store-branded .btn--primary {
    background-color: var(--store-700, var(--purple-700));
    border-color: var(--store-700, var(--purple-700));
}
.store-branded .btn--primary:hover {
    background-color: var(--store-800, var(--purple-800));
    border-color: var(--store-800, var(--purple-800));
}
.store-branded .btn--secondary {
    color: var(--store-700, var(--purple-700));
}

/* Floating cart button */
.cart-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--store-700, var(--purple-700));
    color: var(--white);
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-fab:hover {
    background: var(--store-800, var(--purple-800));
    transform: translateY(-2px);
    color: var(--white);
}
.cart-fab svg { flex-shrink: 0; }
.cart-fab-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    color: var(--store-700, var(--purple-700));
    background: var(--white);
    border-radius: 11px;
}
body:has(.whatsapp-sticky) .cart-fab { bottom: 80px; }

/* ─── Store Hero Bar Actions ─── */
.store-hero-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-whatsapp-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.btn-whatsapp-bar:hover {
    background: #1da851;
    color: #fff;
    text-decoration: none;
}

/* ─── WhatsApp Hero CTA (product pages) ─── */
.btn-whatsapp-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: #25D366;
    color: #fff;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-whatsapp-hero:hover {
    background: #1da851;
    color: #fff;
    text-decoration: none;
}

/* ─── WhatsApp Desktop CTA (product info) ─── */
.pd-whatsapp-desktop {
    margin-top: 16px;
}

@media (max-width: 768px) {
    .pd-whatsapp-desktop {
        display: none;
    }
}

/* ─── WhatsApp Sticky Bar ─── */
.whatsapp-sticky {
    display: none;
}

@media (max-width: 768px) {
    .whatsapp-sticky {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
        padding: 12px 16px;
        background: #25D366;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
    }

    .whatsapp-sticky a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #fff;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
    }

    body:has(.whatsapp-sticky) .main-container {
        padding-bottom: 64px;
    }
}

/* ─── Store Page Footer ─── */
.store-footer {
    text-align: center;
    padding: 32px 16px;
    border-top: 1px solid var(--neutral-100);
}

.store-footer-badge {
    font-size: 0.8rem;
    color: var(--neutral-400);
    text-decoration: none;
}

.store-footer-badge strong {
    font-family: 'Outfit', sans-serif;
    color: var(--neutral-500);
}

.store-footer-badge .logo-dot {
    color: var(--yellow-400);
}

.store-footer-badge:hover {
    color: var(--neutral-600);
}

.store-footer-badge:hover strong {
    color: var(--store-700, var(--purple-700));
}

/* ─── Onboarding ─── */
.onboarding {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 40px;
}

.onboarding-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.onboarding-header p {
    color: var(--neutral-500);
    font-size: 1rem;
}

.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.onboarding-step {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.onboarding-step--done {
    border-color: var(--green-200);
    background: var(--green-50, #f0fdf4);
}

.onboarding-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.onboarding-step > a,
.onboarding-step > .onboarding-share {
    margin-left: 48px;
}

.onboarding-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-100);
    color: var(--purple-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.onboarding-step--done .onboarding-step-number {
    background: var(--green-100, #dcfce7);
    color: var(--green-700, #15803d);
}

.onboarding-step-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.onboarding-step-header p {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin: 0;
}

.onboarding-example {
    font-style: italic;
    color: var(--neutral-400) !important;
    margin-top: 4px !important;
}

.onboarding-share {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.share-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-600);
    margin-bottom: 6px;
}

.share-copy {
    display: flex;
    gap: 8px;
}

.share-copy input,
.share-copy textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: var(--neutral-50);
    color: var(--neutral-700);
    resize: none;
    font-family: inherit;
}

.share-copy button {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
    align-self: flex-start;
}
.onboarding-native-share {
    align-self: center;
}

.onboarding-footer {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.onboarding-footer a {
    padding: 12px 24px;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .onboarding-step > a,
    .onboarding-step > .onboarding-share {
        margin-left: 0;
    }

    .onboarding-footer {
        flex-direction: column;
    }

    .onboarding-footer a {
        text-align: center;
    }
}
