/**
 * Synemai Store - Customer-Facing Store Styles
 * Minimal modern design for e-commerce frontend
 * Built on design system variables
 */

/* ============================================
   BASE & RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--bg-primary);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    color: var(--text-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-dark-gray);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-hover);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-chat .container {
    width: 100%;
    padding: 0 var(--space-4);
}

.logo-link {
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-header {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.nav-link {
    color: var(--text-dark-gray);
    font-weight: var(--font-medium);
    font-size: var(--text-base);
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover {
    color: var(--text-dark);
}

/* Override hover for special buttons */
.nav-link.nav-btn-products:hover {
    color: var(--white);
}
.nav-link.cart-link-icon:hover {
    color: var(--white);
}

.cart-badge {
    background: #FF6B35;
    color: var(--white);
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    font-weight: var(--font-semibold);
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Social Icons */
.nav-link.nav-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--text-dark-gray);
    transition: var(--transition-base);
}

.nav-link.nav-social-icon:hover {
    color: var(--primary);
    background: rgba(0, 158, 81, 0.1);
}

.nav-link.nav-social-icon svg {
    width: 20px;
    height: 20px;
}

/* Products Button - Outline Green */
.nav-link.nav-btn-products {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.nav-link.nav-btn-products:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* History Icon - Circular Green Background */
.drawer-header .btn-round-solid{
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.drawer-header .btn-round-solid:hover{
    background: var(--bg-secondary);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}



.btn-round-solid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    background: var(--primary);
    border-radius: var(--radius-full);
    color: var(--white);
    border: none;
    border: 2px solid var(--primary);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-round-solid:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 158, 81, 0.2);
}

.btn-round-solid:hover {
    background: #07312d;
    color: var(--white);
    border: 2px solid #07312d;
}

.btn-round-outline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    border-radius: var(--radius-full);
    color: var(--primary);
    border: 2px solid var(--primary);
    background: none;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-round-outline:hover {
    background: var(--primary);
    color: var(--white);
}


.nav-link.history-link-icon svg {
    width: 24px;
    height: 24px;
}

/* Cart Icon - Circular Green Background */
.nav-link.cart-link-icon svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-2xl);
    color: var(--text-dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    text-decoration: none;
    gap: var(--space-2);
    line-height: 1;
}

.btn-primary {
    border: 2px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
}

.btn-primary:hover {
    background: var(--text-dark);
    box-shadow: var(--shadow-md);
    color: var(--white);
    border: 2px solid var(--text-dark);
}

/* CTA Buttons - Cyan Blue */
.btn-cta {
    background: var(--cta);
    color: var(--white);
    border: none;
}

.btn-cta:hover {
    background: var(--cta-hover);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-dark);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-full);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border: none;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-white-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-white-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ============================================
   PRODUCT GRID
   ============================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--bg-secondary);
}

.product-info {
    padding: var(--space-6);
}

.product-category {
    font-size: var(--text-xs);
    color: var(--text-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
    font-weight: var(--font-semibold);
}

.product-name {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
    color: var(--text-dark);
}

.product-price {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.product-actions {
    display: flex;
    gap: var(--space-3);
}

/* ============================================
   CHAT LAYOUT (two-column desktop)
   ============================================ */

.products-panel {
    width: 0;
    min-width: 0;
    flex-shrink: 0;
    border-left: 1px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    transition: width 0.3s ease, border-color 0.3s ease;
}

.products-panel.panel-open {
    width: 520px;
    border-left-color: var(--border-color);
}

.products-panel-inner {
    width: 520px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.products-panel .drawer-header {
    display: none;
}

/* On desktop: hide the register button (panel is always accessible) */
@media (min-width: 1200px) {
    .nav-btn-register {
        display: none;
    }
}

/* Hide products panel on tablet and below */
@media (max-width: 1199px) {
    .products-panel {
        display: none;
    }
}

/* ============================================
   CHAT INTERFACE
   ============================================ */

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--space-4);
    transition: justify-content 0.4s ease;

}

/* Landing state: vertically center the input */
.chat-container:not(.chat-active) {
    justify-content: center;
    margin-bottom: 70px;
}

.chat-container:not(.chat-active) .chat-messages {
    display: none;
}

.chat-container:not(.chat-active) .chat-input-area {
    border-top: none;
}

/* Landing header */
.chat-landing-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
    padding: 0 var(--space-4) var(--space-6);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chat-landing-logo {
    width: 48px;
    height: 48px;
}

.chat-landing-header h2 {
    font-size: 2rem;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0;
}

.chat-landing-header p {
    color: var(--text-dark);
    font-weight: 200;
    font-size: var(--text-base);
    margin: 0;
}

.chat-landing-header.fading {
    opacity: 0;
}

.chat-container.chat-active .chat-landing-header {
    display: none;
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    padding: 0 var(--space-4) var(--space-4);
}

.chat-chip {
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-base);
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.chat-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.chat-container.chat-active .chat-chips {
    display: none;
}

.landing-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-6) var(--space-2) var(--space-4) var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    -webkit-overflow-scrolling: touch;
}

