/* ==========================================================================
   Aura Craft Studio - Premium Warm Retro Cozy E-Commerce Styling
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Color Palette */
    --bg-base: #F8F6F0;             /* Soft textured vintage cream */
    --bg-container: #FCFAF5;        /* Clean white-cream card background */
    --bg-navbar: rgba(252, 250, 245, 0.95);
    --text-primary: #3C2B20;        /* Deep rich espresso chocolate */
    --text-secondary: #706359;      /* Taupe */
    
    /* Brand Accents from Stitch */
    --color-terracotta: #9E4228;    /* Stitch Primary */
    --color-mustard: #EAA154;       /* Stitch Secondary */
    --color-seafoam: #09685c;       /* Stitch Tertiary green */
    --color-slate: #416788;         /* Slate blue */
    
    /* Backings & Previews */
    --neutral-backing: #EBE8DF;     /* Predesigned warm clay backing sheet for transparent stickers */
    
    /* UI States */
    --success: #09685c;
    --border-warm: rgba(60, 43, 32, 0.1);
    --border-warm-focus: rgba(158, 66, 40, 0.3);
    
    /* Premium Glassmorphism & Soft Card Shadows */
    --glass-bg: rgba(252, 250, 245, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-myanmar: 'Noto Sans Myanmar', sans-serif;
    
    /* Transitions */
    --transition-cozy: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* Reset & Global Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    /* Soft clean vintage canvas dots representation */
    background-image: radial-gradient(var(--border-warm) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(60, 43, 32, 0.15);
    border-radius: 99px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-terracotta);
}

/* Google Fonts Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Typography rules */
.font-burmese-body {
    font-family: var(--font-myanmar);
    line-height: 1.85 !important;
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

/* Storefront Responsive Layout Wrapper */
.storefront-layout {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 64px 64px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-grow: 1;
}

.storefront-main {
    flex: 1;
    min-width: 0;
}

/* Sticky App Header */
.app-header {
    height: 76px;
    background: var(--bg-navbar);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-warm);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    width: 100%;
}

.header-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-wrapper {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #3C2B20;
    box-shadow: 0 2px 8px rgba(60, 43, 32, 0.05);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-logo {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    background: var(--color-terracotta);
    color: #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.shop-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.shop-tagline {
    font-size: 9.5px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile-only circular Cart trigger */
.cart-trigger-btn {
    background: var(--color-terracotta);
    border: 1px solid #3C2B20;
    color: #fff;
    cursor: pointer;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none; /* Desktop hides this */
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    box-shadow: 0 4px 12px rgba(158, 66, 40, 0.2);
}

.cart-trigger-btn:hover {
    transform: scale(1.05);
}

.cart-qty-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--text-primary);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-container);
}

/* Google Stitch "Vinyl-Stack" Offset Backing Container Styles */
.sticker-card-stack {
    position: relative;
}

.sticker-card-stack::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background-color: var(--neutral-backing);
    z-index: 0;
    border-radius: 12px;
    border: 1px solid var(--border-warm);
}

