/* =====================================================
   Vihari AI Chatbot — Premium Frontend Styles
   Theme: Farm Green & Gold · Glassmorphism Edition
   Fonts : Inter (body) + Poppins (headings)
   ===================================================== */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800;900&display=swap');

/* =====================================================
   §1  CSS Custom Properties (Design Tokens)
   ===================================================== */
:root {
    --vac-green: #1c7347;
    --vac-green-dark: #145233;
    --vac-gold: #fcc236;
    --vac-gold-dark: #e6a800;
    --vac-bg: #f4f8f6;
    --vac-text: #1a1a1a;
    --vac-text-light: #666;
    --vac-white: #ffffff;

    /* Semantic tokens */
    --vac-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --vac-font-heading: 'Poppins', 'Inter', sans-serif;

    /* Shadows */
    --vac-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --vac-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --vac-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
    --vac-shadow-green: 0 4px 20px rgba(28, 115, 71, 0.3);
    --vac-shadow-gold: 0 4px 20px rgba(252, 194, 54, 0.35);

    /* Glass */
    --vac-glass-bg: rgba(255, 255, 255, 0.55);
    --vac-glass-border: rgba(255, 255, 255, 0.25);
    --vac-glass-blur: blur(16px);

    /* Radius */
    --vac-radius-sm: 8px;
    --vac-radius-md: 14px;
    --vac-radius-lg: 20px;
    --vac-radius-xl: 28px;

    /* Transitions */
    --vac-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --vac-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --vac-duration: 0.3s;
    --vac-duration-slow: 0.45s;
}

/* =====================================================
   §2  Reset & Base
   ===================================================== */
.vac-wrapper *,
.vac-wrapper *::before,
.vac-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.vac-wrapper {
    font-family: var(--vac-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =====================================================
   §3  Keyframes (Animations Library)
   ===================================================== */

/* FAB pulse glow */
@keyframes vac-pulse-glow {
    0%, 100% { box-shadow: 0 6px 24px rgba(28, 115, 71, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15); }
    50%       { box-shadow: 0 6px 32px rgba(28, 115, 71, 0.6), 0 2px 12px rgba(252, 194, 54, 0.3); }
}

/* Status dot pulse */
@keyframes vac-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

/* Message slide-in */
@keyframes vac-msg-slide-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Typing dots bounce */
@keyframes vac-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30%           { transform: translateY(-10px); opacity: 1; }
}

/* Welcome fade */
@keyframes vac-welcome-fade {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* Fade-in utility */
@keyframes vac-fade-in-key {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide-up utility */
@keyframes vac-slide-up-key {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Slide-left utility */
@keyframes vac-slide-left-key {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Scale-in utility */
@keyframes vac-scale-in-key {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* Pulse glow utility */
@keyframes vac-pulse-glow-key {
    0%, 100% { box-shadow: 0 0 8px rgba(28, 115, 71, 0.2); }
    50%      { box-shadow: 0 0 20px rgba(28, 115, 71, 0.45), 0 0 40px rgba(252, 194, 54, 0.15); }
}

/* Shimmer loading */
@keyframes vac-shimmer-key {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Float animation */
@keyframes vac-float-key {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Success checkmark */
@keyframes vac-success-check {
    0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
    50%  { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Gradient background shift */
@keyframes vac-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typewriter cursor blink */
@keyframes vac-blink-cursor {
    0%, 100% { border-color: var(--vac-green); }
    50%      { border-color: transparent; }
}

/* =====================================================
   §4  Transition & Effect Utility Classes
   ===================================================== */
.vac-fade-in {
    animation: vac-fade-in-key 0.5s var(--vac-ease) both;
}

.vac-slide-up {
    animation: vac-slide-up-key 0.55s var(--vac-ease) both;
}

.vac-slide-left {
    animation: vac-slide-left-key 0.5s var(--vac-ease) both;
}

.vac-scale-in {
    animation: vac-scale-in-key 0.4s var(--vac-ease-bounce) both;
}

.vac-pulse-glow {
    animation: vac-pulse-glow-key 2.5s ease-in-out infinite;
}

.vac-shimmer {
    background: linear-gradient(90deg,
        rgba(28, 115, 71, 0.06) 25%,
        rgba(28, 115, 71, 0.12) 50%,
        rgba(28, 115, 71, 0.06) 75%);
    background-size: 200% 100%;
    animation: vac-shimmer-key 1.8s infinite linear;
}

.vac-float {
    animation: vac-float-key 3.5s ease-in-out infinite;
}

/* Stagger delays for children */
.vac-fade-in:nth-child(1)  { animation-delay: 0s; }
.vac-fade-in:nth-child(2)  { animation-delay: 0.07s; }
.vac-fade-in:nth-child(3)  { animation-delay: 0.14s; }
.vac-fade-in:nth-child(4)  { animation-delay: 0.21s; }
.vac-fade-in:nth-child(5)  { animation-delay: 0.28s; }
.vac-fade-in:nth-child(6)  { animation-delay: 0.35s; }
.vac-slide-up:nth-child(1) { animation-delay: 0s; }
.vac-slide-up:nth-child(2) { animation-delay: 0.08s; }
.vac-slide-up:nth-child(3) { animation-delay: 0.16s; }
.vac-slide-up:nth-child(4) { animation-delay: 0.24s; }

/* =====================================================
   §5  Floating Action Button (FAB) — Contact Us Style
   ===================================================== */
.vac-fab-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999998;
    flex-direction: row-reverse;
    /* Position is dynamically set via JS from dashboard settings */
    /* Mobile safe area support */
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: calc(28px + env(safe-area-inset-right, 0px));
}

.vac-fab-label {
    background: #ffffff;
    color: #1a1a1a;
    font-family: var(--vac-font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transform: translateX(12px) scale(0.9);
    animation: vac-fab-label-in 0.5s var(--vac-ease-bounce) 1s both;
    transition: all 0.3s var(--vac-ease);
    letter-spacing: -0.1px;
    user-select: none;
}

.vac-fab-wrapper:hover .vac-fab-label {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(0) scale(1.02);
}

@keyframes vac-fab-label-in {
    from { opacity: 0; transform: translateX(16px) scale(0.85); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.vac-fab-wrapper .vac-fab--active ~ .vac-fab-label,
.vac-fab-label:empty {
    opacity: 0;
    transform: translateX(12px) scale(0.9);
    pointer-events: none;
}

/* ---- Gradient Ring "V" FAB Icon ---- */
.vac-fab {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--vac-duration) var(--vac-ease);
    will-change: transform, box-shadow;
    flex-shrink: 0;
    position: relative;
    animation: vac-fab-float 3.5s ease-in-out infinite;
    padding: 0;
    /* Prevent iOS tap highlight */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Gradient Ring — green → gold → dark green with smooth color shift */
.vac-fab-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #2e7d32 0%,
        #43a047 15%,
        #66bb6a 25%,
        #a5d6a7 32%,
        #fcc236 45%,
        #f9a825 55%,
        #ff8f00 60%,
        #1b5e20 70%,
        #2e7d32 85%,
        #43a047 95%,
        #2e7d32 100%
    );
    animation: vac-ring-rotate 4s linear infinite;
    z-index: 0;
}

/* Inner white circle that creates the ring effect */
.vac-fab-ring::after {
    content: '';
    position: absolute;
    inset: 3.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffffff 0%, #f0f5f2 60%, #e8f5e9 100%);
    z-index: 1;
}

/* The "V" letter centered in the ring */
.vac-fab-v {
    position: relative;
    z-index: 2;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #1c7347;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(28, 115, 71, 0.15);
    transition: transform var(--vac-duration) var(--vac-ease), color var(--vac-duration) var(--vac-ease);
    /* Ensure V stays centered regardless of font rendering */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Custom logo image in FAB button */
.vac-fab-logo-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.vac-fab:hover {
    transform: scale(1.12) translateY(-4px);
    filter: drop-shadow(0 8px 24px rgba(28, 115, 71, 0.4));
}

.vac-fab:active {
    transform: scale(0.95);
}

.vac-fab:hover .vac-fab-v {
    transform: scale(1.08);
    color: #145233;
}

/* Rotate the gradient ring smoothly */
@keyframes vac-ring-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Float animation for FAB */
@keyframes vac-fab-float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 4px 16px rgba(28, 115, 71, 0.35)); }
    50%      { transform: translateY(-6px); filter: drop-shadow(0 10px 28px rgba(28, 115, 71, 0.45)) drop-shadow(0 2px 8px rgba(252, 194, 54, 0.2)); }
}

/* Pulse glow on hover */
.vac-fab:hover {
    filter: drop-shadow(0 10px 36px rgba(28, 115, 71, 0.55)) drop-shadow(0 4px 12px rgba(252, 194, 54, 0.3));
}

.vac-fab.vac-fab--active {
    transform: scale(0) rotate(180deg);
    opacity: 0;
    pointer-events: none;
}

.vac-fab-wrapper .vac-fab--active ~ .vac-fab-label {
    opacity: 0 !important;
    transform: translateX(16px) scale(0.85) !important;
    pointer-events: none;
}

/* Notification badge */
.vac-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vac-gold), var(--vac-gold-dark));
    color: #04100a;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--vac-font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(252, 194, 54, 0.5);
    display: none;
    animation: vac-scale-in-key 0.35s var(--vac-ease-bounce);
}

/* =====================================================
   §6  Chat Window
   ===================================================== */
.vac-window {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 410px;
    height: 660px;
    max-height: calc(100vh - 56px);
    border-radius: var(--vac-radius-lg);
    background: var(--vac-white);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22),
                0 8px 28px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0) translateY(24px);
    transform-origin: bottom right;
    opacity: 0;
    transition: all 0.4s var(--vac-ease);
    pointer-events: none;
    font-family: var(--vac-font-body);
    /* Prevent iOS bounce/overscroll */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    /* Position is dynamically set via JS from dashboard settings */
}

.vac-window.vac-window--open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* =====================================================
   §7  Header (Glassmorphism)
   ===================================================== */
.vac-header {
    background: linear-gradient(135deg,
        rgba(28, 115, 71, 0.92) 0%,
        rgba(13, 90, 50, 0.95) 50%,
        rgba(20, 82, 51, 0.97) 100%);
    backdrop-filter: var(--vac-glass-blur);
    -webkit-backdrop-filter: var(--vac-glass-blur);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Decorative glass orbs */
.vac-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 65%);
    pointer-events: none;
    animation: vac-float-key 6s ease-in-out infinite;
}

.vac-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.vac-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--vac-duration) var(--vac-ease);
}