.chat-messages::before {
    content: '';
    flex: 1;
}

.chat-message {
    display: flex;
    gap: var(--space-4);
    max-width: 80%;
    animation: slideIn var(--duration-base) var(--ease-out);
}

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

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: var(--font-semibold);
    flex-shrink: 0;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chat-message.user .chat-avatar {
    background: var(--text-dark);
}

.chat-bubble {
    background: var(--bg-secondary);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    line-height: var(--leading-relaxed);
    min-width: 0;
    overflow-wrap: break-word;
}

.chat-message:not(.user) .chat-bubble {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
}

/* Chat Product Card (inline recommendations) */
.chat-product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    gap: var(--space-3);
    margin-top: 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 250ms ease-in-out, box-shadow 250ms ease-in-out;
}

.chat-product-card:hover {
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

.product-card-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
}

.product-card-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(136deg, #edecec 0%, #bcbcbc 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.product-card-info {
    flex: 1;
    min-width: 0;
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
}

.product-card-category {
    font-size: 0.6rem;
    color: var(--text-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.product-card-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--leading-snug);
}

.product-card-price {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--primary);
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2);
    flex-shrink: 0;
}

.product-card-link,
.product-card-add-cart {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
    border: 2px solid var(--primary);
    gap: 0;
}


.product-card-add-cart:hover{
    border: 2px solid var(--text-dark);
} 

/* Chat Cart Summary Card */
.chat-cart-summary {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
    overflow: hidden;
}

.cart-summary-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-icon {
    font-size: var(--text-xl);
}

.cart-summary-title {
    font-weight: var(--font-semibold);
    flex: 1;
}

.cart-summary-count {
    font-size: var(--text-sm);
    color: var(--text-dark-gray);
    background: var(--bg-primary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.cart-summary-items {
    padding: var(--space-4);
    max-height: 200px;
    overflow-y: auto;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-summary-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.cart-item-name {
    font-weight: var(--font-medium);
    color: var(--text-dark);
}

.cart-item-category {
    font-size: var(--text-xs);
    color: var(--text-light-gray);
}

.cart-item-details {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.cart-item-qty {
    font-size: var(--text-sm);
    color: var(--text-dark-gray);
}

.cart-item-price {
    font-weight: var(--font-semibold);
    color: var(--text-dark);
}

.cart-empty {
    text-align: center;
    color: var(--text-light-gray);
    padding: var(--space-4);
    margin: 0;
}

.cart-summary-footer {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.cart-summary-total strong {
    color: var(--primary);
}

.cart-summary-checkout {
    width: 100%;
}

/* ============================================
   CONTINUA SU BUTTON + POPUP
   ============================================ */

.continua-btn-wrapper {
    padding-left: calc(40px + var(--space-4));
    margin-top: calc(-1 * var(--space-3));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex;
    justify-content: end;
}

.continua-btn-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.continua-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-secondary);
    color: #758281;
    border: none;
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.continua-btn:hover {
    background: var(--bg-secondary-hover);
}

/* Popup overlay */
.continua-popup-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.05);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.continua-popup-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Popup panel */
.continua-popup-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(340px, 90vw);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease-out), opacity 0.25s ease;
}

.continua-popup-panel.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.continua-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.continua-popup-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
}