.sticker-card-surface {
    position: relative;
    background-color: var(--bg-container);
    z-index: 1;
    border: 1px solid #3C2B20;
    border-radius: 12px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticker-card-stack:active .sticker-card-surface {
    transform: translate(3px, 3px);
}

/* Benefit-First Steps Card */
/* Benefit-First Steps Card */
.hero-card {
    margin-bottom: 16px;
}

.hero-card .sticker-card-surface {
    padding: 16px 20px;
}

.hero-content {
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-terracotta);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.instructions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.inst-step {
    background: rgba(60, 43, 32, 0.03);
    border: 1px dashed rgba(60, 43, 32, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.inst-num {
    background: var(--color-seafoam);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 10px;
    flex-shrink: 0;
}

.inst-text h4 {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.inst-text p {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Segmented Tab Navigation Bar */
.tab-bar {
    height: 52px;
    background: rgba(60, 43, 32, 0.03);
    border: 1px solid var(--border-warm);
    border-radius: 12px;
    display: flex;
    padding: 4px;
    gap: 4px;
    margin-bottom: 28px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-cozy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn.active {
    background: var(--bg-container);
    color: var(--color-terracotta);
    border: 1px solid #3C2B20;
    box-shadow: 0 4px 12px rgba(60, 43, 32, 0.04);
}

.tab-btn:not(.active):hover {
    background: rgba(60, 43, 32, 0.04);
    color: var(--text-primary);
}

/* Tab contents display control */
.tab-content {
    display: none;
    animation: tabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Catalog section headers */
.catalog-header-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 1px dashed var(--border-warm);
    padding-bottom: 16px;
}

.section-title-group {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Dynamic category selector pills */
.filter-wrapper {
    display: flex;
    gap: 8px;
}

.filter-pill {
    background: rgba(60, 43, 32, 0.04);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: var(--transition-quick);
}

.filter-pill.active {
    background: var(--color-seafoam);
    color: #fff;
    box-shadow: 0 2px 8px rgba(9, 104, 92, 0.15);
}

.filter-pill:not(.active):hover {
    background: rgba(60, 43, 32, 0.08);
    color: var(--text-primary);
}

/* E-Commerce Sticker Product Grid (Dynamic 3-Column on Desktop) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.sticker-card .sticker-card-surface {
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sticker-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color-mustard);
    color: var(--text-primary);
    font-size: 9px;
    font-weight: 800;
    padding: 2.5px 6.5px;
    border-radius: 6px;
    text-transform: uppercase;
    font-family: var(--font-display);
    z-index: 5;
    border: 1.2px solid #3C2B20;
}

/* Predesigned clay card visual space (No checkboards!) */
.sticker-visual-area {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background-color: var(--neutral-backing);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1.2px solid #3C2B20;
    overflow: hidden;
    position: relative;
}

/* Organic Drop shadow on PNG sticker outlines */
.sticker-img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    z-index: 2;
    transition: var(--transition-cozy);
    filter: drop-shadow(0 4px 8px rgba(60, 43, 32, 0.16));
}

.sticker-card-stack:hover .sticker-img {
    transform: scale(1.05) rotate(1deg);
}

/* Meta & Details */
.sticker-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sticker-code-pill {
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sticker-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 2px 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticker-card .font-burmese-body {
    color: var(--text-secondary);
    font-size: 12.5px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 46px; /* standard two line constraint */
}

/* Card size buttons */
.size-select-btn-row {
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.size-btn {
    flex: 1;
    background: #FCFAF5;
    border: 1px solid #3C2B20;
    padding: 6px 0;
    border-radius: 6px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 11px;
    font-family: var(--font-display);
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 0 #3C2B20;
    outline: none;
}

.size-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.size-btn.active {
    background: var(--color-terracotta);
    color: #ffffff;
    border-color: #3C2B20;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Floating Decrement Button */
.floating-minus-btn {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FCFAF5;
    border: 1.5px solid #3C2B20;
    color: var(--color-terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(60, 43, 32, 0.15);
    z-index: 10;
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    outline: none;
}

.floating-minus-btn.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.floating-minus-btn:hover {
    background: var(--color-terracotta);
    color: #fff;
}

.floating-minus-btn .material-symbols-outlined {
    font-size: 16px;
    font-weight: 800;
}

/* Active Card Quantity Badge */
.active-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-seafoam);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 1.5px solid #3C2B20;
    box-shadow: 0 2px 6px rgba(60, 43, 32, 0.15);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

.active-qty-badge.active {
    transform: scale(1);
    opacity: 1;
}

/* Clash of Clans Card animations */
.sticker-card {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.sticker-card.pressing {
    transform: scale(0.96) translateY(1px);
}

.sticker-card.holding {
    transform: scale(0.95);
    box-shadow: inset 0 2px 8px rgba(60, 43, 32, 0.1);
}

.sticker-card.in-cart .sticker-card-surface {
    border-color: var(--color-terracotta);
    background-color: #FFFDF9;
}

/* Bouncy scale pop */
.sticker-card.tapped {
    animation: stickerTapPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.3);
}

@keyframes stickerTapPop {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.94) rotate(-0.5deg);
    }
    60% {
        transform: scale(1.05) rotate(0.5deg);
    }
    100% {
        transform: scale(1);
    }
}

.sticker-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px dashed var(--border-warm);
    padding-top: 12px;
}

.sticker-price {
    font-weight: 800;
    font-size: 14px;
    color: var(--color-terracotta);
    font-family: var(--font-display);
}

/* Quantity Adjusters */
.qty-adjuster {
    display: flex;
    align-items: center;
    background: rgba(60, 43, 32, 0.05);
    border: 1px solid #3C2B20;
    border-radius: 8px;
    padding: 2px;
    transition: var(--transition-quick);
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
}

.qty-btn:hover {
    background: #fff;
    color: var(--color-terracotta);
}

.qty-val {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    font-family: var(--font-display);
}

/* Curated Theme Packs Tab */
.bundles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.bundle-card .sticker-card-surface {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bundle-badge {
    position: absolute;
    top: 10px;
    right: 16px;
    background: var(--color-terracotta);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    font-family: var(--font-display);
    border: 1px solid #3C2B20;
}

.bundle-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    margin-top: 6px;
}

.bundle-icon {
    width: 46px;
    height: 46px;
    background: rgba(60, 43, 32, 0.04);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid #3C2B20;
    color: var(--color-terracotta);
}

.bundle-title-group h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.bundle-pieces {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-seafoam);
    margin-top: 1px;
}

.bundle-details {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.bundle-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px dashed var(--border-warm);
    padding-top: 16px;
}

.bundle-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-terracotta);
    font-family: var(--font-display);
}

.btn-add-bundle {
    background: var(--text-primary);
    color: #fff;
    border: 1px solid #3C2B20;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: var(--transition-quick);
}

.btn-add-bundle:hover {
    background: var(--color-seafoam);
    color: #fff;
}

/* Custom prints pricing card */
.custom-pricing-card .sticker-card-surface {
    padding: 32px;
    text-align: center;
}

.custom-icon {
    font-size: 40px;
    margin-bottom: 8px;
    color: var(--color-terracotta);
}

.custom-pricing-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.custom-pricing-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid #3C2B20;
    background: rgba(255, 255, 255, 0.5);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12.5px;
}

.pricing-table th {
    background: rgba(60, 43, 32, 0.05);
    color: var(--text-primary);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1.2px solid #3C2B20;
}

.pricing-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-warm);
    color: var(--text-secondary);
}

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