.vac-header-avatar:hover {
    transform: scale(1.08);
}

.vac-header-avatar svg {
    width: 24px;
    height: 24px;
    fill: var(--vac-white);
}

.vac-header-info {
    flex: 1;
    min-width: 0;
}

.vac-header-title {
    font-family: var(--vac-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--vac-white);
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.vac-header-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-weight: 500;
}

.vac-header-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    animation: vac-dot-pulse 2s ease-in-out infinite;
}

.vac-header-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--vac-duration) var(--vac-ease);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.vac-header-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

.vac-header-close svg {
    width: 18px;
    height: 18px;
    fill: var(--vac-white);
}

/* =====================================================
   §8  Messages Area
   ===================================================== */
.vac-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, #f0f5f2 0%, var(--vac-bg) 40%, #f8faf9 100%);
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.vac-messages::-webkit-scrollbar {
    width: 5px;
}

.vac-messages::-webkit-scrollbar-track {
    background: transparent;
}

.vac-messages::-webkit-scrollbar-thumb {
    background: rgba(28, 115, 71, 0.12);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.vac-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(28, 115, 71, 0.25);
}

/* =====================================================
   §9  Message Bubbles (Glassmorphism)
   ===================================================== */
.vac-msg {
    display: flex;
    gap: 10px;
    max-width: 88%;
    animation: vac-msg-slide-in 0.4s var(--vac-ease) both;
}

.vac-msg--bot {
    align-self: flex-start;
}

.vac-msg--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.vac-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--vac-duration) var(--vac-ease);
}

.vac-msg:hover .vac-msg-avatar {
    transform: scale(1.06);
}

.vac-msg--bot .vac-msg-avatar {
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
}

.vac-msg--bot .vac-msg-avatar svg {
    width: 18px;
    height: 18px;
    fill: var(--vac-white);
}

.vac-msg--user .vac-msg-avatar {
    background: linear-gradient(135deg, var(--vac-gold), var(--vac-gold-dark));
    color: #04100a;
    font-weight: 700;
    font-size: 13px;
}

.vac-msg-bubble {
    padding: 13px 17px;
    border-radius: 20px;
    line-height: 1.65;
    font-size: 13.5px;
    position: relative;
    word-wrap: break-word;
    transition: transform var(--vac-duration) var(--vac-ease),
                box-shadow var(--vac-duration) var(--vac-ease);
    letter-spacing: 0.1px;
}

.vac-msg--bot .vac-msg-bubble {
    background: var(--vac-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--vac-text);
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.vac-msg--user .vac-msg-bubble {
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    color: var(--vac-white);
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 16px rgba(28, 115, 71, 0.32);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vac-msg-time {
    font-size: 10px;
    color: #aaa;
    margin-top: 5px;
    text-align: right;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.vac-msg--bot .vac-msg-time {
    text-align: left;
}

/* =====================================================
   §10  Typing Indicator
   ===================================================== */
.vac-typing {
    display: flex;
    gap: 6px;
    padding: 16px 20px;
    background: var(--vac-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    box-shadow: var(--vac-shadow-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    align-self: flex-start;
    animation: vac-msg-slide-in 0.35s var(--vac-ease);
}

.vac-typing-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    animation: vac-typing-bounce 1.4s ease-in-out infinite;
    box-shadow: 0 1px 3px rgba(28, 115, 71, 0.2);
}

.vac-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.vac-typing-dot:nth-child(3) { animation-delay: 0.36s; }

/* =====================================================
   §11  Product Cards
   ===================================================== */
.vac-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
    max-width: 320px;
}

.vac-product-card {
    background: var(--vac-white);
    border-radius: var(--vac-radius-md);
    overflow: hidden;
    box-shadow: var(--vac-shadow-sm);
    cursor: pointer;
    transition: all var(--vac-duration) var(--vac-ease);
    border: 2px solid transparent;
    position: relative;
}

.vac-product-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--vac-shadow-green);
    border-color: var(--vac-green);
}

.vac-product-card:active {
    transform: translateY(-1px) scale(0.98);
}

.vac-product-card-img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vac-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--vac-ease);
}

.vac-product-card:hover .vac-product-card-img img {
    transform: scale(1.08);
}