.continua-popup-close {
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-full);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark-gray);
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.continua-popup-close:hover {
    background: var(--bg-secondary-hover);
}

.continua-channels {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-top: 1px dashed var(--border-color);
}

.continua-channel {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    text-decoration: none;
    color: var(--text-dark);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: background 0.15s ease;
    border-bottom: 1px dashed var(--border-color);
}

.continua-channel:last-child {
    border-bottom: none;
}

.continua-channel:hover {
    background: var(--bg-secondary);
}

.continua-channel-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.continua-channel-icon i {
    font-size: 32px !important;
    color: var(--primary) !important;
}

.continua-channel-label {
    line-height: 1.2;
}

/* ============================================
   END CONTINUA SU
   ============================================ */

.chat-input-area {
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    padding: var(--space-4) var(--space-8);
    background: var(--bg-primary);
}

.chat-input-wrapper {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}


.chat-btn-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.chat-mic-btn,
.chat-send-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.chat-mic-btn svg,
.chat-send-btn svg {
    width: 20px;
    height: 20px;
}

/* Default: mic visible, send hidden */
.chat-mic-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.chat-send-btn {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}

/* Has text: send visible, mic hidden */
.chat-input-wrapper.has-text .chat-mic-btn {
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}
.chat-input-wrapper.has-text .chat-send-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.chat-input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    font-size: var(--text-base);
    font-family: inherit;
    transition: var(--transition-base);
    outline: none;
    resize: none;
    min-height: 48px;
    max-height: 150px;
    overflow-y: hidden;
    line-height: 1.5;
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 158, 81, 0.2);
}





/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-8) 0;
    text-align: center;
    margin-top: var(--space-16);
}

.footer p {
    color: var(--text-light-gray);
    font-size: var(--text-sm);
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .container {
        padding: 0 var(--space-6);
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--space-6);
    }
}



/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 77px;
        border-top: 1px solid var(--border-color);
        right: -100%;
        width: 250px;
        height: calc(100vh - 60px);
        background: var(--white);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        padding-top: var(--space-6);
        transition: right var(--duration-base) var(--ease-in-out);
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: var(--space-2);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--space-2);
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-4);
    }

    .product-card {
        font-size: var(--text-sm);
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }

    .product-card-image {
        width: 60px;
        height: 60px;
    }

    .product-card-category {
        font-size: var(--text-xs);
    }

    .product-card-name {
        font-size: var(--text-base);
    }

    .product-card-price {
        font-size: var(--text-base);
    }

    .product-card-link,
    .product-card-add-cart {
        font-size: var(--text-xs);
    }

    .product-card-info {
        padding-left: 0;
        padding-right: 0;
    }

    .product-card-actions {
        padding-left: 0;
        padding-right: 0;
    }

    .chat-container {
        padding: 0 var(--space-2);
    }

    .chat-messages {
        padding: var(--space-4) var(--space-1);
    }

    .chat-message {
        max-width: 92%;
        gap: var(--space-2);
    }

    .chat-avatar {
        width: 32px;
        height: 32px;
        font-size: var(--text-sm);
    }

    .chat-bubble {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }

    .chat-input-area {
        padding: var(--space-3) var(--space-3);
    }

    .chat-input-wrapper {
        gap: var(--space-2);
    }

    .chat-input {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
        min-height: 44px;
    }

    .chat-btn-toggle {
        width: 44px;
        height: 44px;
    }

    .logo-header {
        height: 32px;
    }

    .footer {
        padding: var(--space-6) 0;
    }

     .navbar {
        padding: var(--space-2) 0;
        min-height: 62px;
    }

    /* Landing chat — tablet */
    .chat-landing-logo {
        width: 52px;
        height: 52px;
    }

    .chat-landing-header h2 {
        font-size: 1.6rem;
    }

    .chat-landing-header p {
        font-size: var(--text-sm);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .landing-header{
        flex-direction: column;
        gap: var(--space-2);
    }



    .nav-links {
        position: fixed;
        top: 61px;
    }


    .container {
        padding: 0 var(--space-2);
    }

    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: var(--space-3);
    }

    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }

    .chat-product-card {
        flex-direction: column;
        gap: var(--space-3);
    }

    .product-card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    /* Landing chat — small mobile */
    .chat-landing-logo {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-1);
    }

    .chat-landing-header {
        padding: 0 var(--space-2) var(--space-4);
    }

    .chat-landing-header h2 {
        font-size: 1.35rem;
    }

    .chat-landing-header p {
        font-size: var(--text-sm);
    }

    /* Chat mobile optimizations */
    .chat-container {
        padding: 0;
    }

    .chat-messages {
        padding: var(--space-3) var(--space-2);
    }

    .chat-message {
        max-width: 95%;
        gap: var(--space-2);
    }

    .chat-avatar {
        width: 28px;
        height: 28px;
    }

    .chat-bubble {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
        border-radius: var(--radius-md);
    }

    .chat-input-area {
        padding: var(--space-2);
    }

    .chat-input {
        padding: var(--space-2) var(--space-3);
        border-radius: var(--radius-lg);
        min-height: 40px;
    }

    .chat-btn-toggle {
        width: 40px;
        height: 40px;
    }

    .logo-header {
        height: 30px;
    }

}