.pricing-table td strong {
    color: var(--text-primary);
}

.table-price {
    font-weight: 800;
    color: var(--color-terracotta);
    font-family: var(--font-display);
}

.pricing-notes {
    text-align: left;
    background: rgba(234, 161, 84, 0.06);
    border-left: 4px solid var(--color-mustard);
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    font-size: 12px;
    margin-bottom: 28px;
    border-top: 1px solid rgba(60, 43, 32, 0.05);
    border-bottom: 1px solid rgba(60, 43, 32, 0.05);
    border-right: 1px solid rgba(60, 43, 32, 0.05);
}

.custom-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-telegram-custom {
    background: #229ED9;
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1c88bd;
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.2);
    transition: var(--transition-quick);
}

.btn-telegram-custom:hover {
    background: #1c88bd;
}

.tg-handle-hint {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Desktop Side Basket Panel
   ========================================================================== */
.desktop-cart-aside {
    width: 340px;
    flex-shrink: 0;
}

.desktop-cart-sticky {
    position: sticky;
    top: 108px;
}

.desktop-cart-aside .sticker-card-surface {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.desktop-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-warm);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.desktop-cart-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.desktop-cart-icon {
    color: var(--color-terracotta);
    font-size: 22px;
}

/* Sticky cart items overflow scroll area */
.desktop-cart-items-wrapper {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding-right: 4px;
}

.desktop-cart-empty {
    text-align: center;
    padding: 32px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.desktop-cart-empty .empty-icon {
    font-size: 32px;
    opacity: 0.3;
}

.desktop-cart-empty p {
    font-size: 12px;
}

/* Dynamic side items rows */
.cart-item-row {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--border-warm);
    transition: var(--transition-quick);
}

.cart-item-row:hover {
    border-color: rgba(60, 43, 32, 0.2);
}

.cart-item-thumb {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--neutral-backing);
    border: 1px solid rgba(60, 43, 32, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cart-item-thumb img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(60, 43, 32, 0.12));
}