.vac-product-card-img-placeholder {
    width: 100%;
    height: 96px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform 0.4s var(--vac-ease);
}

.vac-product-card:hover .vac-product-card-img-placeholder {
    transform: scale(1.06);
}

.vac-product-card-body {
    padding: 10px 11px;
}

.vac-product-card-name {
    font-family: var(--vac-font-heading);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--vac-text);
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.1px;
}

.vac-product-card-price {
    font-family: var(--vac-font-heading);
    font-size: 11px;
    font-weight: 800;
    color: var(--vac-green);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.vac-product-card-btn {
    width: 100%;
    padding: 7px 0;
    border: none;
    border-radius: var(--vac-radius-sm);
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    color: var(--vac-white);
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--vac-font-body);
    cursor: pointer;
    transition: all 0.25s var(--vac-ease);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.vac-product-card-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.vac-product-card-btn:hover::after {
    opacity: 1;
}

.vac-product-card-btn:hover {
    box-shadow: var(--vac-shadow-green);
    transform: translateY(-1px);
}

/* Premium glow on enhanced card button hover */
.vac-product-card--enhanced .vac-product-card-btn:hover {
    box-shadow: 0 4px 20px rgba(28, 115, 71, 0.4), 0 0 16px rgba(28, 115, 71, 0.15);
    transform: translateY(-2px);
}

/* =====================================================
   §12  Quick Reply Chips
   ===================================================== */
.vac-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.vac-quick-reply {
    padding: 9px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--vac-gold), #f0b020);
    color: #04100a;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--vac-font-body);
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--vac-ease);
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(252, 194, 54, 0.35);
    position: relative;
    overflow: hidden;
}

.vac-quick-reply::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vac-quick-reply:hover::before {
    opacity: 1;
}

.vac-quick-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(252, 194, 54, 0.45);
}

.vac-quick-reply:active {
    transform: translateY(0) scale(0.97);
}

.vac-quick-reply--outline {
    background: transparent;
    border: 2px solid var(--vac-green);
    color: var(--vac-green);
    box-shadow: none;
}

.vac-quick-reply--outline:hover {
    background: var(--vac-green);
    color: var(--vac-white);
    box-shadow: var(--vac-shadow-green);
}

/* =====================================================
   §13  Input Area
   ===================================================== */
.vac-input-area {
    padding: 14px 16px;
    background: var(--vac-white);
    border-top: 1px solid rgba(28, 115, 71, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    /* Mobile safe area for input */
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.vac-input {
    flex: 1;
    padding: 13px 20px;
    border: 2px solid rgba(28, 115, 71, 0.1);
    border-radius: 26px;
    font-size: 14px;
    font-family: var(--vac-font-body);
    outline: none;
    transition: all var(--vac-duration) var(--vac-ease);
    background: #f8faf9;
    color: var(--vac-text);
}

.vac-input::placeholder {
    color: #a0aab0;
    font-weight: 400;
}

.vac-input:focus {
    border-color: var(--vac-green);
    box-shadow: 0 0 0 4px rgba(28, 115, 71, 0.1);
    background: var(--vac-white);
}

.vac-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--vac-duration) var(--vac-ease);
    flex-shrink: 0;
    box-shadow: var(--vac-shadow-green);
    position: relative;
    overflow: hidden;
}

.vac-send-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vac-send-btn:hover::after {
    opacity: 1;
}

.vac-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(28, 115, 71, 0.45);
}

.vac-send-btn:active {
    transform: scale(0.95);
}

.vac-send-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--vac-white);
}

.vac-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: var(--vac-shadow-sm) !important;
}

/* =====================================================
   §14  Order Steps Indicator
   ===================================================== */
.vac-order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--vac-white);
    border-top: 1px solid rgba(28, 115, 71, 0.06);
    flex-shrink: 0;
}

.vac-order-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dde5e0;
    transition: all 0.4s var(--vac-ease-bounce);
}

.vac-order-step--active {
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    width: 26px;
    border-radius: 5px;
    box-shadow: var(--vac-shadow-green);
}

.vac-order-step--done {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

/* =====================================================
   §15  Welcome Screen
   ===================================================== */
.vac-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 20px;
    gap: 12px;
    animation: vac-welcome-fade 0.55s var(--vac-ease);
}

.vac-welcome-icon {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(28, 115, 71, 0.15);
    transition: transform 0.4s var(--vac-ease);
}

.vac-welcome-icon:hover {
    transform: scale(1.08) rotate(3deg);
}

.vac-welcome-icon svg {
    width: 42px;
    height: 42px;
    fill: var(--vac-green);
}

.vac-welcome-title {
    font-family: var(--vac-font-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--vac-green-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.vac-welcome-text {
    font-size: 13px;
    color: var(--vac-text-light);
    line-height: 1.5;
    max-width: 260px;
    font-weight: 400;
}

.vac-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 240px;
    margin-top: 2px;
}

.vac-welcome-btn {
    padding: 10px 18px;
    border-radius: var(--vac-radius-md);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--vac-font-body);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--vac-ease);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.vac-welcome-btn--primary {
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    color: var(--vac-white);
    box-shadow: var(--vac-shadow-green);
}

.vac-welcome-btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.12));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vac-welcome-btn--primary:hover::before {
    opacity: 1;
}

.vac-welcome-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(28, 115, 71, 0.45);
}

.vac-welcome-btn--primary:active {
    transform: translateY(-1px) scale(0.98);
}

.vac-welcome-btn--secondary {
    background: var(--vac-white);
    color: var(--vac-green);
    border: 2px solid rgba(200, 230, 201, 0.7);
}

.vac-welcome-btn--secondary:hover {
    background: #e8f5e9;
    border-color: var(--vac-green);
    transform: translateY(-2px);
    box-shadow: var(--vac-shadow-sm);
}

/* =====================================================
   §16  Welcome Screen — Premium (Vee Card Design)
   ===================================================== */
.vac-welcome--premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 16px 16px;
    gap: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(170deg, #f0f5f2 0%, #e8f5e9 35%, #fffde7 100%);
    background-size: 200% 200%;
    animation: vac-gradient-shift 10s ease infinite, vac-welcome-fade 0.6s var(--vac-ease);
    min-height: 100%;
}

/* Floating decorative orbs */
.vac-welcome--premium::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 115, 71, 0.07), transparent 70%);
    animation: vac-float-key 6s ease-in-out infinite;
    pointer-events: none;
}

.vac-welcome--premium::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 194, 54, 0.09), transparent 70%);
    animation: vac-float-key 5s ease-in-out infinite reverse;
    pointer-events: none;
}

/* ---- Vee Contact Pill (Contact Us style) ---- */
.vac-welcome-vee-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 50px;
    padding: 10px 24px 10px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    cursor: default;
    animation: vac-slide-up-key 0.6s var(--vac-ease) 0.1s both;
    position: relative;
    transition: transform 0.3s var(--vac-ease), box-shadow 0.3s var(--vac-ease);
}

.vac-welcome-vee-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vac-welcome-vee-pill-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--vac-font-heading);
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
}

.vac-welcome-vee-pill-text {
    font-family: var(--vac-font-body);
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ---- Vee Gradient Ring Avatar (Welcome Screen) ---- */
.vac-welcome-vee-ring-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    animation: vac-slide-up-key 0.6s var(--vac-ease) 0.1s both;
}