/* ============================================
   ANIMATIONS & LOADING STATES
   ============================================ */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: var(--radius-full);
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

.loading-spinner-primary {
    border-color: rgba(var(--primary-rgb), 0.3);
    border-top-color: var(--primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-base);
}

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

/* Fade In */
.fade-in {
    animation: fadeIn var(--duration-slow) var(--ease-in);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide Up */
.slide-up {
    animation: slideUp var(--duration-slow) var(--ease-out);
}

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

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: var(--white);
}

/* Pulse */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   HERO BANNER
   ============================================ */

.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(40deg, var(--primary), #099d58, #52992f, #099d58, var(--primary));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
    padding: 0;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Hero Navbar - transparent, inside hero */
.hero-navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-4) 0;
    z-index: 10;
}

.hero-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-logo-link {
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.hero-logo-link:hover {
    opacity: 0.8;
}

.hero-nav-logo {
    height: 40px;
    width: auto;
}

.hero-nav-links {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.hero-nav-link {
    color: var(--white);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: var(--transition-base);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-nav-link:hover {
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto var(--space-8);
    animation: logoEntry 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.hero-logo.loaded {
    filter: drop-shadow(0 0 80px rgba(255, 255, 255, 0.5));
}

@keyframes logoEntry {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
        filter: blur(10px);
    }
    60% {
        opacity: 1;
        filter: blur(0px);
    }
    80% {
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    color: var(--white);
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.1s backwards;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-10);
    line-height: var(--leading-relaxed);
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.3s backwards;
}

.hero-cta .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    transition: all 0.3s ease;
    border-radius: var(--radius-full);
}

.hero-cta .btn-white {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.hero-cta .btn-white:hover {
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-white-outline:hover {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Hero background - Floating geometric particles */
.hero-banner::before,
.hero-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.hero-banner::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation: float1 20s ease-in-out infinite;
    filter: blur(60px);
}

.hero-banner::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 207, 255, 0.4) 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation: float2 15s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-40px, -25px) scale(1.15);
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-banner {
        padding: var(--space-12) 0;
    }

    .hero-logo {
        max-width: 280px;
        margin-bottom: var(--space-6);
    }

    .hero-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-4);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-8);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
        padding: var(--space-3) var(--space-6);
    }

    .hero-banner::before,
    .hero-banner::after {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 220px;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }
}

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


.nav-logos{
    display: flex;
    gap: var(--space-3);
}

.lang-toggle {
    font-size: 1.3rem;
    background: none;
    border: none;
    color: var(--text-dark);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

.lang-toggle-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}