.cart-item-details {
    flex-grow: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-code {
    font-size: 9px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

.cart-item-price {
    font-size: 11px;
    color: var(--color-terracotta);
    font-weight: 800;
    margin-top: 1px;
    font-family: var(--font-display);
}

.cart-row-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    transition: var(--transition-quick);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-row-remove:hover {
    color: var(--color-terracotta);
}

/* Basket summary details */
.desktop-cart-summary {
    border-top: 1px solid var(--border-warm);
    padding-top: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.summary-line.total-line {
    border-top: 1.2px dashed #3C2B20;
    padding-top: 8px;
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 850;
    color: var(--text-primary);
}

.summary-line.total-line #desktop-cart-total-price {
    color: var(--color-terracotta);
    font-size: 16px;
}

/* Side Basket Checkout */
.desktop-cart-checkout-btn {
    width: 100%;
    background: var(--text-primary);
    border: 1px solid #3C2B20;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-cozy);
}

.desktop-cart-checkout-btn:not(:disabled):hover {
    background: var(--color-terracotta);
}

.desktop-cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.desktop-checkout-tip {
    font-size: 9.5px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
}

/* ==========================================================================
   Mobile Cart Summary Sticky Bar
   ========================================================================== */
.mobile-cart-summary-bar {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--color-terracotta);
    color: #fff;
    height: 38px;
    border-bottom: 1.2px solid #3C2B20;
    box-shadow: 0 4px 12px rgba(60, 43, 32, 0.05);
    display: none; /* hidden on desktop */
    cursor: pointer;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-cart-summary-bar.active {
    transform: translateY(0);
    opacity: 1;
}

.summary-inner {
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-qty {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-dot {
    opacity: 0.5;
}

.summary-total {
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-display);
}

.summary-arrow {
    font-size: 18px;
}

/* ==========================================================================
   Mobile bottom sheet cart drawer
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(60, 43, 32, 0.25);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-cozy);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-bottom-sheet {
    position: fixed;
    left: 0; right: 0;
    bottom: -100%;
    height: 75%;
    background: var(--bg-container);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(60, 43, 32, 0.12);
    border-top: 1.2px solid #3C2B20;
    z-index: 160;
    display: flex;
    flex-direction: column;
    transition: var(--transition-cozy);
}

.cart-bottom-sheet.active {
    bottom: 0;
}

.cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-warm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.close-cart-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.close-cart-btn:hover {
    color: var(--color-terracotta);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-cart-state {
    text-align: center;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.empty-cart-icon {
    font-size: 36px;
    opacity: 0.3;
}

.empty-cart-state p {
    font-size: 12px;
}

.btn-shop-now {
    background: rgba(60, 43, 32, 0.05);
    border: 1px solid #3C2B20;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-shop-now:hover {
    background: var(--color-terracotta);
    color: #fff;
}

.cart-footer {
    padding: 16px 20px env(safe-area-inset-bottom);
    border-top: 1px solid var(--border-warm);
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.cart-summary-row.total-row {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 850;
    color: var(--text-primary);
    margin-bottom: 14px;
    border-top: 1.2px dashed #3C2B20;
    padding-top: 10px;
}

.cart-total-price {
    color: var(--color-terracotta);
}

.btn-checkout {
    width: 100%;
    background: var(--text-primary);
    border: 1px solid #3C2B20;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-cozy);
}

.btn-checkout:not(:disabled):hover {
    background: var(--color-terracotta);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-footer-tip {
    text-align: center;
    font-size: 9.5px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-navbar);
    border-top: 1px solid var(--border-warm);
    display: none; /* hidden on desktop */
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 120;
    box-shadow: 0 -4px 16px rgba(60, 43, 32, 0.03);
}

.bottom-nav-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    transition: var(--transition-quick);
    width: 60px;
    height: 100%;
}

.bottom-nav-btn.active {
    color: var(--color-terracotta);
}

.bottom-nav-btn.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* ==========================================================================
   Success Handoff Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(60, 43, 32, 0.3);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-cozy);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: var(--bg-container);
    border: 1px solid #3C2B20;
    box-shadow: 0 16px 48px rgba(60, 43, 32, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition-cozy);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .success-modal {
    transform: scale(1);
}

.modal-icon {
    font-size: 38px;
    margin-bottom: 8px;
    color: var(--color-seafoam);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 850;
    margin-bottom: 4px;
}