.vac-welcome-vee-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #2e7d32 0%,
        #43a047 15%,
        #66bb6a 25%,
        #a5d6a7 32%,
        #fcc236 45%,
        #f9a825 55%,
        #ff8f00 60%,
        #1b5e20 70%,
        #2e7d32 85%,
        #43a047 95%,
        #2e7d32 100%
    );
    animation: vac-ring-rotate 4s linear infinite;
    z-index: 0;
}

.vac-welcome-vee-ring-inner {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffffff 0%, #f0f5f2 60%, #e8f5e9 100%);
    z-index: 1;
}

.vac-welcome-vee-letter {
    position: relative;
    z-index: 2;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #1c7347;
    letter-spacing: -1.5px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(28, 115, 71, 0.15);
}

/* ---- Vee Greeting Line ---- */
.vac-welcome-vee-greeting {
    font-family: var(--vac-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    animation: vac-fade-in-key 0.5s var(--vac-ease) 0.2s both;
}

.vac-welcome-vee-greeting .vac-wave-hand {
    font-size: 22px;
    margin-right: 2px;
}

/* ---- Premium Action Buttons (Welcome Screen) ---- */
.vac-welcome-actions-premium {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    margin-top: 14px;
    animation: vac-fade-in-key 0.5s var(--vac-ease) 0.9s both;
}

.vac-welcome-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.35s var(--vac-ease);
    position: relative;
    overflow: hidden;
    text-align: left;
    font-family: var(--vac-font-body);
}

.vac-welcome-action-btn--order {
    background: linear-gradient(135deg, #1c7347, #145233);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(28, 115, 71, 0.35), 0 1px 4px rgba(0, 0, 0, 0.08);
}

.vac-welcome-action-btn--order::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vac-welcome-action-btn--order:hover::before {
    opacity: 1;
}

.vac-welcome-action-btn--order:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(28, 115, 71, 0.5), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.vac-welcome-action-btn--order:active {
    transform: translateY(-1px) scale(0.98);
}

.vac-welcome-action-btn--browse {
    background: #ffffff;
    color: #1c7347;
    border-color: rgba(200, 230, 201, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.vac-welcome-action-btn--browse:hover {
    background: #f0faf4;
    border-color: #1c7347;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 115, 71, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.vac-welcome-action-btn--browse:active {
    transform: translateY(0) scale(0.98);
}

.vac-welcome-action-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    line-height: 1;
}

.vac-welcome-action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vac-welcome-action-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.vac-welcome-action-desc {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    line-height: 1.3;
}

.vac-welcome-action-btn--browse .vac-welcome-action-desc {
    color: #666;
}

.vac-welcome-action-arrow {
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.25s var(--vac-ease), opacity 0.25s var(--vac-ease);
}

.vac-welcome-action-btn:hover .vac-welcome-action-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Hand Wave Animation */
.vac-wave-hand {
    display: inline-block;
    font-size: 20px;
    transform-origin: 70% 70%;
    animation: vac-wave-anim 1.8s ease-in-out infinite;
}

@keyframes vac-wave-anim {
    0%   { transform: rotate(0deg); }
    10%  { transform: rotate(14deg); }
    20%  { transform: rotate(-8deg); }
    30%  { transform: rotate(14deg); }
    40%  { transform: rotate(-4deg); }
    50%  { transform: rotate(10deg); }
    60%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* ---- New Tagline ---- */
.vac-welcome-tagline-new {
    font-family: var(--vac-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--vac-text-light);
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 12px;
    animation: vac-fade-in-key 0.5s var(--vac-ease) 0.3s both;
}

/* ---- Leaf Divider ---- */
.vac-welcome-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--vac-green), transparent);
    margin: 8px auto 10px;
    position: relative;
    animation: vac-fade-in-key 0.5s var(--vac-ease) 0.4s both;
}

.vac-welcome-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

/* ---- Farm Subtitle ---- */
.vac-welcome-farm-sub {
    font-family: var(--vac-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--vac-green-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    animation: vac-fade-in-key 0.5s var(--vac-ease) 0.5s both;
}

/* ---- CTA Line ---- */
.vac-welcome-cta-line {
    font-family: var(--vac-font-body);
    font-size: 12.5px;
    font-weight: 400;
    color: var(--vac-text-light);
    line-height: 1.45;
    margin-bottom: 14px;
    animation: vac-fade-in-key 0.5s var(--vac-ease) 0.6s both;
}

/* ---- Feature Pills ---- */
.vac-welcome-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 300px;
    margin-bottom: 16px;
}

.vac-welcome-features > * {
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--vac-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(28, 115, 71, 0.1);
    font-size: 10px;
    font-weight: 600;
    color: var(--vac-green-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s var(--vac-ease);
    animation: vac-scale-in-key 0.4s var(--vac-ease-bounce) both;
}

.vac-welcome-features > *:hover {
    transform: translateY(-2px);
    box-shadow: var(--vac-shadow-sm);
    border-color: var(--vac-green);
}

.vac-welcome-features > *:nth-child(1) { animation-delay: 0.65s; }
.vac-welcome-features > *:nth-child(2) { animation-delay: 0.75s; }
.vac-welcome-features > *:nth-child(3) { animation-delay: 0.85s; }
.vac-welcome-features > *:nth-child(4) { animation-delay: 0.95s; }

/* ---- Welcome Actions (override for premium) ---- */
.vac-welcome--premium .vac-welcome-actions {
    max-width: 260px;
    width: 100%;
    animation: vac-fade-in-key 0.5s var(--vac-ease) 1s both;
}

/* =====================================================
   §17  Browse / About Screen
   ===================================================== */
.vac-browse-card {
    background: var(--vac-white);
    border-radius: var(--vac-radius-lg);
    overflow: hidden;
    box-shadow: var(--vac-shadow-md);
    margin: 8px 0;
    max-width: 320px;
    animation: vac-slide-up-key 0.5s var(--vac-ease) both;
    transition: transform var(--vac-duration) var(--vac-ease),
                box-shadow var(--vac-duration) var(--vac-ease);
}

.vac-browse-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vac-shadow-lg);
}

.vac-browse-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    overflow: hidden;
}

.vac-browse-image-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--vac-radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.vac-browse-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--vac-ease);
}

.vac-browse-image-item:hover img {
    transform: scale(1.12);
}

.vac-browse-image-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vac-browse-image-item:hover::after {
    opacity: 1;
}

.vac-browse-intro {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--vac-text-light);
    position: relative;
}

.vac-browse-intro::first-line {
    font-weight: 700;
    color: var(--vac-text);
    font-size: 15px;
}

/* =====================================================
   §18  Product Showcase — Enhanced
   ===================================================== */
.vac-products-grid--enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
    max-width: 320px;
}

.vac-products-grid--enhanced .vac-product-card--enhanced:nth-child(1) { animation-delay: 0s; }
.vac-products-grid--enhanced .vac-product-card--enhanced:nth-child(2) { animation-delay: 0.08s; }
.vac-products-grid--enhanced .vac-product-card--enhanced:nth-child(3) { animation-delay: 0.16s; }
.vac-products-grid--enhanced .vac-product-card--enhanced:nth-child(4) { animation-delay: 0.24s; }
.vac-products-grid--enhanced .vac-product-card--enhanced:nth-child(5) { animation-delay: 0.32s; }
.vac-products-grid--enhanced .vac-product-card--enhanced:nth-child(6) { animation-delay: 0.40s; }

.vac-product-card--enhanced {
    background: var(--vac-white);
    border-radius: var(--vac-radius-md);
    overflow: hidden;
    box-shadow: var(--vac-shadow-sm);
    cursor: pointer;
    transition: all 0.35s var(--vac-ease);
    border: 2px solid transparent;
    position: relative;
    animation: vac-slide-up-key 0.5s var(--vac-ease) both;
}

/* Enhanced card — larger image area */
.vac-product-card--enhanced .vac-product-card-img {
    height: 110px;
    position: relative;
}

/* Gradient overlay at bottom of enhanced card images */
.vac-product-card--enhanced .vac-product-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.08));
    pointer-events: none;
    z-index: 1;
}

/* Enhanced card — larger placeholder */
.vac-product-card--enhanced .vac-product-card-img-placeholder {
    height: 110px;
}

.vac-product-card--enhanced:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 32px rgba(28, 115, 71, 0.18),
                0 0 0 2px var(--vac-green),
                0 0 20px rgba(28, 115, 71, 0.08);
    border-color: var(--vac-green);
}

.vac-product-card--enhanced:active {
    transform: translateY(-2px) scale(0.98);
    transition-duration: 0.1s;
}

.vac-product-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--vac-gold), var(--vac-gold-dark));
    color: #04100a;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--vac-font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(252, 194, 54, 0.4);
    z-index: 2;
    animation: vac-scale-in-key 0.3s var(--vac-ease-bounce) both;
}

/* Category Tabs */
.vac-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 14px;
    margin-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vac-category-tabs::-webkit-scrollbar {
    display: none;
}

.vac-category-tab {
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--vac-white);
    border: 2px solid rgba(28, 115, 71, 0.12);
    color: var(--vac-text-light);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--vac-font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s var(--vac-ease);
    flex-shrink: 0;
}

.vac-category-tab:hover {
    border-color: var(--vac-green);
    color: var(--vac-green);
    background: rgba(28, 115, 71, 0.04);
    transform: translateY(-1px);
}

.vac-category-tab--active {
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    border-color: transparent;
    color: var(--vac-white);
    box-shadow: var(--vac-shadow-green);
}

.vac-category-tab--active:hover {
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    color: var(--vac-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 115, 71, 0.4);
}

/* =====================================================
   §19  Quantity Selection Toggles (5 Styles)
   ===================================================== */
.vac-qty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    max-width: 300px;
}

.vac-qty-option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--vac-font-body);
    cursor: pointer;
    transition: all 0.3s var(--vac-ease);
    border: 2px solid rgba(28, 115, 71, 0.15);
    background: var(--vac-white);
    color: var(--vac-text);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.vac-qty-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vac-qty-option:hover {
    border-color: var(--vac-green);
    transform: translateY(-2px);
    box-shadow: var(--vac-shadow-sm);
}

.vac-qty-option:active {
    transform: translateY(0) scale(0.96);
}

/* Pill shape */
.vac-qty-option--pill {
    border-radius: 50px;
}

/* Rounded square */
.vac-qty-option--rounded {
    border-radius: 12px;
}

/* Circle shape */
.vac-qty-option--circle {
    border-radius: 50%;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
}

/* Square shape */
.vac-qty-option--square {
    border-radius: 4px;
}

/* Card style */
.vac-qty-option--card {
    border-radius: var(--vac-radius-sm);
    padding: 10px 18px;
    flex-direction: column;
    height: auto;
    min-height: 60px;
    gap: 2px;
    box-shadow: var(--vac-shadow-sm);
}

.vac-qty-option--card .vac-qty-option-label {
    font-size: 10px;
    color: var(--vac-text-light);
    font-weight: 500;
}

/* Selected state */
.vac-qty-option--selected {
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    border-color: transparent;
    color: var(--vac-white);
    box-shadow: var(--vac-shadow-green);
    transform: scale(1.04);
}

.vac-qty-option--selected::before {
    opacity: 0;
}

.vac-qty-option--selected:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(28, 115, 71, 0.4);
}

.vac-qty-option--selected .vac-qty-option-label {
    color: rgba(255, 255, 255, 0.85);
}

/* Special "More" option */
.vac-qty-option--more {
    border-style: dashed;
    border-color: var(--vac-gold);
    color: var(--vac-gold-dark);
    background: rgba(252, 194, 54, 0.04);
}

.vac-qty-option--more:hover {
    background: rgba(252, 194, 54, 0.1);
    border-color: var(--vac-gold-dark);
    box-shadow: var(--vac-shadow-gold);
}

/* Bulk order CTA */
.vac-qty-bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--vac-radius-sm);
    background: linear-gradient(135deg, var(--vac-gold), var(--vac-gold-dark));
    color: #04100a;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--vac-font-body);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--vac-ease);
    box-shadow: var(--vac-shadow-gold);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.vac-qty-bulk-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vac-qty-bulk-btn:hover::after {
    opacity: 1;
}

.vac-qty-bulk-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(252, 194, 54, 0.45);
}

.vac-qty-bulk-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* =====================================================
   §20  Contact Details Form
   ===================================================== */
.vac-contact-form {
    background: var(--vac-white);
    border-radius: var(--vac-radius-lg);
    padding: 20px 18px;
    box-shadow: var(--vac-shadow-md);
    margin: 8px 0;
    max-width: 320px;
    animation: vac-slide-up-key 0.5s var(--vac-ease) both;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vac-input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(28, 115, 71, 0.08);
    border-radius: var(--vac-radius-sm);
    font-size: 14px;
    font-family: var(--vac-font-body);
    color: var(--vac-text);
    background: #f9fbfa;
    outline: none;
    transition: all var(--vac-duration) var(--vac-ease);
    -webkit-appearance: none;
}

.vac-input-field::placeholder {
    color: #b0bab3;
}

.vac-input-field:focus {
    border-color: var(--vac-green);
    background: var(--vac-white);
    box-shadow: 0 0 0 4px rgba(28, 115, 71, 0.08);
}

.vac-input-field:hover:not(:focus) {
    border-color: rgba(28, 115, 71, 0.2);
}

.vac-input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--vac-green-dark);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: var(--vac-font-body);
}

/* =====================================================
   §21  Google Maps Location
   ===================================================== */
.vac-location-section {
    background: var(--vac-white);
    border-radius: var(--vac-radius-lg);
    padding: 18px;
    box-shadow: var(--vac-shadow-md);
    margin: 8px 0;
    max-width: 320px;
    animation: vac-slide-up-key 0.5s var(--vac-ease) both;
}

.vac-location-map {
    width: 100%;
    height: 160px;
    border-radius: var(--vac-radius-sm);
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    border: 2px solid rgba(28, 115, 71, 0.08);
}

.vac-location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.vac-location-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--vac-radius-sm);
    background: linear-gradient(135deg, var(--vac-green), var(--vac-green-dark));
    color: var(--vac-white);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--vac-font-body);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--vac-ease);
    box-shadow: var(--vac-shadow-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vac-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 115, 71, 0.4);
}

.vac-location-btn:active {
    transform: translateY(0) scale(0.98);
}

.vac-location-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f0f5f2;
    border-radius: var(--vac-radius-sm);
    margin-top: 10px;
    font-size: 13px;
    color: var(--vac-text);
    line-height: 1.5;
    transition: all var(--vac-duration) var(--vac-ease);
}