.modal-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.45;
}

.copied-code-box {
    background: #fff;
    border: 1px solid #3C2B20;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    word-break: break-all;
    font-family: monospace;
    font-size: 11px;
    color: var(--color-terracotta);
    font-weight: 700;
    text-align: left;
    box-shadow: inset 0 2px 4px rgba(60, 43, 32, 0.03);
}

.modal-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-step-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.step-badge {
    width: 18px;
    height: 18px;
    background: var(--color-mustard);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-display);
    flex-shrink: 0;
    border: 1px solid #3C2B20;
}

.modal-step-item p {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-close-modal {
    flex: 1;
    background: rgba(60, 43, 32, 0.05);
    border: 1px solid #3C2B20;
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-close-modal:hover {
    background: rgba(60, 43, 32, 0.08);
}

.btn-modal-telegram {
    flex: 1.5;
    background: #229ED9;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid #1c88bd;
    box-shadow: 0 4px 10px rgba(34, 158, 217, 0.2);
    transition: var(--transition-quick);
}

.btn-modal-telegram:hover {
    background: #1c88bd;
}

/* Toast Message */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 8px 24px rgba(60, 43, 32, 0.15);
    z-index: 300;
    opacity: 0;
    transition: var(--transition-cozy);
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Media Queries & Mobile Adaptive Grid
   ========================================================================== */

@media (max-width: 1024px) {
    .storefront-layout {
        padding: 24px 32px;
        gap: 24px;
    }
    .header-inner {
        padding: 0 32px;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .desktop-cart-aside {
        width: 280px;
    }
}

@media (max-width: 768px) {
    /* Layout adapts to 100% full-bleed native look */
    body {
        background-color: var(--bg-container);
        padding-bottom: 64px; /* Space for bottom nav */
    }
    
    .app-header {
        height: 64px;
    }
    
    .header-inner {
        padding: 0 20px;
    }
    
    .brand-logo {
        width: 100%;
        height: 100%;
    }
    
    .logo-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .shop-name {
        font-size: 15.5px;
    }
    
    .shop-tagline {
        font-size: 8.5px;
    }
    
    .cart-trigger-btn {
        display: flex; /* Activate header circular cart on mobile */
    }
    
    .storefront-layout {
        flex-direction: column;
        padding: 20px 20px 40px;
        gap: 0;
    }
    
    .storefront-main {
        width: 100%;
    }
    
    /* Hide Side Persistent Basket */
    .desktop-cart-aside {
        display: none !important;
    }
    
    /* Show Mobile Sticky Cart Summary and Bottom Nav */
    .mobile-cart-summary-bar {
        display: block;
        top: 64px !important;
    }
    
    .bottom-nav-bar {
        display: flex;
        background: #FCFAF5 !important;
        border-top: 1.2px solid #3C2B20 !important;
    }

    /* Distinct highlighted styling for capsule Order/Checkout action */
    #nav-cart-btn {
        position: relative;
        background: var(--color-terracotta) !important;
        color: #ffffff !important;
        border-radius: 8px;
        height: 48px;
        margin: 8px;
        width: 72px;
        box-shadow: 0 4px 10px rgba(158, 66, 40, 0.2);
    }

    #nav-cart-btn.active {
        background: var(--color-terracotta) !important;
        color: #ffffff !important;
    }
    
    /* Responsive Grid exact 2 columns on mobile */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Stack bundles & pricing */
    .bundles-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-card .sticker-card-surface {
        padding: 12px 14px;
    }
    
    .hero-title {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .hero-subtitle {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .instructions-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .inst-step {
        padding: 6px 8px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
        border-radius: 8px;
    }

    .inst-text p {
        display: none;
    }

    .inst-text h4 {
        font-size: 9px;
        white-space: nowrap;
    }

    .inst-num {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .tab-bar {
        display: none !important;
    }
    
    .tab-btn.active {
        border-color: #3C2B20;
    }
    
    .catalog-header-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-wrapper {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-pill {
        white-space: nowrap;
    }
    
    .custom-pricing-card .sticker-card-surface {
        padding: 20px 14px;
    }
    
    .custom-pricing-title {
        font-size: 17px;
    }
    
    .custom-pricing-desc {
        font-size: 11.5px;
    }
}