.vac-location-address::before {
    content: '📍';
    flex-shrink: 0;
    font-size: 16px;
}

.vac-location-edit {
    padding: 6px 14px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid var(--vac-green);
    color: var(--vac-green);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--vac-font-body);
    cursor: pointer;
    transition: all 0.25s var(--vac-ease);
    margin-top: 8px;
}

.vac-location-edit:hover {
    background: var(--vac-green);
    color: var(--vac-white);
    box-shadow: var(--vac-shadow-green);
}

.vac-location-confirmed {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* =====================================================
   §22  Cart / Order Review
   ===================================================== */
.vac-cart-container {
    background: var(--vac-white);
    border-radius: var(--vac-radius-lg);
    box-shadow: var(--vac-shadow-md);
    overflow: hidden;
    margin: 8px 0;
    max-width: 320px;
    animation: vac-slide-up-key 0.5s var(--vac-ease) both;
}

.vac-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(28, 115, 71, 0.06);
    transition: background 0.2s ease;
    animation: vac-fade-in-key 0.35s var(--vac-ease) both;
}

.vac-cart-item:hover {
    background: #f9fbfa;
}

.vac-cart-item:last-of-type {
    border-bottom: none;
}

.vac-cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: var(--vac-radius-sm);
    object-fit: cover;
    background: #e8f5e9;
    flex-shrink: 0;
    overflow: hidden;
}

.vac-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.vac-cart-item-details .vac-cart-item-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--vac-text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.1px;
}

.vac-cart-item-details .vac-cart-item-qty {
    font-size: 11px;
    color: var(--vac-text-light);
    margin-top: 2px;
    letter-spacing: 0.1px;
}

.vac-cart-item-price {
    font-family: var(--vac-font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--vac-green);
    flex-shrink: 0;
}

.vac-cart-item-remove {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(220, 50, 50, 0.2);
    color: #dc3232;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--vac-ease);
    flex-shrink: 0;
    line-height: 1;
}

.vac-cart-item-remove:hover {
    background: rgba(220, 50, 50, 0.08);
    border-color: #dc3232;
    transform: scale(1.1);
}

.vac-cart-add-more {
    display: block;
    width: calc(100% - 32px);
    margin: 12px 16px;
    padding: 10px;
    border-radius: var(--vac-radius-sm);
    background: transparent;
    border: 2px dashed rgba(28, 115, 71, 0.2);
    color: var(--vac-green);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--vac-font-body);
    cursor: pointer;
    transition: all 0.25s var(--vac-ease);
    text-align: center;
}

.vac-cart-add-more:hover {
    border-color: var(--vac-green);
    background: rgba(28, 115, 71, 0.04);
    transform: translateY(-1px);
}

.vac-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-top: 2px solid var(--vac-green);
    background: #f0f5f2;
    font-family: var(--vac-font-heading);
}

.vac-cart-total-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--vac-text);
}

.vac-cart-total-value {
    font-size: 18px;
    font-weight: 900;
    color: var(--vac-green);
}

/* Receipt Style */
.vac-cart-receipt {
    background: var(--vac-white);
    border-radius: var(--vac-radius-sm);
    overflow: hidden;
    box-shadow: var(--vac-shadow-sm);
    margin: 10px 0;
    max-width: 280px;
    animation: vac-slide-up-key 0.5s var(--vac-ease) both;
}

.vac-cart-receipt-header {
    padding: 14px 16px;
    text-align: center;
    font-family: var(--vac-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--vac-green-dark);
    background: #f0f5f2;
    border-bottom: 2px dashed rgba(28, 115, 71, 0.15);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vac-cart-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--vac-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: background 0.2s ease;
}

.vac-cart-receipt-row:last-child {
    border-bottom: none;
}

.vac-cart-receipt-row:hover {
    background: #fafcfa;
}

.vac-cart-receipt-row span:first-child {
    color: var(--vac-text-light);
}

.vac-cart-receipt-row span:last-child {
    font-weight: 700;
    color: var(--vac-text);
}

.vac-cart-receipt-row--total {
    border-top: 2px dashed rgba(28, 115, 71, 0.15);
    background: #f0f5f2;
    padding: 12px 16px;
}

.vac-cart-receipt-row--total span:first-child {
    font-family: var(--vac-font-heading);
    font-weight: 700;
    color: var(--vac-green-dark);
    font-size: 14px;
}

.vac-cart-receipt-row--total span:last-child {
    font-family: var(--vac-font-heading);
    font-weight: 900;
    color: var(--vac-green);
    font-size: 16px;
}

/* =====================================================
   §23  Order Confirmation
   ===================================================== */
.vac-order-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    gap: 16px;
    animation: vac-scale-in-key 0.6s var(--vac-ease-bounce);
}

.vac-order-success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3),
                0 0 0 6px rgba(34, 197, 94, 0.08);
    animation: vac-success-check 0.7s var(--vac-ease-bounce) 0.2s both;
}

.vac-order-success-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--vac-white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.vac-order-success-text {
    font-family: var(--vac-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--vac-text);
    line-height: 1.3;
}

.vac-order-success-text p {
    font-family: var(--vac-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--vac-text-light);
    margin-top: 8px;
    line-height: 1.6;
}

.vac-order-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 240px;
    margin-top: 8px;
}

/* =====================================================
   §24  Order Summary Card in Chat
   ===================================================== */
.vac-order-summary {
    background: var(--vac-white);
    border-radius: var(--vac-radius-md);
    overflow: hidden;
    box-shadow: var(--vac-shadow-md);
    margin: 10px 0;
    max-width: 284px;
    border: 1px solid rgba(28, 115, 71, 0.06);
    animation: vac-slide-up-key 0.45s var(--vac-ease) both;
}

.vac-order-summary-header {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vac-order-summary-header span {
    font-family: var(--vac-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--vac-green);
}

.vac-order-summary-body {
    padding: 12px 14px;
}

.vac-order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: #444;
    transition: background 0.15s ease;
}

.vac-order-summary-row:hover {
    background: #f9fbfa;
    margin: 0 -14px;
    padding: 5px 14px;
    border-radius: 4px;
}

.vac-order-summary-row strong {
    color: var(--vac-text);
    font-weight: 700;
}

.vac-order-summary-total {
    border-top: 2px solid var(--vac-green);
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 700;
    color: var(--vac-green);
    font-size: 15px;
    font-family: var(--vac-font-heading);
}

/* =====================================================
   §25  Product Detail in Chat
   ===================================================== */
.vac-product-detail {
    background: var(--vac-white);
    border-radius: var(--vac-radius-lg);
    overflow: hidden;
    box-shadow: var(--vac-shadow-md);
    max-width: 284px;
    margin: 10px 0;
    animation: vac-slide-up-key 0.5s var(--vac-ease) both;
}

.vac-product-detail-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.vac-product-detail-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
}

.vac-product-detail-body {
    padding: 16px;
}

.vac-product-detail-name {
    font-family: var(--vac-font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--vac-text);
    margin-bottom: 4px;
}

.vac-product-detail-desc {
    font-size: 13px;
    color: var(--vac-text-light);
    line-height: 1.55;
    margin-bottom: 12px;
}

.vac-product-detail-price {
    font-family: var(--vac-font-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--vac-green);
    margin-bottom: 14px;
    text-shadow: 0 1px 2px rgba(28, 115, 71, 0.08);
}

.vac-product-detail-actions {
    display: flex;
    gap: 8px;
}

.vac-product-detail-btn {
    flex: 1;
    padding: 11px;
    border-radius: var(--vac-radius-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--vac-font-body);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--vac-ease);
    position: relative;
    overflow: hidden;
}

.vac-product-detail-btn--order {
    background: linear-gradient(135deg, var(--vac-gold), #f0b020);
    color: #04100a;
    box-shadow: var(--vac-shadow-gold);
}

.vac-product-detail-btn--order::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.vac-product-detail-btn--order:hover::after {
    opacity: 1;
}

.vac-product-detail-btn--order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 194, 54, 0.45);
}

.vac-product-detail-btn--order:active {
    transform: translateY(0) scale(0.97);
}

/* =====================================================
   §26  Category Selection Cards
   ===================================================== */
.vac-category-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 8px 0;
}

.vac-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    border-radius: var(--vac-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--vac-ease);
    animation: vac-scale-in-key 0.4s var(--vac-ease-bounce) both;
    text-align: center;
}

.vac-category-card:nth-child(2) {
    animation-delay: 0.1s;
}

.vac-category-card:nth-child(3) {
    animation-delay: 0.2s;
}

.vac-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vac-shadow-md);
    border-color: var(--vac-green);
}

.vac-category-card:active {
    transform: translateY(0) scale(0.97);
}

.vac-category-card-icon {
    font-size: 32px;
    line-height: 1;
}

.vac-category-card-icon-wrap {
    transition: transform 0.3s var(--vac-ease), box-shadow 0.3s var(--vac-ease);
}

.vac-category-card:hover .vac-category-card-icon-wrap {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.vac-category-card-label {
    font-family: var(--vac-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--vac-text);
    letter-spacing: 0.2px;
}

.vac-category-card-count {
    font-size: 10px;
    color: var(--vac-text-light);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Photo-based Category Cards */
.vac-category-card--photo {
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.vac-category-card--photo .vac-category-card-img-wrap {
    width: 100%;
    height: 72px;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.vac-category-card--photo .vac-category-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--vac-ease);
}

.vac-category-card--photo:hover .vac-category-card-img-wrap img {
    transform: scale(1.08);
}

.vac-category-card--photo .vac-category-card-img-placeholder {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vac-category-card--photo .vac-category-card-label {
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 8px 2px 8px;
    letter-spacing: 0.3px;
}

.vac-category-card--photo .vac-category-card-count {
    font-size: 10px;
    padding-bottom: 8px;
}

/* =====================================================
   §26b  Checkout Form Styles
   ===================================================== */
.vac-checkout-header {
    padding: 12px 16px;
    text-align: center;
    font-family: var(--vac-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--vac-green-dark);
    background: #f0f5f2;
    border-bottom: 2px dashed rgba(28, 115, 71, 0.15);
    border-radius: var(--vac-radius-lg) var(--vac-radius-lg) 0 0;
    letter-spacing: 0.5px;
}

.vac-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* =====================================================
   §27  Powered By Footer
   ===================================================== */
.vac-powered {
    text-align: center;
    padding: 8px 0;
    font-size: 10px;
    color: #b5bfb8;
    background: var(--vac-white);
    border-top: 1px solid rgba(28, 115, 71, 0.05);
    flex-shrink: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.vac-powered a {
    color: var(--vac-green);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.vac-powered a:hover {
    color: var(--vac-green-dark);
}

/* =====================================================
   §27  Date Separator
   ===================================================== */
.vac-date-sep {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding: 10px 0;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.vac-date-sep::before,
.vac-date-sep::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 42px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 115, 71, 0.12), transparent);
}

.vac-date-sep::before { left: 0; }
.vac-date-sep::after  { right: 0; }

/* =====================================================
   §29  Order Receipt Template
   ===================================================== */
.vac-receipt {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 300px;
    margin: 0 auto;
    font-size: 12px;
    border: 1px solid #e8e8e8;
}

.vac-receipt-logo {
    padding: 14px 16px 4px;
    text-align: center;
}

.vac-receipt-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.vac-receipt-brand {
    text-align: center;
    font-family: var(--vac-font-heading);
    font-size: 20px;
    font-weight: 900;
    color: #1c7347;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.vac-receipt-tagline {
    text-align: center;
    font-size: 11px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
    padding-bottom: 8px;
}

.vac-receipt-divider {
    height: 1px;
    background: repeating-linear-gradient(90deg, #1c7347, #1c7347 6px, transparent 6px, transparent 12px);
    margin: 0 12px;
}

.vac-receipt-item-name {
    font-size: 11px;
    color: #444;
    flex: 1;
    line-height: 1.3;
}

.vac-receipt-item-price {
    font-size: 12px;
    font-weight: 800;
    font-family: var(--vac-font-heading);
    color: #1c7347;
    white-space: nowrap;
    margin-left: 8px;
}

.vac-receipt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, #1c7347, #145233);
    color: #fff;
    margin: 8px 0 0;
}

.vac-receipt-total-row span:first-child {
    font-size: 13px;
    font-weight: 800;
    font-family: var(--vac-font-heading);
    letter-spacing: 0.5px;
}

.vac-receipt-total-row span:last-child {
    font-size: 18px;
    font-weight: 900;
    font-family: var(--vac-font-heading);
}

.vac-receipt-footer {
    text-align: center;
    padding: 10px 14px 12px;
    font-size: 10px;
    color: #999;
    line-height: 1.4;
}

/* =====================================================
   §30  Browse Section — Single Image
   ===================================================== */
.vac-browse-single-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}

.vac-browse-single-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* =====================================================
   §31  Checkout Form — Input Hint
   ===================================================== */
.vac-input-hint {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
    padding-left: 2px;
}

/* =====================================================
   §32  Responsive Design
   ===================================================== */

/* Tablet and small desktops */
@media (max-width: 768px) {
    .vac-window {
        width: 380px;
        height: 580px;
        bottom: 16px;
        right: 16px;
    }

    .vac-fab-wrapper {
        /* Position is set via JS applyPosition() — no fixed position so dashboard offsets work */
    }

    .vac-fab {
        width: 60px;
        height: 60px;
    }

    .vac-fab-v {
        font-size: 24px;
    }

    .vac-fab-ring::after {
        inset: 3px;
    }
}

/* Mobile — Full screen */
@media (max-width: 480px) {
    .vac-window {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        max-width: 100vw !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        /* Handle iOS viewport height with address bar */
        height: 100dvh !important;
        max-height: 100dvh !important;
        /* Prevent horizontal overflow */
        overflow: hidden;
    }

    .vac-window.vac-window--open {
        transform: scale(1) translateY(0);
    }

    .vac-fab-wrapper {
        /* Position is set via JS applyPosition() — no !important so dashboard offsets work */
    }

    .vac-fab {
        width: 56px;
        height: 56px;
    }

    .vac-fab-v {
        font-size: 22px;
        letter-spacing: -0.5px;
    }

    .vac-fab-ring::after {
        inset: 3px;
    }

    .vac-fab svg {
        width: 26px;
        height: 26px;
    }

    .vac-fab-label {
        display: inline-flex;
        font-size: 12px;
        padding: 6px 14px;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vac-header {
        padding: 12px 14px;
        border-radius: 0;
        /* Safe area for notch */
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        min-height: 56px;
        flex-shrink: 0;
    }

    .vac-header-avatar {
        width: 38px !important;
        height: 38px !important;
    }

    .vac-header-avatar span:last-child {
        font-size: 15px !important;
        line-height: 38px !important;
    }

    .vac-header-title {
        font-size: 15px;
    }

    .vac-header-status {
        font-size: 11px;
    }

    .vac-messages {
        padding: 12px 10px;
        gap: 10px;
        /* Take remaining space between header and input */
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vac-msg {
        max-width: 90%;
    }

    .vac-input-area {
        padding: 10px 12px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
        flex-shrink: 0;
    }

    .vac-input {
        padding: 11px 16px;
        font-size: 16px; /* Prevent iOS zoom on focus */
        border-radius: 22px;
    }

    .vac-send-btn {
        width: 44px;
        height: 44px;
    }

    .vac-powered {
        display: none; /* Hide on mobile to save space */
    }

    .vac-products-grid,
    .vac-products-grid--enhanced {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        max-width: 100%;
    }

    .vac-welcome,
    .vac-welcome--premium {
        padding: 20px 14px;
        gap: 8px;
    }

    .vac-welcome-title {
        font-size: 22px;
    }

    .vac-welcome-tagline {
        font-size: 11px;
    }

    .vac-welcome-features > * {
        font-size: 10px;
        padding: 3px 8px;
    }

    .vac-order-success {
        padding: 20px 14px;
    }

    .vac-contact-form,
    .vac-location-section,
    .vac-cart-container,
    .vac-order-summary,
    .vac-product-detail {
        max-width: 100%;
    }

    .vac-category-cards {
        gap: 8px;
    }

    .vac-category-card {
        padding: 12px 8px;
    }

    .vac-category-card-icon {
        font-size: 26px;
    }

    .vac-category-card-label {
        font-size: 12px;
    }

    /* Receipt on mobile */
    .vac-receipt--premium {
        max-width: 100%;
        border-radius: 12px;
    }

    .vac-receipt-header-bar {
        padding: 14px 12px;
    }

    .vac-receipt-header-bar h2 {
        font-size: 14px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .vac-product-card-body {
        padding: 8px 10px;
    }

    .vac-product-card-name {
        font-size: 11px;
    }

    .vac-product-card-price {
        font-size: 12px;
    }

    .vac-product-card-btn {
        font-size: 10px;
        padding: 6px 0;
    }

    .vac-qty-grid {
        gap: 6px;
    }

    .vac-qty-option {
        min-width: 42px;
        height: 38px;
        font-size: 12px;
        padding: 0 12px;
    }

    .vac-quick-reply {
        padding: 7px 14px;
        font-size: 12px;
    }

    .vac-category-tab {
        padding: 6px 14px;
        font-size: 11px;
    }
}

/* Landscape mobile */
@media (max-width: 820px) and (orientation: landscape) {
    .vac-window {
        max-height: 100vh !important;
        height: 100vh !important;
    }

    .vac-header {
        padding: 8px 14px;
        min-height: 48px;
    }

    .vac-header-avatar {
        width: 34px !important;
        height: 34px !important;
    }

    .vac-input-area {
        padding: 8px 12px;
    }

    .vac-welcome,
    .vac-welcome--premium {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
}

/* Dark mode preference hint (future-proofing) */
@media (prefers-color-scheme: dark) {
    /* Placeholder for future dark mode support */
}

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

    .vac-fab {
        animation: none;
    }

    .vac-messages {
        scroll-behavior: auto;
    }
}

/* High DPI screens — sharper shadows */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .vac-window {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18),
                    0 8px 24px rgba(0, 0, 0, 0.08);
    }
}

/* =====================================================
   v11 NEW: Discount Badge for Product Cards
   ===================================================== */
/* Discount badge on product card */
.vac-product-card-badge--discount {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    border-radius: 50px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--vac-font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
    z-index: 2;
    animation: vac-scale-in-key 0.3s var(--vac-ease-bounce) both;
}

/* Discount price container — premium strikethrough design */
.vac-product-price-discount {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

/* Original price (struck through) — premium style */
.vac-product-price-original {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #e53935;
    text-decoration-thickness: 1.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
}

/* Final/discount price (prominent) — premium bold */
.vac-product-price-final {
    font-family: var(--vac-font-heading);
    font-size: 13px;
    font-weight: 800;
    color: #e53935;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #fff5f5, #ffebee);
    padding: 1px 6px;
    border-radius: 4px;
}

/* =====================================================
   v11 NEW: Premium Receipt Styles
   ===================================================== */
.vac-receipt--premium {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 300px;
    margin: 0 auto;
}

.vac-receipt-header-bar {
    background: linear-gradient(135deg, #1c7347, #145233);
    padding: 18px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.vac-receipt-header-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.vac-receipt-header-bar h2 {
    font-family: var(--vac-font-heading);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    color: #ffffff;
}

.vac-receipt-header-bar p {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin: 4px 0 0;
    letter-spacing: 0.5px;
}

.vac-receipt-gold-accent {
    height: 3px;
    background: linear-gradient(90deg, transparent, #fcc236, transparent);
}

.vac-receipt-confirmed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    font-size: 13px;
    font-weight: 700;
    color: #1c7347;
    letter-spacing: 0.5px;
}

.vac-receipt-order-num {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 8px;
    background: #f5f5f5;
    font-family: var(--vac-font-heading);
    font-size: 14px;
    font-weight: 800;
    color: #1c7347;
    letter-spacing: 1px;
}

.vac-receipt-section {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.vac-receipt-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.vac-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
    color: #555;
}

.vac-receipt-item-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.vac-receipt-divider {
    border: none;
    border-top: 1px dashed #e0e0e0;
    margin: 8px 16px;
}

.vac-receipt-savings {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 10px 16px;
    text-align: center;
}

/* =====================================================
   v11 NEW: QR Code Modal Premium Styles
   ===================================================== */
.vac-qr-modal-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.vac-qr-modal-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}

.vac-qr-modal-brand span {
    font-family: var(--vac-font-heading);
    font-size: 18px;
    font-weight: 900;
    color: #1c7347;
    letter-spacing: 1px;
}

.vac-qr-container--premium {
    display: inline-block;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e8f5e9;
    box-shadow: 0 4px 16px rgba(28, 115, 71, 0.1);
    margin-bottom: 12px;
}

.vac-qr-fallback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-family: var(--vac-font-body);
    transition: all 0.3s var(--vac-ease);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    width: 100%;
    justify-content: center;
}

.vac-qr-fallback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* QR Loading spinner */
@keyframes vac-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================
   v11.2 NEW: WhatsApp Send Button in Receipt
   ===================================================== */
.vac-receipt-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    font-family: var(--vac-font-heading, Poppins, sans-serif);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    letter-spacing: 0.3px;
}

.vac-receipt-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.vac-receipt-whatsapp-btn:active {
    transform: translateY(0);
}

.vac-receipt-whatsapp-btn-subtitle {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.vac-receipt-whatsapp-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* QR Modal responsive improvements */
@media (max-width: 480px) {
    #vac-qr-modal > div {
        max-width: 95% !important;
        padding: 20px !important;
    }
    #vac-qr-img {
        width: 180px !important;
        height: 180px !important;
    }
}

/* WhatsApp Web fallback button */
.vac-qr-wa-web-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #25d366;
    color: #25d366;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-decoration: none;
}

.vac-qr-wa-web-btn:hover {
    background: #e8f5e9;
}
